/* ==========================================================================
   Contact page (page-contact.php). Builds on main.css components.
   ========================================================================== */

/* ---------- Hero ---------- */
.ct-hero p { margin-bottom: 28px; }
.ct-hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ct-hero-points li { display: flex; align-items: center; gap: 9px; font-size: 0.95rem; font-weight: 600; color: #fff; }
.ct-hero-points .check-dot { background: rgba(95, 174, 78, 0.2); color: var(--green-500); }

/* ---------- Contact details ---------- */
.ct-direct h2 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); }
.ct-direct-intro { margin-bottom: 26px; color: var(--muted); font-size: 1.05rem; }

.ct-person {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; margin-bottom: 16px; padding: 22px;
  border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.ct-person::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.ct-person .advisor-photo, .ct-person .advisor-initials { width: 64px; height: 64px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--green-100); }
.ct-person .advisor-initials { font-size: 1.3rem; }
.ct-person p { margin: 0; }
.ct-person-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-700); }
.ct-person-name { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.ct-person-role { font-size: 0.93rem; color: var(--muted); }
.ct-person .chip { margin-top: 8px; color: #2f6b28; } /* AA contrast on the light green chip */
.ct-person .chip .icon { width: 14px; height: 14px; }

.ct-direct .contact-cards { gap: 12px; }
.ct-direct .contact-card { align-items: center; padding: 18px 20px; }
.ct-direct a.contact-card:hover .val { color: var(--green-700); }
.ct-direct .contact-card h3 { margin-bottom: 0; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ct-direct .contact-card .val { font-size: 1.05rem; transition: color .2s; }
.ct-direct .contact-card p:not(.val) { font-size: 0.9rem; }
.ct-wa { background: #e6f6eb; color: #178a45; }
.ct-wa i { font-size: 1.45rem; }
.ct-break { overflow-wrap: anywhere; }
.ct-map { font-size: 0.92rem; }
.ct-social { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.ct-social-label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ct-social-list { display: flex; gap: 8px; }
.ct-social-list a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--green-700); transition: background-color .2s, color .2s, border-color .2s;
}
.ct-social-list a:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.ct-social-list i { font-size: 1.05rem; }
.ct-reviews { font-size: 0.95rem; }

/* ---------- Form ---------- */
.contact-grid.ct-form-only { grid-template-columns: minmax(0, 780px); justify-content: center; }
.ct-form { position: relative; }
.ct-form-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--green-50); color: var(--green-800); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
}
.ct-form-badge .icon { width: 15px; height: 15px; }
.ct-form h2 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); }
.ct-form .gform_wrapper .gfield_required_text { font-weight: 500; color: var(--muted); }
.ct-form .gform_wrapper legend.gfield_label { float: left; width: 100%; }
.ct-form .gform_wrapper legend.gfield_label + * { clear: both; }
.ct-form .gform_wrapper textarea { height: 150px; }
.ct-form .gform_wrapper .gform_button { min-width: 200px; }
.ct-form > .form-privacy { margin: 20px 0 0; font-size: 0.88rem; }
.ct-form > .ct-form-safe {
  display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2);
}
.ct-form-safe .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--green-700); }
.ct-form-off { padding: 16px 18px; border-radius: 12px; background: #fff8e8; border: 1px solid #f5dfa8; color: #6b4a05; }

/* ---------- What happens next ---------- */
.ct-next-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; align-items: center; }
.ct-next-copy .lead { margin-bottom: 36px; }
.ct-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ct-steps li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding-bottom: 30px; }
.ct-steps li:last-child { padding-bottom: 0; }
.ct-steps li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 52px; bottom: 6px; width: 2px; background: var(--line); }
.ct-step-num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-50); border: 2px solid var(--green-100); color: var(--green-700); font-weight: 800; font-size: 1.05rem;
}
.ct-steps h3 { margin: 10px 0 6px; font-size: 1.12rem; }
.ct-steps p { margin: 0; color: var(--muted); }

.ct-book {
  position: relative; overflow: hidden; padding: 40px 36px; border-radius: var(--radius-lg); color: var(--on-dark);
  background: linear-gradient(140deg, var(--navy-900) 0%, var(--navy-800) 60%, #1d5576 100%); box-shadow: var(--shadow-lg);
}
.ct-book::before {
  content: ""; position: absolute; width: 360px; height: 360px; right: -150px; top: -170px; border-radius: 50%;
  border: 56px solid rgba(95, 174, 78, 0.12); pointer-events: none;
}
.ct-book > * { position: relative; }
.ct-book .eyebrow { color: var(--green-500); }
.ct-book h3 { margin-bottom: 8px; font-size: 1.4rem; color: #fff; }
.ct-book p { margin-bottom: 22px; }
.ct-book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.ct-book-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; }
.ct-book-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.ct-book-link:hover .icon { transform: translateX(3px); }
.ct-book-wa { margin-top: 30px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.ct-book-wa h3 { font-size: 1.15rem; }
.ct-book-wa p { margin-bottom: 18px; }
.ct-book .btn-whatsapp i { font-size: 1.15rem; }

/* ---------- Grievance redressal ---------- */
.ct-grievance .section-head h2 { text-wrap: balance; }
.ct-grievance .escalation a { overflow-wrap: anywhere; }
.ct-grievance .escalation a.ct-nowrap { white-space: nowrap; overflow-wrap: normal; }
.ct-griev-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; margin-top: 32px; text-align: center; }
.ct-griev-foot p { margin: 0; color: var(--ink-2); }
.ct-griev-foot p a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ct-next-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .ct-hero-points { flex-direction: column; gap: 10px; }
  .ct-person { padding: 18px; gap: 14px; }
  .ct-direct .contact-card { padding: 16px; }
  .ct-direct .contact-card .icon-box { width: 44px; height: 44px; }
  .ct-form .gform_wrapper .gform_button { width: 100%; }
  .ct-book { padding: 32px 22px; }
  .ct-book-actions .btn, .ct-book-wa .btn { width: 100%; white-space: normal; }
  .ct-steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .ct-step-num { width: 40px; height: 40px; font-size: 0.95rem; }
  .ct-steps li:not(:last-child)::before { left: 19px; top: 44px; }
  .ct-steps h3 { margin-top: 6px; }
  .ct-griev-foot { flex-direction: column; text-align: left; align-items: flex-start; }
}
