/* BSSA Contact Us — standalone CSS for contact-route pages */

.bssa-contact {
  --bssa-p: #4f8bff;
  --bssa-pd: #1f62ff;
  --bssa-bg: #f8fafc;
  --bssa-t: #0f172a;
  --bssa-m: #64748b;
  --bssa-br: rgba(79, 139, 255, 0.1);
  --bssa-sh: 0 8px 28px rgba(15, 23, 42, 0.07);
  --bssa-sh2: 0 18px 48px rgba(15, 23, 42, 0.1);
  --r-lg: 20px;
  --r-md: 14px;
  --sp: clamp(1rem, 3vw, 2.25rem);
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--bssa-t);
  background: var(--bssa-bg);
}

body.contact-route .public-portal-layout > main.bssa-contact-main {
  flex: 1 0 auto;
  padding: 0 !important;
  min-height: 0 !important;
  background: var(--bssa-bg);
}
body.contact-route.public-portal {
  background: var(--bssa-bg);
  font-family: 'Open Sans', system-ui, sans-serif;
}
body.contact-route .bssa-contact { overflow-x: hidden; }
html { scroll-behavior: smooth; }

.bssa-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bssa-muted { color: var(--bssa-m); font-size: 0.95rem; line-height: 1.5; }

.bssa-msgs { padding: var(--sp) var(--sp) 0; max-width: 72rem; margin: 0 auto; }
.bssa-msg {
  border-radius: var(--r-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 0.65rem;
  font-size: 0.9375rem;
  border: 1px solid var(--bssa-br);
}
.bssa-msg--success { background: rgba(79, 139, 255, 0.08); border-color: rgba(79, 139, 255, 0.35); }
.bssa-msg--error, .bssa-msg--danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.bssa-msg--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.bssa-msg--info, .bssa-msg--debug { background: rgba(79, 139, 255, 0.06); }

/* ========== Hero ========== */
.bssa-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: clamp(2.75rem, 6vw, 5rem) var(--sp) clamp(3rem, 7vw, 5.25rem);
}
.bssa-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(31, 98, 255, 0.82) 100%),
    url('../assets/public-hero-banner.png') center / cover no-repeat;
}
.bssa-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 120% 85% at 15% -10%, rgba(79, 139, 255, 0.35), transparent 55%);
  pointer-events: none;
}
.bssa-hero__inner { position: relative; z-index: 2; max-width: 72rem; margin: 0 auto; }

.bssa-breadcrumbs__list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  font-size: 0.875rem;
  opacity: 0.92;
}
.bssa-breadcrumbs a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bssa-breadcrumbs a:hover { opacity: 1; }

.bssa-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.bssa-hero__lead { max-width: 40rem; margin: 0 0 1.65rem; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.65; opacity: 0.95; }
.bssa-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.bssa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.bssa-btn--solid { background: #fff; color: var(--bssa-pd); border-color: #fff; box-shadow: 0 4px 22px rgba(0, 0, 0, 0.14); }
.bssa-btn--solid:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(79, 139, 255, 0.42); }

.bssa-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.bssa-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }

.bssa-btn--outline { background: #fff; color: var(--bssa-pd); border: 2px solid var(--bssa-p); border-radius: 999px; }
.bssa-btn--outline:hover { background: rgba(79, 139, 255, 0.08); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(79, 139, 255, 0.18); }

.bssa-icon { flex-shrink: 0; }

/* ========== Sections / cards ========== */
.bssa-section { padding: clamp(2rem, 5vw, 3.5rem) var(--sp); }
.bssa-section--flush {
  padding-top: clamp(1.5rem, 4vw, 2.75rem);
  padding-bottom: clamp(1rem, 3vw, 1.75rem);
}
.bssa-container { max-width: 72rem; margin-left: auto; margin-right: auto; }

.bssa-cards-row {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .bssa-cards-row { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .bssa-cards-row { grid-template-columns: repeat(4, 1fr); }
}

.bssa-info-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.3rem 1.35rem 1.45rem;
  border: 1px solid var(--bssa-br);
  box-shadow: var(--bssa-sh);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bssa-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bssa-sh2);
}

