/* ============================================================
   PRESTIGE HYPERBARIC — Find a Tech + /account portal
   Matches the shared design tokens defined in /style.css.
   ============================================================ */

/* ---- Shared hero (find-a-tech + account + verified) ---- */
.fat-hero, .acct-hero {
  padding: 140px var(--space-6) var(--space-12);
  text-align: center;
  background: radial-gradient(ellipse at 60% 0%, rgba(123,31,162,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(240,149,48,0.10) 0%, transparent 50%);
}
.fat-hero__eyebrow, .acct-hero__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-4);
}
.fat-hero__title, .acct-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  line-height: 1.05;
}
.fat-hero__title span, .acct-hero__title span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fat-hero__subtitle, .acct-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-inline: auto;
  font-weight: 300;
  line-height: 1.65;
}

/* ---- Section wrapper ---- */
.fat-section, .acct-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-20);
}

/* ---- Cards ---- */
.acct-card {
  background: var(--grad-card);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.acct-card + .acct-card { margin-top: var(--space-6); }
.acct-card h2, .acct-card h3 {
  font-family: var(--font-display);
  margin: 0 0 var(--space-3);
}

/* ---- Forms shared with contact.html style ---- */
.acct-field { display: block; margin-bottom: var(--space-4); }
.acct-field label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  font-weight: 500;
}
.acct-field input[type=email],
.acct-field input[type=tel],
.acct-field input[type=text],
.acct-field textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md, 8px);
  color: var(--color-text);
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: var(--text-base);
}
.acct-field input:focus,
.acct-field textarea:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(240,149,48,0.15);
}
.acct-field__help {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: 0.35rem;
}

/* ---- Callouts ---- */
.acct-callout {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md, 8px);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text);
}
.acct-callout--info {
  background: rgba(126, 207, 239, 0.08);
  border: 1px solid rgba(126, 207, 239, 0.25);
}
.acct-callout--warn {
  background: rgba(240, 149, 48, 0.10);
  border: 1px solid rgba(240, 149, 48, 0.30);
}
.acct-callout--error {
  background: rgba(192, 64, 112, 0.10);
  border: 1px solid rgba(192, 64, 112, 0.35);
}
.acct-callout--ok {
  background: rgba(123, 31, 162, 0.10);
  border: 1px solid rgba(123, 31, 162, 0.35);
}

/* ---- Portal layout: sidebar + content ---- */
/* [hidden] must beat display:grid — the HTML hidden attribute is what the
   portal controller uses to gate the whole account view. */
.acct-portal[hidden] { display: none !important; }
.acct-portal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-8);
}
@media (max-width: 800px) {
  .acct-portal { grid-template-columns: 1fr; }
}
.acct-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  align-self: start;
  position: sticky;
  top: 96px;
}
.acct-sidebar__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.acct-sidebar__nav button,
.acct-sidebar__nav a {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--color-text-muted);
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.acct-sidebar__nav button:hover,
.acct-sidebar__nav a:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.acct-sidebar__nav button.is-active {
  background: rgba(240, 149, 48, 0.12);
  color: var(--brand-gold);
}
.acct-sidebar__logout {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-soft);
}
.acct-panel { display: none; }
.acct-panel.is-active { display: block; }

/* ---- Find-a-tech search ---- */
.fat-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: end;
}
@media (max-width: 640px) {
  .fat-search { grid-template-columns: 1fr; }
}
.fat-quota {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---- Tile grid ---- */
.fat-tiles {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}
.fat-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.fat-tile:hover {
  border-color: rgba(240, 149, 48, 0.35);
  transform: translateY(-2px);
}
.fat-tile__icon {
  width: 56px;
  height: 56px;
  color: var(--brand-gold);
  margin-bottom: 0.25rem;
}
.fat-tile__city {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin: 0;
  line-height: 1.15;
}
.fat-tile__distance {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}
.fat-tile__btn {
  margin-top: 0.6rem;
  width: 100%;
}

/* ---- Modal ---- */
.acct-modal {
  position: fixed; inset: 0;
  background: rgba(6, 4, 10, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: var(--space-4);
}
/* Match the same [hidden] guard everywhere the account styles set an
   explicit display value that would otherwise beat the attribute. */
.fat-search[hidden], .fat-tiles[hidden] { display: none !important; }
.acct-modal.is-open { display: flex; }
.acct-modal__body {
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 520px;
  width: 100%;
}
.acct-modal__close {
  float: right;
  background: transparent;
  border: 0;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ---- Profile fields row ---- */
.acct-kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-3);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-soft);
  align-items: center;
}
.acct-kv:last-child { border-bottom: 0; }
.acct-kv__k {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.acct-kv__v {
  color: var(--color-text);
  font-size: var(--text-base);
  overflow-wrap: anywhere;
}
.acct-copy {
  background: transparent;
  border: 1px solid var(--color-border-soft);
  color: var(--brand-gold);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-md, 8px);
  font-size: var(--text-xs);
  margin-left: 0.5rem;
  cursor: pointer;
}
.acct-copy:hover { border-color: var(--brand-gold); }

/* ---- Utility btn helper (site already has .btn/.btn--gold) ---- */
.btn--block { display: block; width: 100%; text-align: center; }

/* ---- Customer portal tabs (Jobs / Invoices / Orders / Shipments / Warranty / Messages) ---- */

.acct-tab-body { min-height: 4rem; }

.acct-spinner {
  padding: var(--space-6) 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.acct-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acct-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border-soft);
}
.acct-row:first-child { border-top: none; }

.acct-row__main { flex: 1 1 auto; min-width: 0; }
.acct-row__aside {
  flex: 0 0 auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.acct-row__title {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.acct-row__meta {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: 0.25rem;
}

.acct-row__snippet {
  color: var(--color-text);
  font-size: var(--text-sm);
  margin-top: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.acct-row__amount {
  font-weight: 700;
  font-size: var(--text-base);
}

/* ---- Status badges ---- */
.acct-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}
.acct-badge--ok {
  background: rgba(56, 161, 105, 0.15);
  border-color: rgba(56, 161, 105, 0.45);
  color: #7de3a4;
}
.acct-badge--info {
  background: rgba(126, 207, 239, 0.15);
  border-color: rgba(126, 207, 239, 0.45);
  color: #a4dbf3;
}
.acct-badge--err {
  background: rgba(220, 76, 100, 0.15);
  border-color: rgba(220, 76, 100, 0.45);
  color: #f2a4b0;
}
.acct-badge--muted {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-border-soft);
  color: var(--color-text-muted);
}

/* ---- PDF link ---- */
.acct-pdf-link {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md, 8px);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
}
.acct-pdf-link:hover { border-color: var(--brand-gold); color: var(--brand-gold); }

/* ---- Sent chip (Messages send form) ---- */
.acct-chip {
  display: inline-block;
  margin-left: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
}
.acct-chip--ok {
  background: rgba(56, 161, 105, 0.15);
  border: 1px solid rgba(56, 161, 105, 0.45);
  color: #7de3a4;
}
