/* =================================================================
   GKS LOGISTICS — V3 QUOTE MODAL POLISH
   Loads after css/quote-modal.css. Scoped under body.v3.
   Re-skins the legacy `.quote-modal-*` markup so the "Demander un
   devis" modal matches the V3 premium look used everywhere else.
   ================================================================= */

body.v3 .quote-modal-overlay {
  background: rgba(6, 42, 69, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
}
body.v3 .quote-modal-content {
  background: var(--gks-white);
  border: 1px solid rgba(10, 61, 98, 0.06);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.45);
  /* Flex column: header stays sticky, body scrolls */
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}
/* Header — sticky, never scrolls */
body.v3 .quote-modal-header {
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, #062A45 0%, #0A3D62 60%, #1B5C8A 100%);
  color: var(--gks-white);
  padding: 1.5rem 1.75rem;
  border-bottom: none;
  isolation: isolate;
  overflow: hidden;
}
body.v3 .quote-modal-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 90% 0%, rgba(230, 57, 70, 0.30), transparent 60%);
  z-index: -1;
}
body.v3 .quote-modal-header h2 {
  font-family: var(--font-display);
  color: var(--gks-white);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
body.v3 .quote-modal-header h2::before {
  content: "\f0e7"; /* fa-bolt */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--gks-red-300);
  font-size: 1.05rem;
}
body.v3 .quote-modal-close {
  background: rgba(255, 255, 255, 0.18);
  color: var(--gks-white);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-premium);
  cursor: pointer;
}
body.v3 .quote-modal-close:hover { background: rgba(255, 255, 255, 0.32); }

/* Body */
/* Body — scrollable area below the sticky header */
body.v3 .quote-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.75rem 1.75rem 1.5rem;
}
body.v3 .quote-modal-body .quote-form-subtitle {
  color: var(--gks-grey-700);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--gks-blue-50);
  border-left: 3px solid var(--gks-blue);
  border-radius: var(--radius-md);
}

/* Form fields */
body.v3 .quote-modal-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  body.v3 .quote-modal-body .form-row { grid-template-columns: 1fr; }
}
body.v3 .quote-modal-body .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
body.v3 .quote-modal-body label {
  position: static;
  pointer-events: auto;
  background: transparent;
  padding: 0;
  color: var(--gks-grey-900);
  font-size: 0.85rem;
  font-weight: 600;
}
body.v3 .quote-modal-body input[type="text"],
body.v3 .quote-modal-body input[type="email"],
body.v3 .quote-modal-body input[type="tel"],
body.v3 .quote-modal-body input[type="number"],
body.v3 .quote-modal-body select,
body.v3 .quote-modal-body textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gks-grey-200);
  border-radius: var(--radius-md);
  background: var(--gks-white);
  color: var(--gks-grey-900);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
body.v3 .quote-modal-body input:focus,
body.v3 .quote-modal-body select:focus,
body.v3 .quote-modal-body textarea:focus {
  outline: none;
  border-color: var(--gks-blue);
  box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.12);
}

body.v3 .quote-modal-body .checkbox-group {
  display: block;
  padding: 0.9rem 1rem;
  background: var(--gks-grey-50);
  border: 1px solid var(--gks-grey-200);
  border-radius: var(--radius-md);
}

body.v3 .quote-modal-body .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  cursor: pointer;
  line-height: 1.35;
}

body.v3 .quote-modal-body .checkbox-label input[type="checkbox"] {
  appearance: auto;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
  accent-color: var(--gks-red);
}

body.v3 .quote-modal-body .required-fields-indicator {
  color: var(--gks-grey-500);
  font-size: 0.85rem;
  margin: 0.25rem 0 0.75rem;
  font-style: italic;
}

/* Footer buttons */
body.v3 .quote-modal-body .form-buttons {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gks-grey-200);
  margin-top: 0.5rem;
}
body.v3 .quote-modal-body .btn-cancel,
body.v3 .quote-modal-body .btn-submit {
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-premium);
}
body.v3 .quote-modal-body .btn-cancel {
  background: var(--gks-grey-100, #F2F4F7);
  color: var(--gks-grey-900);
}
body.v3 .quote-modal-body .btn-cancel:hover { background: var(--gks-grey-200); }
body.v3 .quote-modal-body .btn-submit {
  background: var(--gks-red);
  color: var(--gks-white);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
body.v3 .quote-modal-body .btn-submit::after { content: "→"; }
body.v3 .quote-modal-body .btn-submit:hover { background: var(--gks-red-700); transform: translateY(-1px); }
