/* Multistep analysis form — Figma lp-en-yeniii-turkey (nodes 33:259–719) */

.analysis-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 14, 26, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.analysis-modal[hidden] {
  display: none !important;
}

.analysis-modal:not([hidden]) {
  display: flex;
}

.analysis-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.analysis-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 675px;
  max-height: min(92vh, 900px);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, system-ui, sans-serif;
  color: #121212;
}

.analysis-form__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 10px 16px;
  background: linear-gradient(90deg, #000b7d 0%, #0015fa 100%);
}

.analysis-form__banner-text {
  flex: 1;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}

@media (min-width: 480px) {
  .analysis-form__banner-text {
    font-size: 14px;
    line-height: 20px;
  }
}

.analysis-form__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 60px;
  background: #0000bf;
  cursor: pointer;
}

.analysis-form__close img {
  width: 12px;
  height: 12px;
}

.analysis-form__step {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.analysis-form__step.is-active {
  display: flex;
}

.analysis-form__head {
  flex-shrink: 0;
  padding: 16px 32px 0;
}

.analysis-form__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.analysis-form__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.analysis-form__step-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #121212;
}

.analysis-form__step-icon--lg {
  width: 24px;
  height: 24px;
}

.analysis-form__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #121212;
}

.analysis-form__step-num {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #0000bf;
}

.analysis-form__subtitle {
  margin-top: 6px;
  font-size: 14px;
  line-height: 20px;
  color: #6e6e6e;
}

.analysis-form__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 32px 24px;
}

.analysis-form__field {
  margin-bottom: 12px;
}

.analysis-form__field:last-child {
  margin-bottom: 0;
}

.analysis-form__label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #121212;
}

.analysis-form__options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.analysis-form__options--stack {
  flex-direction: column;
  flex-wrap: nowrap;
}

/* Schedule — desktop combined step */
.analysis-form__body--schedule .analysis-form__field + .analysis-form__field {
  margin-top: 24px;
}

.analysis-form__options--travel-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.analysis-form__options--travel-months .analysis-form__option--month {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  text-align: center;
}

/* Schedule — mobile split steps (Figma 33-1428 / 33-1466) */
.analysis-form__options--travel-months-mobile {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 12px;
}

.analysis-form__options--travel-months-mobile .analysis-form__option--month {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  text-align: center;
}

@media (min-width: 640px) {
  .analysis-form__step--schedule-mobile {
    display: none !important;
  }
}

@media (max-width: 639px) {
  .analysis-form__step--schedule-desktop {
    display: none !important;
  }

  .analysis-form__step--schedule-mobile .analysis-form__option--full {
    min-height: 48px;
    justify-content: flex-start;
    text-align: left;
    line-height: 24px;
  }
}

.analysis-form__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px;
  border: none;
  border-radius: 16px;
  background: #f5f9fd;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: #6c6c6c;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.analysis-form__option--half {
  flex: 1 1 calc(50% - 6px);
  min-width: 0;
}

@media (max-width: 639px) {
  .analysis-form__option--half,
  .analysis-form__option--clinic {
    flex: 1 1 100%;
    width: 100%;
  }
}

.analysis-form__option--clinic {
  flex: 1 1 calc(50% - 6px);
  justify-content: flex-start;
  text-align: left;
}

.analysis-form__option--tall {
  align-items: flex-start;
  min-height: 72px;
  text-align: left;
  justify-content: flex-start;
}

.analysis-form__option--full {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.analysis-form__option.is-selected {
  background: #0015fa;
  color: #fff;
}

.analysis-form__option.is-disabled {
  color: #bbb;
  cursor: default;
}

.analysis-form__option.is-disabled.is-selected {
  background: #f5f9fd;
  color: #bbb;
}

.analysis-form__flag {
  font-size: 22px;
  line-height: 1;
}

.analysis-form__chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px 10px 12px;
  border: none;
  border-radius: 16px;
  background: #f5f9fd;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: #25272c;
  text-align: left;
  cursor: pointer;
}

.analysis-form__chip.is-selected .analysis-form__chip-check {
  background: #1a4adb;
}

