/* SWR Calculator - Public Styles
   ═══════════════════════════════════════════
   Story 2.1: Wizard Shell, State Management & Step 1
   BEM naming under .swr scope, mobile-first
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   1. CUSTOM PROPERTIES
   ═══════════════════════════════════════════ */
.swr {
    /* Colours */
    --swr-blue: #1F81C4;
    --swr-blue-dark: #186BA3;
    --swr-blue-deep: #115580;
    --swr-blue-pale: #E8F4FB;
    --swr-blue-wash: #F2F8FC;
    --swr-blue-glow: rgba(31,129,196,0.10);
    --swr-ink: #1E293B;
    --swr-slate: #475569;
    --swr-mist: #64748B;
    --swr-faint: #F1F5F9;
    --swr-border: #CBD5E1;
    --swr-border-hover: #94A3B8;
    --swr-white: #FFFFFF;
    --swr-sage: #16A34A;
    --swr-sage-pale: #DCFCE7;
    --swr-rose: #DC2626;
    --swr-coral: #E8563A;
    --swr-coral-dark: #D04E33;

    /* Typography */
    --swr-font-display: inherit;
    --swr-font-body: inherit;

    /* Design Tokens */
    --swr-radius: 12px;
    --swr-radius-lg: 16px;
    --swr-radius-sm: 8px;
    --swr-radius-xs: 6px;
    --swr-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    --swr-shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03);
    --swr-shadow-hover: 0 4px 16px rgba(0,0,0,0.08);
    --swr-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --swr-header-h: 72px;
    --swr-input-bg: #F8FAFC;
    --swr-rose-glow: rgba(220,38,38,0.08);
}

/* ═══════════════════════════════════════════
   2. BASE STYLES
   ═══════════════════════════════════════════ */
.swr {
    position: relative;
    font-family: var(--swr-font-body);
    color: var(--swr-ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.swr *,
.swr *::before,
.swr *::after {
    box-sizing: border-box;
}

.swr__announce {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.swr button {
    cursor: pointer;
    font-family: inherit;
}

.swr input,
.swr select,
.swr textarea {
    font-family: inherit;
    margin: 0;
}

/* Screen-reader only utility (scoped) */
.swr .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ═══════════════════════════════════════════
   3. GRAIN TEXTURE & DECORATIVE BLOBS
   ═══════════════════════════════════════════ */
.swr__grain {
    position: fixed;
    inset: 0;
    opacity: 0.025;
    pointer-events: none;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

.swr__blob {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.swr__blob--1 {
    width: 700px;
    height: 700px;
    top: -15%;
    right: -12%;
    background: radial-gradient(circle, rgba(31,129,196,0.03) 0%, transparent 65%);
}

.swr__blob--2 {
    width: 500px;
    height: 500px;
    bottom: -10%;
    left: -8%;
    background: radial-gradient(circle, rgba(22,163,74,0.02) 0%, transparent 65%);
}

/* ═══════════════════════════════════════════
   4. STICKY HEADER
   ═══════════════════════════════════════════ */
.swr__header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--swr-header-h);
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(203,213,225,0.7);
}

.swr__header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 100%;
}

/* Header three-column layout */
.swr__header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.swr__logo {
    display: block;
    height: 40px;
    width: 95px;
    min-width: 95px;
    min-height: 40px;
}

.swr__header-progress {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.swr__header-phone {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.swr__phone-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--swr-ink);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.swr__phone-link:hover {
    color: var(--swr-blue);
}

/* ═══════════════════════════════════════════
   5. PROGRESS INDICATOR
   ═══════════════════════════════════════════ */
.swr__progress {
    display: flex;
    align-items: center;
}

.swr__progress-step {
    display: flex;
    align-items: center;
    gap: 7px;
}

.swr__progress-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.72rem;
    transition: all 0.3s var(--swr-ease);
    flex-shrink: 0;
}

.swr__progress-dot--upcoming {
    background: transparent;
    color: var(--swr-mist);
    border: 2px solid var(--swr-border);
}

.swr__progress-dot--current {
    background: var(--swr-blue);
    color: white;
    border: 2px solid var(--swr-blue);
    box-shadow: 0 0 0 3px var(--swr-blue-glow);
}

.swr__progress-dot--complete {
    background: var(--swr-sage);
    color: white;
    border: 2px solid var(--swr-sage);
}

.swr__progress-dot--complete svg {
    width: 12px;
    height: 12px;
}

.swr__progress-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--swr-mist);
    transition: color 0.3s var(--swr-ease);
}

