/* ─────────────────────────────────────────
   AssetAlign v2.0 — Global Site Styles
   (replaces Soft Design System Pro overrides)
───────────────────────────────────────── */

/* Remove open-iconic import (no longer needed) */

/* Base resets on top of app.css tokens */
a { color: var(--navy3); text-decoration: none; }
a:hover { color: var(--gold3); }

/* ─── PAGE LAYOUT ─── */
.page-content {
  padding-top: 70px; /* height of fixed nav */
  min-height: calc(100vh - 70px);
  overflow-x: hidden;
}

/* ─── SECTION SPACING ─── */
.section {
  padding: 80px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* ─── PILL BADGES ─── */
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}
.pill-gold  { background: #faeeda; color: #854f0b; }
.pill-navy  { background: rgba(13,31,51,0.08); color: var(--navy); }
.pill-green { background: #eaf3de; color: #27500a; }
.pill-blue  { background: #e6f1fb; color: #0c447c; }
.pill-grey  { background: #f0f0f0; color: #666; }

/* ─── TRUST CHECKMARK ─── */
.trust-check {
  display: inline-flex;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--navy);
  margin-right: 6px;
  flex-shrink: 0;
}

.trust-check::after { content: "✓"; font-weight: 700; }

/* ─── PROGRESS INDICATORS (legacy compatibility) ─── */
.aa-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ─── FORMS ─── */
.v2-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.v2-input:focus {
  outline: none;
  border-color: var(--navy3);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.08);
}

/* ─── SPINNER ─── */
.v2-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* ─── BOOTSTRAP OVERRIDES (keep Bootstrap working with v2 palette) ─── */
.btn { text-transform: none !important; }

.btn-primary {
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
  color: var(--white) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  border-radius: 8px !important;
}

.btn-primary:hover {
  background-color: var(--navy2) !important;
  border-color: var(--navy2) !important;
}

.btn-secondary {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--navy) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  border-radius: 8px !important;
}

.btn-secondary:hover {
  background-color: var(--gold2) !important;
  border-color: var(--gold2) !important;
  color: var(--navy) !important;
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
}

/* ─── ALERTS ─── */
.alert-success {
  background-color: #eaf3de !important;
  background-image: none !important;
  color: #27500a !important;
  border-color: #c3e4a0 !important;
}

/* ─── DROPDOWN ─── */
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px;
}

.dropdown-item {
  border-radius: 6px;
  font-size: 14px;
  padding: 8px 12px;
  color: var(--text);
}

.dropdown-item:hover {
  background: var(--light);
  color: var(--navy);
}

/* ─── SurveyJS overrides (preserve functionality) ─── */
.sd-element--with-frame { padding-left: 0 !important; }
.sd-body { padding-left: 0 !important; }
.sd-panel__content { padding-top: 0 !important; }
.sd-panel__content > div > div > div { padding-left: 0; padding-right: 0; }

/* ─── Shared page hero (service pages, About, Contact, etc.) ─── */
.pg-hero {
    background: var(--navy);
    padding: 60px 60px 48px;
}

.pg-hero-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.pg-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 700;
    color: var(--white);
    margin: 12px 0 20px;
    letter-spacing: -0.02em;
}

.pg-hero p { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.8; }

.pg-hero-callout {
    margin-top: 20px;
    background: rgba(245,166,35,0.12);
    border: 1px solid rgba(245,166,35,0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.pg-hero-callout i { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ─── Service reward banner ─── */
.svc-reward-banner {
    background: var(--gold-bg);
    border: 1px solid rgba(245,166,35,0.3);
    border-left: 4px solid var(--gold);
    padding: 16px 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin: 0 0 8px;
}

.svc-reward-banner i { font-size: 20px; color: var(--gold3); flex-shrink: 0; margin-top: 2px; }

/* ─── Service page section headings ─── */
.svc-section-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 0;
}

/* ─── Service page inline error ─── */
.svc-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #b91c1c;
    margin-bottom: 16px;
}

/* ─── Responsive padding ─── */
@media (max-width: 1024px) {
  .section { padding: 60px 40px; }
  .pg-hero { padding: 48px 40px 40px; }
}

@media (max-width: 768px) {
  .section { padding: 48px 24px; }
  .page-content { padding-top: 70px; }
  .pg-hero { padding: 40px 24px 32px; }
}

/* compact variant for utility/interior pages */
.pg-hero-sm {
    padding: 48px 60px 40px;
}

@media (max-width: 1024px) {
    .pg-hero-sm { padding: 40px 40px 32px; }
}

@media (max-width: 768px) {
    .pg-hero-sm { padding: 36px 24px 28px; }
}

/* pg-hero subtitle (used in service/interior pages) */
.pg-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin: 0;
}

