/* ==========================================================================
   Adapt Practice — Contact page stylesheet

   Page-specific components for contact.html only.
   This file must be loaded after adapt-practice.css.
   ========================================================================== */

/* ─────────────────────────────────────────────────────────────────────────
   Contact hero graphic
   Reuses the shared .page-hero__visual two-column activation already
   defined in adapt-practice.css (keyed off its presence, so it only
   affects pages that include it — homepage and this page).
   ───────────────────────────────────────────────────────────────────────── */
.page-hero__visual .contact-hero__graphic {
  display: block;
  width: 100%;
  height: auto;
  max-width: 480px;
}

@media (max-width: 900px) {
  .page-hero__visual { margin-top: 1.5rem; }
  .page-hero__visual .contact-hero__graphic { max-width: 420px; }
}

@media (max-width: 640px) {
  .page-hero__visual .contact-hero__graphic { max-width: 320px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Two-column contact layout
   ───────────────────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ─────────────────────────────────────────────────────────────────────────
   Form column
   ───────────────────────────────────────────────────────────────────────── */
.contact-form-panel {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form-panel__intro {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-form__required-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

.contact-form { margin-top: 0; }

.form-field__optional {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--grey);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.5rem;
  margin-left: 0.4rem;
}

/* Custom select chevron — the shared base `select` rule doesn't style the
   native arrow, so the browser default would otherwise show through. */
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c6a7f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.75rem;
}

/* Focus treatment is now defined once, canonically, in adapt-practice.css
   (input:focus / textarea:focus / select:focus) — no page-specific
   override needed here. */

.contact-form .checkbox-field {
  margin: 0.5rem 0 1.75rem;
}
.contact-form .checkbox-field label {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.55;
}

.contact-form__submit {
  width: auto;
}

.contact-form__status {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form__status--error {
  color: var(--error);
}

/* ─────────────────────────────────────────────────────────────────────────
   Info column
   ───────────────────────────────────────────────────────────────────────── */
.contact-info {
  background: var(--grey);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
}

.contact-info h2 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.contact-info .checklist {
  margin-bottom: 2rem;
}
.contact-info .checklist li {
  font-size: 0.9rem;
  border-bottom-color: var(--grey-mid);
}

.contact-info__subsection {
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-mid);
  margin-bottom: 0;
}
.contact-info__subsection h3 {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.contact-info__subsection p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-info__subsection p:not(:last-child) {
  margin-bottom: 0.35rem;
}
.contact-info__subsection + .contact-info__subsection {
  margin-top: 1.5rem;
}

.contact-info__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-mid);
}
.contact-info__list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}
.contact-info__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ─────────────────────────────────────────────────────────────────────────
   Reassurance strip
   ───────────────────────────────────────────────────────────────────────── */
.reassurance-strip {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.reassurance-strip h2 { margin-bottom: 0.85rem; }
.reassurance-strip p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .contact-form-panel { padding: 2rem 1.5rem; }
  .contact-info { padding: 2rem 1.5rem; }
  .contact-form__submit { width: 100%; text-align: center; }
}
