/* ══════════════════════════════════════════════════════════════════════════
   NORDIC BOOKING WIZARD – PREMIUM UI (Timma.dk Inspired)
   Color Palette: Mauve/Brown #4A3F47 • #6B5F67 • #8B7F87 • #f8f5f3
   Fonts: Open Sans (body) + Quicksand (headers)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────────────────────────────── */
#vn-booking-app {
    max-width: 1100px;
    margin: 30px auto;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(74, 63, 71, 0.12);
    color: #333;
    line-height: 1.6;
}
#vn-booking-app *, #vn-booking-app *::before, #vn-booking-app *::after {
    box-sizing: border-box;
}

/* ── Header ──────────────────────────────────────────────────────────── */
.vn-header {
    background: linear-gradient(135deg, #4A3F47 0%, #3A2F37 100%);
    padding: 20px 30px;
    text-align: center;
}
.vn-header-logo {
    font-family: 'Quicksand', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}
.vn-header-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Progress Bar ────────────────────────────────────────────────────── */
.vn-progress {
    display: flex;
    background: #f8f5f3;
    border-bottom: 1px solid #e8e4e2;
}
.vn-progress-step {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
}
.vn-progress-step::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #e8e4e2;
}
.vn-progress-step:last-child::after { display: none; }

.vn-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    background: #e8e4e2;
    color: #999;
    transition: all 0.3s ease;
}
.vn-step-label {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    transition: color 0.3s;
}
.vn-step-sublabel {
    font-size: 11px;
    color: #bbb;
    transition: color 0.3s;
}

/* Active & Completed States */
.vn-progress-step.active .vn-step-num {
    background: #4A3F47;
    color: #fff;
}
.vn-progress-step.active .vn-step-label { color: #4A3F47; }
.vn-progress-step.active .vn-step-sublabel { color: #8B7F87; }
.vn-progress-step.active::after { border-left-color: #4A3F47; }

.vn-progress-step.done .vn-step-num {
    background: #28a745;
    color: #fff;
}
.vn-progress-step.done .vn-step-label { color: #4A3F47; }

/* ── Main Layout ─────────────────────────────────────────────────────── */
.vn-body {
    display: flex;
    min-height: 500px;
}
.vn-main {
    flex: 1;
    padding: 0;
}
.vn-sidebar {
    width: 340px;
    flex-shrink: 0;
    background: #faf8f7;
    border-left: 1px solid #e8e4e2;
    padding: 30px;
    position: sticky;
    top: 0;
    align-self: flex-start;
}

/* ── Step Panels ─────────────────────────────────────────────────────── */
.vn-step-panel {
    display: none;
    animation: vnFadeIn 0.35s ease-out;
}
.vn-step-panel.active {
    display: block;
}
@keyframes vnFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Service Categories (Accordion) ──────────────────────────────────── */
.vn-cat-item {
    border-bottom: 1px solid #f0eded;
}
.vn-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}
.vn-cat-header:hover {
    background: #faf8f7;
}
.vn-cat-name {
    font-weight: 600;
    font-size: 14px;
    color: #4A3F47;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vn-cat-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    transition: all 0.3s;
}
.vn-cat-item.open .vn-cat-arrow {
    transform: rotate(90deg);
    border-color: #4A3F47;
    color: #4A3F47;
}
.vn-cat-body {
    display: none;
    background: #fff;
}

/* ── Service Rows ────────────────────────────────────────────────────── */
.vn-svc-row {
    display: flex;
    align-items: center;
    padding: 14px 30px 14px 45px;
    border-top: 1px solid #f5f3f1;
    cursor: pointer;
    transition: background 0.15s;
    gap: 15px;
}
.vn-svc-row:hover {
    background: #f8f5f3;
}
.vn-svc-row.checked {
    background: #f0ebe8;
}
.vn-svc-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d0ccc9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}
.vn-svc-row.checked .vn-svc-check {
    background: #4A3F47;
    border-color: #4A3F47;
}
.vn-svc-row.checked .vn-svc-check::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}
.vn-svc-info {
    flex: 1;
    min-width: 0;
}
.vn-svc-name {
    font-weight: 500;
    font-size: 14px;
    color: #4A3F47;
}
.vn-svc-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vn-svc-price {
    font-weight: 600;
    font-size: 14px;
    color: #4A3F47;
    white-space: nowrap;
}
.vn-svc-hidden-input {
    display: none;
}

/* ── Sidebar (Oversigt) ──────────────────────────────────────────────── */
.vn-sidebar-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #4A3F47;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
}
.vn-sidebar-empty {
    text-align: center;
    padding: 30px 0;
    color: #bbb;
}
.vn-sidebar-empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.4;
}
.vn-sidebar-empty-text {
    font-size: 14px;
}
.vn-cart-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}
.vn-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #e8e4e2;
    font-size: 13px;
    gap: 10px;
}
.vn-cart-item-name {
    flex: 1;
    color: #4A3F47;
}
.vn-cart-item-price {
    font-weight: 600;
    color: #4A3F47;
    white-space: nowrap;
}
.vn-cart-item-remove {
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s;
}
.vn-cart-item-remove:hover { color: #d63638; }

.vn-cart-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-weight: 700;
    font-size: 16px;
    color: #4A3F47;
    border-top: 2px solid #4A3F47;
}
.vn-cart-note {
    font-size: 11px;
    color: #bbb;
    margin-top: 5px;
    font-style: italic;
}

