/* Juma Clean Form Styles */

:root {
    --background: #f8fafc;
    --card: #ffffff;
    --primary: #1B9CC4;
    --primary-dark: #1786A9;
    --accent: #6EC056;
    --mat: #3B7A2A;
    --rest: #5A4632;
    --glass: #FF8C42;
    --papir: #1E63B5;
    --plast: #808080;
    --muted: #f1f5f9;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --error: #ef4444;
    --success: #6EC056;
    --content-max-tablet: 720px;
    --content-max-mobile: 100%;
    --spacing-field: 1.5rem;
    --spacing-field-mobile: 1.25rem;
    --touch-target: 48px;
    --font-size-base: 16px;
    --font-size-heading: 24px;
    --font-size-button: 16px;
    --type-section-label: 1.1rem;
    --type-subsection-title: 1.05rem;
    --type-summary-heading: 1rem;
    --type-helper: 0.95rem;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
}

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

.juma-clean-form-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--background);
    border-radius: 1rem;
    width: 100%;
    transition: max-width 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--font-size-base);
}

/* Ensure all elements in form use same font */
.juma-clean-form-container *,
.juma-clean-form-container h1,
.juma-clean-form-container h2,
.juma-clean-form-container h4,
.juma-clean-form-container p,
.juma-clean-form-container span,
.juma-clean-form-container label,
.juma-clean-form-container input,
.juma-clean-form-container select,
.juma-clean-form-container button,
.juma-clean-form-container textarea {
    font-family: inherit;
}

/* Expand container when calendar is active (sesongvask) */
.juma-clean-form-container.calendar-active {
    max-width: 1400px;
}

/* Expand form step content when calendar is active */
.juma-clean-form-container.calendar-active .juma-form-step > * {
    max-width: 1350px;
}

/* Expand price summary and button row when calendar is active */
.juma-clean-form-container.calendar-active .price-summary,
.juma-clean-form-container.calendar-active .btn-row {
    max-width: 1350px;
}

.juma-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.juma-form-header h1 {
    font-size: calc(var(--font-size-heading) + 1rem);
    color: var(--primary);
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.juma-form-header p {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin: 0;
}

/* Progress Steps */
.juma-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--border);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.step-circle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.step-circle span {
    font-size: 20px;
    line-height: 1;
}

.step.active .step-circle {
    background: var(--primary);
    color: white;
    transform: scale(1.18);
    border-color: var(--primary);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent);
}

