:root {
    --bg: #f6f8fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;

    --shadow: 0 10px 24px rgba(17, 24, 39, .06);
    --shadow2: 0 18px 40px rgba(17, 24, 39, .12);

    --defaultBlue: #87ceeb;
    /* light teal like screenshot button */
    --defaultBlueText: #16769d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: var(--text);
}

.sb-page {
    max-width: 1400px;
    margin: 26px auto;
    padding: 0 18px 30px;
}

.sb-grid {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 22px;
    align-items: start;
}

/* Left */
.sb-service {
    background: transparent;
    border-radius: 18px;
}

.sb-hero {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow2);
}

.sb-hero img {
    width: 100%;
    object-fit: cover;
    display: block;
    max-height: 538px;
}

.sb-title {
    margin: 16px 0 8px;
    font-size: 34px;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.sb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.sb-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-size: 13px;
}

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

.sb-star {
    color: #f59e0b;
}

.sb-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    color: #6b7280;
}

.sb-icon svg {
    width: 16px;
    height: 16px;
}

.sb-desc {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.sb-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sb-tag {
    background: #f3f4f6;
    border: 1px solid #eef0f3;
    color: #16769d;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

/* Right */
.sb-right-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.sb-card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px;
    max-height: 420px;
    overflow: scroll;
}

.sb-card-digital {
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.sb-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sb-card-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 850;
}

.sb-nav {
    display: flex;
    gap: 10px;
}

.sb-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: #fff;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.sb-nav-btn:hover {
    background: #fbfbfc;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(17, 24, 39, .10);
}

.sb-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 2px 2px 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.sb-dow span {
    text-align: center;
}

.sb-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 2px;
}

.sb-day {
    height: 38px;
    border-radius: .75rem;
    border: 1px solid transparent;
    background: #f3f4f6;
    cursor: pointer;
    font-weight: 400;
    color: #111827;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.sb-day:hover {
    background: #eef7ff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(17, 24, 39, .10);
}

.sb-day.is-out {
    opacity: .35;
    background: #f6f7f9;
}

.sb-day.is-selected {
    background: var(--defaultBlue);
    color: #fff;
}

/* Times */
.sb-times {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sb-time {
    height: 42px;
    border-radius: .75rem;
    border: 1px solid #dbe2ea;
    background: #fff;
    cursor: pointer;
    font-weight: 400;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.sb-time:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(17, 24, 39, .10);
    background: #fbfbfc;
}

.sb-time.is-selected {
    background: var(--defaultBlue);
    color: #fff;
    border-color: transparent;
}

.sb-time.is-disabled {
    opacity: .35;
    background: #f6f7f9;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.sb-time.is-disabled:hover {
    background: #f6f7f9;
    transform: none;
    box-shadow: none;
}

/* Summary */
.sb-summary-head h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 850;
}

.sb-summary-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.sb-sum-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sb-sum-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(54, 184, 182, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--defaultBlue);
    flex: 0 0 auto;
}

.sb-sum-icon svg {
    width: 18px;
    height: 18px;
}

.sb-sum-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
}

.sb-sum-val {
    font-size: 13px;
    font-weight: 750;
    color: var(--text);
    margin-top: 2px;
}

.sb-primary {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: none;
    background: var(--defaultBlue);
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.sb-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(17, 24, 39, .14);
    filter: brightness(1.02);
}

.sb-plus {
    margin-right: 8px;
    font-weight: 900;
}

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

    .sb-right-top {
        grid-template-columns: 1fr;
    }

    .sb-hero img {
        height: 300px;
    }
}


.sb-day.is-disabled {
    opacity: .35;
    background: #f6f7f9;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.sb-day.is-disabled:hover {
    background: #f6f7f9;
    transform: none;
    box-shadow: none;
}

/* ---------- Auth Modal (blur + overlay) ---------- */

.sb-auth-backdrop {
    position: absolute;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgb(255 255 255 / 18%);
    /* dim */
    backdrop-filter: blur(2px);
}

.sb-auth-backdrop.is-open {
    display: flex;
}

/* Blur the page content when modal is open */
.sb-auth-backdrop.is-open~.sb-page,
.sb-auth-backdrop.is-open+.sb-page,
.sb-auth-backdrop.is-open #pageContent {
    /* this selector won't always work based on DOM order,
     so we also add JS below to toggle a class on body */
}