/* ── CTA Button (Sidebar) ────────────────────────────────────────────── */
.vn-btn-cta {
    display: block;
    width: 100%;
    padding: 14px;
    background: #4A3F47;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    margin-top: 20px;
}
.vn-btn-cta:hover {
    background: #3A2F37;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74,63,71,0.3);
}
.vn-btn-cta:disabled {
    background: #d0ccc9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Staff Selection ─────────────────────────────────────────────────── */
.vn-staff-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px;
}
.vn-staff-card {
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 10px;
    border-radius: 12px;
    width: 100px;
}
.vn-staff-card:hover {
    background: #f8f5f3;
    transform: translateY(-2px);
}
.vn-staff-card.selected {
    background: #f0ebe8;
    box-shadow: 0 2px 10px rgba(74,63,71,0.15);
}
.vn-staff-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8e4e2;
    transition: border-color 0.2s;
    display: block;
    margin: 0 auto 8px;
}
.vn-staff-card.selected .vn-staff-avatar {
    border-color: #4A3F47;
}
.vn-staff-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #4A3F47;
}
.vn-staff-prompt {
    text-align: center;
    color: #8B7F87;
    font-size: 15px;
    padding: 30px;
}

/* ── Weekly Calendar ─────────────────────────────────────────────────── */
.vn-calendar-wrap {
    padding: 0 30px 30px;
    display: none;
}
.vn-calendar-wrap.visible { display: block; }

.vn-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 10px;
}
.vn-calendar-nav-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.vn-calendar-nav-btn:hover {
    border-color: #4A3F47;
    color: #4A3F47;
}
.vn-calendar-week-label {
    font-weight: 600;
    font-size: 16px;
    color: #4A3F47;
    text-transform: uppercase;
}

.vn-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e8e4e2;
    border-radius: 8px;
    overflow: hidden;
}
.vn-week-col {
    background: #fff;
    min-height: 300px;
}
.vn-week-header {
    text-align: center;
    padding: 10px 5px;
    background: #f8f5f3;
    font-weight: 600;
    font-size: 12px;
    color: #8B7F87;
    text-transform: uppercase;
    border-bottom: 1px solid #e8e4e2;
}
.vn-week-header .day-name { display: block; }
.vn-week-header .day-date {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #4A3F47;
    margin-top: 2px;
}
.vn-week-header.today { background: #f0ebe8; }
.vn-week-header.today .day-date { color: #4A3F47; }

.vn-week-slots {
    padding: 5px;
}

/* ── Time Buttons ────────────────────────────────────────────────────── */
.vn-time-btn {
    display: block;
    width: 100%;
    padding: 8px 4px;
    margin-bottom: 4px;
    text-align: center;
    border: 1px solid #e8e4e2;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #4A3F47;
    background: #fff;
    transition: all 0.15s;
}
.vn-time-btn:hover {
    background: #f0ebe8;
    border-color: #4A3F47;
}
.vn-time-btn.selected {
    background: #4A3F47;
    color: #fff;
    border-color: #4A3F47;
}
.vn-time-btn.disabled {
    background: #f9f7f6;
    color: #d0ccc9;
    cursor: not-allowed;
    border-color: #f0eded;
}

/* ── Info Form (Step 3) ──────────────────────────────────────────────── */
.vn-info-form {
    padding: 30px;
}
.vn-form-group {
    margin-bottom: 20px;
}
.vn-form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #4A3F47;
    margin-bottom: 6px;
}
.vn-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0dbd8;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.vn-form-input:focus {
    border-color: #4A3F47;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74,63,71,0.1);
}
.vn-form-textarea {
    resize: vertical;
    min-height: 80px;
}
.vn-form-note {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* ── Confirm Options ─────────────────────────────────────────────────── */
.vn-confirm-options {
    background: #f8f5f3;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 10px;
}
.vn-confirm-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 25px;
    cursor: pointer;
    font-size: 14px;
    color: #4A3F47;
}

/* ── Marketing Opt-in ────────────────────────────────────────────────── */
.vn-marketing {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #e8e4e2;
    border-radius: 8px;
}
.vn-marketing label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    margin-bottom: 6px;
}

