/* Formulaire de contact pleine largeur et cohérent avec les cartes — 20260903. */
.index-page #contact .form-container-overlap > .row {
  --bs-gutter-x: 1.5rem;
}

.index-page #contact .contact-form-column {
  width: 100%;
  max-width: 100%;
}

.index-page #contact .contact-form-wrapper {
  position: relative;
  width: 100%;
  padding: clamp(30px, 4vw, 48px);
  overflow: hidden;
  border-radius: 20px;
}

.index-page #contact .contact-form-wrapper::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #1199ee 0%, rgba(17, 153, 238, 0.42) 58%, transparent 100%);
}

.index-page #contact .contact-form-wrapper h3 {
  margin-bottom: 28px !important;
  color: #f4f8fc;
  text-align: left !important;
}

.index-page #contact .contact-form .row {
  --bs-gutter-x: 1.15rem;
  --bs-gutter-y: 1.15rem;
}

.index-page #contact .input-with-icon .form-control {
  min-height: 56px;
  padding: 15px 18px 15px 50px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(8, 31, 58, 0.94), rgba(3, 15, 34, 0.98)) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.index-page #contact .input-with-icon textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

.index-page #contact .input-with-icon i {
  top: 17px;
  left: 18px;
  color: #1199ee;
  transition: color 0.25s ease;
}

.index-page #contact .input-with-icon:focus-within i {
  color: #f8b12e;
}

.index-page #contact .input-with-icon .form-control:focus {
  border-color: #1199ee !important;
  background: linear-gradient(145deg, rgba(9, 38, 70, 0.98), rgba(4, 19, 42, 1)) !important;
  box-shadow: 0 0 0 4px rgba(17, 153, 238, 0.12) !important;
}

.index-page #contact .form-check {
  margin-top: 3px;
  padding: 14px 16px 14px 40px;
  border: 1px solid rgba(54, 142, 205, 0.16);
  border-radius: 12px;
  background: rgba(4, 18, 40, 0.52);
}

.index-page #contact .form-check-input {
  margin-left: -24px;
  border-color: rgba(17, 153, 238, 0.55);
  background-color: rgba(2, 8, 20, 0.8);
}

.index-page #contact .form-check-input:checked {
  border-color: #1199ee;
  background-color: #1199ee;
}

.index-page #contact .btn-submit {
  min-height: 52px;
  margin-top: 8px;
  padding-inline: clamp(26px, 4vw, 44px);
}

@media (max-width: 767.98px) {
  .index-page #contact .contact-form-wrapper {
    padding: 24px 18px 20px !important;
    border-radius: 18px;
  }

  .index-page #contact .contact-form-wrapper h3 {
    margin-bottom: 20px !important;
  }

  .index-page #contact .contact-form .row {
    --bs-gutter-y: 0.8rem;
  }

  .index-page #contact .input-with-icon .form-control {
    min-height: 52px;
    padding: 13px 14px 13px 45px;
  }

  .index-page #contact .input-with-icon i {
    top: 15px;
    left: 16px;
  }

  .index-page #contact .form-check {
    padding: 13px 13px 13px 37px;
  }
}