/* ============================================================
   WALK-IN TUB COST CALCULATOR — PAGE TEMPLATE STYLES
   Prefix: wittp- (Walk-In Tub Template Page)
   Color system: Ocean blue / teal — #0e4f7a / #0891b2 / #e0f2fe
   Layout: Completely different from all other tool pages.
   No similarity to matp- / hmtp- / hsctp- / wrctp- styles.
   ============================================================ */

/* ── CSS Custom Properties ───────────────────────────────── */
.wittp-page {
    --wittp-navy:        #0e4f7a;
    --wittp-teal:        #0891b2;
    --wittp-teal-light:  #e0f2fe;
    --wittp-teal-mid:    #bae6fd;
    --wittp-amber:       #F4A835;
    --wittp-amber-dark:  #c47d1a;
    --wittp-text:        #0f172a;
    --wittp-muted:       #475569;
    --wittp-border:      #cbd5e1;
    --wittp-white:       #ffffff;
    --wittp-offwhite:    #f8fafc;
    --wittp-font:        'Inter', -apple-system, sans-serif;
    --wittp-font-h:      'Lora', Georgia, serif;
}

/* ── HERO — full-width ocean wave pattern ─────────────────── */
.wittp-hero-wrap {
    background: var(--wittp-navy);
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* Layered wave effect using pseudo-elements + SVG background */
.wittp-hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 1;
}

.wittp-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
    padding: 60px 0 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.wittp-hero-left {}

.wittp-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.wittp-hero-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--wittp-teal);
    background: rgba(8,145,178,0.15);
    border: 1px solid rgba(8,145,178,0.3);
    padding: 5px 14px;
    border-radius: 3px;
}

.wittp-hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wittp-teal);
    flex-shrink: 0;
}

.wittp-hero-h1 {
    font-family: var(--wittp-font-h) !important;
    font-size: clamp(28px, 4.5vw, 46px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    margin: 0 0 20px !important;
    letter-spacing: -0.02em !important;
}

.wittp-hero-h1 em {
    font-style: normal;
    color: var(--wittp-amber);
}

.wittp-hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
    margin: 0 0 32px;
    max-width: 560px;
}

.wittp-hero-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wittp-hero-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.88);
    font-weight: 500;
    margin: 0;
    padding: 0;
}

.wittp-hero-check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--wittp-teal);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
}

/* Hero right panel */
.wittp-hero-panel {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(4px);
}

.wittp-panel-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--wittp-teal);
    margin-bottom: 20px;
    display: block;
}

.wittp-panel-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.wittp-panel-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

.wittp-panel-stat-num {
    font-family: var(--wittp-font-h);
    font-size: 26px;
    font-weight: 700;
    color: var(--wittp-amber);
    line-height: 1;
    min-width: 70px;
    flex-shrink: 0;
}

.wittp-panel-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wittp-panel-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.wittp-panel-stat-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
}

.wittp-panel-cta {
    display: block;
    background: var(--wittp-amber);
    color: #ffffff !important;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.wittp-panel-cta:hover {
    background: var(--wittp-amber-dark);
    color: #ffffff !important;
}

/* ── Main content wrapper ─────────────────────────────────── */
.wittp-main {
    background: var(--wittp-white);
}

.wittp-container {
    max-width: 860px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── Opening editorial section (before the tool) ─────────── */
.wittp-editorial {
    padding: 64px 0 0;
}

.wittp-ed-kicker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wittp-teal);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wittp-ed-kicker::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wittp-teal-mid);
    max-width: 60px;
}

.wittp-ed-h2 {
    font-family: var(--wittp-font-h) !important;
    font-size: clamp(22px, 3.5vw, 30px) !important;
    font-weight: 700 !important;
    color: var(--wittp-navy) !important;
    line-height: 1.25 !important;
    margin: 0 0 24px !important;
    letter-spacing: -0.01em !important;
}

