/*--------------------------------------------------------------
# Quote Form — MAPFRE (compact landing)
--------------------------------------------------------------*/
#hero {
  overflow: visible;
}

.quote-form-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px;
  overflow: visible;
}

.quote-form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 20px 24px 22px;
  border-top: 4px solid var(--brand-red);
}

.quote-form-card__header {
  text-align: center;
  margin-bottom: 12px;
}

.quote-form-card__title {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.quote-form-card__subtitle {
  font-size: 0.82rem;
  color: #6c6c6c;
  margin: 0;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.trust-badges--hero {
  margin-top: 20px;
  justify-content: flex-start;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #47536e;
  background: #f2f5fa;
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

.trust-badge i {
  color: var(--brand-red);
  font-size: 0.75rem;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-section-title {
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-red);
  margin: 10px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.quote-form .row {
  margin-bottom: 0;
}

.quote-form .row + .row {
  margin-top: 8px;
}

.quote-form .row > [class*="col-"] {
  margin-bottom: 8px;
}

.quote-form .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #47536e;
  margin-bottom: 3px;
}

.field-control {
  position: relative;
}

.quote-form .field-control .form-control {
  width: 100%;
  font-size: 0.85rem;
  color: #333 !important;
  -webkit-text-fill-color: #333;
  background-color: #fff;
  border: 1px solid #dde1e8;
  border-radius: 8px;
  padding: 8px 2.25rem 8px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image: none !important;
}

.quote-form .form-control::placeholder {
  color: #b3b3b3 !important;
  -webkit-text-fill-color: #b3b3b3;
  opacity: 1;
}

.quote-form .field-control .form-control:focus {
  border-color: var(--brand-red) !important;
  box-shadow: 0 0 0 3px rgba(var(--brand-red-rgb), 0.12);
  color: #333 !important;
  -webkit-text-fill-color: #333;
  outline: none;
}

.quote-form .field-control.has-invalid-value .form-control {
  border-color: #dc3545 !important;
}

.quote-form .field-control.has-valid-value .form-control {
  border-color: #198754 !important;
}

.field-control.has-valid-value::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

@keyframes onAutoFillStart {
  from { opacity: 1; }
  to { opacity: 1; }
}

.quote-form .field-control .form-control:-webkit-autofill,
.quote-form .field-control .form-control:-webkit-autofill:hover,
.quote-form .field-control .form-control:-webkit-autofill:focus,
.quote-form .field-control .form-control:-webkit-autofill:active {
  -webkit-text-fill-color: #333 !important;
  color: #333 !important;
  caret-color: #333;
  background-color: #fff !important;
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px #fff inset !important;
  animation-name: onAutoFillStart;
  animation-duration: 0.001s;
}

.quote-form .field-control.has-valid-value .form-control:-webkit-autofill,
.quote-form .field-control.has-valid-value .form-control:-webkit-autofill:hover,
.quote-form .field-control.has-valid-value .form-control:-webkit-autofill:focus,
.quote-form .field-control.has-valid-value .form-control:-webkit-autofill:active {
  border-color: #198754 !important;
}

.quote-form .field-control.has-invalid-value .form-control:-webkit-autofill,
.quote-form .field-control.has-invalid-value .form-control:-webkit-autofill:hover,
.quote-form .field-control.has-invalid-value .form-control:-webkit-autofill:focus,
.quote-form .field-control.has-invalid-value .form-control:-webkit-autofill:active {
  border-color: #dc3545 !important;
}

.quote-form .invalid-feedback {
  font-size: 0.72rem;
  margin-top: 2px;
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.legal-check .form-check-input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  border-color: #ccc;
}

.legal-check .form-check-input:checked {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
}

.legal-check .form-check-label {
  font-size: 0.75rem;
  color: #6c6c6c;
  line-height: 1.4;
}

.legal-check .form-check-label a {
  color: #0080c8;
  text-decoration: underline;
}

.legal-check .form-check-label a:hover {
  color: var(--brand-red);
}

.legal-check .form-check-input.is-invalid ~ .invalid-feedback {
  display: block;
  width: 100%;
  padding-left: 24px;
}

.btn-submit-quote {
  width: 100%;
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 24px;
  font-family: "Raleway", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 12px;
  transition: background 0.3s, transform 0.15s;
}

.btn-submit-quote:hover {
  background: var(--brand-red-hover);
  color: #fff;
}

.btn-submit-quote:active {
  transform: scale(0.98);
}

.btn-submit-quote:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Verification step */
.verification-step {
  text-align: center;
}

.verification-step__icon {
  width: 56px;
  height: 56px;
  background: #f2f5fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.verification-step__icon i {
  font-size: 1.6rem;
  color: var(--brand-red);
}

.verification-step h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.verification-step p {
  font-size: 0.85rem;
  color: #6c6c6c;
  margin-bottom: 20px;
}

.verification-step .phone-display {
  font-weight: 700;
  color: #333;
}

.code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 6px;
}

.code-inputs .code-digit {
  width: 42px;
  height: 50px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  border: 2px solid #dde1e8;
  border-radius: 10px;
  color: #333;
  transition: border-color 0.2s;
}

.code-inputs .code-digit:focus {
  border-color: var(--brand-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--brand-red-rgb), 0.12);
}

.code-inputs .code-digit.is-invalid {
  border-color: #dc3545;
}

.btn-verify-code {
  width: 100%;
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 24px;
  font-family: "Raleway", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 12px;
  transition: background 0.3s;
}

.btn-verify-code:hover {
  background: var(--brand-red-hover);
  color: #fff;
}

.btn-resend-code {
  background: none;
  border: none;
  color: #0080c8;
  font-size: 0.8rem;
  margin-top: 10px;
  cursor: pointer;
  text-decoration: underline;
}

.btn-resend-code:hover {
  color: var(--brand-red);
}

#hero .hero-img.contact {
  overflow: visible;
}

