/* ============================================================
   Contact Us - front/contact_us_v2.blade.php, when
   CommonHelper::CONTACT_US_V2 is on. The old page and its rules are untouched.

   Details and form side by side, then the map - in a box rather than 600px of
   iframe across the foot of the page. Everything is scoped to .contact-v2.
   ============================================================ */
.contact-v2{
  --brand:#ffcc2a;
  --brand-dark:#e6b415;
  --ink:#1a1a1a;
  --ink-2:#3f4550;
  --muted:#6b7280;
  --faint:#9aa1ad;
  --line:#e6e8ec;
  --line-2:#f0f1f4;
  --green:#0f7b52;
  --red:#b42318;
  --blue:#1c4f9c;
  --r:10px;
  --shadow:0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);

  font-family:"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:#fff;
  /* .nav-top-fixed stands over the top of the page; this is the room it needs */
  padding:150px 0 60px;
}
.contact-v2 *{box-sizing:border-box}
.contact-v2 h1,.contact-v2 h2,.contact-v2 h3{margin:0;font-weight:700;letter-spacing:-.01em}

.contact-v2 .ctc-wrap{max-width:1240px;margin:0 auto;padding:0 20px}
.contact-v2 .ctc-head{text-align:center;margin:0 0 30px}
.contact-v2 .ctc-head h1{font-size:26px;line-height:1.3}
/* separator-yellow, centred under the heading as the old page had it */
.contact-v2 .ctc-head h1::after{content:"";display:block;width:56px;height:3px;border-radius:2px;background:var(--brand);margin:14px auto 0}

/* the form is the main thing on the page: wider and lifted. The details
   beside it carry no card, so they read as supporting text. */
.contact-v2 .ctc-shell{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:28px;align-items:start;margin-bottom:28px}
.contact-v2 .ctc-side{padding:23px 8px 0 0}
.contact-v2 .ctc-h{font-size:17px;margin-bottom:10px}
.contact-v2 .ctc-lead{font-size:13px;color:var(--ink-2);line-height:1.7;margin-bottom:16px}
.contact-v2 .ctc-lead p:last-child{margin-bottom:0}
/* The pasted html carries its own alignment and sizes; the page sets them.
   The editor also leaves empty <div><br></div> lines at the end, which was
   70px of nothing above the details. */
.contact-v2 .ctc-lead div,
.contact-v2 .ctc-lead span{font-size:inherit !important;text-align:left !important}
.contact-v2 .ctc-lead br{display:none}

.contact-v2 .ctc-rows{list-style:none;margin:0;padding:0}
.contact-v2 .ctc-rows li{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line-2)}
.contact-v2 .ctc-rows li:last-child{border-bottom:0}
.contact-v2 .ctc-ico{width:34px;height:34px;border-radius:9px;background:#fff7dd;color:#8a6b00;display:grid;place-items:center;flex:none}
.contact-v2 .ctc-ico svg{width:16px;height:16px;fill:none;stroke:currentColor}
.contact-v2 .ctc-rows i{display:block;font-style:normal;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--faint)}
.contact-v2 .ctc-rows b{display:block;font-size:13.5px;margin-top:3px;word-break:break-word}

