/* ============================================================
   assets/contact.css — Contact page specific styles
   Uses tokens from assets/style.css only.
   ============================================================ */

/* ----- BREADCRUMB ----- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0;
  margin: 0;
  list-style: none;
}
.breadcrumb__item { display: flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumb__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb__link:hover, .breadcrumb__link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
.breadcrumb__current { color: #ffffff; font-weight: 500; }

/* ----- HERO BANNER ----- */
.contact-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(31, 58, 95, 0.80), rgba(31, 58, 95, 0.55)),
    url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80')
      center / cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}
.contact-hero__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 40px;
}
.contact-hero__title {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}
.contact-hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 22px;
}

/* ----- CONTACT LAYOUT ----- */
.contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: start;
}

/* ----- CONTACT FORM ----- */
.contact-form {
  background: var(--surface);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form__heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--brand);
  margin: 0 0 8px;
}
.contact-form__intro {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Server-side error summary */
.contact-form__errors {
  background: rgba(179, 38, 30, 0.06);
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: none;
}
.contact-form__errors.is-visible { display: block; }
.contact-form__errors-title {
  color: var(--danger);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.contact-form__errors-list {
  margin: 0;
  padding-left: 20px;
  color: var(--danger);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Success state */
.contact-form__success {
  background: rgba(30, 123, 52, 0.08);
  border: 1px solid var(--success);
  border-radius: 12px;
  padding: 24px;
  color: var(--success);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  display: none;
}
.contact-form__success.is-visible { display: block; }
.contact-form__success strong { display: block; margin-bottom: 4px; }

/* Form fields */
.contact-form__field {
  margin-bottom: 20px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-form__required {
  color: var(--danger);
  margin-left: 2px;
}
.contact-form__helper {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}
.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #d8dde3;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}
.contact-form__input--error,
.contact-form__select--error,
.contact-form__textarea--error {
  border-color: var(--danger);
}
.contact-form__input--error:focus,
.contact-form__select--error:focus,
.contact-form__textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18);
}
.contact-form__error {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--danger);
  margin-top: 6px;
  line-height: 1.45;
}
.contact-form__error:empty { display: none; }

/* Character counter */
.contact-form__counter-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 6px;
}
.contact-form__counter {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Radio group */
.contact-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.contact-form__radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #d8dde3;
  border-radius: 999px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form__radio-label:hover {
  border-color: var(--brand);
}
.contact-form__radio-label input {
  margin: 0;
  accent-color: var(--accent);
}
.contact-form__radio-label:has(input:checked) {
  border-color: var(--brand);
  background: rgba(31, 58, 95, 0.06);
  font-weight: 600;
}

/* Checkbox */
.contact-form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  cursor: pointer;
}
.contact-form__checkbox-label input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.contact-form__checkbox-label a {
  color: var(--brand);
  text-decoration: underline;
}
.contact-form__checkbox-label a:hover,
.contact-form__checkbox-label a:focus-visible {
  color: var(--accent-dark);
}

/* Honeypot */
.contact-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit row */
.contact-form__submit {
  margin-top: 24px;
}

/* ----- INFO CARD ----- */
.info-card {
  background: var(--brand);
  color: #ffffff;
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
}
.info-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px;
}
.info-card__intro {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 24px;
}
.info-card__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.info-card__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  flex-shrink: 0;
}
.info-card__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info-card__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}
.info-card__value {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.55;
  word-break: break-word;
}
.info-card__value a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.info-card__value a:hover,
.info-card__value a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.info-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--text);
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.info-card__cta:hover,
.info-card__cta:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.info-card__cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ----- HOURS AND DEPARTMENTS ----- */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.contact-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--brand);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef1f5;
}