/* body.sb-modal-open .sb-page,
body.sb-modal-open #pageContent {
    filter: blur(6px);
    transform: translateZ(0);
    transition: filter 160ms ease;
    pointer-events: none;
    user-select: none;
} */

.sb-auth-modal {
    position: relative;
    width: min(520px, 92vw);
    background: #fff;
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: 16px;
    box-shadow: 0 26px 70px rgba(17, 24, 39, .18);
    padding: 26px 22px 22px;
    text-align: center;

    opacity: 0;
    transform: translateY(10px) scale(.98);
    transition: opacity 160ms ease, transform 160ms ease;
}

.sb-auth-backdrop.is-open .sb-auth-modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.sb-auth-icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    margin: 0 auto 12px;
    background: rgba(54, 184, 182, .14);
    color: var(--defaultBlue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-auth-icon svg {
    width: 24px;
    height: 24px;
}

.sb-auth-title {
    margin: 8px 0 6px;
    font-size: 20px;
    font-weight: 850;
    color: #111827;
}

.sb-auth-sub {
    margin: 0 auto 18px;
    max-width: 420px;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.sb-auth-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.sb-auth-btn {
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.sb-auth-btn-ic {
    width: 18px;
    height: 18px;
    display: inline-flex;
}

.sb-auth-btn-ic svg {
    width: 18px;
    height: 18px;
}

.sb-auth-primary {
    background: var(--defaultBlue);
    color: #fff;
    border-color: transparent;
    text-decoration: none;
}

.sb-auth-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(17, 24, 39, .14);
    filter: brightness(1.02);
    text-decoration: none;
}

.sb-auth-secondary {
    background: #fff;
    color: #111827;
}

.sb-auth-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(17, 24, 39, .10);
    background: #fbfbfc;
}

.sb-auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    color: #6b7280;
    transition: transform 120ms ease, background 120ms ease;
}

.sb-auth-close:hover {
    background: #fbfbfc;
    transform: translateY(-1px);
}

/* ---------- Location Modal ---------- */
.loc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .22);
    backdrop-filter: blur(2px);
}

.loc-backdrop.is-open {
    display: flex;
}

.loc-modal {
    width: min(620px, 94vw);
    background: #fff;
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: 16px;
    box-shadow: 0 26px 70px rgba(17, 24, 39, .18);
    padding: 18px 18px 16px;
    position: relative;

    opacity: 0;
    transform: translateY(10px) scale(.98);
    transition: opacity 160ms ease, transform 160ms ease;
}

.loc-backdrop.is-open .loc-modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.loc-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    color: #6b7280;
}

.loc-title {
    margin: 6px 0 4px;
    font-size: 18px;
    font-weight: 850;
    color: #111827;
}

.loc-sub {
    margin: 0 0 14px;
    color: #667085;
    font-size: 13px;
}

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

.loc-input {
    flex: 1 1 auto;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 0 12px;
    outline: none;
    font-weight: 650;
}

.loc-input:focus {
    background: #fff;
    border-color: rgba(135, 207, 235, .55);
    box-shadow: 0 0 0 4px rgba(54, 184, 182, .14);
}

.loc-search-btn {
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: var(--defaultBlue);
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.loc-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(17, 24, 39, .14);
    filter: brightness(1.02);
}

.loc-search-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loc-status {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
}

.loc-results {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.locationSpan {
    display: block;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-weight: 650;
    color: #111827;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.locationSpan:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(17, 24, 39, .10);
    background: #fbfbfc;
}

.locationIcon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    cursor: pointer;
}

.sb-chat {
    width: 170px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, .95);
    background: #fff;
    color: #111827;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(17, 24, 39, .08);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.sb-chat:hover {
    transform: translateY(-1px);
    background-color: #87ceeb;
    text-decoration: none;
    color: white;
}

.sb-chat:active {
    transform: translateY(0px);
    box-shadow: 0 10px 18px rgba(17, 24, 39, .10);
}

.sb-chat-ic {
    width: 20px;
    height: 20px;
    display: inline-flex;
    color: #36b8b6;
    /* subtle teal icon like video */
}

.sb-chat-ic svg {
    width: 20px;
    height: 20px;
}

/* RIGHT CARD */
.sb-card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.sb-card-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 850;
}

.sb-scope-text {
    width: 100%;
    min-height: 210px;
    resize: none;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fbfbfc;
    padding: 12px 12px;
    outline: none;
    font-size: 14px;
    line-height: 1.5;
}

