﻿/* Page backdrop — faint glasses + eye-chart watermark behind the whole flow (mock-up look).
   Drop the artwork at /Themes/Noise2026/Content/images/booking-bg.png; until then the soft
   gradient below stands in, so the page never looks broken. Scoped to this page via the body class. */
html.book-appointment-page .master-wrapper-content,
html.book-appointment-page .master-column-wrapper,
html.book-appointment-page .center-2,
html.book-appointment-page .page {
    max-width: none !important;
}

html.book-appointment-page .master-wrapper-content {
    background-color: #fafbfc;
    /* flat 50% white veil over the artwork = the image at ~opacity .5 on white */
    background-image:
        linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)),
        url('/Themes/Noise2026/Content/images/booking-bg.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

.bk {
    max-width: 1120px;
    margin: 0 auto;
    /* padding (not margin) so the gaps stay INSIDE the watermark wrapper and don't margin-collapse
       out above it — the transparent .bk lets the artwork show through above/below the panel. */
    padding: 64px 0 72px;
    background: transparent;
}

/* White panel wrapping the whole flow so the content stands out from the watermark, while the
   artwork still shows in the margins beside the centred panel. */
.bk-panel {
    background: #fff;
    border: 1px solid #e8ebee;
    border-radius: 4px;
    box-shadow: 0 6px 30px rgba(32, 27, 61, .07);
    overflow: hidden;
    padding: 16px;
    font-family: 'Optician Sans', sans-serif;
}

.bk-hdr {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0 6px;
}

.bk-hdr-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #211d3e;
    margin: 0;
}

.bk-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 12% 6px;
}

.bk-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    position: relative;
}

.bk-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #9aa0aa;
    position: relative;
    z-index: 1;
}

.bk-step.is-current .bk-dot {
    background: #211d3e;
    border-color: #211d3e;
    color: #fff;
}

.bk-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
}

.bk-step-lbl {
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9aa0aa;
    text-align: center;
}

.bk-step.is-current .bk-step-lbl {
    color: #211d3e;
    font-weight: 600;
}

.bk-body {
    padding: 26px 5% 40px;
}

.bk-lead {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 20px;
}

.bk-ctx {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e8ebee;
    border-radius: 4px;
    padding: 12px 16px;
    background: #fbfbfc;
    margin-bottom: 20px;
    font-size: 15px;
}

.bk-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bk-service {
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, background .15s;
}

.bk-service:hover {
    border-color: #c7c9d1;
}

.bk-service.is-selected {
    border-color: #201b3d;
    background: #f4f2fb;
    box-shadow: 0 2px 10px rgba(32, 27, 61, .08);
}

.bk-ico {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f4f2fb;
    color: #201b3d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bk-service.is-selected .bk-ico {
    background: #fff;
    box-shadow: 0 2px 8px rgba(32, 27, 61, .12);
}

.bk-ico svg {
    width: 24px;
    height: 24px;
}

.bk-name {
    font-size: 18px;
    font-weight: 600;
    color: #211d3e;
}

.bk-desc {
    font-family: 'Stolzl', sans-serif;
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.45;
}

.bk-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.bk-chip {
    font-size: 12px;
    letter-spacing: .04em;
    color: #211d3e;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 3px 10px;
}

.bk-chip.is-free {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.bk-go {
    margin-left: auto;
    align-self: center;
    color: #9aa0aa;
    flex-shrink: 0;
}

.bk-service.is-selected .bk-go {
    color: #201b3d;
}

.bk-go svg {
    width: 22px;
    height: 22px;
}

.bk-foot {
    font-size: 14px;
    color: #6b7280;
    margin: 22px 0 0;
}

.bk-empty {
    border: 1px dashed #d8dce1;
    border-radius: 4px;
    padding: 28px 20px;
    text-align: center;
    color: #6b7280;
}

@media (max-width: 767px) {
    .bk {
        border: 0;
    }

    .bk-steps {
        padding: 16px 6% 4px;
    }

    .bk-body {
        padding: 18px 16px 30px;
    }

    .bk-back {
        left: 16px;
    }

    .bk-services {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bk-service {
        padding: 14px;
        gap: 13px;
    }

    .bk-ico {
        width: 40px;
        height: 40px;
    }

    .bk-name {
        font-size: 16px;
    }
}

.bk-back {
    position: absolute;
    left: 5%; /* line the back arrow up with the cards below (.bk-body has 5% side padding) */
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
}

.bk-pane {
    display: none;
}

.bk-pane.is-active {
    display: block;
}

.bk-step.is-done .bk-dot {
    background: #211d3e;
    border-color: #211d3e;
    color: #fff;
}

.bk-step.is-done .bk-step-lbl {
    color: #211d3e;
}

.bk-eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 12px;
}

.bk-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 8px 0 0;
    display: block;
}

