/* ============================================================
   Webshop order landing page (welcome + steps + FAQ)

   Moved from static/webshop/css/style.css (regels 3182-3686) als
   onderdeel van PLAN_FRONTEND_GODFILES COMMIT_10d.

   Geladen via templates/webshop/order_landing.html in {% block extra_css %}.
   ============================================================ */

/* ============================================================
   ORDER LANDING — Welcome + Steps + FAQ
   ============================================================ */

/* ── Welcome section ─────────────────── */
.landing-welcome {
    background: var(--color-background-light);
    border-bottom: 1px solid var(--color-border-light);
    padding: 24px 32px;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}
.welcome-row {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.welcome-row .welcome-text-block {
    flex: 1;
    min-width: 0;
}
.welcome-photo {
    width: 68px;
    height: 68px;
    border-radius: 6px;
    object-fit: cover;
    border: 3px solid var(--color-background-light);
    box-shadow: 0 4px 16px rgba(92, 74, 40, 0.12);
    flex-shrink: 0;
}
.welcome-greeting {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-text-accent);
    line-height: 1;
    margin: 0 0 8px;
}
.welcome-line2 {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}
/* Login-link inline in welcome-line2 (anonymous only).
   Doorlopende tekst direct na line2, accent-kleur + underline. */
.welcome-login-link {
    color: var(--color-text-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    cursor: pointer;
}
.welcome-login-link:hover {
    color: var(--color-accent);
}
.welcome-login-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Login modal (anonymous-only) ─────────────────── */
/* Outer overlay = backdrop + flex-center voor card. Geen transform (anders conflicteert
   x-transition met onze positioning en zien klanten een 'verplaats'-flicker). */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.login-modal-card {
    position: relative;
    background: var(--color-background-light);
    border-radius: 12px;
    padding: 28px 26px 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
.login-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}
.login-modal-close:hover { color: var(--color-text); }
.login-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 18px;
}
.login-modal-logo {
    max-width: 36px;
    max-height: 36px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}
.login-modal-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-text-accent);
    margin: 0;
}
.login-modal-error {
    background: rgba(193, 122, 107, 0.12);
    color: #8d4d3f;
    border: 1px solid rgba(193, 122, 107, 0.4);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12.5px;
    margin-bottom: 12px;
}
.login-modal-form { display: flex; flex-direction: column; gap: 10px; }
.login-modal-field { display: flex; flex-direction: column; gap: 4px; }
.login-modal-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
}
.login-modal-field input {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: var(--font-ui);
}
.login-modal-field input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light-bg);
}
.login-modal-submit {
    background: var(--color-button);
    color: var(--color-text-button);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-ui);
    cursor: pointer;
    margin-top: 6px;
}
.login-modal-submit:disabled { opacity: 0.6; cursor: wait; }
.login-modal-footer {
    text-align: center;
    margin-top: 14px;
}
.login-modal-footer a {
    font-size: 12px;
    color: var(--color-text-light);
    text-decoration: underline;
}
.login-modal-footer a:hover { color: var(--color-accent); }

/* ── Steps card ─────────────────── */
.steps-card {
    background: var(--color-background-light);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    padding: 18px 24px 14px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 16px rgba(0, 0, 0, 0.04);
}
.steps-title {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 18px;
}
.steps-list {
    list-style: none;
    position: relative;
    padding-left: 40px;
}
/* Verticale lijn achter de nummers */
.steps-list::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: linear-gradient(
        180deg,
        var(--color-accent) 0%,
        var(--color-border-light) 40%,
        var(--color-border-light) 100%
    );
}
.step-item {
    position: relative;
    padding: 6px 0;
}
.step-item + .step-item {
    margin-top: 2px;
}
.step-circle {
    position: absolute;
    left: -40px;
    top: 6px;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--color-background-light);
    border: 1.5px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-light);
    z-index: 1;
}
.step-active .step-circle {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-button);
    box-shadow: 0 2px 6px var(--shadow-color);
}
.step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.step-label {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
}
.step-active .step-label {
    font-weight: 600;
    color: var(--color-text-accent);
}
.step-sub {
    font-family: var(--font-ui);
    font-size: 10.5px;
    color: var(--color-text-light);
    line-height: 1.4;
}
.step-browse .step-circle {
    border-style: dashed;
    font-size: 13px;
}
.step-browse-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}
.step-browse-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.steps-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-light);
    text-align: center;
}
.faq-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-light);
    background: var(--color-background);
    border: 1.5px solid var(--color-border-light);
    border-radius: 8px;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.faq-trigger:hover {
    border-color: var(--color-accent);
    color: var(--color-text-accent);
    background: var(--color-accent-light-bg);
}

