:root {
    --portal-orange: #f36c21;
    --portal-navy: #17232d;
    --portal-canvas: #faf8f5;
    --portal-white: #ffffff;
    --portal-action: #c2410c;
    --portal-action-hover: #9a3412;
    --portal-orange-soft: #fff0e5;
    --portal-muted: #64717d;
    --portal-border: #dee3e8;
    --portal-success: #18794e;
    --portal-success-soft: #e8f5ed;
    --tblr-primary: var(--portal-action);
    --tblr-primary-rgb: 194, 65, 12;
    --tblr-primary-fg: var(--portal-white);
    --tblr-primary-darken: var(--portal-action-hover);
    --tblr-primary-lt: var(--portal-orange-soft);
    --tblr-body-bg: var(--portal-canvas);
    --tblr-body-color: var(--portal-navy);
    --tblr-heading-color: var(--portal-navy);
    --tblr-bg-surface: var(--portal-white);
    --tblr-bg-surface-secondary: var(--portal-canvas);
    --tblr-secondary: var(--portal-muted);
    --tblr-border-color: var(--portal-border);
    --tblr-border-active-color: var(--portal-muted);
    --tblr-link-color: var(--portal-action);
    --tblr-link-hover-color: var(--portal-action-hover);
    --tblr-active-bg: var(--portal-orange-soft);
    --tblr-active-color: var(--portal-action);
    --tblr-control-focus-border-color: var(--portal-action);
    --tblr-focus-ring-color: rgb(194 65 12 / 30%);
    --tblr-success: var(--portal-success);
    --tblr-success-rgb: 24, 121, 78;
    --tblr-success-fg: var(--portal-white);
    --tblr-success-darken: #12603d;
    --tblr-green: var(--portal-success);
    --tblr-green-lt: var(--portal-success-soft);
    --tblr-border-radius: 12px;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--portal-navy);
}

.portal-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--portal-navy);
    text-decoration: none;
    white-space: nowrap;
}

.portal-logo:hover {
    color: var(--portal-navy);
    text-decoration: none;
}

.brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-wordmark {
    font-size: 27px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.brand-domain {
    font-size: .7em;
    letter-spacing: -.4px;
}

.portal-header {
    min-height: 84px;
}

.portal-header .nav-link {
    color: var(--portal-navy);
    font-weight: 500;
}

.portal-header .nav-link:hover {
    color: var(--portal-action);
}

.portal-hero {
    padding: 80px 0;
    background: radial-gradient(ellipse at 90% 10%, var(--portal-orange-soft), transparent 65%), var(--portal-canvas);
    border-bottom: 1px solid var(--portal-border);
}

.portal-hero h1 {
    font-size: clamp(44px, 5.6vw, 76px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -2px;
}

.portal-hero h1 span {
    color: var(--portal-action);
}

.portal-hero .lead {
    color: var(--portal-muted);
    line-height: 1.8;
    font-size: 18px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 750;
    color: var(--portal-action);
    margin-bottom: 14px;
}

.card {
    border-color: var(--portal-border);
}

.hero-search {
    box-shadow: 0 15px 45px rgb(23 35 45 / 6%);
    border-top: 3px solid var(--portal-orange);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
}

.section-heading h2 {
    font-size: 27px;
    margin-bottom: 0;
    letter-spacing: -.6px;
}

.category-tile {
    color: var(--portal-navy);
    transition: transform .15s, border-color .15s;
}

.category-tile:hover {
    transform: translateY(-3px);
    border-color: var(--portal-orange);
    text-decoration: none;
}

.category-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    border-radius: 8px;
    background: var(--portal-orange-soft);
    font-size: 13px;
    font-weight: 700;
    color: var(--portal-action);
}

.bg-brand-lt {
    color: var(--portal-action) !important;
    background-color: var(--portal-orange-soft) !important;
    border-color: var(--portal-border) !important;
}

.brand-callout {
    background: var(--portal-orange-soft);
}

.input {
    margin-bottom: 18px;
}

.input label:not(.form-check) {
    display: block;
    font-weight: 500;
    margin-bottom: 7px;
}

.checkbox input {
    margin-right: 8px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px 12px;
    max-height: 260px;
    overflow: auto;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    padding: 14px;
}

.plan-price {
    font-size: 42px;
    font-weight: 750;
    letter-spacing: -1.5px;
}

.plan-features {
    padding-left: 20px;
    line-height: 2.2;
    min-height: 270px;
}

.steps-text {
    padding-left: 20px;
    line-height: 2.5;
}

.branch-map {
    height: 360px;
    width: 100%;
    background: var(--portal-canvas);
    border: 1px solid var(--portal-border);
    border-radius: 10px;
}

.branch-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.sticky-contact {
    position: sticky;
    top: 24px;
    border-top: 3px solid var(--portal-orange);
}

.preserve-lines {
    white-space: pre-line;
}

.message {
    padding: 16px 24px;
    margin: 16px auto;
    max-width: 1280px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: var(--portal-white);
    color: var(--portal-navy);
}

.message.error {
    background: #fff0f0;
    color: #9d2929;
}

.message.success {
    background: var(--portal-success-soft);
    color: var(--portal-success);
}

.message.warning {
    background: #fff5de;
    color: #795314;
}

.message.hidden {
    display: none;
}

.btn {
    white-space: normal;
    min-height: 38px;
}

.btn-primary, .btn-success {
    background-image: none;
}

.btn-success {
    --tblr-btn-variant: var(--portal-success);
    --tblr-btn-variant-fg: var(--portal-white);
    --tblr-btn-variant-darken: #12603d;
}

.alert-primary {
    --tblr-alert-bg: var(--portal-orange-soft);
    --tblr-alert-color: var(--portal-action);
    --tblr-alert-border-color: var(--portal-border);
    background-color: var(--portal-orange-soft);
}

.alert-info {
    --tblr-alert-color: var(--portal-navy);
    --tblr-alert-border-color: var(--portal-border);
    background-color: var(--portal-canvas);
}

.form-control, .form-select {
    background-color: var(--portal-white);
}

input, textarea, select {
    font-size: 16px !important;
}

gmp-place-autocomplete {
    width: 100%;
    color-scheme: light;
}

.navbar-vertical[data-bs-theme="dark"] {
    --tblr-navbar-bg: var(--portal-navy);
    --tblr-navbar-color: var(--portal-border);
    --tblr-navbar-hover-color: var(--portal-white);
    --tblr-navbar-active-color: var(--portal-white);
    background: var(--portal-navy);
}

.navbar.navbar-vertical .navbar-brand.portal-logo {
    display: flex;
    justify-content: flex-start;
    gap: 4px;
    padding: 20px 16px;
    margin: 0;
    text-align: left;
    color: var(--portal-white);
}

.navbar-vertical .brand-mark {
    width: 42px;
    height: 42px;
}

.navbar-vertical .brand-wordmark {
    font-size: 23px;
}

#panel-nav {
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    scrollbar-color: var(--portal-muted) var(--portal-navy);
}

#panel-nav .nav-link {
    margin: 2px 12px;
    padding: 9px 14px;
    border-radius: 8px;
    overflow-wrap: anywhere;
}

#panel-nav a.nav-link:hover {
    color: var(--portal-white);
    background: rgb(255 255 255 / 7%);
}

#panel-nav .nav-link[aria-current="page"] {
    color: var(--portal-action);
    background: var(--portal-orange-soft);
    box-shadow: inset 3px 0 var(--portal-orange);
    font-weight: 600;
}

#panel-nav .text-secondary {
    color: var(--portal-border) !important;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.3px;
}

.portal-panel .page-wrapper > .navbar {
    background: var(--portal-white);
    border-bottom: 1px solid var(--portal-border);
}

.card-body > p:last-child {
    margin-bottom: 0;
}

.footer {
    background: var(--portal-white);
}