.bssa-info-card__badge {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.95rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bssa-pd);
  background: linear-gradient(135deg, rgba(79, 139, 255, 0.16), rgba(31, 98, 255, 0.1));
}

.bssa-info-card__title {
  margin: 0 0 0.6rem;
  font-size: 1.06rem;
  font-weight: 700;
}

.bssa-info-card__body {
  flex: 1;
  font-size: 0.935rem;
  line-height: 1.54;
  color: var(--bssa-m);
}
.bssa-info-card__strong { display: block; font-weight: 650; color: var(--bssa-t); margin-bottom: 0.35rem; }
.bssa-info-card__text--sub,
.bssa-info-card__text { display: block; margin-top: 0.3rem; }
.bssa-phone,
.bssa-email {
  font-weight: 600;
  color: var(--bssa-pd);
  word-break: break-word;
}

.bssa-info-card__link {
  margin-top: 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bssa-pd);
  text-decoration: none;
}
.bssa-info-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }

.bssa-contact-main-grid { padding-top: 0; }
.bssa-two-col {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.5rem);
}
@media (min-width: 960px) {
  .bssa-two-col {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.92fr);
  }
}

.bssa-panel {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border: 1px solid var(--bssa-br);
  box-shadow: var(--bssa-sh);
}
.bssa-panel__title { margin: 0 0 0.45rem; font-size: 1.4rem; font-weight: 700; }
.bssa-panel__intro { margin: 0 0 1.35rem; color: var(--bssa-m); line-height: 1.55; }
.bssa-form-errors {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.9rem;
}
.bssa-form { display: flex; flex-direction: column; gap: 1rem; }
.bssa-field-grid { display: grid; gap: 1rem; }
@media (min-width: 520px) {
  .bssa-field-grid { grid-template-columns: 1fr 1fr; }
}
.bssa-field { display: flex; flex-direction: column; gap: 0.4rem; }
.bssa-label { font-weight: 600; font-size: 0.9rem; color: var(--bssa-t); }

.bssa-contact input.bssa-input,
.bssa-contact select.bssa-select,
.bssa-contact textarea.bssa-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.78rem 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font: 1rem 'Open Sans', system-ui, sans-serif;
  background: #fff;
  color: var(--bssa-t);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bssa-contact input.bssa-input:focus,
.bssa-contact select.bssa-select:focus,
.bssa-contact textarea.bssa-textarea:focus {
  outline: none;
  border-color: var(--bssa-p);
  box-shadow: 0 0 0 3px rgba(79, 139, 255, 0.22);
}
.bssa-field-error { margin: 0; font-size: 0.82rem; color: #b91c1c; }

.bssa-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.92rem 1.45rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--bssa-p), var(--bssa-pd));
  box-shadow: 0 10px 32px rgba(79, 139, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bssa-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(79, 139, 255, 0.45);
}

/* ---------- Aside support cards ---------- */
.bssa-aside-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bssa-mini-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--bssa-br);
  box-shadow: var(--bssa-sh);
}

.bssa-mini-card--support {
  border-color: rgba(79, 139, 255, 0.22);
}

.bssa-mini-card--response {
  background: linear-gradient(
    135deg,
    rgba(79, 139, 255, 0.07),
    rgba(31, 98, 255, 0.05)
  );
}

.bssa-mini-card__badge {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.55rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bssa-pd);
  background: rgba(79, 139, 255, 0.12);
}

.bssa-mini-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.bssa-mini-card__text {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--bssa-m);
}

.bssa-mini-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bssa-pd);
  word-break: break-word;
}

/* ---------- Map ---------- */
.bssa-section-title {
  margin: 0 auto 1.35rem;
  text-align: center;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 700;
}

.bssa-section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.bssa-section-lead {
  margin: 0.5rem auto 0;
  max-width: 40rem;
  color: var(--bssa-m);
  line-height: 1.55;
}

.bssa-map-row {
  display: grid;
  gap: 1.6rem;
}
@media (min-width: 900px) {
  .bssa-map-row {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.bssa-map-copy__org {
  margin: 0 0 0.45rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.bssa-map-copy__addr {
  margin: 0 0 0.85rem;
  color: var(--bssa-m);
  line-height: 1.55;
}

.bssa-map-copy__note {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--bssa-m);
}

.bssa-map-frame-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--bssa-br);
  box-shadow: var(--bssa-sh);
}