/* Calendar overrides: 1.5px accent-border + bold accent-headers.
   Page-specifiek via .landing-section om checkout-kalender ongewijzigd te laten. */
.landing-section .calendar {
    border: 1.5px solid var(--color-accent);
}
.landing-section .cal-month {
    color: var(--color-text-accent);
}
.landing-section .cal-weekday {
    color: var(--color-text-accent);
}

/* ── Landing sections ─────────────────── */
.landing-section {
    padding: 0 24px;
    margin-bottom: 16px;
}
.landing-section .section-label {
    margin-bottom: 10px;
}
.landing-section .location-tile {
    padding: 10px 14px;
    border-radius: 10px;
}
.landing-section .loc-tile-name-row .location-type-badge {
    display: none;
}
.landing-section .location-days {
    margin-top: 4px;
}
.landing-section .location-tiles,
.date-bar-panel .location-tiles {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.landing-section .loc-details,
.date-bar-panel .loc-details {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Tile icon / photo */
.loc-tile-icon {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-background-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.loc-tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Fallback SVG icon when no photo */
.loc-tile-icon svg {
    width: 18px; height: 18px;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Tile content */
.loc-tile-content {
    flex: 1;
    min-width: 0;
}
.loc-tile-name-row {
    margin-bottom: 2px;
}
.loc-tile-name-row .location-type-badge {
    display: inline-block;
    margin-bottom: 4px;
}
.loc-tile-name-row .location-name {
    margin-bottom: 0;
}

/* Radio check */
.loc-tile-check {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.location-tile.selected .loc-tile-check {
    background: var(--color-accent);
    border-color: var(--color-accent);
}
.loc-tile-check svg {
    width: 11px; height: 11px;
    stroke: transparent;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
}
.location-tile.selected .loc-tile-check svg {
    stroke: var(--color-text-button, #fff);
}
.section-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.section-header-num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--color-accent);
    color: var(--color-text-button);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.landing-actions {
    padding: 8px 24px;
    text-align: center;
}
.landing-cta-secondary {
    display: block;
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}
/* Page-specifieke modifier op .btn-secondary (basis in _status.css).
   Bij hergebruik op andere pagina's: promoten naar shared file in aparte refactor. */
.btn-secondary.btn-accent {
    color: var(--color-text-accent);
    border-color: var(--color-border);
}
.btn-secondary.btn-accent:hover {
    border-color: var(--color-accent);
    background: var(--color-background-dark);
}

/* ── FAQ panel (drawer mobile, modal desktop) ─────────────────── */
.faq-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 200;
}
.faq-panel {
    position: fixed;
    z-index: 201;
    background: var(--color-background-light);
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.faq-panel.open {
    transform: translateY(0);
}
/* Mobile: bottom drawer */
.faq-panel {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 10px 10px 0 0;
    max-height: 80vh;
    padding: 0 20px 24px;
}
.faq-panel-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
    cursor: pointer;
}
.faq-panel-handle-bar {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--color-border-light);
}
.faq-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.faq-panel-title {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}
.faq-panel-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-background);
    border-radius: 6px;
    font-size: 18px;
    color: var(--color-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.faq-panel-close:hover {
    background: var(--color-border-light);
}
/* FAQ accordion */
.faq-item {
    border-bottom: 1px solid var(--color-border-light);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
}
.faq-question:hover {
    color: var(--color-text-accent);
}
.faq-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--color-text-light);
}
.faq-question.open .faq-chevron {
    transform: rotate(180deg);
}
.faq-answer {
    overflow: hidden;
}
.faq-answer p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.8;
    padding: 0 0 14px;
}

/* Desktop: centered modal */
@media (min-width: 640px) {
    .faq-panel {
        bottom: auto;
        left: 50%;
        top: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
        pointer-events: none;
        max-width: 480px;
        width: calc(100% - 48px);
        max-height: 70vh;
        border-radius: 10px;
        padding: 0 24px 24px;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    }
    .faq-panel.open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: auto;
    }
    .faq-panel-handle {
        display: none;
    }
}

/* ── Order landing responsive (mobile) ─────────────────── */
@media (max-width: 640px) {
    .landing-welcome {
        padding: 20px 16px;
    }
    .loc-tile-icon {
        width: 52px;
        height: 52px;
    }
}