/* ─── Shared admin tool table ─── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead tr {
    background: var(--navy);
    color: #fff;
}

.admin-table thead th {
    padding: 0.65rem 0.9rem;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--border);
}

.admin-table tbody td {
    padding: 0.7rem 0.9rem;
}

/* ─── Legal document pages (Disclosures, Privacy Policy, ToS) ─── */
.legal-doc {
    max-width: 800px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

.legal-section-title {
    font-family: var(--font-serif);
    color: var(--navy);
    font-size: 1.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.25rem;
}

.legal-heading {
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

.legal-doc p {
    margin-bottom: 0.9rem;
}

.legal-img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.legal-eyebrow-hero {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-footer-links {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

.legal-footer-links a {
    color: var(--navy3);
    text-decoration: none;
}

.legal-footer-links a:hover {
    color: var(--navy);
    text-decoration: underline;
}

/* ── How It Works / Marketing section layout ───────────────────── */
.hiw-section { padding: 80px 60px; background: var(--white); }
.hiw-steps { display: flex; flex-direction: column; }
.hiw-step { display: flex; gap: 20px; align-items: flex-start; }
.hiw-step-num {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: var(--navy); color: var(--white);
    font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
.hiw-step-content { padding-top: 0; }
.hiw-step-content h2 { font-size: 20px; font-weight: 600; color: var(--navy); margin-top: 0; margin-bottom: 6px; font-family: 'DM Sans', sans-serif; line-height: 1.3; }
.hiw-step-content p { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 540px; margin-bottom: 8px; }
.hiw-step-detail { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.hiw-connector { width: 1px; height: 16px; background: var(--border); margin: 4px 0 4px 19px; }
.hiw-diff-section { padding: 80px 60px; background: var(--cream); }
.hiw-diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hiw-diff-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; text-align: center; }
.hiw-diff-icon { width: 52px; height: 52px; background: var(--gold-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.hiw-diff-icon i { font-size: 22px; color: var(--gold3); }
.hiw-diff-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 8px; font-family: 'DM Sans', sans-serif; }
.hiw-diff-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.hiw-cta-wrap { text-align: center; margin-top: 56px; }
.hiw-cta-btn { font-size: 16px; padding: 14px 40px; }
.hiw-section-footer { text-align: center; margin-bottom: 48px; }

@media (max-width: 768px) {
    .hiw-section, .hiw-diff-section { padding: 56px 24px; }
    .hiw-diff-grid { grid-template-columns: 1fr 1fr; }
    .hiw-step { gap: 14px; }
    .hiw-step-num { width: 32px; height: 32px; font-size: 14px; }
    .hiw-connector { margin-left: 15px; }
    .hiw-step-content h2 { font-size: 17px; }
    .hiw-step-content p { max-width: 100%; }
    .hiw-diff-card { padding: 20px 16px; }
    .hiw-diff-icon { width: 44px; height: 44px; }
    .hiw-diff-icon i { font-size: 18px; }
    .hiw-cta-wrap { margin-top: 32px; }
    .hiw-cta-btn { font-size: 15px; padding: 12px 28px; }
    .hiw-section-footer { margin-bottom: 32px; }
}
@media (max-width: 480px) {
    .hiw-diff-grid { grid-template-columns: 1fr; }
    .hiw-step-num { width: 28px; height: 28px; font-size: 12px; }
    .hiw-connector { margin-left: 13px; }
    .dashboard-mockup { margin-top: 16px; box-shadow: 0 8px 24px rgba(13,31,51,0.14); }
    .dashboard-mockup-chrome { height: 32px; padding: 0 10px; gap: 5px; }
    .dbm-dot { width: 10px; height: 10px; }
    .dbm-urlbar { max-width: 140px; font-size: 10px; padding: 2px 10px; }
}

/* ── 2-column split layout for marketing hiw-section ── */
.hiw-split { display: grid; grid-template-columns: 7fr 3fr; gap: 48px; }
.hiw-split-right { display: flex; min-height: 280px; }
.hiw-split-right img { flex: 1; width: 100%; object-fit: cover; border-radius: 16px; box-shadow: 0 8px 32px rgba(13,31,51,0.12); }
@media (max-width: 900px) {
    .hiw-split { grid-template-columns: 1fr; }
    .hiw-split-right { display: none; }
}

/* ── Browser-chrome mockup for product screenshots ── */
.dashboard-mockup { border-radius: 12px; overflow: hidden; box-shadow: 0 24px 80px rgba(13,31,51,0.20); margin-top: 32px; }
.dashboard-mockup-chrome { background: #e2e4e7; height: 38px; display: flex; align-items: center; padding: 0 16px; gap: 7px; }
.dbm-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dbm-red    { background: #ff5f57; }
.dbm-yellow { background: #febc2e; }
.dbm-green  { background: #28c840; }
.dbm-urlbar { background: white; border-radius: 6px; font-size: 11px; color: #888; padding: 3px 14px; margin-left: 10px; flex: 1; max-width: 280px; white-space: nowrap; overflow: hidden; }
.dashboard-mockup img { width: 100%; display: block; }
