.mcnext-form-embed,
.mcnext-form-embed * {
  box-sizing: border-box;
}

.mcnext-form-embed {
  margin: 0;
  padding: 16px;
  font-family: "Work Sans", Arial, sans-serif;
  color: #333333;
  background: transparent;
}

.mcnext-form-card {
  max-width: 560px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: visible;
  border: 1px solid rgba(59, 24, 155, 0.14);
  box-shadow: 0 2px 4px rgba(34, 14, 88, 0.06), 0 16px 48px rgba(34, 14, 88, 0.14);
  background: #ffffff;
}

.mcnext-form-card--compact {
  max-width: 460px;
}

.mcnext-form-card--embedded {
  max-width: 100%;
  box-shadow: none;
}

.mcnext-form-header {
  background: #ffffff;
  padding: 22px 26px 16px;
  position: relative;
  border-bottom: 1px solid #efefef;
  border-radius: 20px 20px 0 0;
}

.mcnext-form-accent {
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 9999px;
  background: #eb1c79;
  margin: 0 0 10px;
}

.mcnext-form-title {
  margin: 0;
  color: #333333;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.mcnext-form-subtitle {
  margin: 6px 0 0;
  color: #333333;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 400;
}

.mcnext-form-body {
  background: #ffffff;
  padding: 14px 26px 22px;
  border-radius: 0 0 20px 20px;
}

.mcnext-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mcnext-form-field-wrap {
  min-width: 0;
}

.mcnext-form-field {
  min-width: 0;
}

.mcnext-form-grid > .mcnext-field-width-100 {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

.mcnext-form-grid > .mcnext-field-width-50 {
  flex: 0 0 calc(50% - 5px) !important;
  width: calc(50% - 5px) !important;
  max-width: calc(50% - 5px) !important;
}

.mcnext-form-grid > .mcnext-field-width-33 {
  flex: 0 0 calc(33.333% - 7px) !important;
  width: calc(33.333% - 7px) !important;
  max-width: calc(33.333% - 7px) !important;
}

.mcnext-form-label {
  display: block;
  margin: 0 0 4px;
  color: #333333;
  font-size: 12px;
  font-weight: 600;
}

.mcnext-form-input,
.mcnext-form-textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1.5px solid #ebebeb;
  border-radius: 8px;
  background: #f4f4f4;
  color: #333333;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms, background-color 150ms;
}

.mcnext-form-textarea {
  min-height: 64px;
  padding: 9px 12px;
  resize: vertical;
}

.mcnext-form-input:hover,
.mcnext-form-textarea:hover {
  border-color: #d1d1d1;
}

.mcnext-form-input:focus,
.mcnext-form-textarea:focus {
  border-color: #eb1c79;
  box-shadow: 0 0 0 3px rgba(235, 28, 121, 0.12);
  background: #ffffff;
}

.mcnext-form .mcnext-form-input.is-invalid,
.mcnext-form .mcnext-form-textarea.is-invalid,
.mcnext-form .mcnext-multiselect-toggle.is-invalid {
  border: 1.5px solid #c0245c !important;
  box-shadow: 0 0 0 1px rgba(192, 36, 92, 0.12) !important;
}

select.mcnext-form-input {
  padding-right: 32px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23EB1C79'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.mcnext-multiselect {
  position: relative;
}

.mcnext-prefix-autocomplete {
  position: relative;
}

.mcnext-prefix-dropdown {
  position: absolute;
  top: 0;
  left: calc(100% + 12px);
  right: auto;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 48px));
  min-width: 420px;
  max-height: min(520px, calc(100vh - 48px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
  border: 1.5px solid #ebebeb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(34, 14, 88, 0.14);
}

.mcnext-prefix-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #333333;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.mcnext-prefix-option:hover,
.mcnext-prefix-option.is-active {
  background: rgba(235, 28, 121, 0.08);
}

.mcnext-prefix-option-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  background: #f2f2f2;
  color: #999999;
  font-size: 12px;
  line-height: 1;
}

.mcnext-prefix-option-flag-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mcnext-prefix-option-label {
  min-width: 0;
}

.mcnext-multiselect-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mcnext-multiselect-toggle-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcnext-multiselect-arrow {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.mcnext-multiselect-toggle[aria-expanded="true"] .mcnext-multiselect-arrow {
  transform: rotate(180deg);
}

.mcnext-multiselect-panel {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1.5px solid #ebebeb;
  border-radius: 8px;
  background: #f4f4f4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mcnext-multiselect-panel.is-open {
  display: flex;
}

.mcnext-form-checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  line-height: 1.35;
  color: #333333;
  cursor: pointer;
}

.mcnext-form-checkbox-option input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #eb1c79;
  cursor: pointer;
}

.mcnext-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 0;
  cursor: pointer;
}

.mcnext-form-consent input {
  appearance: auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0 0;
  flex: 0 0 16px;
  accent-color: #eb1c79;
  cursor: pointer;
}

.mcnext-form-consent input.is-invalid {
  border-radius: 2px;
  outline: 1.5px solid #c0245c !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px #c0245c !important;
}

.mcnext-form-field-wrap.has-error .mcnext-form-consent {
  padding: 8px 10px;
  border: 1px solid rgba(192, 36, 92, 0.5);
  border-radius: 6px;
  background: rgba(192, 36, 92, 0.035);
}

.mcnext-form-consent label {
  color: #83919b;
  font-size: 11.5px;
  line-height: 1.35;
  cursor: pointer;
}

.mcnext-form-consent a {
  color: #eb1c79;
  font-weight: 500;
  text-decoration: underline;
}

.mcnext-form-hidden-field {
  display: none !important;
}

.mcnext-form-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 10px;
  padding: 11px 20px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: #eb1c79;
  color: #ffffff;
  box-shadow: 0 0 2px 0 rgba(235, 28, 121, 0.18), 2px 2px 12px 0 rgba(235, 28, 121, 0.24);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: background-color 150ms, box-shadow 150ms, transform 150ms;
}

.mcnext-form-button::after {
  content: "\2192";
  font-size: 19px;
  line-height: 1;
  transform: translateY(-1px);
}

.mcnext-form-button:hover {
  background: #3b189b;
  box-shadow: 0 0 2px 0 rgba(59, 24, 155, 0.18), 2px 2px 14px 0 rgba(59, 24, 155, 0.3);
}

.mcnext-form-button:focus {
  outline: 2px solid #eb1c79;
  outline-offset: 3px;
}

.mcnext-form-global-error {
  margin: 30px 0 12px;
  color: #c0245c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.mcnext-form-error {
  display: none;
  margin: 3px 0 0;
  color: #c0245c;
  font-size: 11px;
  line-height: 1.35;
}

.mcnext-form-error.is-visible {
  display: block;
}

.mcnext-form-help {
  margin: 3px 0 0;
  color: #83919b;
  font-size: 11px;
  line-height: 1.35;
}

.mcnext-form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 8px 0 0;
  color: #83919b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.mcnext-form-note::before {
  content: "\1F514";
  font-size: 13px;
  line-height: 1;
}

@media (max-width: 600px) {
  .mcnext-prefix-dropdown {
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    width: 100%;
    min-width: 100%;
    max-height: 320px;
  }

  .mcnext-form-embed {
    padding: 8px;
  }

  .mcnext-form-header,
  .mcnext-form-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mcnext-form-title {
    font-size: 21px;
  }

  .mcnext-field-width-50,
  .mcnext-field-width-33 {
    flex-basis: 100%;
  }
}
