/* ==========================================================================
   Elektro Kalkulator – Styles
   Brand: hausetage.de | Dark professional electrical theme
   Mobile-first responsive design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* --- Variables --- */
:root {
    --ek-primary: #1a2332;
    --ek-primary-light: #2d4a5e;
    --ek-accent: #e8a020;
    --ek-accent-hover: #d4911a;
    --ek-accent-glow: rgba(232, 160, 32, 0.15);
    --ek-bg: #f4f5f7;
    --ek-card: #ffffff;
    --ek-text: #1a2332;
    --ek-text-muted: #6b7c8a;
    --ek-text-light: #94a3b3;
    --ek-border: #e2e6ea;
    --ek-success: #22c55e;
    --ek-error: #ef4444;
    --ek-radius: 12px;
    --ek-radius-sm: 8px;
    --ek-shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
    --ek-shadow-lg: 0 12px 48px rgba(26, 35, 50, 0.12);
    --ek-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ek-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Safe area for notched phones */
    --ek-safe-left: env(safe-area-inset-left, 0px);
    --ek-safe-right: env(safe-area-inset-right, 0px);
    --ek-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==========================================================================
   BASE – Mobile First (< 480px default)
   ========================================================================== */

/* --- Reset & Container --- */
.ek-calculator {
    font-family: var(--ek-font);
    width: 100%;
    max-width: 640px;
    margin: 20px auto;
    padding: 0 16px;
    padding-left: calc(16px + var(--ek-safe-left));
    padding-right: calc(16px + var(--ek-safe-right));
    color: var(--ek-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent content from pushing out of viewport */
    overflow-x: hidden;
    overflow-y: visible;
}
.ek-calculator *,
.ek-calculator *::before,
.ek-calculator *::after {
    box-sizing: border-box;
}
/* Kill any theme margins/padding on inner elements */
.ek-calculator h2,
.ek-calculator p,
.ek-calculator label {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* --- Progress Bar --- */
.ek-progress-wrap {
    margin-bottom: 24px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--ek-bg);
    padding: 12px 0 8px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
}
.ek-progress-bar {
    height: 5px;
    background: var(--ek-border);
    border-radius: 3px;
    overflow: hidden;
}
.ek-progress-fill {
    height: 100%;
    width: 8.33%;
    background: linear-gradient(90deg, var(--ek-accent), #f0c060);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width;
}
.ek-progress-label {
    margin-top: 8px;
    text-align: center;
}
#ek-step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ek-text-muted);
    letter-spacing: 0.03em;
}

/* --- Steps --- */
.ek-step {
    display: none;
    animation: ekFadeUp 0.3s ease-out;
    /* Prevent horizontal overflow from any child */
    overflow-x: hidden;
    overflow-y: visible;
}
.ek-step.active {
    display: block;
}

@keyframes ekFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ek-step-icon {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1;
}
.ek-step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ek-text);
    margin: 0 0 6px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.ek-step-desc {
    font-size: 14px;
    color: var(--ek-text-muted);
    margin: 0 0 22px;
    line-height: 1.5;
}

/* --- Input Fields --- */
.ek-input-group {
    position: relative;
    width: 100%;
    max-width: 100%;
}
.ek-input {
    width: 100%;
    font-family: var(--ek-font);
    /* 16px minimum prevents iOS auto-zoom on focus */
    font-size: 16px;
    padding: 14px 50px 14px 16px;
    border: 2px solid var(--ek-border);
    border-radius: var(--ek-radius-sm);
    background: var(--ek-card);
    color: var(--ek-text);
    transition: border-color var(--ek-transition), box-shadow var(--ek-transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    /* Prevent zoom on double-tap */
    touch-action: manipulation;
}
.ek-input:focus {
    border-color: var(--ek-accent);
    box-shadow: 0 0 0 4px var(--ek-accent-glow);
}
.ek-input::placeholder {
    color: var(--ek-text-light);
}
.ek-input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 600;
    color: var(--ek-text-muted);
    pointer-events: none;
}
/* Remove spin buttons on number inputs */
.ek-input[type="number"]::-webkit-outer-spin-button,
.ek-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ek-input[type="number"] {
    -moz-appearance: textfield;
}

/* --- Option Buttons Grid --- */
.ek-options-grid {
    display: grid;
    gap: 10px;
}
/* Mobile: yes/no grids stack to 1 column by default */
.ek-grid-1 {
    grid-template-columns: 1fr;
}
.ek-grid-2 {
    grid-template-columns: 1fr;
}
.ek-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* --- Option Buttons --- */
.ek-option-btn {
    font-family: var(--ek-font);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    /* Min 48px height for WCAG touch target */
    min-height: 52px;
    padding: 14px 10px;
    border: 2px solid var(--ek-border);
    border-radius: var(--ek-radius-sm);
    background: var(--ek-card);
    color: var(--ek-text);
    cursor: pointer;
    transition: all var(--ek-transition);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    /* Prevent tap delay on mobile */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* Prevent text selection on fast taps */
    user-select: none;
    -webkit-user-select: none;
}
.ek-option-btn:hover {
    border-color: var(--ek-primary-light);
    background: #f8f9fb;
}
/* Touch active state — immediate feedback on tap */
.ek-option-btn:active {
    transform: scale(0.97);
    transition-duration: 0.05s;
}
.ek-option-btn.selected {
    border-color: var(--ek-accent);
    background: var(--ek-accent-glow);
    box-shadow: 0 0 0 3px var(--ek-accent-glow);
}

/* --- Wide Option Buttons (with icon + label + price) --- */
.ek-option-wide {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-align: left;
    min-height: 58px;
}
.ek-opt-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}
.ek-opt-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ek-text);
    flex: 1;
    min-width: 0;
    /* Prevent label from pushing sub-price off screen */
    overflow: hidden;
    text-overflow: ellipsis;
}
.ek-opt-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--ek-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Sub Question (shutters count) --- */
.ek-sub-question {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ek-border);
    animation: ekFadeUp 0.3s ease-out;
}
.ek-sub-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ek-text);
    margin-bottom: 12px;
}
.ek-counter {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--ek-border);
    border-radius: var(--ek-radius-sm);
    overflow: hidden;
    background: var(--ek-card);
}
.ek-counter-btn {
    font-family: var(--ek-font);
    /* 52px = comfortable mobile touch target */
    width: 52px;
    height: 52px;
    border: none;
    background: transparent;
    color: var(--ek-text);
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ek-transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.ek-counter-btn:hover {
    background: var(--ek-accent-glow);
}
.ek-counter-btn:active {
    background: rgba(232, 160, 32, 0.25);
}
.ek-counter-input {
    width: 64px;
    text-align: center;
    font-family: var(--ek-font);
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-left: 1px solid var(--ek-border);
    border-right: 1px solid var(--ek-border);
    padding: 14px 4px;
    color: var(--ek-text);
    outline: none;
    background: transparent;
    -moz-appearance: textfield;
    touch-action: manipulation;
}
.ek-counter-input::-webkit-outer-spin-button,
.ek-counter-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Form Fields (Contact Step) --- */
.ek-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ek-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ek-text);
    margin-bottom: 6px;
}
.ek-required {
    color: var(--ek-error);
}
/* Mobile: phone + postal stack */
.ek-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
/* Contact inputs full width */
.ek-form-fields .ek-input {
    padding-right: 16px;
}