.swr__progress-label--current {
    color: var(--swr-blue);
    font-weight: 600;
}

.swr__progress-label--complete {
    color: var(--swr-sage);
}

.swr__progress-line {
    width: 24px;
    height: 2px;
    background: var(--swr-border);
    margin: 0 4px;
    transition: background 0.4s var(--swr-ease);
    flex-shrink: 0;
}

.swr__progress-line--complete {
    background: var(--swr-sage);
}

/* ═══════════════════════════════════════════
   6. MAIN & STEP PANELS
   ═══════════════════════════════════════════ */
.swr__main {
    position: relative;
    z-index: 1;
}

.swr__step {
    display: none;
    min-height: calc(100vh - var(--swr-header-h));
    padding: 48px 28px 64px;
}

.swr__step--active {
    display: flex;
    flex-direction: column;
}

.swr__step-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: swr-fade-up 0.4s var(--swr-ease) both;
}

/* ═══════════════════════════════════════════
   7. STEP TYPOGRAPHY
   ═══════════════════════════════════════════ */
.swr__step-header {
    margin-bottom: 28px;
}



.swr__title {
    font-family: var(--swr-font-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 1.55rem);
    color: var(--swr-ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.swr__subtitle {
    font-size: 0.88rem;
    color: var(--swr-slate);
    max-width: 480px;
}

.swr__privacy-note {
    font-size: 0.78rem;
    color: var(--swr-mist);
    text-align: center;
    margin-top: 24px;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════
   8. STEP 1: CUSTOMER TYPE CARDS
   ═══════════════════════════════════════════ */
.swr__type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 600px;
}

.swr__type-card {
    border: 2px solid var(--swr-border);
    border-radius: var(--swr-radius);
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.3s var(--swr-ease);
    background: var(--swr-white);
    text-align: center;
    position: relative;
}

.swr__type-card:hover {
    border-color: var(--swr-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--swr-shadow-hover);
}

.swr__type-card--selected {
    border-color: var(--swr-blue);
    background: var(--swr-blue-pale);
    box-shadow: 0 0 0 3px var(--swr-blue-glow);
}

.swr__type-card--selected:hover {
    transform: translateY(-2px);
}

.swr__type-card:focus {
    outline: none;
}

.swr__type-card:focus-visible {
    outline: none;
    border-color: var(--swr-blue);
    box-shadow: 0 0 0 3px var(--swr-blue-glow);
}

/* Selection checkmark badge */
.swr__type-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: var(--swr-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s var(--swr-ease);
}

.swr__type-check svg {
    width: 12px;
    height: 12px;
    color: #fff;
}

.swr__type-card--selected .swr__type-check {
    opacity: 1;
    transform: scale(1);
}

/* Icon container */
.swr__type-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all 0.3s;
    background: #EFF6FF;
    color: var(--swr-blue);
}

.swr__type-icon svg {
    width: 28px;
    height: 28px;
}

.swr__type-card--selected .swr__type-icon {
    background: var(--swr-blue);
    color: #fff;
}

/* Type name */
.swr__type-name {
    font-family: var(--swr-font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--swr-ink);
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   8a. STEP 2: STORAGE TYPE TABS
   ═══════════════════════════════════════════ */
.swr__tabs-wrap {
    margin-bottom: 28px;
}

.swr__tabs-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--swr-slate);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.swr__tabs {
    display: flex;
    gap: 12px;
}

.swr__tab {
    flex: 1;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--swr-border);
    background: var(--swr-white);
    border-radius: var(--swr-radius);
    color: var(--swr-slate);
    text-align: center;
    white-space: nowrap;
    transition: all 0.25s var(--swr-ease);
}

.swr__tab--active {
    border-color: var(--swr-blue);
    color: var(--swr-blue);
    background: var(--swr-blue-wash);
    box-shadow: 0 0 0 3px var(--swr-blue-glow);
}

.swr__tab:hover:not(.swr__tab--active) {
    border-color: var(--swr-border-hover);
    color: var(--swr-ink);
    transform: translateY(-1px);
    box-shadow: var(--swr-shadow-hover);
}

.swr__tab:focus {
    outline: none;
}

.swr__tab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--swr-blue-glow);
}

.swr__tab-panel {
    display: none;
}

