/* ==========================================================================
   EmailHelp — Contact page styles (css/pages/contact.css)
   Only contact-specific rules live here: hero trust row, the form + side-card
   layout, the "what happens next" panel. Everything else comes from css/style.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page hero
   -------------------------------------------------------------------------- */
.contact-hero .page-hero__content { max-width: 840px; }
.contact-hero .hero__actions { margin-bottom: 26px; }
.contact-hero .hero__trust { color: var(--text-muted-dark); }   /* .hero__trust is muted-light only inside .hero--dark */
.contact-hero .hero__trust li { line-height: 1.4; }

/* --------------------------------------------------------------------------
   Form + ways to reach us
   -------------------------------------------------------------------------- */
.contact-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Form card */
.contact-form { gap: 18px; }
.contact-form .form-card__head { margin-bottom: 0; }
.contact-form .form-card__head .eyebrow { margin-bottom: 10px; }
.contact-form .form-card__head h2 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); margin-bottom: 8px; }
.contact-form textarea { min-height: 150px; }
.contact-form .field__hint .icon {
  width: .95em;
  height: .95em;
  vertical-align: -.12em;
  color: var(--success);
}
.contact-form .field--checkbox { margin-top: 2px; }
.contact-form .form__note { margin: 0; }

/* Plan note (shown by the inline ?plan= script) */
.contact-plan { margin: 0; }
.contact-plan p a { font-weight: 600; color: inherit; text-decoration: underline; text-decoration-color: rgba(16, 185, 129, .55); text-underline-offset: 3px; }
.contact-plan p a:hover { text-decoration-color: currentColor; }

/* Side column */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
@media (min-width: 861px) {
  .contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
/* Aside heading: a visible divider when the column stacks under the form on phones/tablets;
   on desktop it is for assistive tech only so the first card lines up with the form card */
.contact-aside__title {
  margin: 12px 0 2px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
}
@media (min-width: 861px) {
  .contact-aside__title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}
.contact-aside .callout { margin: 0; }

.contact-card { gap: 14px; }
.contact-card .cluster { gap: 16px; }
.contact-card .card__title { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p { font-size: .92rem; line-height: 1.55; }
.contact-card p + p { margin-top: 6px; }
/* Secondary links (billing@ / privacy@) keep the body colour but carry a light underline so they read as links */
.contact-card p a {
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, .28);
  text-underline-offset: 3px;
}
.contact-card p a:hover { color: var(--primary-600); text-decoration-color: currentColor; }
/* Main value (support email): larger, bold, no underline. Selectors outrank `.contact-card p` without !important */
.contact-card p.contact-card__value { font-size: 1.05rem; }
.contact-card p.contact-card__value a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-card p.contact-card__value a:hover { color: var(--primary-600); }
.contact-card__address {
  font-style: normal;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}
.contact-card__address + p { margin-top: 8px; }

/* Featured live-chat card: permanent gradient border + soft glow */
.contact-card--chat {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(99, 102, 241, .07), rgba(255, 255, 255, 0) 60%) padding-box,
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-glow);
}
.contact-card--chat:hover { box-shadow: var(--shadow-glow); }
.contact-card__pill {
  align-self: flex-start;
  font-size: .8rem;
  padding: 6px 12px 6px 10px;
}
.contact-card--chat .btn { margin-top: 2px; }

/* --------------------------------------------------------------------------
   What happens next
   -------------------------------------------------------------------------- */
.contact-next__grid { align-items: start; }
.contact-next__copy .section-head { margin-bottom: 32px; }
.contact-next__stats .stat { background: var(--bg); }
.contact-next__stats .stat__label { font-size: .85rem; }
.contact-next__steps {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
}
.contact-steps { gap: 28px; }
.contact-steps .step__num { box-shadow: 0 0 0 6px var(--bg), var(--shadow-glow); }
.contact-steps .step__title { margin-top: 12px; }
/* The shared .steps--vertical cover strip ends the timeline at the last number; the panel is --bg
   (the section is --alt, so beat the shared `.section--alt .steps` token with equal specificity) */
.section--alt .contact-steps { --steps-bg: var(--bg); }
.contact-steps .step p a { font-weight: 500; color: var(--primary-600); }

@media (max-width: 860px) {
  .contact-next__copy .section-head { margin-bottom: 24px; }
}
@media (max-width: 560px) {
  .contact-card .cluster { gap: 14px; }
  .contact-card .icon-tile { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; }
  .contact-card .icon-tile .icon { width: 22px; height: 22px; }
  .contact-next__steps { padding: 20px 18px; }
}