/* --- Error --- */
.ek-error {
    font-size: 13px;
    color: var(--ek-error);
    margin-top: 8px;
    min-height: 18px;
}

/* --- Navigation --- */
.ek-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    padding-bottom: calc(8px + var(--ek-safe-bottom));
    border-top: 1px solid var(--ek-border);
    gap: 12px;
}
.ek-nav-btn {
    font-family: var(--ek-font);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--ek-radius-sm);
    cursor: pointer;
    transition: all var(--ek-transition);
    border: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* Min 48px height for touch */
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ek-nav-back {
    background: transparent;
    color: var(--ek-text-muted);
    padding: 12px 4px 12px 0;
    flex-shrink: 0;
}
.ek-nav-back:hover {
    color: var(--ek-text);
}
.ek-nav-back:active {
    opacity: 0.7;
}
.ek-nav-next {
    background: var(--ek-primary);
    color: #ffffff;
    margin-left: auto;
    padding: 14px 24px;
    box-shadow: 0 2px 8px rgba(26, 35, 50, 0.2);
    flex-shrink: 0;
    white-space: nowrap;
}
.ek-nav-next:hover {
    background: var(--ek-primary-light);
    box-shadow: 0 4px 16px rgba(26, 35, 50, 0.25);
}
.ek-nav-next:active {
    transform: scale(0.97);
    transition-duration: 0.05s;
}
.ek-nav-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.ek-nav-next.ek-accent-btn {
    background: var(--ek-accent);
    color: var(--ek-primary);
}
.ek-nav-next.ek-accent-btn:hover {
    background: var(--ek-accent-hover);
}