.analysis-form__chip:not(.is-selected) .analysis-form__chip-check {
  background: #909090;
}

.analysis-form__chip-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.analysis-form__chip-check img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.analysis-form__input {
  display: block;
  width: 100%;
  padding: 15px 17px;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  background: rgba(235, 235, 235, 0.1);
  font-family: inherit;
  font-size: 16px;
  line-height: normal;
  color: #121212;
}

.analysis-form__input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.analysis-form__phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 17px;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  background: rgba(235, 235, 235, 0.1);
}

.analysis-form__phone-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 16px;
  color: #383a42;
}

.analysis-form__phone-prefix .analysis-form__flag {
  font-size: 20px;
}

.analysis-form__phone-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: #383a42;
}

.analysis-form__phone-input::placeholder {
  color: #383a42;
}

.analysis-form__select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 17px;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  background: rgba(235, 235, 235, 0.1);
  font-family: inherit;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.analysis-form__select.is-filled {
  color: #121212;
}

.analysis-form__select img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.analysis-form__note {
  margin-top: 12px;
  padding: 9px 17px;
  border: 1px solid rgba(224, 187, 0, 0.3);
  border-radius: 14px;
  background: rgba(224, 187, 0, 0.1);
  font-size: 14px;
  line-height: 22.4px;
  color: #b87b00;
}

.analysis-form__note strong {
  font-weight: 700;
}

.analysis-form__note--padded {
  padding: 17px;
}

.analysis-form__privacy {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(145, 145, 145, 0.2);
  border-radius: 14px;
  background: rgba(145, 145, 145, 0.1);
  font-size: 12px;
  font-style: italic;
  line-height: 16px;
  text-align: center;
  color: #666;
}

.analysis-form__submit-feedback {
  border-color: rgba(230, 57, 70, 0.35);
  background: rgba(230, 57, 70, 0.1);
  color: #b32631;
  font-style: normal;
  font-weight: 600;
}

.analysis-form__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 32px;
  background: linear-gradient(90deg, rgba(190, 218, 255, 0.4), rgba(190, 218, 255, 0.4)), #fff;
  border-radius: 0 0 12px 12px;
}

.analysis-form__footer:has([data-analysis-back][hidden]) {
  justify-content: flex-end;
}

.analysis-form__btn-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 24px;
  border: 1px solid #0000bf;
  border-radius: 60px;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #0000bf;
  cursor: pointer;
}

.analysis-form__btn-back img {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.analysis-form__btn-next {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 24px;
  border: none;
  border-radius: 60px;
  background: #0000bf;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.analysis-form__btn-next:disabled,
.analysis-form__btn-next--submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.analysis-form__native-select {
  width: 100%;
  padding: 15px 40px 15px 17px;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  background: rgba(235, 235, 235, 0.1)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%230000bf' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  font-family: inherit;
  font-size: 16px;
  color: #121212;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.analysis-form__country-code {
  flex-shrink: 0;
  max-width: 110px;
  padding: 0 8px 0 4px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: #383a42;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.analysis-form__btn-next img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.analysis-form__btn-next--submit img {
  filter: brightness(0) invert(1);
}

/* Success screen */
.analysis-form__step--success .analysis-form__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
}

.analysis-form__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #00bf13;
}

.analysis-form__success-icon img {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
}

.analysis-form__success-title {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #121212;
}

.analysis-form__success-text {
  margin-top: 8px;
  max-width: 448px;
  font-size: 16px;
  line-height: 26px;
  color: #6e6e6e;
}

.analysis-form__success-actions {
  width: 100%;
  max-width: 327px;
  margin-top: 16px;
  padding: 16px 0;
}

.analysis-form__btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  border: none;
  border-radius: 60px;
  background: #0000bf;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.analysis-form__btn-text-close {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #0000bf;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 639px) {
  .analysis-modal {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }

  .analysis-form {
    width: 100%;
    max-width: 100%;
    max-height: min(90vh, 100%);
    border-radius: 12px;
  }

  .analysis-form__head,
  .analysis-form__body,
  .analysis-form__footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .analysis-form__banner-text {
    font-size: 10px;
    text-align: left;
  }
}