@media (max-width: 991px) {
  .trust-badges--hero {
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 8px;
  }
}

@media (max-width: 575px) {
  .quote-form-card {
    padding: 16px 16px 18px;
    border-radius: 12px;
  }

  .quote-form-card__title {
    font-size: 1.1rem;
  }

  .trust-badges--hero {
    gap: 4px;
  }

  .trust-badge {
    font-size: 0.65rem;
    padding: 4px 8px;
  }

  .code-inputs .code-digit {
    width: 38px;
    height: 46px;
    font-size: 1.15rem;
  }
}

/*--------------------------------------------------------------
# Thank You Page
--------------------------------------------------------------*/
.thank-you-section {
  min-height: 80vh;
  padding-bottom: 40px;
}

.thank-you-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--brand-red);
  padding: 40px 36px 36px;
  text-align: center;
  margin: 0 auto;
  max-width: 560px;
}

.thank-you-card__icon {
  width: 120px;
  height: auto;
  margin-bottom: 24px;
}

.thank-you-card__title {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px;
}

.thank-you-card__lead {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px;
}

.thank-you-card__text {
  font-size: 0.95rem;
  color: #6c6c6c;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.thank-you-card__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #47536e;
  background: #f2f5fa;
  padding: 10px 18px;
  border-radius: 50px;
  margin: 0 0 28px;
}

.thank-you-card__note i {
  color: var(--brand-red);
  font-size: 1rem;
}

.thank-you-card__btn {
  display: inline-block;
  width: auto;
  min-width: 220px;
  text-decoration: none;
  text-align: center;
}

.thank-you-legal {
  text-align: center;
  margin-top: 32px;
  padding: 0 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.thank-you-legal__copyright {
  font-size: 0.75rem;
  color: #999;
  margin: 0 0 6px;
  line-height: 1.5;
}

.thank-you-legal__links {
  font-size: 0.75rem;
  color: #999;
  margin: 0;
  line-height: 1.5;
}

.thank-you-legal__links a {
  color: #0080c8;
  text-decoration: none;
}

.thank-you-legal__links a:hover {
  color: var(--brand-red);
  text-decoration: underline;
}

.thank-you-legal__sep {
  margin: 0 6px;
  color: #ccc;
}

@media (max-width: 575px) {
  .thank-you-card {
    padding: 32px 22px 28px;
    border-radius: 12px;
  }

  .thank-you-card__icon {
    width: 100px;
    margin-bottom: 20px;
  }

  .thank-you-card__title {
    font-size: 1.6rem;
  }

  .thank-you-card__lead {
    font-size: 1rem;
  }

  .thank-you-card__text {
    font-size: 0.9rem;
  }

  .thank-you-card__note {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .thank-you-card__btn {
    width: 100%;
    min-width: unset;
  }

  .thank-you-legal {
    margin-top: 24px;
    padding: 0 8px;
  }

  .thank-you-legal__copyright,
  .thank-you-legal__links {
    font-size: 0.7rem;
  }

  .thank-you-legal__sep {
    margin: 0 4px;
  }
}