/* Departments table */
.departments-table__wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -8px;
  padding: 0 8px;
}
.departments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 380px;
}
.departments-table caption {
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.departments-table th,
.departments-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #eef1f5;
  vertical-align: top;
}
.departments-table thead th {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid #e0e5ec;
}
.departments-table tbody th {
  font-weight: 600;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.departments-table tbody td {
  color: var(--muted);
  font-size: 0.875rem;
}
.departments-table tbody td a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.departments-table tbody td a:hover,
.departments-table tbody td a:focus-visible {
  color: var(--accent-dark);
}
.departments-table tbody tr:last-child th,
.departments-table tbody tr:last-child td {
  border-bottom: none;
}

/* Hours list */
.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hours-list__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed #eef1f5;
  font-size: 0.9rem;
}
.hours-list__row:last-child { border-bottom: none; }
.hours-list__label {
  color: var(--text);
  font-weight: 500;
}
.hours-list__value {
  color: var(--brand);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.hours-list__note {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(201, 162, 39, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ----- MAP SECTION ----- */
.map-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(rgba(31, 58, 95, 0.55), rgba(31, 58, 95, 0.55)),
    url('https://images.unsplash.com/photo-1524661135-423995f22d0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80')
      center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}
.map-placeholder__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--surface);
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.map-placeholder__button:hover,
.map-placeholder__button:focus-visible {
  background: var(--accent);
  transform: translateY(-2px);
}
.map-placeholder__button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-section__meta {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.map-section__directions {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.map-section__directions:hover,
.map-section__directions:focus-visible {
  color: var(--accent-dark);
}
.map-section__newtab {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}
.map-section__noscript {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ----- FAQ ----- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq__item {
  background: var(--surface);
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq__item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.faq__question {
  padding: 18px 24px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--brand);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s ease;
}
.faq__question:hover { background: rgba(31, 58, 95, 0.03); }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.faq__item[open] .faq__question::after { content: "−"; }
.faq__answer {
  padding: 0 24px 18px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}
.faq__answer a {
  color: var(--brand);
  text-decoration: underline;
  font-weight: 600;
  text-underline-offset: 2px;
}
.faq__answer a:hover,
.faq__answer a:focus-visible { color: var(--accent-dark); }

.faq__note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.faq__note a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq__note a:hover,
.faq__note a:focus-visible { color: var(--accent-dark); }

/* ----- CTA BAND (.offer) ----- */
.offer {
  background: linear-gradient(135deg, var(--brand), #34598a);
  color: #ffffff;
  padding: 64px 24px;
  text-align: center;
}
.offer__inner {
  max-width: 720px;
  margin: 0 auto;
}
.offer__title {
  color: #ffffff;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin-bottom: 14px;
}
.offer__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.offer__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.offer__actions .btn--outline {
  color: #ffffff;
  border-color: #ffffff;
}
.offer__actions .btn--outline:hover,
.offer__actions .btn--outline:focus-visible {
  background: #ffffff;
  color: var(--brand);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 58fr 42fr; gap: 32px; }
  .contact-cards { gap: 20px; }
  .contact-form { padding: 32px; }
  .info-card { padding: 32px 28px; }
}

@media (max-width: 900px) {
  .contact-hero { min-height: 300px; }
  .contact-hero__inner { padding: 108px 20px 36px; }
}

@media (max-width: 768px) {
  .contact-hero { min-height: 280px; }
  .contact-hero__inner { padding: 100px 20px 32px; }

  /* Layout stacks: form first, info card below */
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .info-card { position: static; }

  .contact-form { padding: 28px 24px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }

  .contact-cards { grid-template-columns: 1fr; }

  .contact-card { padding: 24px; }
}

@media (max-width: 480px) {
  .contact-hero { min-height: 240px; }
  .contact-hero__inner { padding: 90px 16px 28px; }
  .contact-hero__title { font-size: 1.85rem; }

  .contact-form { padding: 24px 20px; }
  .contact-form__heading { font-size: 1.25rem; }

  .contact-form__radios { flex-direction: column; align-items: stretch; }
  .contact-form__radio-label { justify-content: flex-start; }

  .contact-form__submit .btn { width: 100%; }

  .offer { padding: 48px 20px; }
  .offer__actions { flex-direction: column; align-items: stretch; }
  .offer__actions .btn { width: 100%; }
}

/* ----- REDUCED MOTION ----- */
@media (prefers-reduced-motion: reduce) {
  .contact-form__input,
  .contact-form__select,
  .contact-form__textarea,
  .info-card__cta,
  .map-placeholder__button,
  .faq__question,
  .faq__item {
    transition: none !important;
  }
  .info-card__cta:hover,
  .map-placeholder__button:hover {
    transform: none;
  }
}