.swr__tab-panel--active {
    display: block;
}

/* ═══════════════════════════════════════════
   8b. STEP 2: INTERNAL SIZE CARDS
   ═══════════════════════════════════════════ */
.swr__size-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.swr__size-card {
    border: 2px solid var(--swr-border);
    border-radius: var(--swr-radius);
    padding: 16px 14px;
    background: var(--swr-white);
    cursor: pointer;
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    transition: all 0.25s var(--swr-ease);
}

.swr__size-card:hover {
    border-color: var(--swr-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--swr-shadow-hover);
}

.swr__size-card--selected {
    border-color: var(--swr-blue);
    background: var(--swr-blue-pale);
}

.swr__size-card--selected:hover {
    border-color: var(--swr-blue);
    background: var(--swr-blue-pale);
    transform: translateY(-2px);
}

.swr__size-card:focus {
    outline: none;
}

.swr__size-card:focus-visible {
    outline: none;
    border-color: var(--swr-blue);
    box-shadow: 0 0 0 3px var(--swr-blue-glow);
}

.swr__size-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--swr-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s var(--swr-ease);
}

.swr__size-card-check svg {
    width: 10px;
    height: 10px;
    color: #fff;
}

.swr__size-card--selected .swr__size-card-check {
    opacity: 1;
    transform: scale(1);
}

.swr__size-visual {
    height: 48px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.swr__size-unit {
    border: 2px solid var(--swr-mist);
    border-radius: 3px 3px 0 0;
    border-bottom: none;
    background: var(--swr-faint);
    position: relative;
    transition: all 0.25s;
}

.swr__size-card--selected .swr__size-unit {
    border-color: var(--swr-blue);
    background: rgba(31,129,196,0.1);
}

.swr__size-door {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px 2px 0 0;
    background: white;
    border: 1px solid rgba(0,0,0,0.15);
}

.swr__size-name {
    font-family: var(--swr-font-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--swr-ink);
    margin-bottom: 1px;
}

.swr__size-comparison {
    font-size: 0.76rem;
    color: var(--swr-slate);
}

.swr__size-house {
    font-size: 0.73rem;
    color: var(--swr-blue-dark);
    font-weight: 500;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════
   8c. STEP 2: EXTERNAL CONTAINER CARD
   ═══════════════════════════════════════════ */
.swr__container-wrap {
    max-width: 480px;
}

.swr__container-card {
    border: 2px solid var(--swr-border);
    border-radius: var(--swr-radius-lg);
    padding: 32px 28px;
    background: var(--swr-white);
    cursor: pointer;
    position: relative;
    transition: all 0.3s var(--swr-ease);
}

.swr__container-card:hover {
    border-color: var(--swr-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--swr-shadow-hover);
}

.swr__container-card--selected {
    border-color: var(--swr-blue);
    background: var(--swr-blue-pale);
    box-shadow: 0 0 0 3px var(--swr-blue-glow);
}

.swr__container-card--selected:hover {
    border-color: var(--swr-blue);
    background: var(--swr-blue-pale);
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px var(--swr-blue-glow);
}

.swr__container-card:focus {
    outline: none;
}

.swr__container-card:focus-visible {
    outline: none;
    border-color: var(--swr-blue);
    box-shadow: 0 0 0 3px var(--swr-blue-glow);
}

.swr__container-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    background: var(--swr-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s var(--swr-ease);
}

.swr__container-check svg {
    width: 12px;
    height: 12px;
    color: #fff;
}

.swr__container-card--selected .swr__container-check {
    opacity: 1;
    transform: scale(1);
}

.swr__container-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.swr__container-icon {
    width: 72px;
    height: 52px;
    flex-shrink: 0;
}

.swr__container-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FEF3C7;
    color: #B45309;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.swr__container-badge svg {
    width: 12px;
    height: 12px;
}

.swr__container-name {
    font-family: var(--swr-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--swr-ink);
    margin-bottom: 2px;
}

.swr__container-size {
    font-size: 0.82rem;
    color: var(--swr-slate);
}

.swr__container-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.swr__container-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--swr-slate);
}

.swr__container-feature svg {
    width: 16px;
    height: 16px;
    color: var(--swr-sage);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   8d. STEP 3: FORM CARD & FIELDS
   ═══════════════════════════════════════════ */
.swr__form-card {
    max-width: 520px;
    background: var(--swr-white);
    border: 1.5px solid var(--swr-border);
    border-radius: var(--swr-radius-lg);
    padding: 32px 28px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
}

.swr__field {
    margin-bottom: 20px;
}

.swr__field:last-child {
    margin-bottom: 0;
}

.swr__field--hidden {
    display: none;
}

.swr__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--swr-ink);
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