.step.completed .step-circle {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.step-label {
    font-size: calc(var(--font-size-base) - 2px);
    color: var(--text-muted);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

.step.active .step-label::after {
    content: "";
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: -6px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary, #1B9CC4);
}

.step-line {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: -1;
}

.step.active .step-line {
    height: 4px;
    background: var(--primary, #1B9CC4);
}

.step.completed .step-line {
    height: 3px;
    background: var(--accent);
}

.step:last-child .step-line {
    display: none;
}

/* Form Steps */
.juma-form-step {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.juma-form-step.hidden {
    display: none;
}

.juma-form-step > * {
    width: 100%;
    max-width: 1100px;
    transition: max-width 0.3s ease;
}

.juma-form-step > h2:first-of-type:not(.sr-only) {
    font-size: var(--font-size-heading);
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
    text-align: center;
}

.step-intro-text {
    margin: -0.5rem auto 1.5rem;
    max-width: 780px;
    color: var(--text-muted);
    font-size: var(--font-size-base);
    line-height: 1.6;
    text-align: center;
}

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

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    font-size: calc(var(--font-size-heading) - 4px);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.juma-clean-form-container p,
.juma-clean-form-container label,
.juma-clean-form-container input,
.juma-clean-form-container select,
.juma-clean-form-container textarea,
.juma-clean-form-container li {
    font-size: var(--font-size-base);
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.juma-form-section-label {
    display: block;
    margin-bottom: 1rem;
    font-size: var(--type-section-label);
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.customer-type-picker {
    margin-bottom: 1.5rem;
}

.juma-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.juma-radio-card-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.juma-radio-card-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.juma-helper-text {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: var(--type-helper);
    line-height: 1.6;
}

.juma-helper-text--center {
    text-align: center;
}

.juma-summary-intro {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.juma-subsection-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--text);
    font-size: var(--type-subsection-title);
    font-weight: 600;
    line-height: 1.4;
}

.juma-subsection-title:first-child {
    margin-top: 0;
}

.juma-error-panel {
    margin: 1.25rem 0;
    padding: 1rem;
    border: 1px solid var(--error);
    border-radius: 0.5rem;
    background: #fee2e2;
}

.juma-error-panel p {
    margin: 0;
    color: #991b1b;
    line-height: 1.6;
}

.juma-success-state {
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.juma-success-state__icon {
    margin-bottom: 1.25rem;
    font-size: 4rem;
    line-height: 1;
}

.juma-success-state h2 {
    margin: 0 0 0.75rem;
    color: var(--accent);
}

.juma-success-state p {
    max-width: 36rem;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.vask-required-star {
    color: var(--error);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group textarea.larger-textarea {
    min-height: 120px;
    padding: 1rem;
    line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.error-msg {
    color: var(--error, #ef4444);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Error state for input fields */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error, #ef4444) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--error, #ef4444) 10%, transparent) !important;
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: var(--error, #ef4444) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--error, #ef4444) 20%, transparent) !important;
}

.error-msg.hidden {
    display: none;
}

/* Success state for input fields */
.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: var(--success, #6EC056) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--success, #6EC056) 10%, transparent) !important;
}

.success-msg {
    color: var(--success, #6EC056);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
    /* Calendar: Always fit on mobile, never overflow horizontally */
    .calendar-table-wrapper,
    .wash-calendar-smart,
    .calendar-weeks-grid {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }
    .wash-calendar-table {
        padding: 1rem;
        margin-top: 1rem;
    }
    .calendar-table-wrapper {
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }
    .calendar-weeks-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)) !important;
        gap: 0.3rem !important;
    }
    .week-card {
        min-width: 0 !important;
        min-height: 54px !important;
        padding: 0.45rem 0.1rem !important;
        font-size: 0.85rem !important;
        border-radius: 0.35rem !important;
    }
    .week-number {
        font-size: 0.7rem !important;
    }
    .bin-indicator {
        font-size: 0.6rem !important;
        min-width: 14px !important;
        padding: 1px 4px !important;
    }
    .month-header {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.1rem 0.2rem !important;
    }
    .calendar-timeline {
        padding: 0.5rem 0.1rem !important;
    }
    .timeline-header {
        gap: 0.2rem !important;
        padding-bottom: 0.3rem !important;
    }
    .week-bins {
        gap: 2px !important;
    }
    /* Remove horizontal scroll on the page */
    body, html {
        overflow-x: hidden !important;
    }
    .juma-clean-form-container {
        overflow-x: hidden;
    }
    
    /* Stack grid items on mobile */
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Make bin cards smaller and more compact on mobile */
    .bin-clean-row {
        padding: 0.5rem 0.5rem;
        border-radius: 0.4rem;
        margin-bottom: 0.5rem;
    }
    .bin-clean-header {
        padding: 0.5rem 0.5rem;
        gap: 0.5rem;
    }
    .bin-clean-name {
        font-size: 0.95rem;
    }
    .bin-icon {
        width: 22px !important;
        height: 22px !important;
    }
    .bin-input-group {
        gap: 0.25rem;
    }
    .bin-input-group label {
        font-size: 0.8rem;
    }
    .bin-input-group input[type="number"] {
        width: 48px;
        font-size: 1rem;
        padding: 0.35rem 0.2rem;
    }
    .bins-row {
        gap: 0.35rem;
    }
    .bins-grouped-grid {
        gap: 0.35rem;
    }
    .bin-input-label {
        font-size: 0.6rem;
    }
}

/* Bins Clean Grid - New Collapsible Design */
.bins-clean-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Grouped bins layout */
.bins-grouped-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bins-row {
    display: grid;
    gap: 0.75rem;
}

/* First row: 2 columns (Mat + Rest) */
.bins-grouped-grid > .bins-row:nth-child(1) {
    grid-template-columns: repeat(2, 1fr);
}

/* Second row: 2 columns (Glass + Papir) */
.bins-grouped-grid > .bins-row:nth-child(2) {
    grid-template-columns: repeat(2, 1fr);
}

/* Third row: Plast alene */
.bins-grouped-grid > .bins-row:nth-child(3) {
    grid-template-columns: 1fr;
}

/* TELEFON (under 640px): Stack all bins vertically */
@media (max-width: 640px) {
    /* Stack all bin rows to 1 column */
    .bins-grouped-grid > .bins-row:nth-child(1),
    .bins-grouped-grid > .bins-row:nth-child(2),
    .bins-grouped-grid > .bins-row:nth-child(3) {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Reduce overall grid gap on mobile */
    .bins-grouped-grid {
        gap: 0.75rem;
    }
}

/* TABLET (641px - 1023px): Keep bins side-by-side for better space usage */
@media (min-width: 641px) and (max-width: 1023px) {
    /* Keep Mat+Rest side by side */
    .bins-grouped-grid > .bins-row:nth-child(1) {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.375rem;
    }
    
    /* Keep Glass+Papir side by side */
    .bins-grouped-grid > .bins-row:nth-child(2) {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.375rem;
    }
    
    /* Plast alone takes full width */
    .bins-grouped-grid > .bins-row:nth-child(3) {
        grid-template-columns: 1fr;
    }
    
    /* Reduce overall grid gap on tablet */
    .bins-grouped-grid {
        gap: 0.375rem;
    }
}

.bin-clean-row {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--bin-border-radius, 0.5rem);
    overflow: hidden;
    transition: all 0.3s;
}

.bin-clean-row.expanded {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

/* Start expanded by default */
.bin-clean-row {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.05);
}

.bin-clean-row.active {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.02);
}

.bin-clean-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    cursor: default; /* Not clickable anymore */
    transition: background 0.2s;
    user-select: none;
}

/* Remove hover effect since it's not clickable */
.bin-clean-header:hover {
    background: transparent;
}

.chevron-icon {
    width: 20px;
    height: 20px;
    margin-left: auto;
    transition: transform 0.3s;
    flex-shrink: 0;
    color: var(--text-muted);
    transform: rotate(180deg); /* Start rotated (pointing down) */
    display: none; /* Hidden - bins can't be collapsed per user request */
}

/* Legacy support for old compact design */
.bins-compact-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bin-compact-row {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.3s;
}

.bin-compact-row:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bin-compact-row.active {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.02);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.bin-compact-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.bin-icon {
    width: var(--bin-icon-size, 28px);
    height: var(--bin-icon-size, 28px);
    flex-shrink: 0;
}

/* Color classes for bin icons */
.mat-color {
    color: var(--mat);
}

.rest-color {
    color: var(--rest);
}

.glass-color {
    color: #94a3b8;
}

.papir-color {
    color: var(--papir);
}

.plast-color {
    color: var(--plast);
}

.bin-clean-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    flex: 1;
}

.bin-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bin-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.bin-input-group input[type="number"] {
    width: 55px; /* Narrow width for 2 digits (max 99) */
    max-width: 100%;
    padding: 0.5rem 0.3rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 16px; /* Prevent auto-zoom on iOS */
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    background: white;
    -moz-appearance: textfield; /* Firefox: show spinner */
    appearance: textfield;
}

/* Show spinner controls (up/down arrows) */
/* Remove number input arrows/spinners on all devices */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.bin-input-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Update grid to accommodate narrower inputs */
.bin-clean-inputs {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--muted);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* Legacy compact design */
.bin-compact-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.bin-compact-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.bin-input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.bin-input-wrapper input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s;
    background: var(--muted);
}

.bin-input-wrapper input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.bin-input-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Mobile optimization - MOBILE FRIENDLY for input boxes */
@media (max-width: 640px) {
    .bins-clean-grid {
        gap: 0.5rem;
    }
    
    .bin-clean-row {
        border-radius: 0.375rem;
        border-width: 1px;
    }
    
    .bin-clean-header {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .bin-clean-name {
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.3;
    }
    
    /* Mobile-friendly input container - vertical/loddrett layout */
    .bin-clean-inputs {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        box-sizing: border-box;
        width: 100%;
        overflow: hidden;
    }
    
    /* Mobile-friendly input group - vertical/loddrett */
    .bin-input-group {
        gap: 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .bin-input-group label {
        font-size: 0.75rem;
        line-height: 1.2;
        font-weight: 500;
        color: var(--text-muted);
        text-align: center;
    }
    
    /* Mobile-friendly input field - full width for vertical layout */
    .bin-input-group input[type="number"] {
        padding: 0.5rem 0.25rem;
        font-size: 16px !important; /* Prevent iOS zoom */
        width: 50%;
        min-height: 36px; /* Slightly smaller for compact layout */
        max-width: 140px;
        min-width: 90px;
        margin: 0 auto;
        text-align: center;
        border: 1px solid var(--border);
        border-radius: 0.3rem;
        font-weight: 600;
        background: white;
        box-sizing: border-box;
    }
    
    .chevron-icon {
        width: 16px;
        height: 16px;
    }
    
    /* Legacy compact grid */
    .bins-compact-grid {
        gap: 0.5rem;
    }
    
    .bin-compact-row {
        padding: 0.75rem;
    }
    
    .bin-compact-header {
        margin-bottom: 0.5rem;
        gap: 0.5rem;
    }
    
    .bin-icon {
        width: 18px;
        height: 18px;
    }
    
    .bin-compact-name {
        font-size: 0.9rem;
    }
    
    .bin-input-wrapper input[type="number"] {
        font-size: 18px !important; /* Prevent zoom */
        padding: 0.65rem 0.5rem;
        width: 100%;
        min-height: 44px;
    }
    
    .bin-input-label {
        font-size: 0.85rem;
    }
}

/* Extra small screens (< 380px) - stack inputs vertically */
@media (max-width: 379px) {
    .bin-clean-inputs {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 0.4rem 0.3rem;
    }
    
    .bin-clean-header {
        padding: 0.5rem 0.375rem;
    }
    
    .bin-clean-name {
        font-size: 0.85rem;
    }
    
    .bin-input-group input[type="number"] {
        min-height: 34px;
        font-size: 15px !important;
        padding: 0.4rem 0.2rem;
        width: 50%;
        max-width: 120px;
        min-width: 80px;
        margin: 0 auto;
    }
}

/* Vaskeordning Row */
.vaskeordning-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .vaskeordning-row {
        grid-template-columns: 1fr;
    }
}

.vaskeordning-option {
    position: relative;
}

.vaskeordning-option {
    cursor: pointer;
    user-select: none;
}

.vaskeordning-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vaskeordning-label {
    display: block;
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--card);
}

.vaskeordning-label:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.vaskeordning-option input[type="radio"]:checked + .vaskeordning-label {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.vaskeordning-title {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.vaskeordning-desc {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Vaskepakke Grid */
.vaskepakke-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .vaskepakke-grid {
        grid-template-columns: 1fr;
    }
}

.vaskepakke-option {
    position: relative;
}

.vaskepakke-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vaskepakke-label {
    display: block;
    padding: 1.75rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--card);
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.vaskepakke-label:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vaskepakke-option input[type="radio"]:checked + .vaskepakke-label {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.vaskepakke-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.vaskepakke-days {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Smart Wash Calendar - Ultra Compact Design */
.wash-calendar-smart {
    background: var(--muted);
    padding: 1rem;
    border-radius: 0.75rem;
}

.wash-calendar-smart.hidden {
    display: none;
}

.calendar-timeline {
    background: var(--card);
    padding: 1rem;
    border-radius: 0.5rem;
}

.timeline-header {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.timeline-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.calendar-weeks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
    max-width: 100%;
}

.month-header {
    /* Span approximately half the width - adjust based on typical column count */
    grid-column: span 6;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    padding: 1rem 0.5rem 0.5rem;
    margin-top: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.month-header:first-child {
    margin-top: 0;
}

/* Desktop and Tablet optimization */
@media (min-width: 769px) {
    .calendar-weeks-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 1rem;
    }
    
    .week-card {
        min-height: 90px;
        padding: 1.25rem 0.75rem;
    }
    
    .week-number {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .bin-indicator {
        padding: 3px 8px;
        font-size: 0.75rem;
        min-width: 24px;
    }
}

/* Responsive adjustments for month headers */
@media (max-width: 768px) {
    .month-header {
        grid-column: 1 / -1; /* Full width on mobile */
    }
}

.week-card {
    background: var(--muted);
    border-radius: 0.5rem;
    padding: 1rem 0.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.week-card.has-wash {
    background: white;
    border-color: var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Interactive calendar styles */
.week-card.interactive-week {
    cursor: pointer;
    user-select: none;
}

.week-card.interactive-week:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.week-card.interactive-week.has-wash:hover {
    background: rgba(59, 130, 246, 0.05);
}

.week-card.interactive-week:not(.has-wash):hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
}

.week-card.interactive-week:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add visual feedback that calendar is interactive */
.calendar-weeks-grid.interactive {
    position: relative;
}

.calendar-weeks-grid.interactive::before {
    content: "";
    position: absolute;
    inset: -0.5rem;
    border: 2px dashed var(--primary);
    border-radius: 0.75rem;
    opacity: 0.2;
    pointer-events: none;
}

.week-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    display: block;
}

.week-total {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.week-bins {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.bin-indicator {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bin-qty {
    font-size: 0.75rem;
}

.mat-bg {
    background: var(--mat);
}

.rest-bg {
    background: var(--rest);
}

.glass-bg {
    background: #94a3b8;
}

.papir-bg {
    background: var(--papir);
}

.plast-bg {
    background: var(--plast);
}

/* Legacy bin dots */
.bin-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.bin-dot.mat {
    background: var(--mat);
}

.bin-dot.rest {
    background: var(--rest);
}

.bin-dot.glass {
    background: #94a3b8;
}

.bin-dot.papir {
    background: var(--papir);
}

.bin-dot.plast {
    background: var(--plast);
}

/* Calendar Table View - NEW LAYOUT: Months/weeks vertical (left), waste types horizontal (top) */
.wash-calendar-table {
    width: 100%;
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.wash-calendar-table h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.wash-calendar-table p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.calendar-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.5rem;
    background: white;
    display: block;
    margin: 1.5rem 0;
}

/* Custom scrollbar for calendar */
.calendar-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.calendar-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.calendar-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.calendar-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.calendar-instruction-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1rem;
}

/* NEW LAYOUT: wash-calendar-grid-new for months/weeks vertical */
.wash-calendar-grid-new {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
    font-size: 0.875rem;
    margin: 1rem 0;
}

.wash-calendar-grid-new .month-week-header {
    background: linear-gradient(135deg, var(--calendar-header-bg, #0f172a) 0%, var(--calendar-header-bg, #1e293b) 100%);
    color: white;
    font-weight: bold;
    padding: 0.35rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    min-width: var(--calendar-month-width, 40px);
    font-size: 0.8rem;
}

.wash-calendar-grid-new .waste-type-header {
    text-align: center;
    padding: 0.35rem 0.2rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 55px;
    font-size: 0.75rem;
}

/* Header bin name - hide on mobile */
.wash-calendar-grid-new .waste-type-header .bin-name {
    font-size: 0.6rem;
    line-height: 1.1;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

.wash-calendar-grid-new .month-cell {
    vertical-align: middle;
    text-align: center;
    position: sticky;
    left: 0;
    z-index: 10;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    width: var(--calendar-month-width, 35px);
    min-width: var(--calendar-month-width, 35px);
    max-width: var(--calendar-month-width, 50px);
    font-size: 0.7rem;
}

.wash-calendar-grid-new .week-cell {
    width: var(--calendar-week-width, 30px);
    min-width: var(--calendar-week-width, 30px);
    max-width: var(--calendar-week-width, 40px);
    font-size: 0.75rem;
}

.wash-calendar-grid-new .week-row {
    transition: background 0.2s ease;
}

.wash-calendar-grid-new .week-row:hover {
    background: rgba(59, 130, 246, 0.02);
}

.wash-calendar-grid-new .bin-cell {
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    padding: 0.15rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    min-height: 28px;
    height: var(--calendar-cell-height, 28px);
    background: white;
}

/* Center the bin icon in cell */
.wash-calendar-grid-new .bin-cell .cell-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.wash-calendar-grid-new .bin-cell .cell-content svg {
    display: block;
    margin: 0 auto;
}

.wash-calendar-grid-new .bin-cell:hover {
    background: #f0f9ff;
    transform: scale(1.02);
    z-index: 5;
}

.wash-calendar-grid-new .bin-cell.has-schedule {
    background: rgba(110, 192, 86, 0.08);
    border-color: rgba(110, 192, 86, 0.35);
}

.wash-calendar-grid-new .bin-cell.has-schedule:hover {
    transform: scale(1.04);
    background: rgba(110, 192, 86, 0.15);
    border-color: #6EC056;
    box-shadow: 0 4px 10px rgba(110, 192, 86, 0.3);
}

.wash-calendar-grid-new .bin-cell.can-schedule:hover {
    transform: scale(1.04);
    background: rgba(110, 192, 86, 0.15);
    border-color: #6EC056;
    box-shadow: 0 4px 10px rgba(110, 192, 86, 0.3);
}

/* Mobile: Hide bin names, show only icons */
@media (max-width: 768px) {
    .wash-calendar-grid-new .waste-type-header .bin-name {
        display: none !important;
    }
    
    .wash-calendar-grid-new .waste-type-header {
        min-width: 40px;
        padding: 0.5rem 0.25rem;
    }
    
    .wash-calendar-grid-new .month-cell {
        width: 35px !important;
        min-width: 35px !important;
        max-width: 40px !important;
    }
    
    .wash-calendar-grid-new .week-cell {
        width: 30px !important;
        min-width: 30px !important;
        max-width: 35px !important;
    }
    
    .wash-calendar-grid-new .bin-cell {
        min-width: 35px !important;
        padding: 0.15rem;
    }
    
    .wash-calendar-grid-new {
        min-width: 280px;
    }
}

/* OLD LAYOUT (kept for backwards compatibility) - bins vertical, weeks horizontal */
.wash-calendar-grid {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
    font-size: 0.875rem;
    margin: 1rem 0;
}

/* New rotated calendar layout: bins as rows, weeks as columns */

/* Month header row (spans multiple columns) */
.month-header-row th {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
    padding: 0.6rem 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.month-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

/* Week header row */
.week-header-row th {
    background: #334155;
    color: white;
    text-align: center;
    padding: 0.4rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 38px;
}

/* Bin column header (Type) */
.bin-col-header {
    text-align: left;
    padding: 0.6rem 0.8rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

/* Bin type cell (first column in each row) */
.bin-type-cell {
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    text-align: left;
    color: white;
    min-width: 110px;
    position: sticky;
    left: 0;
    z-index: 10;
    font-size: 0.85rem;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

/* Bin row */
.bin-row td {
    border: 1px solid var(--border);
}

.bin-header-row th {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 0.8rem 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.week-col-header {
    text-align: left;
    padding-left: 1rem;
    background: #1e293b;
}

/* Colored headers for each bin type */
.bin-header-mat {
    background: var(--mat) !important;
    color: white;
}

.bin-header-rest {
    background: var(--rest) !important;
    color: white;
}

.bin-header-glass {
    background: var(--glass) !important;
    color: white;
}

.bin-header-papir {
    background: var(--papir) !important;
    color: white;
}

.bin-header-plast {
    background: var(--plast) !important;
    color: white;
}

.weekday-header {
    font-weight: 600;
    color: white;
    text-align: center;
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.month-divider td {
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-row td {
    border: 1px solid var(--border);
}

.week-label {
    font-weight: 600;
    padding: 0.65rem 0.75rem;
    width: 120px;
    background: #f8fafc;
}

/* Weekday cells */
.weekday-cell {
    height: 48px;
    min-width: 80px;
    text-align: center;
    vertical-align: middle;
    position: relative;
    background: white;
    border: 1px solid var(--border);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

/* Week has schedule but checkmark is on another day */
.weekday-cell.week-has-schedule {
    background: #f8fafc;
    cursor: pointer;
}

.weekday-cell.week-has-schedule:hover {
    background: #e0f2fe;
    border-color: var(--primary);
    transform: scale(1.02);
}

/* This cell has the checkmark */
.weekday-cell.has-schedule {
    background: #eef8e9;
    border-color: #6EC056;
}

.weekday-cell.has-schedule:hover {
    background: #bbf7d0;
    border-color: #16a34a;
    transform: scale(1.05);
}

.weekday-cell .checkmark {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

/* Animation for added wash week */
.bin-cell.just-added {
    animation: pulse-green 1s ease;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(110, 192, 86, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(110, 192, 86, 0);
    }
}

/* Animation for removed wash week */
.bin-cell.just-removed {
    animation: pulse-red 1s ease;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* Bin cell styling for new layout */
.bin-cell {
    height: 40px;
    min-width: 38px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: white;
    border: 1px solid var(--border);
    text-align: center;
    vertical-align: middle;
    padding: 0.4rem;
}

/* Bin icon in cells (replaces checkmark) */
.bin-cell-icon {
    display: inline-block;
    width: 18px !important;
    height: 18px !important;
    vertical-align: middle;
}

/* Color classes for bin icons */
.mat-color {
    color: var(--mat);
}

.rest-color {
    color: var(--rest);
}

.glass-color {
    color: var(--glass);
}

.papir-color {
    color: var(--papir);
}

.plast-color {
    color: var(--plast);
}

/* Empty cells - can be scheduled (add wash) */
.bin-cell.can-schedule:hover {
    transform: scale(1.04);
    background: rgba(110, 192, 86, 0.15);
    border-color: #6EC056;
    box-shadow: 0 4px 10px rgba(110, 192, 86, 0.3);
    z-index: 1;
}

/* Filled cells - has schedule (can remove wash) */
.bin-cell.has-schedule {
    background: rgba(110, 192, 86, 0.08);
    border-color: rgba(110, 192, 86, 0.35);
}

.bin-cell.has-schedule:hover {
    transform: scale(1.04);
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    z-index: 1;
}

/* Legacy - removed (now using just-added/just-removed) */

.calendar-legend-table {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.legend-item-table {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.legend-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 0.5rem;
}

.legend-item-simple {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
    background: white;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar-empty-message {
    padding: 0.85rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: var(--text);
    text-align: center;
}

@media (max-width: 768px) {
    .wash-calendar-grid {
        font-size: 0.7rem;
        min-width: 500px;
    }
    
    /* Month and week headers */
    .month-header-row th {
        padding: 0.6rem 0.3rem;
        font-size: 0.7rem;
    }
    
    .week-header-row th {
        padding: 0.4rem 0.25rem;
        font-size: 0.65rem;
        min-width: 45px;
    }
    
    /* Bin column header and cells */
    .bin-col-header {
        min-width: 90px;
        font-size: 0.75rem;
        padding: 0.6rem 0.7rem;
    }
    
    .bin-type-cell {
        min-width: 90px;
        font-size: 0.75rem;
        padding: 0.6rem 0.7rem;
    }
    
    .bin-cell {
        min-width: 45px;
        height: 38px;
    }
    
    .bin-cell-icon {
        width: 16px !important;
        height: 16px !important;
    }
    
    .legend-item-simple {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .legend-dot {
        width: 10px;
        height: 10px;
    }
}

/* Date picker styling */
input[type="date"],
.juma-date-picker {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text);
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

input[type="date"]:hover,
.juma-date-picker:hover {
    border-color: var(--primary);
}

input[type="date"]:focus,
.juma-date-picker:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Calendar icon styling for date picker */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    font-size: 20px;
    opacity: 0.6;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background: rgba(59, 130, 246, 0.1);
}

/* Mobile optimization for date picker */
@media (max-width: 640px) {
    input[type="date"],
    .juma-date-picker {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
        min-height: 48px; /* Touch-friendly */
    }
}

/* Toast notifications for mobile */
.juma-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    font-size: 15px;
    font-weight: 500;
    max-width: 90vw;
    text-align: center;
    transition: bottom 0.3s ease;
}

.juma-toast-show {
    bottom: 20px;
}

.juma-toast-warning {
    background: #f59e0b;
    color: #1f2937;
}

.juma-toast-error {
    background: #ef4444;
    color: white;
}

.juma-toast-success {
    background: var(--accent);
    color: white;
}

.juma-toast-info {
    background: var(--primary);
    color: white;
}

/* Mobile phone adjustments (640px and below) - Rotated layout */
@media (max-width: 640px) {
    .calendar-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hide calendar on mobile if setting is enabled */
    body.mobile-hide-calendar .calendar-table-wrapper,
    body.mobile-hide-calendar .wash-calendar-section,
    body.mobile-hide-calendar #wash_calendar {
        display: none !important;
    }
    
    .wash-calendar-grid {
        font-size: 0.65rem;
        width: 100%;
    }
    
    /* Month header row - optimized */
    .month-header-row th {
        padding: 0.3rem 0.15rem !important;
        font-size: 0.55rem !important;
        line-height: 1.1;
    }
    
    /* Week header row - optimized */
    .week-header-row th {
        padding: 0.25rem 0.1rem !important;
        font-size: 0.5rem !important;
        line-height: 1;
        min-width: 28px !important;
        word-wrap: break-word;
    }
    
    /* Bin column header (Type) - optimized */
    .bin-col-header {
        min-width: 60px !important;
        font-size: 0.55rem !important;
        padding: 0.3rem 0.3rem !important;
    }
    
    /* Bin type cells (first column) - optimized */
    .bin-type-cell {
        min-width: 60px !important;
        font-size: 0.55rem !important;
        padding: 0.3rem 0.3rem !important;
    }
    
    /* Bin cells - optimized for maximum space usage */
    .bin-cell {
        min-width: 30px !important;
        height: 28px !important;
        padding: 0.15rem !important;
    }
    
    .bin-cell-icon {
        width: 12px !important;
        height: 12px !important;
    }
    
    
    /* Legend - stack vertically on mobile, ultra compact */
    .legend-wrapper {
        flex-direction: column !important;
        gap: 0.1rem !important;
        align-items: stretch !important;
        padding: 0.3rem 0 !important;
        margin-top: 0.4rem !important;
        margin-bottom: 0.4rem !important;
        background: transparent !important;
        justify-content: flex-start !important;
    }
    
    .legend-item-simple {
        font-size: 0.55rem !important;
        padding: 0.15rem 0.2rem !important;
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .legend-dot {
        width: 5px !important;
        height: 5px !important;
        min-width: 5px !important;
    }
    
    /* Reduce hover effects on mobile for performance */
    .bin-cell.can-schedule:hover {
        transform: scale(1.01);
    }
    
    .bin-cell.has-schedule:hover {
        transform: none;
        background: rgba(59, 130, 246, 0.12);
    }
    
    /* Calendar title and help text - mobile */
    #wash_calendar h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    #wash_calendar p {
        margin-bottom: 0.5rem !important;
    }

    .calendar-instruction-text {
        font-size: 0.95rem !important;
        line-height: 1.45 !important;
        color: var(--text) !important;
    }
    
    /* Weekday cells for old layout if still present */
    .weekday-cell {
        min-width: 35px !important;
        height: 28px !important;
    }
    
    .weekday-cell .checkmark {
        font-size: 0.9rem !important;
    }
    
    
    /* Hide overflow scrollbar but keep functionality */
    .calendar-table-wrapper::-webkit-scrollbar {
        height: 4px;
    }
    
    .calendar-table-wrapper::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }
    
    .calendar-table-wrapper::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 2px;
    }
    
    /* Make info box more compact on mobile */
    .info-box {
        padding: 0.75rem !important;
        font-size: 0.8rem !important;
    }
    
    .info-box p {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
    }
}

/* Old Legend (kept for compatibility) */
.calendar-legend-smart {
    margin-top: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.legend-item-smart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.legend-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Price Summary */
.price-summary {
    background: var(--muted);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem auto;
    max-width: 1100px;
    width: 100%;
    transition: max-width 0.3s ease;
    border: 1px solid var(--border);
}

.price-summary h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-summary h3 svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary);
}

.price-lines {
    margin-bottom: 1rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.price-line-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-bin-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* New combined price display format */
.price-line-combined {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 0.75rem 0;
    align-items: baseline;
    font-size: 1rem;
    color: var(--text);
}

.price-line-label-combined {
    font-weight: 500;
    white-space: nowrap;
}

.price-line-calc {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-line-amount {
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

.price-divider {
    height: 2px;
    background: var(--border);
    margin: 1rem 0;
}

.price-line-total {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.price-line-discount {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #f59e0b;
}

.price-line-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    border-top: 2px solid var(--primary);
    margin-top: 0.5rem;
    padding-top: 1rem;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.price-line-final span:last-child {
    color: var(--accent);
}

/* Old styles kept for compatibility */
.price-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.price-total span:last-child {
    color: var(--accent);
}

.price-total.hidden {
    display: none;
}

.discount-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.12);
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #f59e0b;
}

.discount-info.hidden {
    display: none;
}

.wash-count-info {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.9rem;
    line-height: 1.5;
}

.order-summary-final {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--muted);
}

.summary-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.summary-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    color: var(--text);
    font-size: var(--type-summary-heading);
    font-weight: 600;
    line-height: 1.4;
}

.summary-content {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.6;
}

/* Mobile responsive for combined price display */
@media (max-width: 640px) {
    .price-line-combined {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .price-line-calc,
    .price-line-amount {
        text-align: left;
    }
    
    .price-line-final {
        font-size: 1.05rem;
        padding: 0.5rem 0;
    }
    
    .price-line-final span {
        font-size: 1.05rem !important;
    }

    .price-line-discount {
        display: flex !important;
    }

    input[type="date"],
    .juma-date-picker {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Radio card styling for customer type and invoice method */
.radio-card {
    position: relative;
    background: white;
    transition: all 0.2s ease;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
}

.radio-card--large {
    padding: 1.25rem;
}

.radio-card:hover {
    border-color: var(--primary) !important;
    background: color-mix(in srgb, var(--primary) 6%, white);
}

.radio-card input[type="radio"]:checked + div,
.radio-card:has(input[type="radio"]:checked) {
    border-color: var(--primary) !important;
    background: color-mix(in srgb, var(--primary) 12%, white);
}

.radio-card input[type="radio"] {
    accent-color: var(--primary);
    flex-shrink: 0;
    margin-left: auto;
}

/* Mobile responsive for radio cards */
@media (max-width: 640px) {
    .customer-type-options,
    .invoice-method-options {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
    
    .radio-card {
        padding: 1rem !important;
    }
    
    .radio-card input[type="radio"] {
        width: 18px;
        height: 18px;
    }
}

/* Date input styling */
input[type="date"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--card);
    transition: all 0.3s;
    cursor: pointer;
}

input[type="date"]:hover {
    border-color: var(--primary);
}

input[type="date"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

/* Calendar icon styling for date input */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: opacity(0.6);
    transition: filter 0.3s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: opacity(1);
}

/* Date input wrapper for better styling */
#enkeltvask_dato .form-group {
    background: var(--muted);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

#enkeltvask_dato .form-group:focus-within {
    border-color: var(--primary);
    background: var(--card);
}

/* Contact Section Styling */
.contact-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.section-legend {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.contact-subsection {
    background: var(--muted);
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.required {
    color: var(--primary) !important;
    font-weight: 700;
}

/* Checkbox wrapper styling */
.checkbox-wrapper {
    margin: 1.5rem 0;
    padding: 1rem;
    background: color-mix(in srgb, var(--primary) 8%, white);
    border-radius: 0.5rem;
    border: 1px solid color-mix(in srgb, var(--primary) 25%, white);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-text {
    color: var(--text);
    font-weight: 500;
}

.checkbox-label--start {
    align-items: flex-start;
}

.checkbox-label--start input[type="checkbox"] {
    margin-top: 0.2rem;
}

.checkbox-copy {
    flex: 1;
    line-height: 1.6;
    color: var(--text);
}

.checkbox-copy a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.checkbox-wrapper--terms {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-width: 2px;
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, white);
}

.terms-error {
    margin: 0.625rem 0 0 2rem;
}

.checkbox-label:hover .checkbox-text {
    color: var(--primary);
}

/* Readonly inputs */
input[readonly] {
    background-color: var(--muted) !important;
    cursor: not-allowed;
    color: var(--text-muted);
}

/* Mobile optimization for contact sections */
@media (max-width: 640px) {
    .section-legend {
        font-size: 1.1rem;
    }
    
    .contact-subsection {
        padding: 1rem;
    }
    
    .subsection-title {
        font-size: 0.95rem;
    }
    
    .checkbox-wrapper {
        padding: 0.75rem;
    }
}

/* Buttons */
.btn-row {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1100px;
    width: 100%;
    transition: max-width 0.3s ease;
}

/* Extra spacing under bin selection (step 2) */
#step2 .btn-row {
    margin-top: 2.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius, 0.5rem);
    font-size: var(--font-size-button);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    max-width: 400px;
}

.btn:not(.btn-secondary) {
    background: var(--button-bg, var(--primary));
    color: var(--button-text, white);
}

.btn:not(.btn-secondary):hover {
    background: var(--button-hover, var(--primary-dark));
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: var(--button-secondary-bg, var(--muted));
    color: var(--button-secondary-text, var(--text));
}

.btn-secondary:hover {
    background: var(--border);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Info Box */
.info-box {
    margin-top: 1rem;
    padding: 1rem;
    background: color-mix(in srgb, var(--primary) 12%, white);
    border-left: 4px solid var(--primary);
    border-radius: 0.5rem;
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .juma-clean-form-container {
        padding: 1rem;
    }

    .juma-form-step {
        padding: 1.5rem;
    }
    
    .juma-form-step > * {
        max-width: 100%;
    }

    .juma-form-header h1 {
        font-size: 2rem;
    }
    
    .btn {
        max-width: none;
    }
    
    .btn-row {
        max-width: 100%;
    }
    
    .price-summary {
        max-width: 100%;
    }

    /* Hide inactive steps on mobile - only show current step */
    .juma-progress {
        display: none;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .step3-mobile-icon {
        display: none !important;
    }
    
    .juma-progress .step {
        display: none;
    }
    
    .juma-progress .step.active {
        display: block;
        flex: none;
        width: 100%;
        max-width: 250px;
        opacity: 1;
    }
    
    .juma-progress .step.active .step-label {
        font-size: 1.1rem;
        font-weight: 700;
        margin-top: 0.5rem;
    }
    
    .juma-progress .step.active .step-circle {
        width: 60px;
        height: 60px;
    }
    
    .juma-progress .step.active .step-circle svg {
        width: 28px;
        height: 28px;
    }
    
    /* Hide step connector lines on mobile */
    .step-line {
        display: none;
    }

    .btn-row {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .btn-row .btn {
        flex: 1;
    }

    .calendar-label {
        width: 80px;
        font-size: 0.75rem;
    }

    .calendar-week,
    .calendar-cell {
        width: 24px;
        height: 24px;
    }
}

/* Tablet responsive (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    body {
        font-size: clamp(16px, 1vw + 13px, 17px);
        line-height: 1.65;
    }

    .juma-clean-form-container {
        padding: 1.75rem;
    }

    .juma-form-step {
        padding: 2rem;
        margin-bottom: 1.25rem;
    }

    .juma-form-step > *,
    .price-summary,
    .btn-row {
        max-width: min(92vw, var(--content-max-tablet));
    }

    .grid {
        gap: 1.25rem;
    }

    .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .form-group {
        margin-bottom: var(--spacing-field);
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="date"],
    .form-group select,
    .form-group textarea {
        padding: 0.85rem 1rem;
        min-height: calc(var(--touch-target) - 2px);
        font-size: 16px !important; /* Prevent iOS zoom - must be at least 16px */
    }

    .btn-row {
        gap: 0.85rem;
    }

    .btn {
        padding: 0.85rem 1.5rem;
        min-height: var(--touch-target);
    }

    .juma-progress {
        max-width: min(92vw, var(--content-max-tablet));
        margin: 0 auto 1.5rem;
        gap: 0.75rem;
    }

    .juma-form-header h1 {
        font-size: clamp(2.1rem, 1.4vw + 1.6rem, 2.5rem);
    }

    .juma-form-step > h2:first-of-type:not(.sr-only) {
        font-size: clamp(1.5rem, 1.6vw + 0.9rem, 1.85rem);
    }

    legend {
        font-size: clamp(1.3rem, 1.4vw + 0.85rem, 1.6rem);
    }

    .price-line,
    .price-line-total,
    .price-line-discount {
        font-size: 1rem;
    }
}

/* Mobile and tablet responsive (< 1024px) */
@media (max-width: 1023px) {
    body {
        font-size: clamp(16px, 2vw + 12px, 18px);
        line-height: 1.7;
        overflow-x: hidden;
    }

    .juma-clean-form-container {
        padding: 1rem;
        margin: 1.25rem auto;
    }

    .juma-form-header h1 {
        font-size: clamp(1.85rem, 3vw + 1.1rem, 2.2rem);
    }

    .juma-form-header p {
        font-size: 1rem;
    }

    .juma-form-step {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .juma-form-step > * {
        max-width: var(--content-max-mobile);
    }

    .form-group {
        margin-bottom: var(--spacing-field-mobile);
    }

    .form-group label {
        font-size: 1rem;
        line-height: 1.4;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="date"],
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        min-height: var(--touch-target);
        border-radius: 0.6rem;
        font-size: 16px !important; /* Prevent iOS zoom - must be at least 16px */
        line-height: 1.4;
    }

    .grid {
        gap: 1rem;
    }

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

    .btn-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .btn-row .btn {
        flex: 1;
        min-width: 0;
    }

    .btn {
        width: 100%;
        max-width: none;
        padding: 1rem;
        min-height: var(--touch-target);
        font-size: 1.05rem;
    }

    .price-summary {
        padding: 1.25rem;
        margin: 1rem auto;
        max-width: 100%;
    }

    .price-line,
    .price-line-total,
    .price-line-discount {
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }

    .price-line-amount,
    .price-line-total span:last-child {
        font-size: 1.05rem;
    }

    .juma-progress {
        position: sticky;
        top: 0;
        background: var(--background);
        padding: 0.75rem 0;
        z-index: 20;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        margin-bottom: 1rem;
    }

    .juma-progress .step {
        display: none;
    }

    .juma-progress .step.active {
        display: block;
        max-width: 100%;
    }

    .step-line {
        display: none;
    }

    .juma-progress .step.active .step-circle {
        width: 56px;
        height: 56px;
    }

    .juma-progress .step.active .step-label {
        font-size: 1.05rem;
    }

    .info-box {
        padding: 0.9rem;
    }
}

/* reCAPTCHA v3 Badge */
.grecaptcha-badge {
    visibility: visible;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.grecaptcha-badge:hover {
    opacity: 1;
}

/* Alternatively, hide the badge and show disclaimer text */
/* 
.grecaptcha-badge { 
    visibility: hidden; 
}
*/

/* If you hide the badge, you MUST add this text somewhere visible:
"This site is protected by reCAPTCHA and the Google
Privacy Policy and Terms of Service apply."
*/

/* Utility Classes */
.hidden {
    display: none !important;
}

.muted {
    color: var(--text-muted);
}

/* Loading Spinner */
.juma-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.juma-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.juma-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: juma-spin 0.8s linear infinite;
}

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

.juma-loading-text {
    color: white;
    font-size: 1.1rem;
    margin-top: 1rem;
    text-align: center;
}

/* Inline spinner for price loading */
.juma-inline-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(27, 156, 196, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: juma-spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* Progressive enhancement - no JavaScript fallback */
.no-js .juma-form-step:not(:first-child) {
    display: block !important;
    opacity: 1 !important;
}

.no-js .step-navigation {
    display: none;
}

.no-js .juma-progress {
    display: none;
}

.no-js #juma-order-form {
    display: block !important;
}

.no-js .juma-clean-form-container::before {
    content: "⚠️ JavaScript er deaktivert. Alle felt vises på én side.";
    display: block;
    background: #fef3c7;
    color: #92400e;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* ========================================
   SUCCESS PAGE STYLES (Step 6)
   ======================================== */

.success-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Success Header */
.success-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #6EC056 0%, #4F9E3F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(110, 192, 86, 0.3);
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.success-header h2 {
    font-size: 1.75rem;
    color: #1f2937;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.order-number-display {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

.order-number-display strong {
    color: var(--accent);
    font-weight: 700;
}

/* Email Confirmation Notice */
.email-confirmation-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0 0.75rem;
    border: 1px solid #c7e3b9;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-section .form-group {
    margin-bottom: 1.25rem;
}

.contact-section .grid {
    gap: 0.875rem 1rem;
}

.email-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.email-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.email-text strong {
    font-size: 0.95rem;
    color: #426f34;
}

.email-text span {
    font-size: 0.875rem;
    color: #507b43;
}

.email-text span span {
    font-weight: 600;
}

/* Order Summary Card */
.order-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.order-summary-card h3 {
    font-size: 1rem;
    color: #374151;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    font-weight: 600;
}

#order-confirmation-details {
    display: grid;
    gap: 0.75rem;
}

#order-confirmation-details > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

#order-confirmation-details > div:last-child {
    border-bottom: none;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 2px solid #e2e8f0;
}

/* What Happens Section */
.what-happens-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.what-happens-section h3 {
    font-size: 1rem;
    color: #374151;
    margin: 0 0 1.25rem;
    font-weight: 600;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    width: 2px;
    height: calc(100% - 20px);
    background: #e2e8f0;
}

.timeline-step.completed:not(:last-child)::after {
    background: var(--accent);
}

.step-marker {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.timeline-step.completed .step-marker {
    background: var(--accent);
    color: white;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding-top: 0.25rem;
}

.step-content strong {
    font-size: 0.925rem;
    color: #1f2937;
}

.step-content span {
    font-size: 0.825rem;
    color: #64748b;
}

/* Contact Section */
.contact-section-success {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-section-success h4 {
    font-size: 1rem;
    color: #374151;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.contact-section-success p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-method {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-method:hover {
    background: var(--primary);
    color: white;
}

.contact-method svg {
    width: 18px;
    height: 18px;
}

/* Success Actions */
.success-actions {
    text-align: center;
    padding-top: 0.5rem;
}

.success-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Contact Form Shortcode */
.juma-contact-form-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.juma-contact-form-shell .juma-form-step {
    padding: 0;
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
    align-items: stretch;
}

.juma-contact-form-shell .juma-form-step > * {
    max-width: 100%;
}

#juma-contact-form-feedback.hidden {
    display: none;
}

.field-helper-msg {
    margin: 8px 0 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #64748b;
}

.field-helper-msg.hidden {
    display: none !important;
}

.field-helper-msg[data-state="warning"] {
    color: #b45309;
}

.field-helper-msg[data-state="info"] {
    color: #475569;
}

.juma-contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

#juma-contact-form input.contact-warning,
#juma-contact-form textarea.contact-warning {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

#juma-contact-form .btn[disabled] {
    opacity: 0.7;
    cursor: wait;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .success-page {
        padding: 1.5rem 1rem;
    }
    
    .success-icon {
        width: 64px;
        height: 64px;
    }
    
    .success-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .success-header h2 {
        font-size: 1.5rem;
    }
    
    .email-confirmation-notice {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .timeline-step {
        gap: 0.75rem;
    }
    
    .step-marker {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .timeline-step:not(:last-child)::after {
        left: 13px;
        top: 28px;
    }
}

/* Tooltip styles */
.tooltip-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 6px;
    vertical-align: middle;
    position: relative;
    user-select: none;
}

.tooltip-icon:hover {
    background: var(--primary-dark);
}

.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #1f2937;
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.tooltip-icon.active .tooltip-text {
    opacity: 1;
    visibility: visible;
}
