/* Styles scopés à .sav-page — basé sur la maquette "iTOS Mesure - Formulaire SAV.dc.html" */
.sav-page { font-family: 'Wix Madefor Display', sans-serif; color: #404040; }
.sav-page * { box-sizing: border-box; }
.sav-page h1, .sav-page h2, .sav-page h3 { text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }

/* Hero */
.sav-page .sav-hero { position: relative; padding: 90px 24px; background: #14181a; overflow: hidden; }
.sav-page .sav-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sav-page .sav-hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,24,26,0.92) 0%, rgba(20,24,26,0.75) 55%, rgba(20,24,26,0.45) 100%); pointer-events: none; }
.sav-page .sav-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; }
.sav-page .sav-hero-content { max-width: 700px; }
.sav-page .sav-badge { display: inline-block; padding: 7px 16px; border: 1.5px solid #DD1520; border-radius: 3px; color: #ffffff; background: rgba(221,21,32,0.15); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 26px; white-space: nowrap; text-transform: uppercase; }
.sav-page .sav-hero-content h1 { font-weight: 800; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.18; color: #ffffff; margin: 0 0 22px; }
.sav-page .sav-hero-content p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.85); margin: 0; }

/* Section formulaire */
.sav-page .sav-form-section { padding: 70px 24px; background: #ECECEC; }
.sav-page .sav-form-card { max-width: 860px; margin: 0 auto; background: #ffffff; border-radius: 3px; padding: 40px; }

/* ==========================================================================
   Gravity Forms — habillage aux couleurs / espacements de la maquette
   (classes de la version "moderne" GF 2.5+ ; adapter si markup "legacy")
   ========================================================================== */

.sav-page .gform_wrapper.gravity-theme { font-family: 'Wix Madefor Display', sans-serif; color: #404040; }

.sav-page .gform_fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sav-page .gfield {
  margin: 0;
}

.sav-page .gfield--width-full,
.sav-page .gfield--type-section,
.sav-page .gfield--type-textarea,
.sav-page .gfield--type-fileupload,
.sav-page .gfield--type-consent,
.sav-page .gfield--type-checkbox,
.sav-page .gfield--type-radio {
  grid-column: 1 / -1;
}

.sav-page .gfield_label,
.sav-page .gform_wrapper.gravity-theme .gfield_label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: #404040;
}

.sav-page .gfield input[type="text"],
.sav-page .gfield input[type="email"],
.sav-page .gfield input[type="tel"],
.sav-page .gfield input[type="number"],
.sav-page .gfield input[type="url"],
.sav-page .gfield select,
.sav-page .gfield textarea,
.sav-page .ginput_container input[type="text"],
.sav-page .ginput_container input[type="email"],
.sav-page .ginput_container input[type="tel"],
.sav-page .ginput_container select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d4d4d4;
  border-radius: 3px;
  font-size: 14px;
  font-family: 'Wix Madefor Display', sans-serif;
  color: #404040;
  background: #ECECEC;
  margin: 0;
}

.sav-page .gfield textarea {
  min-height: 90px;
  resize: vertical;
}

.sav-page .gfield input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d4d4d4;
  border-radius: 3px;
  font-size: 14px;
  background: #ECECEC;
}

/* Titres de section (ex: "1. Informations entreprise") */
.sav-page .gsection {
  border: none;
  margin: 28px 0 0;
  padding: 0;
}
.sav-page .gsection_title {
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 18px;
  color: #DD1520;
  text-transform: none;
  letter-spacing: normal;
}
.sav-page .gsection_description {
  font-size: 13px;
  color: #6b6b6b;
  margin: 0 0 12px;
}

/* Cases à cocher / radios en tuiles grises (checklist "détail de la demande") */
.sav-page .gfield_checkbox,
.sav-page .gfield_radio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sav-page .gfield_checkbox li,
.sav-page .gfield_radio li {
  list-style: none;
}
.sav-page .gfield_checkbox label,
.sav-page .gfield_radio label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  background: #ECECEC;
  border-radius: 3px;
  padding: 12px 14px;
  cursor: pointer;
  margin: 0;
}
.sav-page .gfield_checkbox input,
.sav-page .gfield_radio input {
  width: 16px;
  height: 16px;
  accent-color: #DD1520;
  flex-shrink: 0;
}

/* Case de consentement finale */
.sav-page .gfield--type-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
}
.sav-page .gfield--type-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #DD1520;
  flex-shrink: 0;
}

/* Description sous un champ (ex: formats conseillés) */
.sav-page .gfield_description {
  font-size: 12px;
  color: #6b6b6b;
  margin-top: 6px;
}

/* Footer / bouton d'envoi, calqué sur le CTA du reste du site */
.sav-page .gform_footer,
.sav-page .gform_page_footer {
  margin-top: 20px;
  padding: 0;
  border: none;
}

.sav-page .gform_button {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  background-color: #DD1520;
  background-image: linear-gradient(to right, #000 0%, #000 100%);
  background-repeat: no-repeat; background-position: left center;
  background-size: 0% 100%;
  transition: background-size 0.35s ease;
  color: #ffffff !important; text-decoration: none; font-weight: 700; font-size: 14.5px;
  font-family: 'Wix Madefor Display', sans-serif;
  letter-spacing: 0.04em; padding: 16px 34px; border-radius: 3px;
  text-transform: uppercase; white-space: nowrap; cursor: pointer; border: none;
  margin: 0;
}
.sav-page .gform_button:hover,
.sav-page .gform_button:focus {
  background-size: 100% 100%; text-decoration: none; color: #ffffff !important;
}
.sav-page .gform_heading {
    display: none;
}

/* Message de confirmation (équivalent submitted / success) */
.sav-page .gform_confirmation_message {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: #1a7f37;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
  .sav-page .sav-hero { padding: 48px 16px; }
  .sav-page .sav-form-section { padding: 44px 16px; }
  .sav-page .sav-form-card { padding: 22px; }
  .sav-page .gform_fields { grid-template-columns: 1fr; }
  .sav-page .gfield_checkbox,
  .sav-page .gfield_radio { grid-template-columns: 1fr; }
}