.swr__input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--swr-border);
    border-radius: var(--swr-radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--swr-ink);
    background-color: var(--swr-input-bg);
    transition: all 0.2s var(--swr-ease);
    outline: none;
}

.swr__input:hover {
    border-color: var(--swr-border-hover);
    background-color: var(--swr-white);
}

.swr__input:focus {
    border-color: var(--swr-blue);
    background-color: var(--swr-white);
    box-shadow: 0 0 0 3px var(--swr-blue-glow);
}

select.swr__input {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    /* chevron colour = --swr-slate (#475569) — CSS custom props unavailable in data URIs, update manually if token changes */
    background-color: var(--swr-input-bg);
}

select.swr__input:hover {
    background-color: var(--swr-white);
}

select.swr__input:focus {
    background-color: var(--swr-white);
}

/* ═══════════════════════════════════════════
   8e. STEP 4: CONTACT DETAILS & SUMMARY SIDEBAR
   ═══════════════════════════════════════════ */
.swr__input::placeholder {
    color: #94A3B8;
}

.swr__input--error {
    border-color: var(--swr-rose);
    background-color: var(--swr-white);
    box-shadow: 0 0 0 3px var(--swr-rose-glow);
}

.swr__input--error:hover {
    border-color: var(--swr-rose);
    background-color: var(--swr-white);
    box-shadow: 0 0 0 3px var(--swr-rose-glow);
}

.swr__input--error:focus {
    border-color: var(--swr-rose);
    box-shadow: 0 0 0 3px var(--swr-rose-glow);
}

.swr__error {
    font-size: 0.76rem;
    color: var(--swr-rose);
    margin-top: 5px;
    font-weight: 500;
    display: none;
}

.swr__error--visible {
    display: block;
}

.swr__field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.swr__field-row .swr__field {
    margin-bottom: 0;
}

.swr__field--short .swr__input {
    max-width: 200px;
}

.swr__details-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.swr__details-layout .swr__form-card {
    max-width: none;
}

.swr__summary-card {
    background: var(--swr-ink);
    border-radius: var(--swr-radius-lg);
    padding: 26px;
    border: none;
    box-shadow: 0 4px 24px rgba(15,23,42,0.12);
}

.swr__summary-title {
    font-family: var(--swr-font-display);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--swr-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.swr__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.swr__summary-row:last-of-type {
    border-bottom: none;
}

.swr__summary-label {
    font-size: 0.8rem;
    color: var(--swr-border-hover);
}

.swr__summary-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--swr-white);
}

.swr__summary-note {
    margin-top: 18px;
    padding: 12px 14px;
    background: rgba(31,129,196,0.12);
    border-radius: var(--swr-radius-xs);
    border: 1px solid rgba(31,129,196,0.2);
    font-size: 0.78rem;
    color: #93C5FD;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════
   8f. LOADING SPINNER
   ═══════════════════════════════════════════ */
.swr__spinner-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 320px;
    padding: 48px 28px;
}

.swr__box-spinner {
    perspective: 300px;
    width: 44px;
    height: 44px;
}

.swr__box-spinner-cube {
    --swr-half: 22px;
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: swr-box-rotate 1.8s cubic-bezier(0.68, -0.2, 0.32, 1.2) infinite;
}

.swr__box-spinner-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    background: var(--swr-blue);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.swr__box-spinner-face--front {
    transform: translateZ(var(--swr-half));
}

.swr__box-spinner-face--back {
    transform: rotateY(180deg) translateZ(var(--swr-half));
    opacity: 0.5;
}

.swr__box-spinner-face--right {
    transform: rotateY(90deg) translateZ(var(--swr-half));
    opacity: 0.75;
}

.swr__box-spinner-face--left {
    transform: rotateY(-90deg) translateZ(var(--swr-half));
    opacity: 0.75;
}

.swr__box-spinner-face--top {
    transform: rotateX(90deg) translateZ(var(--swr-half));
    opacity: 0.35;
}

.swr__box-spinner-face--bottom {
    transform: rotateX(-90deg) translateZ(var(--swr-half));
    opacity: 0.6;
}