.bssa-map-iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.bssa-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--bssa-m);
  background: #e8ecf4;
}

/* ---------- FAQ ---------- */
.bssa-section--faq {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.25rem, 8vw, 6.25rem) var(--sp);
  border-top: 1px solid rgba(79, 139, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(79, 139, 255, 0.06), transparent 35%),
    linear-gradient(to bottom, #f8fafc, #eef4ff);
}

.bssa-section--faq .bssa-section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.bssa-section--faq .bssa-section-title {
  position: relative;
  margin-bottom: 1.05rem;
  color: #0f172a;
  font-size: clamp(2rem, 4.2vw, 2.625rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.bssa-section--faq .bssa-section-title::after {
  content: '';
  display: block;
  width: 74px;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bssa-p), var(--bssa-pd));
  box-shadow: 0 8px 22px rgba(79, 139, 255, 0.24);
}

.bssa-section--faq .bssa-section-lead {
  max-width: 43.75rem;
  color: #64748b;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
}

.bssa-faq {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.bssa-faq__item {
  position: relative;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(79, 139, 255, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease,
    background 0.28s ease;
}

.bssa-faq__item:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 139, 255, 0.18);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(79, 139, 255, 0.04);
}

.bssa-faq__item.is-open {
  border-color: rgba(79, 139, 255, 0.22);
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.11), 0 0 0 1px rgba(79, 139, 255, 0.08);
}

.bssa-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.625rem 1.875rem;
  border: none;
  background: transparent;
  font: inherit;
  font-size: clamp(1.12rem, 1.7vw, 1.32rem);
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
  transition:
    color 0.24s ease,
    background 0.24s ease;
}

.bssa-faq__trigger:hover,
.bssa-faq__trigger:focus-visible {
  color: var(--bssa-pd);
}

.bssa-faq__trigger:focus-visible {
  outline: 3px solid rgba(79, 139, 255, 0.25);
  outline-offset: -6px;
}

.bssa-faq__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(79, 139, 255, 0.1);
  color: var(--bssa-pd);
  box-shadow: inset 0 0 0 1px rgba(79, 139, 255, 0.08);
  position: relative;
  transition:
    background 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bssa-faq__icon::before,
.bssa-faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
}

.bssa-faq__icon::before {
  width: 14px;
  height: 2px;
  top: calc(50% - 1px);
  left: calc(50% - 7px);
}

.bssa-faq__icon::after {
  width: 2px;
  height: 14px;
  top: calc(50% - 7px);
  left: calc(50% - 1px);
}

.bssa-faq__trigger:hover .bssa-faq__icon,
.bssa-faq__trigger:focus-visible .bssa-faq__icon,
.bssa-faq__item.is-open .bssa-faq__icon {
  color: #fff;
  background: linear-gradient(135deg, var(--bssa-p), var(--bssa-pd));
  box-shadow: 0 12px 26px rgba(31, 98, 255, 0.26);
}

.bssa-faq__item.is-open .bssa-faq__icon {
  transform: rotate(45deg);
}

.bssa-faq__item.is-open .bssa-faq__icon::after {
  opacity: 1;
  transform: none;
}

.bssa-faq__panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition:
    max-height 0.42s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.28s ease,
    visibility 0s linear 0.42s;
  will-change: max-height;
}

.bssa-faq__panel.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    max-height 0.42s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.3s ease,
    visibility 0s linear 0s;
}

.bssa-faq__panel-inner {
  overflow: hidden;
  padding: 0 1.875rem 1.65rem;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.8;
}

.bssa-faq__panel-inner p:first-child {
  margin-top: 0.15rem;
}

.bssa-faq__panel-inner p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .bssa-faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bssa-section--faq {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .bssa-faq {
    gap: 1rem;
  }

  .bssa-faq__trigger {
    align-items: flex-start;
    padding: 1.25rem 1.25rem;
    font-size: 1.08rem;
  }

  .bssa-faq__icon {
    width: 38px;
    height: 38px;
  }

  .bssa-faq__panel-inner {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.96rem;
  }
}

/* ---------- Scroll reveal ---------- */
.bssa-contact [data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.bssa-contact [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