.wittp-ed-p {
    font-size: 16px;
    color: var(--wittp-muted);
    line-height: 1.9;
    margin: 0 0 20px;
    max-width: 760px;
}

.wittp-ed-p strong { color: var(--wittp-text); }

/* ── Pull quote ───────────────────────────────────────────── */
.wittp-pullquote {
    border-left: 4px solid var(--wittp-teal);
    margin: 32px 0;
    padding: 20px 28px;
    background: var(--wittp-teal-light);
    border-radius: 0 10px 10px 0;
}

.wittp-pullquote p {
    font-family: var(--wittp-font-h);
    font-size: 18px;
    font-style: italic;
    color: var(--wittp-navy);
    line-height: 1.65;
    margin: 0;
}

/* ── Tool embed ───────────────────────────────────────────── */
.wittp-tool-wrap {
    background: var(--wittp-offwhite);
    border-top: 3px solid var(--wittp-teal);
    border-bottom: 3px solid var(--wittp-teal);
    padding: 48px 0;
    margin: 40px 0 0;
}

.wittp-tool-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.wittp-tool-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--wittp-navy);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.wittp-tool-header-text {}

.wittp-tool-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--wittp-teal);
    display: block;
    margin-bottom: 4px;
}

.wittp-tool-header-h2 {
    font-family: var(--wittp-font-h) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--wittp-navy) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* ── Content sections after tool ─────────────────────────── */
.wittp-section {
    padding: 60px 0;
    border-bottom: 1px solid #e2e8f0;
}

.wittp-section:last-child { border-bottom: none; }

/* ── Section header pattern: number + title ──────────────── */
.wittp-section-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.wittp-section-num {
    font-family: var(--wittp-font-h);
    font-size: 56px;
    font-weight: 700;
    color: var(--wittp-teal-mid);
    line-height: 0.85;
    flex-shrink: 0;
    min-width: 52px;
    margin-top: 6px;
}

.wittp-section-title-wrap {}

.wittp-section-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--wittp-teal);
    margin-bottom: 6px;
}

.wittp-section-h2 {
    font-family: var(--wittp-font-h) !important;
    font-size: clamp(20px, 3vw, 26px) !important;
    font-weight: 700 !important;
    color: var(--wittp-navy) !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
}

.wittp-body-p {
    font-size: 15px;
    color: var(--wittp-muted);
    line-height: 1.9;
    margin: 0 0 18px;
    max-width: 740px;
}

.wittp-body-p strong { color: var(--wittp-text); }
.wittp-body-p:last-child { margin-bottom: 0; }

/* ── Tub type cards — horizontal layout ──────────────────── */
.wittp-tub-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.wittp-tub-card {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    border: 1.5px solid var(--wittp-border);
    border-radius: 12px;
    background: var(--wittp-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wittp-tub-card:hover {
    border-color: var(--wittp-teal);
    box-shadow: 0 4px 20px rgba(8,145,178,0.1);
}

.wittp-tub-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.wittp-tub-emoji {
    font-size: 36px;
    line-height: 1;
}

.wittp-tub-tier {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wittp-teal);
    background: var(--wittp-teal-light);
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.wittp-tub-card-mid {}

.wittp-tub-card-mid h3 {
    font-family: var(--wittp-font-h) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--wittp-navy) !important;
    margin: 0 0 5px !important;
    line-height: 1.3 !important;
}

.wittp-tub-card-mid p {
    font-size: 13px !important;
    color: var(--wittp-muted) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

.wittp-tub-card-right {
    text-align: right;
    flex-shrink: 0;
    min-width: 120px;
}

.wittp-tub-price {
    font-family: var(--wittp-font-h);
    font-size: 17px;
    font-weight: 700;
    color: var(--wittp-navy);
    display: block;
    margin-bottom: 3px;
}

.wittp-tub-price-note {
    font-size: 11px;
    color: var(--wittp-muted);
}

/* ── What to look for — checklist style ──────────────────── */
.wittp-checklist-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.wittp-check-block {
    padding: 20px 22px;
    border-radius: 12px;
    border: 1.5px solid var(--wittp-border);
    background: var(--wittp-white);
    position: relative;
    overflow: hidden;
}

.wittp-check-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--wittp-teal);
}