/* ── Cancellation Policy ─────────────────────────────────────────────── */
.vn-policy-box {
    background: #fff8f0;
    border: 1px solid #f0e0d0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #856404;
    line-height: 1.7;
}
.vn-policy-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
    color: #856404;
    text-transform: uppercase;
}

/* ── Sidebar Summary Details ─────────────────────────────────────────── */
.vn-summary-detail {
    font-size: 13px;
    margin-bottom: 8px;
    color: #666;
    display: flex;
    gap: 8px;
}
.vn-summary-detail-icon {
    flex-shrink: 0;
}

/* ── Terms ────────────────────────────────────────────────────────────── */
.vn-terms {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 10px 0;
}
.vn-terms a {
    color: #4A3F47;
    text-decoration: underline;
}

/* ── Success Page ────────────────────────────────────────────────────── */
.vn-success {
    text-align: center;
    padding: 60px 30px;
}
.vn-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}
.vn-success h2 {
    color: #28a745;
    font-family: 'Quicksand', sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
}
.vn-success p {
    color: #666;
    font-size: 16px;
}
.vn-success .vn-btn-cta {
    display: inline-block;
    width: auto;
    padding: 14px 40px;
    margin-top: 25px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.vn-footer {
    background: #4A3F47;
    padding: 25px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}
.vn-footer-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
}
.vn-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.vn-footer a:hover { color: #fff; }
.vn-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.vn-footer-social a {
    font-size: 20px;
}

/* ── Slots Message ───────────────────────────────────────────────────── */
.vn-slots-msg {
    text-align: center;
    padding: 15px;
    color: #999;
    font-size: 13px;
    grid-column: 1 / -1;
}
.vn-slots-closed { color: #d63638; }
.vn-slots-off { color: #856404; }

/* ── Notice ──────────────────────────────────────────────────────────── */
.vn-notice-closed {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    text-align: center;
    background: #f8d7da;
    color: #721c24;
    border-radius: 12px;
    font-family: 'Open Sans', sans-serif;
}

/* ── Loading Skeleton ────────────────────────────────────────────────── */
.vn-loading {
    text-align: center;
    padding: 30px;
    color: #bbb;
}
.vn-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e8e4e2;
    border-top-color: #4A3F47;
    border-radius: 50%;
    animation: vnSpin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes vnSpin {
    to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    #vn-booking-app {
        margin: 10px;
        border-radius: 12px;
    }
    .vn-body {
        flex-direction: column;
    }
    .vn-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e8e4e2;
        order: 2;
        position: relative;
    }
    .vn-main { order: 1; }

    .vn-progress {
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .vn-progress-step {
        padding: 12px 8px;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    .vn-step-label { font-size: 11px; }
    .vn-step-sublabel { display: none; }
    .vn-progress-step::after { display: none; }

    .vn-staff-grid {
        padding: 20px;
        gap: 12px;
    }
    .vn-staff-card { width: 80px; }
    .vn-staff-avatar { width: 56px; height: 56px; }

    .vn-week-grid {
        grid-template-columns: repeat(7, 1fr);
        font-size: 12px;
    }
    .vn-week-header .day-date { font-size: 14px; }
    .vn-time-btn { padding: 6px 2px; font-size: 11px; }

    .vn-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .vn-footer-social { justify-content: center; }

    .vn-cat-header { padding: 14px 20px; }
    .vn-svc-row { padding: 12px 20px 12px 30px; }
    .vn-info-form { padding: 20px; }
    .vn-calendar-wrap { padding: 0 15px 20px; }
}

@media (max-width: 480px) {
    .vn-progress-step { padding: 10px 4px; }
    .vn-step-num { width: 28px; height: 28px; font-size: 12px; }
    .vn-staff-grid { gap: 8px; }
    .vn-staff-card { width: 70px; }
    .vn-staff-avatar { width: 48px; height: 48px; }
}

/* ── Customer Portal ─────────────────────────────────────────────────── */
.vn-portal {
    max-width: 850px;
    margin: 30px auto;
    font-family: 'Open Sans', sans-serif;
}
.vn-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.vn-portal-card {
    background: linear-gradient(135deg, #4A3F47, #3A2F37);
    color: #fff;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 12px 30px rgba(74,63,71,0.25);
}
.vn-portal-progress {
    background: rgba(255,255,255,0.15);
    height: 8px;
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
}
.vn-portal-progress-bar {
    background: #fff;
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.vn-portal-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.vn-portal-table th {
    background: #f8f5f3;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #4A3F47;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vn-portal-table td {
    padding: 15px;
    border-bottom: 1px solid #f0eded;
    font-size: 14px;
}
