.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lead-modal.is-hidden {
  display: none;
}

.lead-modal-open {
  overflow: hidden;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.lead-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #333333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.lead-modal__close:hover {
  color: #000000;
}

.lead-modal__title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #0b2943;
  text-align: center;
}

.lead-modal__subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 22px;
  color: #1a1a1a;
  text-align: center;
  text-decoration: underline;
}

.lead-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-modal__input {
  font-family: var(--font-body);
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #333333;
  border-radius: 20px;
  padding: 14px 16px;
  font-size: 15px;
  color: #1a1a1a;
  outline: none;
  background: #ffffff;
}

.lead-modal__input::placeholder {
  color: #666666;
}

.lead-modal__input:focus {
  border-color: #104f8b;
}

.lead-modal__input:-webkit-autofill,
.lead-modal__input:-webkit-autofill:hover,
.lead-modal__input:-webkit-autofill:focus,
.lead-modal__input:-webkit-autofill:active,
.lead-modal__phone-wrap .iti__tel-input:-webkit-autofill,
.lead-modal__phone-wrap .iti__tel-input:-webkit-autofill:hover,
.lead-modal__phone-wrap .iti__tel-input:-webkit-autofill:focus,
.lead-modal__phone-wrap .iti__tel-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #1a1a1a !important;
  caret-color: #1a1a1a;
  transition: background-color 99999s ease-out 0s;
}

.lead-modal__phone-wrap {
  width: 100%;
}

.lead-modal__phone-wrap .iti {
  width: 100%;
  display: block;
}

.lead-modal__phone-wrap .iti__tel-input {
  width: 100%;
  padding-right: 16px;
}

.lead-modal__phone-wrap .iti__country-container {
  border-right: 1px solid #333333;
}

.lead-modal__phone-wrap .iti__selected-country {
  background-color: #ffffff;
  border-radius: 20px;
}

.lead-modal__phone-wrap .iti__selected-dial-code {
  color: #1a1a1a;
  font-family: var(--font-body);
  font-size: 15px;
}

.lead-modal__phone-wrap .iti__arrow {
  border-top-color: #333333;
}

.lead-modal__submit {
  font-family: var(--font-body);
  width: 100%;
  margin-top: 4px;
  padding: 16px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(90deg, #816020 0%, #bf8e2d 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.lead-modal__submit:hover:not(:disabled) {
  opacity: 0.92;
}

.lead-modal__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lead-modal__feedback {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.lead-modal__feedback.is-hidden {
  display: none;
}

.lead-modal__feedback.is-error {
  color: #c62828;
}

.lead-modal__feedback.is-success {
  color: #2e7d32;
}

.lead-modal__otp-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.lead-modal__otp-row.is-hidden {
  display: none;
}

.lead-modal__otp-input {
  flex: 1;
  min-width: 0;
}

.lead-modal__verify-btn {
  font-family: var(--font-body);
  flex: 0 0 auto;
  min-width: 110px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(90deg, #816020 0%, #bf8e2d 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.lead-modal__verify-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .lead-modal__panel {
    padding: 28px 20px 22px;
  }

  .lead-modal__title {
    font-size: 22px;
  }

  .lead-modal__otp-row {
    flex-direction: column;
  }

  .lead-modal__verify-btn {
    width: 100%;
    min-height: 48px;
  }
}