.wittp-check-block-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.wittp-check-block h3 {
    font-family: var(--wittp-font-h) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--wittp-navy) !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
}

.wittp-check-block p {
    font-size: 13px !important;
    color: var(--wittp-muted) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* ── Cost breakdown — timeline style ─────────────────────── */
.wittp-cost-timeline {
    position: relative;
    padding-left: 32px;
    margin-bottom: 28px;
}

.wittp-cost-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--wittp-teal), var(--wittp-teal-mid));
}

.wittp-cost-item {
    position: relative;
    padding: 0 0 28px 24px;
}

.wittp-cost-item:last-child { padding-bottom: 0; }

.wittp-cost-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--wittp-teal);
    border: 3px solid var(--wittp-white);
    box-shadow: 0 0 0 2px var(--wittp-teal);
}

.wittp-cost-item h3 {
    font-family: var(--wittp-font-h) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--wittp-navy) !important;
    margin: 0 0 4px !important;
    line-height: 1.3 !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wittp-cost-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--wittp-teal);
    background: var(--wittp-teal-light);
    padding: 2px 10px;
    border-radius: 4px;
}

.wittp-cost-item p {
    font-size: 14px !important;
    color: var(--wittp-muted) !important;
    line-height: 1.75 !important;
    margin: 0 !important;
}

/* ── Dark stats band ──────────────────────────────────────── */
.wittp-stats-band {
    background: linear-gradient(160deg, #0e4f7a 0%, #083756 100%);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.wittp-stats-band::after {
    content: '🛁';
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 200px;
    opacity: 0.04;
    pointer-events: none;
}

.wittp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.wittp-stat-cell {
    padding: 28px 22px;
    text-align: center;
    background: rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.08);
}

.wittp-stat-cell:last-child { border-right: none; }

.wittp-stat-num {
    font-family: var(--wittp-font-h);
    font-size: 36px;
    font-weight: 700;
    color: var(--wittp-amber);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

.wittp-stat-lbl {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    line-height: 1.5;
}

.wittp-stats-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wittp-teal);
    margin-bottom: 28px;
    display: block;
}

.wittp-stats-heading {
    font-family: var(--wittp-font-h) !important;
    font-size: clamp(20px, 3vw, 26px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 32px !important;
    line-height: 1.3 !important;
}

.wittp-stats-body {
    font-size: 15px;
    color: rgba(255,255,255,0.72);
    line-height: 1.85;
    margin: 24px 0 0;
    max-width: 700px;
}

/* ── Assistance programs — 3-column ──────────────────────── */
.wittp-assist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.wittp-assist-card {
    border-radius: 12px;
    padding: 20px;
    border: 1.5px solid var(--wittp-border);
    background: var(--wittp-white);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s;
}

.wittp-assist-card:hover { border-color: var(--wittp-teal); }

.wittp-assist-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 9px;
    border-radius: 3px;
    width: fit-content;
}

