/* ==============================
   HELP & CONTACT PAGE
============================== */

/* ---- Hero ---- */
.help-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.help-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
}

.help-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.12) 60%, transparent 100%);
}

.help-hero__content {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
}

.help-hero__title {
  color: var(--color-white);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

/* ---- Sticky sub-nav ---- */
.help-subnav {
  position: sticky;
  top: calc(var(--header-top-height) + var(--header-nav-height));
  z-index: calc(var(--z-sticky) - 1);
  background-color: #ebebeb;
  border-bottom: 1px solid #d8d8d8;
}

.help-subnav .container {
  overflow-x: auto;
  scrollbar-width: none;
}
.help-subnav .container::-webkit-scrollbar { display: none; }

.help-subnav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.help-subnav__link {
  display: block;
  padding: 0.875rem 1.25rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.help-subnav__link:hover {
  color: var(--color-primary);
}

.help-subnav__link--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ---- Overview / Solutionfinder ---- */
.help-overview {
  padding: var(--space-12) 0 var(--space-10);
}

.help-overview__layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-12);
  align-items: start;
  margin-bottom: var(--space-8);
}

.help-overview__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1.15;
}

.help-overview__desc {
  color: var(--color-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

/* ---- Solution tabs ---- */
.help-tabs {
  display: flex;
  border-bottom: 2px solid #d8d8d8;
  margin-bottom: var(--space-6);
}

.help-tab {
  padding: 0.875rem var(--space-8);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.help-tab:hover {
  color: var(--color-text);
}

.help-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ---- Tab panels ---- */
.help-tab-panel[hidden] { display: none; }

/* ---- Search bar ---- */
.help-search {
  display: flex;
  align-items: center;
  border: 1px solid #c8c8c8;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-6);
  background: var(--color-white);
}

.help-search__input {
  flex: 1;
  padding: 0.875rem var(--space-4);
  font-size: var(--font-size-base);
  border: none;
  outline: none;
  font-family: inherit;
  color: var(--color-text);
}

.help-search__input::placeholder {
  color: var(--color-text-muted);
}

.help-search__btn {
  padding: 0.875rem var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.help-search__btn:hover {
  color: var(--color-primary);
}

.help-search__btn svg {
  width: 20px;
  height: 20px;
}

/* ---- Category grid ---- */
.help-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.help-category {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid #d0d0d0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--color-white);
  text-align: left;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.help-category:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 126, 138, 0.12);
}

.help-category__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.help-category__icon svg {
  width: 100%;
  height: 100%;
}

.help-category__label {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

/* ---- Book appointment / Other request panels ---- */
.help-coming-soon {
  padding: var(--space-10) 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
}

/* ---- Generic help section ---- */
.help-section {
  padding: var(--space-12) 0;
  border-top: 1px solid #e8e8e8;
}

.help-section--gray {
  background-color: #f2f2f2;
}

.help-section__heading {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.help-section__subheading {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.help-section__label {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

/* Separator between subsections */
.help-subsection {
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid #e8e8e8;
}

/* ---- 3-column service grid ---- */
.help-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.help-service__icon {
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.help-service__icon svg {
  width: 100%;
  height: 100%;
}

.help-service__title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.help-service__text {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.help-service__link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.help-service__link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.help-service__qr {
  margin-top: var(--space-3);
  width: 80px;
  height: 80px;
}

.help-service__qr-placeholder {
  margin-top: var(--space-3);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  border: 1px dashed #aaa;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  color: #999;
  font-style: italic;
}

/* ---- 2-column phone grid ---- */
.help-phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8) var(--space-16);
  margin-bottom: var(--space-10);
}

.help-phone__icon {
  width: 28px;
  height: 28px;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.help-phone__icon svg {
  width: 100%;
  height: 100%;
}

.help-phone__title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.help-phone__text {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.help-phone__link {
  color: var(--color-primary);
  text-decoration: none;
}

.help-phone__link:hover {
  text-decoration: underline;
}

/* ---- App cards ---- */
.help-app-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 640px;
}

.help-app-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
}

.help-app-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.help-app-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 40%, transparent 100%);
}

.help-app-card__title {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  color: var(--color-white);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.help-app-card__desc {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.help-app-card__link {
  display: inline-block;
  margin-top: var(--space-2);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.help-app-card__link:hover { text-decoration: underline; }

/* ---- Email section ---- */
.help-email {
  margin-bottom: var(--space-10);
}

.help-email__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.help-email__link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-base);
}

.help-email__link:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .help-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .help-hero { min-height: 260px; }
  .help-hero__bg { background-position: 20% center; }
  .help-hero__title { font-size: var(--font-size-2xl); }
  .help-subnav { display: none; }

  .help-overview__layout {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .help-services {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .help-phones {
    grid-template-columns: 1fr;
  }

  .help-app-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .help-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .help-tabs::-webkit-scrollbar { display: none; }
}

@media (max-width: 640px) {
  .help-categories {
    grid-template-columns: 1fr;
  }

  .help-subnav {
    top: var(--header-mobile-height);
  }
}