.bk-optional {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    text-transform: lowercase;
    margin-left: 6px;
}

.bk-center {
    text-align: center;
}

.bk-where {
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 24px;
}

.bk-store {
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    padding: 13px 15px;
    margin-bottom: 10px;
    cursor: pointer;
}

.bk-store:hover {
    border-color: #c7c9d1;
}

.bk-store.is-selected {
    border-color: #201b3d;
    background: #f4f2fb;
}

.bk-store-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.bk-store-name {
    font-size: 16px;
    font-weight: 600;
}

.bk-dist {
    font-size: 14px;
    white-space: nowrap;
}

.bk-store-meta {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.bk-days-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bk-days {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    flex-grow: 1;
}

.bk-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0aa;
    cursor: pointer;
    flex-shrink: 0;
}

.bk-day {
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    padding: 9px 2px 7px;
    text-align: center;
    cursor: pointer;
    display: block;
}

.bk-day.is-selected {
    border-color: #201b3d;
    background: #f4f2fb;
}

.bk-day.is-off {
    opacity: .45;
}

.bk-dow {
    display: block;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
}

.bk-dnum {
    display: block;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
}

.bk-dmon {
    display: block;
    font-size: 11px;
    color: #6b7280;
}

.bk-davail {
    display: block;
    font-size: 11px;
    color: #059669;
}

.bk-part {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 18px 0 8px;
}