@media (max-width: 991px) {
    .portal-public .container-xl {
        padding-right: 16px;
        padding-left: 16px;
    }

    .portal-hero .row.g-5 {
        --tblr-gutter-x: 2rem;
    }

    .portal-header {
        min-height: 76px;
    }

    .portal-header .navbar-collapse {
        padding-bottom: 16px;
    }

    .portal-header .navbar-nav .btn {
        margin-top: 8px;
    }

    .navbar.navbar-vertical .navbar-brand.portal-logo {
        width: auto;
        padding: 12px 0;
    }
}

@media (max-width: 767px) {
    .brand-mark {
        width: 44px;
        height: 44px;
    }

    .brand-wordmark {
        font-size: 25px;
    }

    .portal-hero {
        padding: 38px 0;
    }

    .portal-hero h1 {
        letter-spacing: -1px;
    }

    .section-heading {
        align-items: start;
    }

    .section-heading h2 {
        font-size: 23px;
    }

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

    .plan-price {
        font-size: 34px;
    }

    .branch-map {
        height: 300px;
    }

    .sticky-contact {
        position: static;
    }

    .container-tight {
        padding-left: 16px;
        padding-right: 16px;
    }

    .row.g-4 {
        --tblr-gutter-x: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-tile {
        transition: none;
    }

    .category-tile:hover {
        transform: none;
    }
}

.auth-profile-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    background: var(--portal-canvas);
}

.auth-profile-tabs a {
    flex: 1;
    padding: 10px 12px;
    border-radius: 7px;
    text-align: center;
    color: var(--portal-muted);
    font-weight: 600;
}

.auth-profile-tabs a[aria-current="page"] {
    color: var(--portal-action);
    background: var(--portal-orange-soft);
}

.auth-entry-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: var(--portal-canvas);
}

.portal-header .auth-entry-group .btn {
    margin-top: 0;
    white-space: nowrap;
}

.auth-choice-modal .modal-content {
    border-radius: 18px;
}

.auth-choice-modal .modal-body {
    padding: 24px;
}

.auth-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-choice-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    color: var(--portal-navy);
    background: var(--portal-white);
}

.auth-choice-card:hover,
.auth-choice-card:focus-visible {
    color: var(--portal-navy);
    border-color: var(--portal-action);
    background: var(--portal-orange-soft);
    text-decoration: none;
}

.auth-choice-card:focus-visible {
    outline: 3px solid var(--portal-action);
    outline-offset: 3px;
}

.auth-choice-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 12px;
    color: var(--portal-action);
    background: var(--portal-orange-soft);
}

.auth-choice-card h3 {
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.35;
}

.auth-choice-card p {
    margin-bottom: 24px;
    color: var(--portal-muted);
}

.auth-choice-action {
    margin-top: auto;
    color: var(--portal-action);
    font-weight: 600;
}

.auth-registration {
    max-width: 1120px;
}

.membership-summary-heading {
    padding: 16px 0 8px;
}

.membership-summary {
    margin-top: 16px;
    padding: 24px;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: var(--portal-white);
}

.membership-summary.is-selected {
    border-color: var(--portal-action);
    background: var(--portal-orange-soft);
}

.membership-summary p,
.membership-summary ul {
    color: var(--portal-muted);
}

.membership-summary ul {
    padding-left: 20px;
}

.membership-summary li + li {
    margin-top: 8px;
}

.membership-selected {
    color: var(--portal-action);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 575px) {
    .auth-choice-modal .modal-header,
    .auth-choice-modal .modal-body {
        padding: 16px;
    }

    .auth-choice-grid {
        gap: 10px;
    }

    .auth-choice-card {
        padding: 16px 12px;
    }

    .auth-choice-card h3 {
        font-size: 17px;
    }

    .auth-choice-card p {
        font-size: 13px;
    }

    .auth-choice-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
    }
}

