/* nv-inquiry-tweaks.css — v4
   - Narrow GET A QUOTE form
   - FEATURES section text pure black
   - Keeps earlier tweaks (anchor, header, borders, grey card)
*/

/* --- existing tweaks kept --- */
#nv-inquiry { scroll-margin-top: 110px; }
body.single-cars .site-header { background:#fff !important; box-shadow:0 2px 10px rgba(0,0,0,.06); backdrop-filter:none !important; }
:root { --nv-accent-red: var(--cd-primary, var(--cd-accent, #c3002f)); }
#nv-inquiry.nv-card { border-top:3px solid var(--nv-accent-red); background:#f7f8fa; }
#nv-cif.nv-card { border-top:3px solid var(--nv-accent-red); }

/* Inputs: strong borders (from v3) */
#nv-inquiry .wpcf7 form input[type="text"],
#nv-inquiry .wpcf7 form input[type="email"],
#nv-inquiry .wpcf7 form input[type="tel"],
#nv-inquiry .wpcf7 form input[type="number"],
#nv-inquiry .wpcf7 form input[type="url"],
#nv-inquiry .wpcf7 form input[type="search"],
#nv-inquiry .wpcf7 form select,
#nv-inquiry .wpcf7 form textarea,
#nv-inquiry .wpcf7 .wpcf7-form-control {
  border:2px solid #000 !important; background:#fff !important; color:#111 !important; border-radius:6px !important; min-height:42px; box-shadow:none !important;
}
#nv-inquiry .wpcf7 form input:focus,
#nv-inquiry .wpcf7 form select:focus,
#nv-inquiry .wpcf7 form textarea:focus { outline:0 !important; border-color:#000 !important; box-shadow:0 0 0 2px rgba(0,0,0,.06) !important; }
#nv-inquiry .wpcf7 form ::placeholder { color:#555; opacity:1; }

/* --- NEW: Narrow the visible form --- */
#nv-inquiry .nv-body .nv-quote-form,
#nv-inquiry .nv-body .wpcf7 form {
  max-width: 640px;   /* adjust to taste (e.g., 600) */
  margin: 0 auto;
}

/* Ensure inputs stretch to column width */
#nv-inquiry .nv-quote-form .col.half input,
#nv-inquiry .nv-quote-form .col.half select,
#nv-inquiry .nv-quote-form .col.half textarea,
#nv-inquiry .nv-quote-form .col.full  input,
#nv-inquiry .nv-quote-form .col.full  select,
#nv-inquiry .nv-quote-form .col.full  textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Optional: tighten vertical gaps a touch */
#nv-inquiry .nv-quote-form .row { margin-bottom: 12px; }

/* --- NEW: FEATURES section text pure black --- */
/* Try common containers; restrict to text elements so icons aren’t affected */
body.single-cars .nv-features,
body.single-cars .nv-features p,
body.single-cars .nv-features li,
body.single-cars .nv-features td,
body.single-cars .nv-features th,
body.single-cars .nv-features span,
body.single-cars .nv-features a,
body.single-cars .detail-features,
body.single-cars .detail-features p,
body.single-cars .detail-features li,
body.single-cars .detail-features td,
body.single-cars .detail-features th,
body.single-cars .detail-features span,
body.single-cars .detail-features a,
body.single-cars section[id*="feature"] p,
body.single-cars section[id*="feature"] li,
body.single-cars section[id*="feature"] td,
body.single-cars section[id*="feature"] th,
body.single-cars section[id*="feature"] span,
body.single-cars section[id*="feature"] a,
body.single-cars section[class*="feature"] p,
body.single-cars section[class*="feature"] li,
body.single-cars section[class*="feature"] td,
body.single-cars section[class*="feature"] th,
body.single-cars section[class*="feature"] span,
body.single-cars section[class*="feature"] a {
  color:#000 !important;
}
/* Scope: Step 2 (GET A QUOTE) card only — make the card a bit narrower */
#nv-inquiry .nv-pad {
  max-width: 720px !important;  /* adjust to taste: 680–760 */
  margin: 0 auto !important;
}

/* Scope: the CF7 form inside Step 2 — make the actual fields even narrower */
#nv-inquiry .wpcf7 form {
  max-width: 560px !important;  /* adjust to 520/600 if you like */
  margin: 0 auto !important;
}
/* Make the STEP 2 card itself narrower and centered */
body.single-cars #nv-inquiry.nv-card {
  width: min(720px, 100% - 48px) !important; /* tweak 680–760 if you like */
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Center the inner content and keep it comfy */
body.single-cars #nv-inquiry .nv-pad {
  padding-left: 20px;
  padding-right: 20px;
}

/* Also narrow the actual CF7 form inside for a slimmer field column */
body.single-cars #nv-inquiry .wpcf7 form {
  max-width: 560px !important;   /* tweak: 520/540/600 */
  margin: 0 auto !important;
}
/* Two equal columns per row (desktop), full-width on mobile */
body.single-cars #nv-inquiry .nv-quote-form .row{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:12px}
body.single-cars #nv-inquiry .nv-quote-form .row .col.half{flex:1 1 calc(50% - 8px)}
body.single-cars #nv-inquiry .nv-quote-form .row .col.full{flex:1 1 100%}
@media (max-width: 680px){
  body.single-cars #nv-inquiry .nv-quote-form .row{display:block}
  body.single-cars #nv-inquiry .nv-quote-form .row .col.half,
  body.single-cars #nv-inquiry .nv-quote-form .row .col.full{min-width:100%}
}