.sb-scope-text:focus {
    background: #fff;
    border-color: rgba(54, 184, 182, .55);
    box-shadow: 0 0 0 4px rgba(54, 184, 182, .14);
}

.sb-scope-foot {
    display: flex;
    justify-content: flex-start;
    padding-top: 6px;
}

.sb-count {
    font-size: 12px;
    font-weight: 850;
}

.sb-count-bad {
    color: #ef4444;
}

/* red */
.sb-count-ok {
    color: #16a34a;
}

/* green */

/* Upload row */
.sb-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 16px;
}

.sb-file-input {
    position: absolute;
    left: -9999px;
}

.sb-upload-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-weight: 800;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.sb-upload-btn:hover {
    background: #fbfbfc;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(17, 24, 39, .10);
}

.sb-upload-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

/* Book button */
.sb-book {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: none;
    background: var(--defaultBlue);
    color: var(--defaultBlueText);
    font-weight: 900;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.sb-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(17, 24, 39, .14);
    filter: brightness(1.02);
}

.sb-book:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: none;
}

/* Responsive */
@media (max-width: 1100px) {
    .sb-grid {
        grid-template-columns: 1fr;
    }

    .sb-hero img {
        height: 320px;
    }
}

/* ---------- Added media cards ---------- */
.sb-media-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 6px 0 10px;
}

.sb-media-title {
    font-size: 13px;
    font-weight: 850;
    color: #111827;
}

.sb-media-sub {
    font-size: 12px;
    color: var(--muted);
    font-weight: 650;
}

.sb-media-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.sb-media-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.sb-media-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(17, 24, 39, .10);
    background: #fbfbfc;
}

.sb-media-ic {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(54, 184, 182, .14);
    color: #0f766e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-weight: 900;
    font-size: 12px;
}

.sb-media-body {
    flex: 1 1 auto;
    min-width: 0;
}

.sb-media-name {
    font-weight: 850;
    font-size: 13px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.sb-media-meta {
    font-size: 12px;
    color: var(--muted);
    font-weight: 650;
}

.sb-media-remove {
    border: 1px solid var(--line);
    background: #fff;
    color: #6b7280;
    border-radius: 10px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    flex: 0 0 auto;
    transition: transform 120ms ease, background 120ms ease;
}

.sb-media-remove:hover {
    background: #fff5f5;
    color: #ef4444;
    transform: translateY(-1px);
}

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

/* ---------- Thumbnail inside media cards ---------- */
.sb-media-ic {
    overflow: hidden;
    position: relative;
}

.sb-thumb {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.sb-thumb-btn {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
    width: 38px;
    height: 38px;
    overflow: hidden;
    flex: 0 0 auto;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.sb-thumb-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(17, 24, 39, .12);
}

/* ---------- Full image preview modal ---------- */
.imgp-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .30);
    backdrop-filter: blur(3px);
}

.imgp-backdrop.is-open {
    display: flex;
}

.imgp-modal {
    width: min(920px, 96vw);
    max-height: 92vh;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, .95);
    box-shadow: 0 26px 80px rgba(17, 24, 39, .22);
    overflow: hidden;
    position: relative;

    opacity: 0;
    transform: translateY(10px) scale(.98);
    transition: opacity 160ms ease, transform 160ms ease;
}

.imgp-backdrop.is-open .imgp-modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.imgp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, .9);
    cursor: pointer;
    color: #6b7280;
    z-index: 2;
    transition: transform 120ms ease, background 120ms ease;
}

.imgp-close:hover {
    transform: translateY(-1px);
    background: #fff;
}

.imgp-img {
    width: 100%;
    height: min(70vh, 640px);
    object-fit: contain;
    background: #0b1220;
    /* dark backdrop like preview */
    display: block;
}

.imgp-footer {
    padding: 12px 14px;
    border-top: 1px solid #eef0f3;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.imgp-name {
    font-weight: 850;
    color: #111827;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imgp-meta {
    color: #6b7280;
    font-size: 12px;
    font-weight: 650;
}

/* Clickable hero image */
#serviceHeroImg {
    cursor: zoom-in;
}

.sb-hero {
    position: relative;
}

.sb-hero::after {
    content: "Click to view";
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: rgba(17, 24, 39, .45);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}

.sb-hero:hover::after {
    opacity: 1;
    transform: translateY(0);
}