.swr__spinner-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--swr-slate);
    animation: swr-text-pulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   8g. QUOTE PAGE — PRICE CARD
   ═══════════════════════════════════════════ */
.swr__quote-layout {
    display: block;
}

.swr__quote-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.swr__quote-hero {
    text-align: center;
}

.swr__price-card {
    background: var(--swr-ink);
    border: none;
    border-radius: var(--swr-radius-lg);
    padding: 32px 28px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15,23,42,0.18), 0 2px 8px rgba(15,23,42,0.08);
}

.swr__price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--swr-blue-deep), var(--swr-blue),
        var(--swr-blue-dark), var(--swr-blue));
    background-size: 300% 100%;
    animation: swr-price-bar-shimmer 4s ease-in-out infinite;
}

.swr__quote-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(31,129,196,0.15);
    color: #60B5F0;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.swr__quote-badge svg {
    width: 14px;
    height: 14px;
}

.swr__quote-size {
    font-family: var(--swr-font-display);
    font-weight: 600;
    font-size: 1rem;
    color: #E2E8F0;
    margin-bottom: 4px;
}

.swr__quote-size-desc {
    font-size: 0.82rem;
    color: var(--swr-border-hover);
    margin-bottom: 20px;
}

.swr__price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.swr__price-amount {
    font-family: var(--swr-font-display);
    font-weight: 800;
    font-size: 3.8rem;
    color: var(--swr-white);
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.swr__price-period {
    font-family: var(--swr-font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--swr-mist);
}

.swr__price-vat-note {
    font-size: 0.76rem;
    color: var(--swr-mist);
    margin-top: 8px;
    margin-bottom: 0;
    min-height: 1.2em;
}

.swr__quote-sidebar {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--swr-border);
}

.swr__quote-sidebar:empty {
    display: none;
}

/* ═══════════════════════════════════════════
   8h. QUOTE PAGE — VAT TOGGLE
   ═══════════════════════════════════════════ */
.swr__vat-toggle {
    display: none;
}

.swr__vat-toggle--visible {
    display: block;
}

.swr__vat-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 18px -28px 14px;
}

.swr__vat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 2px;
}

.swr__vat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 500;
    -webkit-user-select: none;
    user-select: none;
}

.swr__vat-label--active {
    color: var(--swr-white);
    font-weight: 600;
}

.swr__vat-switch {
    width: 44px;
    height: 26px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s var(--swr-ease), border-color 0.3s var(--swr-ease);
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
}

.swr__vat-switch::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 2px;
    width: 18px;
    height: 18px;
    background: var(--swr-white);
    border-radius: 50%;
    transition: transform 0.3s var(--swr-ease);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.swr__vat-switch:hover {
    border-color: rgba(255,255,255,0.5);
}

.swr__vat-switch--on {
    background: #3B82F6;
    border-color: #3B82F6;
}

.swr__vat-switch--on::after {
    transform: translateX(16px);
}

.swr__vat-switch:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.55);
}

/* ═══════════════════════════════════════════
   8i. QUOTE PAGE — COMPARISON LIST
   ═══════════════════════════════════════════ */
.swr__compare-title {
    font-size: 0.84rem;
    color: var(--swr-slate);
    margin-bottom: 12px;
    font-weight: 500;
}

.swr__compare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    min-height: 44px;
    border: 1.5px solid var(--swr-border);
    border-radius: var(--swr-radius-sm);
    cursor: pointer;
    transition: border-color 0.2s var(--swr-ease), background-color 0.2s var(--swr-ease), box-shadow 0.2s var(--swr-ease);
    background: var(--swr-white);
    margin-bottom: 8px;
}

.swr__compare-item:not([data-idx]) {
    cursor: default;
}

.swr__compare-item:not([data-idx]):hover {
    border-color: var(--swr-border);
    background: var(--swr-white);
}

.swr__compare-item:last-of-type {
    margin-bottom: 0;
}

.swr__compare-item:hover {
    border-color: var(--swr-blue);
    background: var(--swr-blue-wash);
}

.swr__compare-item--current {
    border-color: var(--swr-blue);
    background: var(--swr-blue-wash);
    cursor: default;
}

.swr__compare-item:focus-visible {
    outline: none;
    border-color: var(--swr-blue);
    box-shadow: 0 0 0 3px var(--swr-blue-glow);
}

.swr__compare-info {
    min-width: 0;
    flex: 1;
}