/* STEP 2 title: a bit bigger + centered */
body.single-cars #nv-inquiry .area-headline{
  text-align:center;
  font-size:18px;       /* bump if you want: 19–20px */
  letter-spacing:.02em;
  margin-bottom:14px;
}

/* Submit button bigger */
body.single-cars #nv-inquiry input[type="submit"],
body.single-cars #nv-inquiry .wpcf7-submit{
  font-size:15px;       /* bump to 16 if you like */
  padding:14px 22px;
  line-height:1.2;
  border-radius:10px;
  min-width:240px;
}
/* 2-up layout (equal columns) */
body.single-cars #nv-inquiry .nv-quote-form .row{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:12px}
body.single-cars #nv-inquiry .nv-quote-form .row .col.half{flex:1 1 calc(50% - 8px)}
body.single-cars #nv-inquiry .nv-quote-form .row .col.full{flex:0 0 100%}

/* Title: bigger + centered */
body.single-cars #nv-inquiry .area-headline{
  text-align:center;font-size:20px;font-weight:800;letter-spacing:.02em;margin-bottom:14px
}

/* Bigger submit button */
body.single-cars #nv-inquiry .wpcf7 .wpcf7-submit,
body.single-cars #nv-inquiry input[type="submit"]{
  font-size:16px;padding:16px 24px;min-width:280px;border-radius:10px;line-height:1.2
}
/* ===== NV Inquiry: Mobile overflow fix ===== */

/* 1) Nuke any fixed widths (even inline styles) */
.nv-inquiry form [style*="width"],
.nv-inquiry .wpcf7-form,
.nv-inquiry .wpcf7-form p,
.nv-inquiry .wpcf7-form-control-wrap,
.nv-inquiry .wpcf7-form-control,
.nv-inquiry input[type="text"],
.nv-inquiry input[type="email"],
.nv-inquiry input[type="tel"],
.nv-inquiry input[type="number"],
.nv-inquiry select,
.nv-inquiry textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* 2) Force single column earlier to avoid squeeze */
@media (max-width: 768px) {
  .nv-inquiry form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px 16px !important;
  }
}

/* 3) If your form uses .row/.col with negative margins, neutralize on mobile */
@media (max-width: 768px) {
  .nv-inquiry .row { margin-left: 0 !important; margin-right: 0 !important; }
  .nv-inquiry [class*="col-"] { padding-left: 0 !important; padding-right: 0 !important; }
}

/* 4) Buttons & messages */
.nv-inquiry .wpcf7-submit { width: 100% !important; }
.nv-inquiry .wpcf7-response-output { white-space: normal; overflow-wrap: anywhere; }

/* 5) Belt-and-suspenders: prevent any tiny horizontal scroll */
.nv-inquiry { overflow-x: hidden; }
/* ===== NV Inquiry: Ultra mobile fix ===== */
.nv-inquiry, .nv-inquiry * { box-sizing: border-box; }
.nv-inquiry { max-width: 100vw; overflow-x: hidden; }

/* Kill any fixed/inline widths */
.nv-inquiry form [style*="width"],
.nv-inquiry .wpcf7-form,
.nv-inquiry .wpcf7-form p,
.nv-inquiry .wpcf7-form-control-wrap,
.nv-inquiry .wpcf7-form-control,
.nv-inquiry input, .nv-inquiry select, .nv-inquiry textarea {
  width: 100% !important;
  max-width: 100% !important;
}

/* Force single column on tablets/phones */
@media (max-width: 992px) {
  .nv-inquiry form { display: grid !important; grid-template-columns: 1fr !important; gap: 12px 16px !important; }
  /* neutralize bootstrap/grid columns that cause overflow */
  .nv-inquiry .row { margin-left: 0 !important; margin-right: 0 !important; }
  .nv-inquiry [class*="col-"] { padding-left: 0 !important; padding-right: 0 !important; width: 100% !important; max-width: 100% !important; float: none !important; flex: 0 0 100% !important; }
}

/* Buttons/messages */
.nv-inquiry .wpcf7-submit { width: 100% !important; }
.nv-inquiry .wpcf7-response-output { white-space: normal; overflow-wrap: anywhere; }
/* CF7 mobile-safe, CSS-only */
body.single-cars .wpcf7, body.single-cars .wpcf7 * { box-sizing: border-box; min-width: 0; }
body.single-cars .wpcf7 input,
body.single-cars .wpcf7 select,
body.single-cars .wpcf7 textarea { width: 100%; max-width: 100%; }
@media (max-width: 992px) {
  body.single-cars .wpcf7 form { display: grid; grid-template-columns: 1fr; gap: 12px 16px; }
  body.single-cars .wpcf7 .row { margin-left: 0; margin-right: 0; }
  body.single-cars .wpcf7 [class*="col-"] { padding-left: 0; padding-right: 0; width: 100%; max-width: 100%; float: none; flex: 0 0 100%; }
}