/* --- Results Card --- */
.ek-result-card {
    background: linear-gradient(135deg, var(--ek-primary), var(--ek-primary-light));
    border-radius: var(--ek-radius);
    padding: 28px 18px;
    text-align: center;
    color: #ffffff;
    box-shadow: var(--ek-shadow-lg);
    position: relative;
    overflow: hidden;
}
.ek-result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(232,160,32,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.ek-result-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.ek-result-price {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    /* Prevent long price ranges from overflowing */
    word-break: break-word;
    overflow-wrap: break-word;
}
.ek-result-note {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 20px;
    line-height: 1.4;
}
.ek-result-breakdown {
    text-align: left;
    background: rgba(255,255,255,0.08);
    border-radius: var(--ek-radius-sm);
    padding: 16px 14px;
    margin-top: 8px;
}
.ek-result-breakdown .ek-bd-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}
.ek-result-breakdown .ek-bd-row .ek-bd-label {
    /* Let label wrap, keep value fixed */
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.ek-result-breakdown .ek-bd-row.ek-bd-total {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 6px;
    padding-top: 10px;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
}
.ek-result-breakdown .ek-bd-val {
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}
.ek-result-breakdown .ek-bd-val.ek-bd-discount {
    color: var(--ek-success);
}

/* --- Action Buttons --- */
.ek-result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}
.ek-btn {
    font-family: var(--ek-font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Min 52px for comfortable mobile tap */
    min-height: 52px;
    padding: 14px 18px;
    border-radius: var(--ek-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ek-transition);
    text-decoration: none;
    border: none;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* Prevent long button text from overflowing */
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}
.ek-btn-primary {
    background: var(--ek-accent);
    color: var(--ek-primary);
    box-shadow: 0 4px 16px rgba(232, 160, 32, 0.3);
}
.ek-btn-primary:hover {
    background: var(--ek-accent-hover);
    box-shadow: 0 6px 20px rgba(232, 160, 32, 0.35);
}
.ek-btn-primary:active {
    transform: scale(0.97);
    transition-duration: 0.05s;
}
.ek-btn-secondary {
    background: var(--ek-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(26, 35, 50, 0.15);
}
.ek-btn-secondary:hover {
    background: var(--ek-primary-light);
    color: #ffffff;
}
.ek-btn-secondary:active {
    transform: scale(0.97);
    transition-duration: 0.05s;
}
.ek-btn-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.ek-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* --- Email Status --- */
.ek-email-status {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    min-height: 20px;
    line-height: 1.4;
    padding: 0 8px;
}
.ek-email-status.ek-status-success {
    color: var(--ek-success);
    font-weight: 600;
}
.ek-email-status.ek-status-error {
    color: var(--ek-error);
}
.ek-email-status.ek-status-loading {
    color: var(--ek-text-muted);
}

/* Hide nav on results step */
.ek-calculator[data-current-step="12"] .ek-nav {
    display: none;
}


/* ==========================================================================
   BREAKPOINT: 480px+ – Large phones / Small tablets (landscape)
   ========================================================================== */
@media (min-width: 480px) {
    .ek-calculator {
        padding: 0 20px;
        margin: 28px auto;
    }
    .ek-progress-wrap {
        margin-bottom: 28px;
        position: relative;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        background: transparent;
    }
    .ek-progress-label {
        text-align: right;
    }
    #ek-step-label {
        font-size: 13px;
    }
    .ek-step-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    .ek-step-title {
        font-size: 22px;
    }
    .ek-step-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    /* Input gets a max-width on larger phones */
    .ek-input-group {
        max-width: 300px;
    }

    /* 2-column grid kicks in at 480px */
    .ek-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    .ek-grid-3 {
        gap: 10px;
    }

    .ek-option-wide {
        padding: 16px 18px;
        gap: 12px;
    }
    .ek-opt-label {
        font-size: 15px;
    }
    .ek-opt-sub {
        font-size: 13px;
    }

    /* Phone + Postal side by side */
    .ek-field-row {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .ek-result-card {
        padding: 32px 24px;
    }
    .ek-result-price {
        font-size: 30px;
    }
    .ek-result-breakdown {
        padding: 18px 20px;
    }
    .ek-result-breakdown .ek-bd-row {
        font-size: 13px;
    }
    .ek-result-breakdown .ek-bd-row.ek-bd-total {
        font-size: 14px;
    }

    .ek-btn {
        font-size: 15px;
        padding: 14px 22px;
    }
}


/* ==========================================================================
   BREAKPOINT: 640px+ – Tablets / Desktop
   ========================================================================== */
@media (min-width: 640px) {
    .ek-calculator {
        margin: 40px auto;
        padding: 0 24px;
    }
    .ek-progress-wrap {
        margin-bottom: 32px;
    }
    .ek-progress-bar {
        height: 6px;
    }
    .ek-step-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    .ek-step-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    .ek-step-desc {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .ek-options-grid {
        gap: 12px;
    }

    .ek-option-btn {
        padding: 16px 12px;
        min-height: 56px;
        font-size: 16px;
    }
    /* Hover effect only on non-touch */
    .ek-option-btn:hover {
        transform: translateY(-1px);
    }

    .ek-option-wide {
        padding: 18px 20px;
        gap: 14px;
        min-height: 62px;
    }
    .ek-opt-icon {
        font-size: 24px;
        width: 32px;
    }

    .ek-form-fields {
        gap: 18px;
    }
    .ek-field label {
        font-size: 14px;
    }

    .ek-nav {
        margin-top: 36px;
        padding-top: 24px;
    }
    .ek-nav-next {
        padding: 14px 28px;
    }

    .ek-result-card {
        padding: 40px 32px;
        border-radius: 16px;
    }
    .ek-result-badge {
        font-size: 13px;
        padding: 8px 20px;
        margin-bottom: 20px;
    }
    .ek-result-price {
        font-size: 36px;
    }
    .ek-result-note {
        font-size: 13px;
        margin-bottom: 24px;
    }
    .ek-result-breakdown {
        padding: 20px 24px;
    }
    .ek-result-breakdown .ek-bd-row {
        font-size: 14px;
        gap: 12px;
    }
    .ek-result-breakdown .ek-bd-row.ek-bd-total {
        font-size: 16px;
        padding-top: 14px;
        margin-top: 8px;
    }

    .ek-result-actions {
        gap: 12px;
        margin-top: 28px;
    }
    .ek-btn {
        padding: 16px 24px;
        font-size: 15px;
        min-height: 54px;
    }
    /* Hover lift only on desktop */
    .ek-btn-primary:hover,
    .ek-btn-secondary:hover {
        transform: translateY(-1px);
    }
}


/* ==========================================================================
   BREAKPOINT: 320px – Very small phones (iPhone SE, Galaxy S mini)
   ========================================================================== */
@media (max-width: 359px) {
    .ek-calculator {
        padding: 0 12px;
    }
    .ek-progress-wrap {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .ek-step-title {
        font-size: 18px;
    }
    .ek-step-desc {
        font-size: 13px;
    }
    .ek-grid-3 {
        gap: 6px;
    }
    .ek-option-btn {
        padding: 12px 6px;
        font-size: 14px;
        min-height: 48px;
    }
    .ek-option-wide {
        padding: 12px;
        gap: 8px;
    }
    .ek-opt-icon {
        font-size: 18px;
        width: 24px;
    }
    .ek-opt-label {
        font-size: 13px;
    }
    .ek-opt-sub {
        font-size: 11px;
    }
    .ek-result-card {
        padding: 22px 14px;
    }
    .ek-result-price {
        font-size: 22px;
    }
    .ek-result-badge {
        font-size: 10px;
        padding: 5px 12px;
    }
    .ek-result-breakdown {
        padding: 12px 10px;
    }
    .ek-result-breakdown .ek-bd-row {
        font-size: 11px;
        gap: 6px;
    }
    .ek-result-breakdown .ek-bd-row.ek-bd-total {
        font-size: 12px;
    }
    .ek-btn {
        font-size: 13px;
        padding: 12px 14px;
        min-height: 48px;
    }
    .ek-counter-btn {
        width: 46px;
        height: 46px;
    }
    .ek-nav-next {
        padding: 12px 18px;
        font-size: 14px;
    }
}


/* ==========================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover transforms on touch — only use :active */
    .ek-option-btn:hover {
        transform: none;
        background: var(--ek-card);
        border-color: var(--ek-border);
    }
    .ek-option-btn.selected:hover {
        background: var(--ek-accent-glow);
        border-color: var(--ek-accent);
    }
    .ek-nav-next:hover {
        transform: none;
    }
    .ek-btn-primary:hover,
    .ek-btn-secondary:hover {
        transform: none;
    }
}


/* ==========================================================================
   LANDSCAPE PHONE FIX
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .ek-progress-wrap {
        position: relative;
        margin-bottom: 16px;
        padding: 8px 0 4px;
    }
    .ek-step-icon {
        font-size: 24px;
        margin-bottom: 4px;
    }
    .ek-step-title {
        font-size: 18px;
    }
    .ek-step-desc {
        margin-bottom: 14px;
    }
    .ek-option-btn {
        min-height: 44px;
        padding: 10px 8px;
    }
    .ek-option-wide {
        min-height: 48px;
        padding: 12px 14px;
    }
    .ek-nav {
        margin-top: 16px;
        padding-top: 12px;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .ek-step {
        animation: none;
    }
    .ek-progress-fill {
        transition: none;
    }
    .ek-option-btn,
    .ek-nav-btn,
    .ek-btn,
    .ek-input {
        transition: none;
    }
}


/* ==========================================================================
   HIGH CONTRAST SUPPORT
   ========================================================================== */
@media (prefers-contrast: high) {
    .ek-option-btn {
        border-width: 3px;
    }
    .ek-option-btn.selected {
        border-width: 3px;
        box-shadow: 0 0 0 4px var(--ek-accent);
    }
    .ek-input:focus {
        box-shadow: 0 0 0 4px var(--ek-accent);
    }
}


/* ==========================================================================
   PRINT STYLES – Results page only
   ========================================================================== */
@media print {
    .ek-calculator {
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }
    .ek-progress-wrap,
    .ek-nav,
    .ek-result-actions,
    .ek-email-status {
        display: none !important;
    }
    .ek-result-card {
        box-shadow: none;
        border: 2px solid #333;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