.contact-v2 .ctc-social{display:flex;align-items:center;gap:9px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line-2)}
.contact-v2 .ctc-social > span{font-size:12px;font-weight:600;color:var(--muted);margin-right:2px}
.contact-v2 .ctc-social a{width:30px;height:30px;border-radius:50%;background:var(--line-2);color:var(--muted);display:grid;place-items:center}
.contact-v2 .ctc-social a:hover{background:var(--ink);color:#fff}
.contact-v2 .ctc-social svg{width:15px;height:15px}

/* ------------------------------------------------------------
   the form
   ------------------------------------------------------------ */
.contact-v2 .ctc-card{background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:0 14px 36px rgba(16,24,40,.12)}
.contact-v2 .ctc-card-hd{padding:22px 26px 0}
/* contact_us_sub_title is saved in capitals ("LEAVE A MESSAGE"), which shouts
   next to the rest of the page. Printed as a sentence, keeping the admin's words. */
.contact-v2 .ctc-card-hd h3{font-size:20px;text-transform:lowercase}
.contact-v2 .ctc-card-hd h3::first-letter{text-transform:uppercase}
.contact-v2 .ctc-card-bd{padding:18px 26px 26px}
.contact-v2 .ctc-form{display:flex;flex-direction:column;gap:14px}
.contact-v2 .ctc-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.contact-v2 .ctc-field{display:block;margin:0}
.contact-v2 .ctc-field > label:first-child{display:block;font-size:12px;font-weight:600;color:var(--ink-2);margin-bottom:6px}
.contact-v2 .ctc-inp{
  width:100%;border:1px solid var(--line);border-radius:7px;padding:9px 12px;background:#fff;
  font-family:inherit;font-size:13.5px;line-height:1.5;color:var(--ink);
}
.contact-v2 input.ctc-inp{height:42px}
.contact-v2 textarea.ctc-inp{height:auto;resize:vertical}
.contact-v2 .ctc-inp:focus{outline:2px solid #ffe89a;outline-offset:-1px;border-color:var(--brand-dark)}
.contact-v2 .ctc-inp.error{border-color:var(--red)}
/* jquery.validate fills the label already in the markup; empty until then,
   and an empty one must take no room */
.contact-v2 .ctc-field label.error{display:block;margin:6px 0 0;font-size:12px;font-weight:500;color:var(--red)}
.contact-v2 .ctc-field label.error:empty{display:none}
.contact-v2 .ctc-limit{display:block;font-size:11.5px;color:var(--faint);margin-top:6px;text-align:right}

.contact-v2 .ctc-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
/* flat, with the darker yellow only as its edge - it sits on a lifted card and
   a glow under it would be a second shadow in the same corner */
.contact-v2 .ctc-btn{
  display:inline-flex;align-items:center;justify-content:center;padding:12px 28px;
  background:var(--brand);border:1px solid var(--brand-dark);border-radius:8px;color:var(--ink);
  font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;cursor:pointer;
  box-shadow:none;transition:background .12s;
}
.contact-v2 .ctc-btn:hover{background:var(--brand-dark);color:var(--ink)}
.contact-v2 .ctc-btn:focus{outline:none;box-shadow:0 0 0 3px rgba(255,204,42,.45)}
.contact-v2 .ctc-note{margin:0;font-size:12.5px;font-weight:600;flex:1;min-width:230px}
.contact-v2 .ctc-note[hidden]{display:none}
.contact-v2 .ctc-note.is-ok{color:var(--green)}
.contact-v2 .ctc-note.is-bad{color:var(--red)}

/* ------------------------------------------------------------
   the map: the same embed, boxed
   ------------------------------------------------------------ */
.contact-v2 .ctc-map{background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden}
/* Mapbox GL measures the box it is given, so the box carries the shape */
.contact-v2 .ctc-map-art{position:relative;aspect-ratio:20/7;background:var(--line-2)}
/* the notice Mapbox shows over a wheel it did not take - readable on the map */
.contact-v2 .mapboxgl-scroll-zoom-blocker,
.contact-v2 .mapboxgl-touch-pan-blocker{font-family:inherit;font-size:14px}
.contact-v2 .ctc-map-foot{display:flex;align-items:center;gap:10px;padding:11px 14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);flex-wrap:wrap}
.contact-v2 .ctc-map-foot > span{display:inline-flex;align-items:center;gap:6px}
.contact-v2 .ctc-map-foot svg{width:13px;height:13px;flex:none;fill:none;stroke:currentColor;color:var(--faint)}
.contact-v2 .ctc-map-lnk{margin-left:auto;color:var(--blue);font-weight:600;font-size:12.5px;white-space:nowrap}
.contact-v2 .ctc-map-lnk:hover{color:var(--blue);text-decoration:underline}

/* ------------------------------------------------------------
   narrower screens: the form comes first, it is the point of the page
   ------------------------------------------------------------ */
@media (max-width:991px){
  .contact-v2{padding:132px 0 44px}
  .contact-v2 .ctc-shell{grid-template-columns:1fr}
  .contact-v2 .ctc-card{order:-1}
  .contact-v2 .ctc-side{padding:4px 0 0}
  .contact-v2 .ctc-map-art{aspect-ratio:16/9}
}
@media (max-width:575px){
  .contact-v2{padding:122px 0 36px}
  .contact-v2 .ctc-wrap{padding:0 14px}
  .contact-v2 .ctc-head h1{font-size:21px}
  .contact-v2 .ctc-two{grid-template-columns:1fr}
  .contact-v2 .ctc-card-hd{padding:18px 18px 0}
  .contact-v2 .ctc-card-bd{padding:16px 18px 20px}
  .contact-v2 .ctc-map-lnk{margin-left:0}
}