.bk-slots {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.bk-slot {
    border: 1px solid #d8dce1;
    border-radius: 4px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
}

.bk-slot.is-selected {
    border: 2px solid #201b3d;
    background: #f4f2fb;
    font-weight: 600;
}

.bk-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.bk-selected {
    font-size: 14px;
    color: #6b7280;
}

.bk-cta {
    height: 52px;
    border: 0;
    border-radius: 4px;
    background: #00e0c6;
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 36px;
    cursor: pointer;
}

.bk-cta[disabled] {
    background: #e5e7eb;
    color: #9aa0aa;
    cursor: default;
}

.bk-cta svg {
    width: 18px;
    height: 18px;
}

.bk-cta-wide {
    width: 100%;
    padding: 0;
    margin-top: 18px;
}

.bk-details {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

.bk-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.bk-fld {
    margin-bottom: 18px;
}

.bk-fld label {
    display: block;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
}

.bk-fld input,
.bk-fld select {
    width: 100%;
    height: 46px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    background: #fff;
}

.bk-phone {
    display: flex;
    gap: 8px;
}

.bk-phone select {
    width: 104px;
    flex-shrink: 0;
}

.bk-dob {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.bk-err {
    display: block;
    font-size: 12px;
    color: #b91c1c;
    margin-top: 5px;
}

.bk-seg {
    display: inline-flex;
    border: 1px solid #d8dce1;
    border-radius: 4px;
    overflow: hidden;
}

.bk-seg span {
    padding: 11px 20px;
    font-size: 15px;
    cursor: pointer;
}

.bk-seg span.is-on {
    background: #211d3e;
    color: #fff;
}

.bk-summary {
    border: 1px solid #e8ebee;
    border-radius: 4px;
    padding: 20px;
    background: #fbfbfc;
    align-self: start;
}

.bk-sum-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e8ebee;
}

.bk-sum-row.is-last {
    border-bottom: 0;
}

.bk-sum-lbl {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6b7280;
}

.bk-sum-val {
    font-size: 16px;
    font-weight: 500;
    margin-top: 3px;
}

@media (max-width: 991px) {
    .bk-where,
    .bk-details {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .bk-days {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .bk-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        text-align: center;
    }

    .bk-cta {
        width: 100%;
        padding: 0;
    }
}

.bk-mapcol {
    position: relative;
    min-height: 560px;
    border: 1px solid #e8ebee;
    border-radius: 4px;
    overflow: hidden;
    background: #eceff1;
}

.bk-map {
    position: absolute;
    inset: 0;
    background: #eceff1;
}

.bk-storecard-hide {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #9aa0aa;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
}

.bk-storecard-hide:hover {
    background: #f4f5f7;
    color: #211d3e;
}

.bk-storecard {
    position: absolute;
    left: 16px;
    top: 16px;
    bottom: 16px;
    width: 310px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(32, 27, 61, .16);
    /* head stays put, only the list underneath scrolls */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bk-storecard-head {
    position: relative;
    padding: 14px 14px 10px;
    border-bottom: 1px solid #f1f2f4;
    flex-shrink: 0;
}

.bk-storecard-head .bk-eyebrow {
    margin-bottom: 10px;
    padding-right: 26px;
}

.bk-storecard-head .bk-search {
    margin: 0;
}

.bk-storecard-body {
    position: relative;
    padding: 12px 14px 14px;
    overflow-y: auto;
    flex-grow: 1;
    scroll-behavior: smooth;
}

.bk-search {
    width: 100%;
    height: 40px;
    border: 1px solid #d8dce1;
    border-radius: 4px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 10px;
}

.bk-early {
    display: inline-block;
    font-size: 12px;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 4px;
    padding: 3px 9px;
    margin-top: 7px;
}

.bk-early.is-muted {
    color: #6b7280;
    background: #f6f7f9;
    border-color: #e5e7eb;
}

@media (max-width: 991px) {
    .bk-map {
        height: 190px;
    }
}

@media (max-width: 991px) {
    .bk-mapcol {
        min-height: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .bk-map {
        position: relative;
        inset: auto;
        height: 190px;
        border: 1px solid #e8ebee;
        border-radius: 4px;
        margin-bottom: 12px;
    }

    .bk-storecard {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        width: auto;
        box-shadow: none;
        border: 1px solid #e8ebee;
        padding: 0;
        overflow: visible;
    }

    /* nothing is covered here, so the whole card grows with the page instead of scrolling */
    .bk-storecard-body {
        overflow: visible;
    }
}

.bk-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 24px; /* full width (matches the white panel below) + gap before it */
    padding: 16px 18px;
    border-radius: 4px;
    border: 1px solid #f3c9c9;
    background: #fdf3f3;
    box-shadow: 0 2px 10px rgba(190, 60, 60, .08);
}

.bk-alert-ico {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d94a4a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bk-alert-ico svg {
    width: 16px;
    height: 16px;
}

.bk-alert-txt {
    font-size: 15px;
    line-height: 1.5;
    color: #8a2b2b;
    padding-top: 2px;
}

@media (max-width: 767px) {
    .bk-alert {
        margin: 0 0 16px;
        padding: 13px 14px;
    }

    .bk-alert-txt {
        font-size: 14px;
    }
}

/* Branch 99 — mobile: a fixed backdrop is janky on phones, let it scroll with the page. */
@media (max-width: 767px) {
    html.book-appointment-page .master-wrapper-content { background-attachment: scroll; }
}

/* Branch 99 — geo hint: smaller + italic (client request). */
#bk-geo-hint {
    font-size: 10px;
    font-style: italic;
}

/* Pencil "edit" icon in the summary (replaces the word "edit"). */
.bk-edit-ico {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Step markers 1,2,3 — only completed (backward-reachable) steps look clickable. */
.bk-step { cursor: default; }
.bk-step.is-done { cursor: pointer; }

/* Calendar — day-navigation arrows moved to the top-right of the "pick a slot" header so the
   six day cells below get the full width. */
.bk-when-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.bk-when-head .bk-eyebrow { margin: 0; }
.bk-days-nav { display: flex; gap: 8px; flex-shrink: 0; }
.bk-days { margin-bottom: 6px; }

/* Step 2 — align the Next button with the BOTTOM of the (taller) map/store column: the right
   column becomes a full-height flex column and the actions row is pushed to the bottom. */
.bk-where .bk-when { display: flex; flex-direction: column; }
.bk-where .bk-when .bk-actions { margin-top: auto; }

/* Fix: the old .bk-days flex-grow:1 (leftover from the arrows-on-the-side layout) stretched the day
   cells once .bk-when became a flex column — pin it to its content height. */
.bk-where .bk-when .bk-days { flex: 0 0 auto; }

/* Context bar (step 2) — a service icon sits before the name. */
.bk-ctx-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bk-ctx-ico { display: inline-flex; color: #201b3d; flex-shrink: 0; }
.bk-ctx-ico svg { width: 20px; height: 20px; }

/* Confirm/Next CTA — busy/disabled look (also used after submit to prevent double-clicks). */
.bk-cta.is-busy { opacity: .6; cursor: progress; }

/* ── Appointment confirmation (success page) — same design language as the flow ── */
.bk-confirm { max-width: 640px; margin: 0 auto; text-align: center; }
.bk-confirm-ico {
    width: 66px; height: 66px; border-radius: 50%;
    background: #ecfdf5; color: #059669;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.bk-confirm-ico svg { width: 34px; height: 34px; }
.bk-confirm-title { font-size: 22px; font-weight: 700; color: #211d3e; margin: 0 0 10px; line-height: 1.3; }
.bk-confirm-sub { font-size: 15px; color: #6b7280; line-height: 1.55; margin: 0 auto 26px; max-width: 520px; }

.bk-confirm-details {
    text-align: left; border: 1px solid #e8ebee; border-radius: 4px;
    background: #fbfbfc; overflow: hidden; margin-bottom: 22px;
}
.bk-confirm-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 13px 18px; border-bottom: 1px solid #eef1f3;
}
.bk-confirm-row:last-child { border-bottom: 0; }
.bk-confirm-lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9aa0aa; flex-shrink: 0; }
.bk-confirm-val { font-size: 15px; font-weight: 600; color: #211d3e; text-align: right; }

.bk-confirm-map { border: 1px solid #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 22px; }
.bk-confirm-map iframe { display: block; width: 100%; height: 340px; border: 0; }

.bk-confirm-cancel { display: inline-block; font-size: 14px; color: #9aa0aa; text-decoration: underline; }
.bk-confirm-cancel:hover { color: #6b7280; }

@media (max-width: 767px) {
    .bk-confirm-row { flex-direction: column; align-items: flex-start; gap: 3px; }
    .bk-confirm-val { text-align: left; }
    .bk-confirm-map iframe { height: 260px; }
}

.bk-chip.is-pay {
    color: #4b5563;
    background: #f4f5f7;
    border-color: #e2e5e9;
}

.bk-captcha {
    display: flex;
    justify-content: center;
    margin: 0 0 16px;
}

/* Two states over the map, driven by one class on the column so nothing depends on
   inline styles: the store list, or a bar naming the store picked from a pin. */
.bk-selbar {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: none;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 28px rgba(32, 27, 61, .20);
    z-index: 2;
}

.bk-mapcol.is-list-hidden .bk-storecard {
    display: none;
}

.bk-mapcol.is-list-hidden .bk-selbar {
    display: flex;
}

.bk-selbar-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f4f2fb;
    color: #201b3d;
    flex-shrink: 0;
}

.bk-selbar-ico svg {
    width: 20px;
    height: 20px;
}

.bk-selbar-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-grow: 1;
}

.bk-selbar-name {
    font-size: 16px;
    font-weight: 600;
    color: #211d3e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bk-selbar-sub {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bk-selbar-btn {
    flex-shrink: 0;
    border: 0;
    border-radius: 4px;
    background: #201b3d;
    color: #fff;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 10px 16px;
    cursor: pointer;
}

.bk-selbar-btn:hover {
    background: #2f2857;
}

/* Stacked layout: the list sits under the map rather than over it, so there is nothing
   to hide and the bar would only cover the small map. */
@media (max-width: 991px) {
    .bk-storecard-hide,
    .bk-selbar {
        display: none !important;
    }

    .bk-mapcol.is-list-hidden .bk-storecard {
        display: block;
    }
}