.swr__compare-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--swr-ink);
}

.swr__compare-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    background: var(--swr-blue);
    color: var(--swr-white);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.swr__compare-sqft {
    font-size: 0.74rem;
    color: var(--swr-slate);
}

.swr__compare-price {
    font-family: var(--swr-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--swr-blue);
    white-space: nowrap;
}

.swr__compare-desc {
    padding: 12px;
    font-size: 0.78rem;
    color: var(--swr-mist);
    line-height: 1.5;
    margin: 8px 0 0;
}

/* ═══════════════════════════════════════════
   8j. QUOTE PAGE — CONTRACT TERMS
   ═══════════════════════════════════════════ */
.swr__contract-terms {
    margin: 16px 0 4px;
    border: 1.5px solid var(--swr-border);
    border-radius: var(--swr-radius);
    padding: 16px 18px 14px;
    background: var(--swr-white);
    text-align: left;
}

.swr__contract-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 10px 16px;
}

.swr .swr__contract-term {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--swr-ink);
    font-weight: 500;
    margin: 0;
}

.swr__contract-term svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--swr-blue);
}

/* ═══════════════════════════════════════════
   8k. QUOTE PAGE — LOCATION CARD
   ═══════════════════════════════════════════ */
.swr__location-card {
    margin-top: 12px;
    border: 1.5px solid var(--swr-border);
    border-radius: var(--swr-radius);
    padding: 16px 18px 14px;
    background: var(--swr-white);
    text-align: left;
}

.swr__location-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--swr-mist);
    margin-bottom: 6px;
}

.swr__location-address {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--swr-ink);
    line-height: 1.5;
    margin-bottom: 8px;
}

.swr__location-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--swr-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.swr__location-link:hover {
    color: var(--swr-blue-dark);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════
   8l. QUOTE PAGE — BREAKDOWN
   ═══════════════════════════════════════════ */
.swr__quote-details {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--swr-faint);
    border-radius: var(--swr-radius);
}

.swr__quote-details:empty {
    display: none;
}

.swr__quote-details-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--swr-slate);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.swr__quote-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    padding: 5px 0;
    border-bottom: 1px solid var(--swr-border);
}

.swr__quote-details-row:last-child {
    border-bottom: none;
}

.swr__quote-details-label {
    color: var(--swr-slate);
}

.swr__quote-details-value {
    color: var(--swr-ink);
    font-weight: 600;
    text-align: right;
}

.swr__quote-details-value--highlight {
    color: var(--swr-blue);
    font-weight: 700;
}

/* ═══════════════════════════════════════════
   8l. QUOTE PAGE — CTA & RESERVE
   ═══════════════════════════════════════════ */
.swr__quote-cta-wrap {
    text-align: center;
}

.swr__quote-cta {
    width: 100%;
    padding: 18px;
    background: var(--swr-coral);
    color: var(--swr-white);
    border: none;
    border-radius: var(--swr-radius);
    font-family: var(--swr-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(232, 86, 58, 0.25);
    transition: background 0.2s var(--swr-ease), transform 0.2s var(--swr-ease), box-shadow 0.2s var(--swr-ease);
    animation: swr-subtle-pulse 3s ease-in-out infinite 1s;
}

.swr__quote-cta:hover:not(:disabled) {
    background: var(--swr-coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 86, 58, 0.35);
}

.swr__quote-cta:active:not(:disabled) {
    transform: translateY(0);
}

.swr__quote-cta:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 86, 58, 0.3), 0 4px 14px rgba(232, 86, 58, 0.25);
}

.swr__quote-cta:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    animation: none;
}

.swr__quote-cta--loading {
    animation: none;
}

.swr__quote-cta-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--swr-white);
    border-radius: 50%;
    animation: swr-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes swr-spin {
    to { transform: rotate(360deg); }
}

.swr__quote-cta-hint {
    text-align: center;
    font-size: 0.76rem;
    color: var(--swr-slate);
    margin: 10px 0 0;
}

.swr__reserve-error {
    text-align: center;
    font-size: 0.82rem;
    color: var(--swr-rose);
    font-weight: 500;
    margin: 8px 0 0;
    display: none;
}

.swr__reserve-error--visible {
    display: block;
}

/* ═══════════════════════════════════════════
   8m. SUCCESS STATE
   ═══════════════════════════════════════════ */
.swr__success {
    display: none;
    padding: 32px 0;
}

