/* ============================================================
   ILX CONTACT - Get a Free Quote page
   Loaded only on the /contact/ page (see inc/enqueue.php).
   Scoped under .ct-page. Uses Coastal Estate tokens.
   ============================================================ */

.ct-page .ct-lead{ padding-top:clamp(26px,3.5vw,46px); }

/* ---- Lead grid: info | form ------------------------------- */
.ct-lead__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);
  gap:clamp(28px,5vw,64px);
  align-items:start;
}

/* ---- Info column ------------------------------------------ */
.ct-info .eyebrow{ margin-bottom:14px; }
.ct-info__title{
  font-family:var(--ilx-serif);
  font-size:var(--ilx-fs-h1);
  line-height:1.04;
  color:var(--ilx-forest-deep);
  letter-spacing:-.015em;
  margin:0 0 16px;
}
.ct-info__lead{
  font-size:var(--ilx-fs-lead);
  color:var(--ilx-muted);
  line-height:1.65;
  margin:0 0 30px;
  max-width:52ch;
}

/* ---- Contact methods -------------------------------------- */
.ct-methods{ list-style:none; margin:0 0 30px; padding:0; display:grid; gap:18px; }
.ct-method{ display:flex; align-items:flex-start; gap:14px; }
.ct-method__icon{
  width:44px; height:44px; flex:none;
  display:grid; place-items:center;
  border-radius:var(--ilx-r-sm);
  background:var(--ilx-leaf-soft);
  color:var(--ilx-forest);
  border:1px solid var(--ilx-line);
}
.ct-method__icon svg{ width:20px; height:20px; }
.ct-method__body{ display:flex; flex-direction:column; gap:2px; padding-top:2px; }
.ct-method__label{ font-size:var(--ilx-fs-xs); text-transform:uppercase; letter-spacing:.08em; color:var(--ilx-muted); font-weight:600; }
.ct-method__value{ font-size:var(--ilx-fs-base); color:var(--ilx-forest-deep); font-weight:600; text-decoration:none; }
a.ct-method__value:hover{ color:var(--ilx-orange); }

/* ---- Service area chips ----------------------------------- */
.ct-areas{ border-top:1px solid var(--ilx-line); padding-top:22px; }
.ct-areas__label{ display:block; font-size:var(--ilx-fs-xs); text-transform:uppercase; letter-spacing:.08em; color:var(--ilx-muted); font-weight:600; margin-bottom:12px; }
.ct-areas__chips{ display:flex; flex-wrap:wrap; gap:8px; }
.ct-chip{
  font-size:var(--ilx-fs-sm); font-weight:500;
  color:var(--ilx-forest);
  background:var(--ilx-forest-ghost);
  border:1px solid var(--ilx-line);
  border-radius:var(--ilx-pill);
  padding:6px 14px;
}

/* ---- Form card -------------------------------------------- */
.ct-formwrap{ position:sticky; top:calc(var(--ilx-header-h) + 18px); }
.ct-form-card{
  background:var(--ilx-white);
  border:1px solid var(--ilx-line);
  border-radius:var(--ilx-r-lg);
  box-shadow:var(--ilx-shadow);
  padding:clamp(24px,3vw,38px);
}
.ct-form-card__title{
  font-family:var(--ilx-serif);
  font-size:var(--ilx-fs-h3);
  color:var(--ilx-forest-deep);
  margin:0 0 6px;
}
.ct-form-card__sub{ font-size:var(--ilx-fs-sm); color:var(--ilx-muted); margin:0 0 24px; }

/* ---- Form fields ------------------------------------------ */
.ct-form{ display:grid; gap:16px; }
.ct-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.ct-field{ display:flex; flex-direction:column; gap:7px; min-width:0; }
.ct-field label{ font-size:var(--ilx-fs-sm); font-weight:600; color:var(--ilx-ink); }
.ct-req{ color:var(--ilx-orange); }
.ct-field input,
.ct-field select,
.ct-field textarea{
  width:100%;
  font:inherit; font-size:var(--ilx-fs-base);
  color:var(--ilx-ink);
  background:var(--ilx-paper);
  border:1px solid var(--ilx-line);
  border-radius:var(--ilx-r-sm);
  padding:12px 14px;
  transition:border-color var(--ilx-dur-fast) var(--ilx-ease), box-shadow var(--ilx-dur-fast) var(--ilx-ease), background var(--ilx-dur-fast) var(--ilx-ease);
}
.ct-field textarea{ resize:vertical; min-height:108px; }
.ct-field select{ appearance:none; -webkit-appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7263' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; padding-right:38px;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder{ color:#9aa295; }
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus{
  outline:none;
  border-color:var(--ilx-forest-mid);
  background:var(--ilx-white);
  box-shadow:0 0 0 3px rgba(46,107,76,.14);
}
.ct-form .ilx-btn{ margin-top:4px; }
.ct-form__fineprint{ font-size:var(--ilx-fs-xs); color:var(--ilx-muted); text-align:center; margin:2px 0 0; line-height:1.5; }

/* FluentForms fallback styling (if a form shortcode is used) */
.ct-form-card .fluentform .ff-btn-submit{ width:100%; }

/* ---- How we handle inquiries ------------------------------ */
.ct-how__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:clamp(16px,2vw,24px);
  margin-top:28px;
}
.ct-how__card{
  background:var(--ilx-white);
  border:1px solid var(--ilx-line);
  border-radius:var(--ilx-r-md);
  padding:26px 24px;
  box-shadow:var(--ilx-shadow-sm);
}
.ct-how__card h3{
  font-family:var(--ilx-serif);
  font-size:var(--ilx-fs-h4);
  color:var(--ilx-forest-deep);
  margin:0 0 10px;
}
.ct-how__card p{ font-size:var(--ilx-fs-base); color:var(--ilx-muted); line-height:1.62; margin:0; }

/* ---- Map -------------------------------------------------- */
.ct-map{
  border:1px solid var(--ilx-line);
  border-radius:var(--ilx-r-lg);
  overflow:hidden;
  box-shadow:var(--ilx-shadow-sm);
  background:var(--ilx-white);
}
.ct-map__bar{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding:18px clamp(18px,2.5vw,28px);
}
.ct-map__name{ display:block; font-family:var(--ilx-serif); font-size:var(--ilx-fs-h4); color:var(--ilx-forest-deep); }
.ct-map__addr{ display:block; font-size:var(--ilx-fs-sm); color:var(--ilx-muted); margin-top:2px; }
.ct-map__frame{ position:relative; width:100%; aspect-ratio:16 / 7; background:var(--ilx-gray-50); border-top:1px solid var(--ilx-line); }
.ct-map__frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }

/* ---- Responsive ------------------------------------------- */
@media (max-width:900px){
  .ct-lead__grid{ grid-template-columns:1fr; gap:34px; }
  .ct-formwrap{ position:static; order:-1; }   /* form first on mobile */
  .ct-map__frame{ aspect-ratio:4 / 3; }
}
@media (max-width:480px){
  .ct-row{ grid-template-columns:1fr; }
  .ct-map__bar .ilx-btn{ width:100%; justify-content:center; }
}

@media (prefers-reduced-motion:reduce){
  .ct-field input,
  .ct-field select,
  .ct-field textarea{ transition:none; }
}
