/* DELF Foundation – Contact page. Extends css/home.css (load it first). */

.dl .hero--page .hero__copy h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); text-wrap: balance; }
#message, #offices, #faq { scroll-margin-top: 72px; }

/* Contact channels */
.dl .channels { list-style: none; margin: 32px 0 0; padding: 0; border-bottom: 1px solid var(--rule); }
.dl .channel { display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 22px 0; border-top: 1px solid var(--rule); }
.dl .channel > i { font-size: 24px; line-height: 1.3; color: var(--navy); }
.dl .channel p { margin: 0 0 6px; color: var(--muted); font-size: 15.5px; max-width: 44ch; }
.dl .channel a { font-weight: 700; word-break: break-word; }

/* Form */
.dl .form-panel { background: var(--fog); border-top: 6px solid var(--marigold); padding: clamp(24px, 4vw, 44px); }
.dl .form-panel__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.15; color: var(--navy); margin: 0 0 10px; }
.dl .form-panel__intro { color: var(--muted); margin: 0 0 26px; max-width: 52ch; }
.dl .field { margin-bottom: 20px; }
.dl .row > .field { margin-bottom: 0; }
.dl .field label { display: block; font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.dl .req, .dl .opt { font-weight: 600; font-size: 13px; margin-left: 6px; }
.dl .req { color: #8a1c14; }
.dl .opt { color: var(--muted); }
.dl .field input, .dl .field select, .dl .field textarea { display: block; width: 100%; min-height: 48px; padding: 11px 14px; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); }
.dl .field textarea { min-height: 150px; resize: vertical; }
.dl .field input:focus-visible, .dl .field select:focus-visible, .dl .field textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.dl .field [aria-invalid="true"] { border-color: #b3261e; }
.dl .field__error { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: #8a1c14; }
.dl .char-count { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); text-align: right; }
.dl .char-count.is-near { color: #8a5a00; font-weight: 700; }
.dl .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dl .privacy-note { font-size: 14px; color: var(--muted); margin: 4px 0 22px; max-width: 56ch; }
.dl #submitBtn[disabled] { opacity: .7; cursor: progress; }
.dl .form-status { margin-top: 18px; font-weight: 600; }
.dl .form-status:empty { display: none; }
.dl .form-status.is-success { padding: 14px 16px; background: #e6f4ec; border-left: 5px solid var(--green); color: #12402f; }
.dl .form-status.is-error { padding: 14px 16px; background: #fdecea; border-left: 5px solid #b3261e; color: #6e1710; }

/* Offices */
.dl .offices { display: grid; grid-template-columns: 1fr; gap: 36px 40px; margin-top: 44px; }
@media (min-width: 640px) { .dl .offices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .dl .offices { grid-template-columns: repeat(3, 1fr); } }
.dl .office { max-width: none; border-top: 4px solid var(--navy); padding-top: 18px; }
.dl .office--hq { border-top-color: var(--marigold); }
.dl .office__tag { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--green); }
.dl .office address { margin: 0; font-style: normal; max-width: none; }

/* Polished contact-page finish: spacious, accessible, and consistent with DELF branding. */
.dl .hero--page {
  min-height: clamp(400px, 56vh, 540px);
}

.dl .hero--page .hero__copy {
  padding-block: clamp(42px, 6vw, 76px);
}

.dl .hero--page .hero__lede {
  max-width: 56ch;
  line-height: 1.75;
}

.dl #contact.band,
.dl #offices.band,
.dl .faq.band {
  padding-block: clamp(56px, 7vw, 92px);
}

.dl #channels-title,
.dl #offices-title,
.dl #faq-title {
  max-width: 17ch;
  line-height: 1.15;
}

.dl .channels {
  margin-top: 28px;
}

.dl .channel {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0 16px;
  padding: 24px 0;
}

.dl .channel > i {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
  color: var(--marigold);
}

.dl .channel .item-title {
  margin: 0 0 8px;
  line-height: 1.3;
}

.dl .channel p {
  line-height: 1.7;
  text-wrap: pretty;
}

.dl .channel a {
  display: inline-block;
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.dl .channel a:hover,
.dl .channel a:focus-visible {
  color: #8b611d;
}

.dl .form-panel {
  border-top-width: 5px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 36px rgba(12, 21, 40, .06);
}

.dl .form-panel__intro {
  line-height: 1.7;
  text-wrap: pretty;
}

.dl .field input,
.dl .field select,
.dl .field textarea {
  border: 1px solid #6f7d92;
  border-radius: 5px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dl .field input:hover,
.dl .field select:hover,
.dl .field textarea:hover {
  border-color: var(--navy);
}

.dl .field input:focus-visible,
.dl .field select:focus-visible,
.dl .field textarea:focus-visible {
  border-color: var(--navy);
  outline: 3px solid var(--link);
  outline-offset: 2px;
  box-shadow: none;
}

.dl .privacy-note {
  line-height: 1.65;
}

.dl #submitBtn {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 700;
}

.dl .offices {
  gap: 30px;
  margin-top: 36px;
}

.dl .office {
  padding: 20px 20px 22px;
  background: #fff;
  border: 1px solid #e3e7ed;
  border-top: 4px solid var(--navy);
  box-shadow: 0 8px 24px rgba(12, 21, 40, .035);
}

.dl .office--hq {
  border-top-color: var(--marigold);
}

.dl .office .item-title {
  line-height: 1.35;
  margin-bottom: 10px;
}

.dl .office address {
  color: var(--muted);
  line-height: 1.75;
}

.dl .faq .accordion-item {
  border-color: #e2e6ed;
}

.dl .faq .accordion-button {
  color: var(--navy);
  font-weight: 600;
  line-height: 1.5;
  padding: 20px 22px;
}

.dl .faq .accordion-button:not(.collapsed) {
  background: #f7f9fc;
  color: var(--navy);
  box-shadow: inset 4px 0 0 var(--marigold);
}

.dl .faq .accordion-button:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(201, 147, 58, .24);
}

.dl .faq .accordion-button:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: -3px;
}

.dl .faq .accordion-body {
  color: var(--muted);
  line-height: 1.75;
  max-width: 68ch;
}

@media (max-width: 991.98px) {
  .dl .form-panel {
    margin-top: 4px;
  }
}

@media (max-width: 575.98px) {
  .dl .hero--page {
    min-height: 0;
  }

  .dl .channel {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0 12px;
  }

  .dl .form-panel {
    padding: 24px 18px;
  }

  .dl .offices {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl .field input,
  .dl .field select,
  .dl .field textarea {
    transition: none;
  }
}