.swr__success--visible {
    display: block;
}

.swr__success-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--swr-white);
    border: 1.5px solid var(--swr-border);
    border-radius: var(--swr-radius-lg);
    overflow: hidden;
    box-shadow: var(--swr-shadow-md);
}

.swr__success-header {
    text-align: center;
    padding: 32px 28px 24px;
    background: linear-gradient(180deg, var(--swr-sage-pale) 0%, var(--swr-white) 100%);
}

.swr__success-icon {
    width: 56px;
    height: 56px;
    background: var(--swr-sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
    animation: swr-pop 0.5s var(--swr-ease) forwards;
}

.swr__success-icon svg {
    width: 28px;
    height: 28px;
    color: var(--swr-white);
}

.swr__success-title {
    font-family: var(--swr-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--swr-ink);
    margin-bottom: 6px;
}

.swr__success-text {
    font-size: 0.86rem;
    color: var(--swr-slate);
    line-height: 1.5;
}

.swr__success-body {
    padding: 0 28px 28px;
}

.swr__success-summary {
    padding: 18px 20px;
    background: var(--swr-faint);
    border-radius: var(--swr-radius);
}

.swr__success-summary-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--swr-slate);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.swr__success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--swr-border);
}

.swr__success-row:last-child {
    border-bottom: none;
}

.swr__success-row-label {
    color: var(--swr-slate);
}

.swr__success-row-value {
    color: var(--swr-ink);
    font-weight: 600;
    text-align: right;
}

.swr__success-row-value--highlight {
    color: var(--swr-blue);
    font-weight: 700;
}

.swr__success-footer {
    padding: 20px 28px;
    text-align: center;
    border-top: 1px solid var(--swr-border);
}

.swr__new-quote-btn {
    background: none;
    border: 2px solid var(--swr-border);
    color: var(--swr-slate);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 11px 28px;
    border-radius: var(--swr-radius-sm);
    cursor: pointer;
    transition: border-color 0.2s var(--swr-ease), color 0.2s var(--swr-ease);
}

.swr__new-quote-btn:hover {
    border-color: var(--swr-blue);
    color: var(--swr-blue);
}

.swr__new-quote-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--swr-blue-glow);
}

/* ═══════════════════════════════════════════
   9. BUTTONS
   ═══════════════════════════════════════════ */
.swr__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 16px;
}

.swr__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 28px;
    background: var(--swr-blue);
    color: white;
    border: none;
    border-radius: var(--swr-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s var(--swr-ease);
    box-shadow: 0 2px 8px rgba(31,129,196,0.2);
    margin-left: auto;
}

.swr__btn:hover:not(:disabled) {
    background: var(--swr-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(31,129,196,0.3);
}

.swr__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--swr-blue-glow), 0 2px 8px rgba(31,129,196,0.2);
}

.swr__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.swr__btn svg {
    width: 16px;
    height: 16px;
}

/* Back button */
.swr__btn-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 4px;
    background: none;
    border: none;
    color: var(--swr-slate);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.swr__btn-back:hover {
    color: var(--swr-ink);
}

.swr__btn-back:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--swr-blue-glow);
    border-radius: var(--swr-radius-sm);
}

.swr__btn-back svg {
    width: 16px;
    height: 16px;
}

/* ═══════════════════════════════════════════
   10. ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes swr-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes swr-box-rotate {
    0%   { transform: rotateX(0deg)   rotateY(0deg); }
    25%  { transform: rotateX(90deg)  rotateY(0deg); }
    50%  { transform: rotateX(90deg)  rotateY(90deg); }
    75%  { transform: rotateX(0deg)   rotateY(90deg); }
    100% { transform: rotateX(0deg)   rotateY(0deg); }
}

@keyframes swr-text-pulse {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 1; }
}

@keyframes swr-price-bar-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes swr-subtle-pulse {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(232, 86, 58, 0.25);
    }
    50% {
        box-shadow: 0 4px 14px rgba(232, 86, 58, 0.25), 0 0 0 8px rgba(232, 86, 58, 0.08);
    }
}

@keyframes swr-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════
   11. RESPONSIVE — MOBILE (<640px)
   ═══════════════════════════════════════════ */