@media (max-width: 767px) {
    .panel-account-header {
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .panel-account-header > div {
        justify-content: flex-end;
    }

    .account-user-name {
        flex-basis: 100%;
        text-align: right;
    }
}

.password-input { position: relative; }
.password-input .form-control { padding-right: 48px; }
.password-toggle { position:absolute; right:3px; top:3px; display:grid; place-items:center; width:36px; height:calc(100% - 6px); border:0; border-radius:6px; color:var(--portal-muted); background:transparent; }
.password-toggle:hover, .password-toggle:focus-visible { color:var(--portal-action); background:var(--portal-orange-soft); }
.password-toggle .eye-closed, .password-toggle[aria-pressed="true"] .eye-open { display:none; }
.password-toggle[aria-pressed="true"] .eye-closed { display:block; }
.registration-notice { padding:24px; border:1px solid var(--portal-action); border-top:5px solid var(--portal-orange); border-radius:12px; background:var(--portal-orange-soft); color:var(--portal-navy); }
.registration-notice-icon { display:block; font-size:32px; color:var(--portal-action); margin-bottom:12px; }
.registration-notice p { line-height:1.65; }
.registration-agreements { padding:16px; border:1px solid var(--portal-border); border-radius:10px; background:var(--portal-canvas); }
.registration-agreements .btn-link { white-space:normal; }
.agreement-document { border-top:1px solid var(--portal-border); padding:20px 0; }
.agreement-document summary { font-size:17px; font-weight:600; cursor:pointer; margin-bottom:16px; }
.legal-copy { line-height:1.8; overflow-wrap:anywhere; }
.legal-copy section + section { margin-top:28px; }
.legal-copy h3 { margin-bottom:12px; }
.legal-nav-link { display:block; padding:10px 0; }
.legal-nav-link[aria-current="page"] { font-weight:600; }
.company-details { margin:0; overflow-wrap:anywhere; }
.company-details > div { padding:10px 0; border-bottom:1px solid var(--portal-border); }
.company-details dt { font-size:12px; color:var(--portal-muted); font-weight:500; margin-bottom:4px; }
.company-details dd { margin:0; }
.info-page-intro { max-width:760px; }
.info-page-intro h1 { font-size:clamp(32px,4vw,48px); letter-spacing:-1px; line-height:1.15; margin-bottom:20px; }
.contact-channel { border:1px solid var(--portal-border); background:var(--portal-white); border-radius:14px; padding:24px; margin-bottom:16px; overflow-wrap:anywhere; }
.about-values { padding:32px; background:var(--portal-orange-soft); border:1px solid #f3c3a5; border-radius:16px; }
.about-values h2 { margin:16px 0; line-height:1.3; }
.portal-footer { background:var(--portal-navy); color:#c5cdd3; }
.portal-footer .footer-brand { display:inline-flex; color:#fff; }
.portal-footer .brand-wordmark, .portal-footer .brand-domain { color:#fff; }
.portal-footer nav h2 { color:#fff; font-size:15px; margin:8px 0 18px; }
.portal-footer nav a, .portal-footer .footer-contact { display:block; color:#c5cdd3; margin-bottom:12px; }
.portal-footer a:hover { color:#fff; }
.portal-footer a:focus-visible { outline:2px solid var(--portal-orange); outline-offset:4px; }
.footer-bottom { display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; border-top:1px solid #394651; padding:24px 0; font-size:12px; }
.footer-bottom a { color:#e1e6ea; }
.rich-editor-controls { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0; }
.rich-editor .ql-toolbar { border-color:var(--portal-border); border-radius:8px 8px 0 0; background:var(--portal-canvas); }
.rich-editor .ql-container { border-color:var(--portal-border); border-radius:0 0 8px 8px; background:#fff; font:inherit; }
.rich-editor .ql-editor { min-height:220px; font-size:15px; line-height:1.7; overflow-wrap:anywhere; }
.rich-editor [hidden] { display:none !important; }
.rich-editor .rich-source { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:13px; min-height:240px; }
.rich-editor .ql-editor img, .rich-copy img { width:100%; height:auto; }
.rich-image-url { padding:16px; margin-top:12px; border:1px solid var(--portal-border); border-radius:8px; background:var(--portal-canvas); }
.rich-copy { line-height:1.8; overflow-wrap:anywhere; }
.rich-copy > :last-child { margin-bottom:0; }
.rich-copy blockquote { border-left:3px solid var(--portal-orange); padding-left:16px; color:var(--portal-muted); }
.rich-copy pre { white-space:pre-wrap; }
.brand-logo-preview { width:120px; height:120px; object-fit:contain; border:1px solid var(--portal-border); padding:8px; background:white; border-radius:12px; }
.brand-list-logo { width:44px; height:44px; object-fit:contain; vertical-align:middle; }
.brand-introduction summary { cursor:pointer; font-weight:600; }
.photo-gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.photo-gallery-card { min-width:0; padding:10px; margin:0; border:1px solid var(--portal-border); border-radius:10px; background:var(--portal-canvas); overflow-wrap:anywhere; }
.photo-gallery-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:10px; }
.photo-gallery-actions .badge { width:100%; margin-bottom:4px; }
.photo-upload-progress { padding:12px; border:1px solid var(--portal-border); border-radius:8px; }
.photo-upload-progress progress { height:16px; accent-color:var(--portal-action); }
@media (max-width:575px) {
    .photo-gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .registration-notice { padding:18px; }
    .portal-footer .brand-mark { width:40px; height:40px; }
}

/* Shared media library and membership selection. */
.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:1rem}
.media-card{min-width:0;padding:.8rem;border:1px solid var(--portal-border,#dee3e8);border-radius:.75rem;background:#fff;overflow-wrap:anywhere}
.media-card>img{width:100%;height:140px;object-fit:contain;background:#faf8f5;border-radius:.4rem}
.media-card .form-control{min-width:0}
.media-picker .media-grid{max-height:480px;overflow-y:auto}
.package-features{padding-left:1.2rem;line-height:1.6;flex:1}
.package-features li{margin-bottom:.8rem}
.package-featured{border:2px solid #f36c21}
#package-selection{scroll-margin-top:1rem}
@media(max-width:575px){.media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.media-card{padding:.55rem}.media-card>img{height:110px}.media-card .btn{white-space:normal}#media-library-modal .modal-body{padding:1rem}}

.admin-gift-branches{max-height:360px;overflow-y:auto;padding:.75rem;border:1px solid #dee3e8;border-radius:.5rem}

/* Service photos and on-demand video players. */
.service-video-card{display:block;overflow:hidden;border:1px solid var(--tblr-border-color,#e3e8eb);border-radius:12px;color:inherit;background:#fff;text-decoration:none}
.service-video-card:hover,.service-video-card:focus-visible{color:inherit;border-color:#c2410c;box-shadow:0 6px 20px #17232d12}
.service-video-poster{position:relative;aspect-ratio:16/9;background:#17232d;overflow:hidden}
.service-video-poster img{display:block;width:100%;height:100%;object-fit:cover}
.service-video-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#c2410c;color:#fff;box-shadow:0 3px 12px #0005}
.service-media-modal .modal-content{background:#fff}
.service-media-stage{display:flex;align-items:center;justify-content:center;min-height:200px;background:#17232d;border-radius:8px;overflow:hidden}
.service-media-stage>img{display:block;max-width:100%;max-height:72vh;object-fit:contain}
.service-media-stage.is-video{aspect-ratio:16/9;min-height:200px;max-height:65vh;margin-inline:auto}
.service-media-stage iframe{display:block;width:100%;height:100%;min-height:200px;border:0}
.service-media-modal [hidden]{display:none!important}
@media(max-width:575.98px){.service-media-modal .modal-body{padding:12px}.service-media-modal .modal-header{padding:12px}.service-media-modal .modal-title{font-size:1rem}.service-media-stage>img{max-height:65vh}}