.wittp-badge-state    { background:#F3E8FF; color:#7c3aed; }
.wittp-badge-insurance{ background:#DCFCE7; color:#15803d; }
.wittp-badge-veterans { background:#DBEAFE; color:#1d4ed8; }
.wittp-badge-tax      { background:#CCFBF1; color:#0f766e; }
.wittp-badge-federal  { background:#FEF3C7; color:#92400e; }
.wittp-badge-local    { background:#F1F5F9; color:#475569; }

.wittp-assist-card h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--wittp-navy) !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}

.wittp-assist-card p {
    font-size: 12px !important;
    color: var(--wittp-muted) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    flex: 1;
}

.wittp-assist-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--wittp-teal) !important;
    text-decoration: underline !important;
}

/* ── FAQ — two column layout ──────────────────────────────── */
.wittp-faq-grid {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--wittp-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.wittp-faq-item { border-bottom: 1px solid var(--wittp-border); }
.wittp-faq-item:last-child { border-bottom: none; }

.wittp-faq-q {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 24px;
    background: var(--wittp-white);
    border: none;
    cursor: pointer;
    font-family: var(--wittp-font-h);
    font-size: 16px;
    font-weight: 700;
    color: var(--wittp-navy);
    text-align: left;
    line-height: 1.4;
    transition: background 0.18s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.wittp-faq-q:hover { background: var(--wittp-offwhite); }
.wittp-faq-q[aria-expanded="true"] { background: var(--wittp-teal-light); color: var(--wittp-navy); }
.wittp-faq-q:focus-visible { outline: 2px solid var(--wittp-teal); outline-offset: -2px; }

.wittp-faq-icon { flex-shrink: 0; color: var(--wittp-teal); display: flex; align-items: center; }

.wittp-faq-a {
    padding: 0 24px 20px;
    background: var(--wittp-offwhite);
    border-top: 1px solid var(--wittp-border);
}

.wittp-faq-a[hidden] { display: none; }

.wittp-faq-a p {
    font-size: 15px !important;
    color: var(--wittp-muted) !important;
    line-height: 1.85 !important;
    margin: 18px 0 0 !important;
}

.wittp-faq-cta {
    font-size: 15px;
    color: var(--wittp-muted);
    text-align: center;
    padding: 4px 0;
}

.wittp-faq-cta a { color: var(--wittp-teal); font-weight: 600; text-decoration: underline; }

/* ── Bottom CTA — teal gradient, navy text ────────────────── */
.wittp-cta-section {
    background: linear-gradient(135deg, var(--wittp-teal-light) 0%, #e0f2fe 100%);
    border: 2px solid var(--wittp-teal-mid);
    border-radius: 16px;
    padding: 52px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.wittp-cta-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(8,145,178,0.08);
    pointer-events: none;
}

.wittp-cta-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wittp-teal);
    margin-bottom: 14px;
    display: block;
}

.wittp-cta-h2 {
    font-family: var(--wittp-font-h) !important;
    font-size: clamp(22px, 3.5vw, 30px) !important;
    font-weight: 700 !important;
    color: var(--wittp-navy) !important;
    margin: 0 0 12px !important;
    line-height: 1.25 !important;
}

.wittp-cta-sub {
    font-size: 16px;
    color: var(--wittp-muted);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.wittp-cta-btn {
    display: inline-block;
    background: var(--wittp-navy);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
}

.wittp-cta-btn:hover {
    background: #0c3d5e;
    color: #ffffff !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.wittp-cta-note {
    font-size: 13px;
    color: var(--wittp-muted);
    margin: 16px 0 0;
    display: block;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .wittp-hero-inner { grid-template-columns: 1fr; }
    .wittp-hero-panel { display: none; }
}

@media (max-width: 768px) {
    .wittp-checklist-blocks { grid-template-columns: 1fr; }
    .wittp-stats-row { grid-template-columns: 1fr 1fr; }
    .wittp-stat-cell:nth-child(2) { border-right: none; }
    .wittp-assist-grid { grid-template-columns: 1fr 1fr; }
    .wittp-cta-section { padding: 36px 24px; }
    .wittp-hero-inner { padding: 40px 20px 60px; }
}

@media (max-width: 560px) {
    .wittp-tub-card { grid-template-columns: 1fr; }
    .wittp-tub-card-left { flex-direction: row; align-items: center; text-align: left; }
    .wittp-tub-card-right { text-align: left; }
    .wittp-stats-row { grid-template-columns: 1fr; }
    .wittp-stat-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .wittp-assist-grid { grid-template-columns: 1fr; }
    .wittp-section { padding: 40px 0; }
}