@media (max-width: 639px) {
    .swr {
        --swr-header-h: 60px;
    }

    .swr__header-inner {
        padding: 0 16px;
    }

    .swr__progress-label {
        display: none;
    }

    .swr__progress-line {
        width: 16px;
    }

    .swr__progress-dot {
        width: 26px;
        height: 26px;
        font-size: 0.68rem;
    }

    .swr__step {
        padding: 24px 18px 48px;
    }

    .swr__type-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .swr__size-grid {
        grid-template-columns: 1fr;
    }

    .swr__container-top {
        flex-direction: column;
        gap: 14px;
    }

    .swr__tabs {
        gap: 8px;
    }

    .swr__tab {
        padding: 12px 14px;
        font-size: 0.84rem;
    }

    .swr__actions {
        flex-direction: column-reverse;
    }

    .swr__btn {
        width: 100%;
    }

    .swr__form-card {
        padding: 24px 18px;
    }

    .swr__field-row {
        grid-template-columns: 1fr;
    }

    .swr__summary-card {
        position: static;
    }

    .swr__success-card {
        max-width: 100%;
    }

    .swr__success-header {
        padding: 24px 18px 20px;
    }

    .swr__success-body {
        padding: 0 18px 20px;
    }

    .swr__success-footer {
        padding: 16px 18px;
    }
}

/* ═══════════════════════════════════════════
   12. RESPONSIVE — DESKTOP (≥840px)
   ═══════════════════════════════════════════ */
@media (min-width: 840px) {
    .swr__step {
        padding: 52px 40px 72px;
    }

    .swr__details-layout {
        grid-template-columns: 1fr 280px;
        gap: 28px;
    }

    .swr__summary-card {
        position: sticky;
        top: calc(var(--swr-header-h) + 24px);
        align-self: start;
    }

    .swr__quote-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: start;
    }

    .swr__quote-hero {
        text-align: left;
    }

    .swr__price-row {
        justify-content: flex-start;
    }

    .swr__quote-sidebar {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .swr__vat-row {
        justify-content: flex-start;
    }
}

/* ═══════════════════════════════════════════
   13. RESPONSIVE — LARGE (≥1100px)
   ═══════════════════════════════════════════ */
@media (min-width: 1100px) {
    .swr__progress-line {
        width: 36px;
    }

    .swr__quote-layout {
        gap: 48px;
    }
}

/* ═══════════════════════════════════════════
   14. RESPONSIVE — HEADER BREAKPOINTS
   ═══════════════════════════════════════════ */
/* Tablet: ≥480px, <768px */
@media (max-width: 767px) {
    .swr__logo {
        height: 32px;
        min-height: 32px;
    }

    .swr__phone-text {
        font-size: 0.82rem;
    }
}

/* Mobile: <480px */
@media (max-width: 479px) {
    .swr__header-inner {
        padding: 0 10px;
        gap: 6px;
    }

    .swr__logo {
        height: 28px;
        min-height: 28px;
        min-width: auto;
        width: auto;
        max-width: 60px;
    }

    .swr__header-progress {
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
    }

    .swr__progress-dot {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
    }

    .swr__progress-line {
        width: 10px;
    }

    .swr__phone-text {
        /* Hide number text, show icon only */
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .swr__phone-link {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════
   15. ACCESSIBILITY — REDUCED MOTION
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .swr__step-inner,
    .swr__box-spinner-cube,
    .swr__spinner-text,
    .swr__price-card::before,
    .swr__success-icon,
    .swr__quote-cta,
    .swr__quote-cta-spinner {
        animation: none;
    }

    .swr__type-card,
    .swr__type-check,
    .swr__type-icon,
    .swr__progress-dot,
    .swr__progress-label,
    .swr__progress-line,
    .swr__btn,
    .swr__size-card,
    .swr__size-card-check,
    .swr__size-unit,
    .swr__tab,
    .swr__container-card,
    .swr__container-check,
    .swr__input,
    .swr__btn-back,
    .swr__summary-card,
    .swr__vat-switch,
    .swr__vat-switch::after,
    .swr__vat-label,
    .swr__compare-item,
    .swr__quote-cta,
    .swr__new-quote-btn {
        transition: none;
    }

    .swr__type-card:hover,
    .swr__type-card--selected:hover,
    .swr__btn:hover:not(:disabled),
    .swr__size-card:hover,
    .swr__size-card--selected:hover,
    .swr__container-card:hover,
    .swr__container-card--selected:hover,
    .swr__tab:hover:not(.swr__tab--active),
    .swr__quote-cta:hover:not(:disabled) {
        transform: none;
    }
}
