/* ===========================================================================
   Ability Access — Contact page styles (contact.css)
   Built at the 1440px design width. Loads AFTER styles.css; only NEW classes.
   Shared classes (.container/.btn/.eyebrow/.accent/.lead/.cta/.site-footer/.ph)
   are defined in styles.css and are NOT redefined here.
   =========================================================================== */

/* =========================================================================
   CONTACT HERO
   ========================================================================= */
.ct-hero { position: relative; padding: 132px 0 56px; }
.ct-hero-grid {
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 64px; align-items: center;
}
.ct-hero-text .eyebrow { margin-bottom: 18px; }
.ct-hero h1 { font-size: 58px; line-height: 1.08; letter-spacing: -.01em; }
.ct-hero h1 .accent { display: inline-block; }
.ct-hero .lead { max-width: 470px; font-size: 16px; margin: 22px 0 30px; }

/* hero contact details (small inline rows) */
.ct-hero-details { display: flex; flex-direction: column; gap: 20px; }
.ct-hero-details li { display: flex; align-items: center; gap: 16px; }
.ct-hero-details small { font: 500 12px/1 var(--sans); color: var(--muted); display: block; margin-bottom: 5px; }
.ct-hero-details b { font: 700 16px/1.1 var(--sans); color: var(--ink); display: block; }

.ct-ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  background: #e9f3f3; display: grid; place-items: center;
}
.ct-ic svg { width: 20px; height: 20px; color: var(--teal); }

/* hero media + floating card */
.ct-hero-media { position: relative; }
.ct-hero-photo {
  background: var(--ph-bg); border-radius: 0 0 0 110px; aspect-ratio: 7/6; min-height: 360px;
}
.ct-hero-card {
  position: absolute; right: -14px; bottom: -26px; width: 244px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 30px 60px -30px rgba(4,43,50,.28);
}
.ct-hero-card .ic {
  width: 40px; height: 40px; border-radius: 50%; background: var(--teal);
  display: grid; place-items: center; margin-bottom: 14px;
}
.ct-hero-card .ic svg { width: 20px; height: 20px; color: #fff; }
.ct-hero-card b { display: block; font: 600 16px/1.2 var(--sans); color: var(--ink); margin-bottom: 6px; }
.ct-hero-card p { font-size: 13px; line-height: 1.5; color: var(--body); }

/* =========================================================================
   CONTACT MAIN — form + details
   ========================================================================= */
.ct-main { background: var(--pale); padding: 60px 0 70px; }
.ct-main-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }

/* ---- FORM CARD ---- */
.ct-form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 40px 40px 44px;
  box-shadow: 0 40px 80px -50px rgba(4,43,50,.30);
}
.ct-form-card .eyebrow { margin-bottom: 14px; }
.ct-form-card h2 { font-size: 38px; line-height: 1.1; }
.ct-form-intro { margin: 16px 0 28px; font-size: 15px; line-height: 1.65; color: var(--body); max-width: 380px; }

.ct-form { display: flex; flex-direction: column; gap: 18px; }
.ct-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-field { display: flex; flex-direction: column; }
.ct-field label {
  font: 600 13px/1 var(--sans); color: var(--ink);
  margin-bottom: 9px;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  font: 400 15px/1.4 var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: #9aa9ac; }
.ct-field textarea { resize: vertical; min-height: 110px; }

.ct-field input:hover,
.ct-field select:hover,
.ct-field textarea:hover { border-color: #cfdbdc; }

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19,138,130,.16);
}

/* select with custom chevron */
.ct-select-wrap { position: relative; }
.ct-select-wrap select { padding-right: 44px; cursor: pointer; color: var(--ink); }
.ct-select-wrap select:invalid { color: #9aa9ac; }
.ct-select-arrow {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--teal); pointer-events: none;
}

/* consent checkbox */
.ct-consent { display: flex; align-items: flex-start; gap: 11px; margin-top: 2px; cursor: pointer; }
.ct-consent input {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  border: 1.5px solid #cfdbdc; border-radius: 5px; background: #fff;
  cursor: pointer; transition: .15s; position: relative;
}
.ct-consent input:hover { border-color: var(--teal); }
.ct-consent input:checked { background: var(--teal); border-color: var(--teal); }
.ct-consent input:checked::after {
  content: ""; position: absolute; left: 5px; top: 1.5px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ct-consent input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(19,138,130,.16); }
.ct-consent span { font-size: 13px; line-height: 1.55; color: var(--body); }
.ct-consent a { color: var(--teal); font-weight: 600; }

.ct-form .btn { align-self: flex-start; margin-top: 6px; }

/* ---- DETAILS COLUMN ---- */
.ct-details { padding-top: 6px; }
.ct-details .eyebrow { margin-bottom: 14px; }
.ct-details h2 { font-size: 38px; line-height: 1.1; }
.ct-details-intro { margin: 16px 0 26px; font-size: 15px; line-height: 1.7; color: var(--body); max-width: 400px; }

.ct-detail-list { display: flex; flex-direction: column; gap: 14px; }
.ct-detail-list li {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px;
}
.ct-detail-body { flex: 1; min-width: 0; }
.ct-detail-body b { display: block; font: 600 16px/1.25 var(--sans); color: var(--ink); margin-bottom: 4px; }
.ct-detail-body p { font-size: 13.5px; line-height: 1.5; color: var(--body); }
.ct-detail-link {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  font: 600 14px/1 var(--sans); color: var(--teal); white-space: nowrap;
}
.ct-detail-link svg { width: 15px; height: 15px; }
.ct-detail-link:hover { color: var(--teal-600); }

.ct-map {
  position: relative; overflow: hidden;
  margin-top: 18px; background: var(--ph-bg); border-radius: 16px;
  aspect-ratio: 16/7; min-height: 180px; max-width: 100%;
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ct-map.ph::after { content: "MAP"; }

/* =========================================================================
   RESPONSIVE  (improvised below the 1440px source width)
   ========================================================================= */
@media (max-width: 1024px) {
  .ct-hero { padding-top: 110px; }
  .ct-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .ct-hero-media { max-width: 560px; }
  .ct-hero-photo { border-radius: 18px; }
  .ct-hero-card { right: 0; bottom: -20px; }
  .ct-hero h1 { font-size: 46px; }

  .ct-main-grid { grid-template-columns: 1fr; gap: 40px; }
  .ct-form-card { max-width: 640px; }
}

@media (max-width: 768px) {
  .ct-hero h1 { font-size: 38px; }
  .ct-form-card h2, .ct-details h2 { font-size: 30px; }
  .ct-form-card { padding: 30px 24px 34px; }
  .ct-field-row { grid-template-columns: 1fr; }
  .ct-detail-list li { flex-wrap: wrap; gap: 12px 16px; }
  .ct-detail-link { margin-left: 64px; }
}

@media (max-width: 480px) {
  .ct-hero h1 { font-size: 32px; }
  .ct-hero-details li { gap: 13px; }
  .ct-hero-card { position: static; width: auto; margin-top: 18px; }
  .ct-hero-photo { min-height: 260px; }
  .ct-form-card { padding: 24px 18px 28px; border-radius: 16px; }
}

/* ---- Hover micro-interactions ---- */
.ct-detail-list li { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.ct-detail-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: #d7e3e3; }

.ct-main { padding-top: var(--section-y); padding-bottom: var(--section-y); }
