/* Service booking quest — storefront */
body.front-booking {
    background:
        radial-gradient(1200px 420px at 10% -10%, rgba(0, 167, 167, 0.16), transparent 60%),
        radial-gradient(900px 380px at 110% 8%, rgba(255, 229, 93, 0.28), transparent 55%),
        #f3f7f7;
}

.sb-quest {
    --sb: #00a7a7;
    --sb-dark: #0f766e;
    --sb-ink: #0f172a;
    --sb-muted: #64748b;
    --sb-line: #e5e7eb;
    --sb-yellow: #ffe55d;
    padding: 8.5rem 0 4rem;
}

.sb-quest__hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.sb-quest__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid rgba(0, 167, 167, 0.22);
    color: var(--sb-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    margin-bottom: 0.7rem;
}

.sb-quest__title {
    font-family: "Fredoka One", "Poppins", sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.7rem);
    color: var(--sb-ink);
    margin: 0 0 0.45rem;
    letter-spacing: 0.01em;
}

.sb-quest__lede {
    color: var(--sb-muted);
    margin: 0;
    font-size: 1.02rem;
}

.sb-quest__board {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--sb-line);
    border-radius: 1.4rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.sb-xp {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, #f0fdfa, #fff);
    border-bottom: 1px solid #eef2f2;
}

.sb-xp__track {
    flex: 1;
    height: 0.55rem;
    background: #e8eef0;
    border-radius: 999px;
    overflow: hidden;
}

.sb-xp__fill {
    height: 100%;
    width: 33.333%;
    background: linear-gradient(90deg, #2dd4bf, #00a7a7);
    border-radius: inherit;
    transition: width 0.35s ease;
}

.sb-xp__label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--sb-dark);
    white-space: nowrap;
}

.sb-steps {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.45rem 0.85rem;
    gap: 0;
}

.sb-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 4.4rem;
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.sb-step-dot__mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e5e7eb;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.sb-step-dot.is-done .sb-step-dot__mark,
.sb-step-dot.is-active .sb-step-dot__mark {
    background: var(--sb);
    border-color: var(--sb);
    color: #fff;
}

.sb-step-dot.is-active .sb-step-dot__mark {
    box-shadow: 0 0 0 4px rgba(0, 167, 167, 0.18);
}

.sb-step-dot.is-active {
    color: #0f172a;
}

.sb-step-dot.is-done {
    color: var(--sb-dark);
}

.sb-step-dot em {
    font-style: normal;
    font-family: "Poppins", sans-serif;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.sb-steps__line {
    flex: 1 1 auto;
    height: 4px;
    min-width: 1.25rem;
    margin: 1rem 0.45rem 0;
    border-radius: 99px;
    background: #e8eef0;
    position: relative;
    overflow: hidden;
}

.sb-steps__line::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #2dd4bf, #00a7a7);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
}

.sb-steps__line.is-on::after {
    transform: scaleX(1);
}

.sb-panel {
    display: none;
    padding: 1.2rem 1.25rem 1.4rem;
}

.sb-panel.is-on {
    display: block;
}

.sb-panel__head {
    margin-bottom: 1rem;
}

.sb-panel__head h2 {
    font-family: "Poppins", "Nunito", system-ui, sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0 0 0.4rem;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

.sb-panel__head p {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 42rem;
}

.sb-panel__head--sub {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--sb-line);
}

.sb-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.sb-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    border: 1.5px solid var(--sb-line);
    background: #fff;
    border-radius: 1.05rem;
    padding: 1rem 0.75rem 0.95rem;
    cursor: pointer;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sb-type:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 167, 167, 0.45);
}

.sb-type.is-picked {
    border-color: var(--sb);
    background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(0, 167, 167, 0.16);
}

.sb-type__ico {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    background: #e7f7f7;
    color: var(--sb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.sb-type.is-picked .sb-type__ico {
    background: var(--sb);
    color: #fff;
}

.sb-type strong {
    font-size: 0.95rem;
    color: var(--sb-ink);
    text-align: center;
}

.sb-missions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
}

.sb-mission {
    position: relative;
    border: 1.5px solid var(--sb-line);
    border-radius: 1.05rem;
    background: #fff;
    padding: 0;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    color: inherit;
    font: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sb-mission:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 167, 167, 0.45);
}

.sb-mission.is-picked {
    border-color: var(--sb);
    box-shadow: 0 0 0 3px rgba(0, 167, 167, 0.16);
}

.sb-mission__media {
    height: 132px;
    background: #e7f7f7;
    overflow: hidden;
}

.sb-mission__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-mission__ico {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2.4rem;
    color: var(--sb);
}

.sb-mission__body {
    padding: 0.8rem 0.9rem 0.95rem;
}

.sb-mission__body strong {
    display: block;
    font-size: 0.95rem;
    color: var(--sb-ink);
}

.sb-mission__meta {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.sb-mission__price {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sb-dark);
}

.sb-mission__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.7rem;
    width: 100%;
    border: 1px solid rgba(0, 167, 167, 0.28);
    background: #f0fdfa;
    color: var(--sb-dark);
    border-radius: 0.65rem;
    padding: 0.38rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.sb-mission__more:hover {
    background: #dcfaf5;
}

.sb-chip {
    display: inline-flex;
    align-items: center;
    background: #f0fdfa;
    color: var(--sb-dark);
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.sb-chip--hourly {
    background: #fff7ed;
    color: #c2410c;
}

.sb-chip--whole {
    background: #ecfdf5;
    color: #047857;
}

.sb-chip--overtime {
    background: #fef3c7;
    color: #92400e;
}

.sb-mission__stamp {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: var(--sb);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
}

.sb-mission.is-picked .sb-mission__stamp {
    display: inline-flex;
}

.sb-days,
.sb-times,
.sb-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.sb-pick {
    border: 1px solid var(--sb-line);
    background: #fff;
    border-radius: 0.85rem;
    padding: 0.55rem 0.7rem;
    min-width: 4.4rem;
    cursor: pointer;
    color: var(--sb-ink);
}

.sb-pick small {
    display: block;
    font-size: 0.68rem;
    color: var(--sb-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sb-pick strong {
    display: block;
    font-size: 0.95rem;
}

.sb-pick.is-picked {
    border-color: var(--sb);
    background: #f0fdfa;
    box-shadow: 0 0 0 2px rgba(0, 167, 167, 0.12);
}

.sb-pick:disabled,
.sb-pick.is-busy {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    text-decoration: line-through;
    box-shadow: none;
}

.sb-buffer-note {
    margin: -0.15rem 0 0.65rem;
    font-size: 0.82rem;
    color: var(--sb-muted);
}

.sb-calpick {
    position: relative;
    max-width: 22rem;
}

.sb-calpick__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
}

.sb-calpick__trigger {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 2.85rem;
    padding: 0.45rem 0.75rem;
    border: 1.5px solid var(--sb-line);
    border-radius: 0.9rem;
    background: #fff;
    color: var(--sb-muted);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sb-calpick__trigger:hover,
.sb-calpick__trigger[aria-expanded="true"] {
    border-color: var(--sb);
    box-shadow: 0 0 0 3px rgba(0, 167, 167, 0.14);
}

.sb-calpick__trigger.has-value {
    color: var(--sb-ink);
}

.sb-calpick__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    background: #e7f7f7;
    color: var(--sb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.sb-calpick__value {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 650;
}

.sb-calpick__chevron {
    color: var(--sb-muted);
    transition: transform 0.15s ease;
}

.sb-calpick__trigger[aria-expanded="true"] .sb-calpick__chevron {
    transform: rotate(180deg);
}

.sb-calpick__pop {
    position: fixed;
    z-index: 1180;
    display: none;
    padding: 0.9rem;
    background: #fff;
    border: 1px solid var(--sb-line);
    border-radius: 1.15rem;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.sb-calpick__pop.is-on,
.sb-calpick__pop:not([hidden]) {
    display: block;
}

.sb-calpick__pop[hidden] {
    display: none !important;
}

.sb-calpick__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.sb-calpick__head strong {
    font-size: 0.95rem;
    color: var(--sb-ink);
    text-transform: capitalize;
}

.sb-calpick__nav {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #f0fdfa;
    color: var(--sb-dark);
    cursor: pointer;
}

.sb-calpick__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.sb-calpick__wd {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.15rem;
    margin-bottom: 0.35rem;
}

.sb-calpick__wd span {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sb-muted);
}

.sb-calpick__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
}

.sb-calpick__day {
    aspect-ratio: 1;
    border: 0;
    border-radius: 0.7rem;
    background: transparent;
    color: var(--sb-ink);
    font-size: 0.85rem;
    font-weight: 650;
    cursor: pointer;
}

.sb-calpick__day:hover:not(:disabled) {
    background: #f0fdfa;
    color: var(--sb-dark);
}

.sb-calpick__day.is-outside {
    color: #94a3b8;
}

.sb-calpick__day.is-today {
    box-shadow: inset 0 0 0 1.5px var(--sb);
}

.sb-calpick__day.is-selected {
    background: var(--sb);
    color: #fff;
    box-shadow: none;
}

.sb-calpick__day.is-selected:hover:not(:disabled) {
    background: var(--sb-dark);
    color: #fff;
}

.sb-calpick__day.is-disabled,
.sb-calpick__day:disabled {
    opacity: 0.32;
    cursor: not-allowed;
    text-decoration: line-through;
}

.sb-calpick__today {
    display: block;
    width: 100%;
    margin-top: 0.7rem;
    border: 0;
    border-radius: 0.7rem;
    background: #f0fdfa;
    color: var(--sb-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem;
    cursor: pointer;
}

.sb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.sb-pets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.sb-pet {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
    border: 1.5px solid var(--sb-line);
    background: #fff;
    border-radius: 0.95rem;
    padding: 0.55rem 0.7rem;
    color: inherit;
    cursor: pointer;
}

.sb-pet.is-picked {
    border-color: var(--sb);
    box-shadow: 0 0 0 3px rgba(0, 167, 167, 0.14);
}

.sb-pet__photo,
.sb-pet__plus {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
    background: #f1f5f9 center/cover no-repeat;
}

.sb-pet__plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-dark);
    background: #f0fdfa;
    font-size: 1.2rem;
}

.sb-pet__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sb-pet__copy strong {
    font-size: 0.88rem;
    color: #0f172a;
}

.sb-pet__copy small {
    color: #64748b;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sb-field--full {
    grid-column: 1 / -1;
}

.sb-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
}

.sb-field input,
.sb-field textarea {
    width: 100%;
    border: 1px solid var(--sb-line);
    border-radius: 0.7rem;
    min-height: 2.65rem;
    padding: 0.55rem 0.8rem;
    background: #fff;
    color: #111111;
    -webkit-text-fill-color: #111111;
    caret-color: #111111;
}

.sb-field textarea {
    min-height: 6rem;
}

.sb-field input::placeholder,
.sb-field textarea::placeholder {
    color: #64748b;
    -webkit-text-fill-color: #64748b;
    opacity: 1;
}

.sb-field input::-webkit-input-placeholder,
.sb-field textarea::-webkit-input-placeholder {
    color: #64748b;
    -webkit-text-fill-color: #64748b;
    opacity: 1;
}

.sb-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0 1.25rem 1.3rem;
}

.sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 0.85rem;
    font-weight: 700;
    padding: 0.8rem 1.15rem;
    min-width: 8.5rem;
}

.sb-btn i {
    font-size: 1.05rem;
    line-height: 1;
}

.sb-btn--ghost {
    background: #f8fafc;
    color: #334155;
    border: 1px solid var(--sb-line);
}

.sb-btn--go {
    background: var(--sb);
    color: #fff;
    margin-left: auto;
}

.sb-btn--go.is-loading {
    opacity: 0.85;
    pointer-events: none;
}

.sb-btn--go.is-loading > i {
    display: none;
}

.sb-btn__spin {
    display: none;
    width: 0.95rem;
    height: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sbSpin 0.7s linear infinite;
}

.sb-btn--go.is-loading .sb-btn__spin {
    display: inline-block;
}

.sb-hint {
    color: var(--sb-muted);
    font-size: 0.82rem;
    margin: 0.3rem 0 0;
}

.sb-win {
    display: none;
    text-align: center;
    padding: 3rem 1.4rem;
}

.sb-win.is-on {
    display: block;
}

.sb-win__trophy {
    width: 5.2rem;
    height: 5.2rem;
    margin: 0 auto 1rem;
    border-radius: 1.3rem;
    background: linear-gradient(145deg, var(--sb-yellow), #fbbf24);
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    animation: sbPop 0.55s ease;
}

.sb-win h2 {
    font-family: "Poppins", "Nunito", system-ui, sans-serif;
    margin: 0 0 0.4rem;
    color: var(--sb-ink);
}

.sb-win .sb-win__ref-label {
    margin: 0.85rem auto 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f766e;
}

.sb-win__ref {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.55rem 1.05rem;
    border-radius: 0.85rem;
    background: #f0fdfa;
    border: 1px dashed #5eead4;
    color: #115e59;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}

.sb-win p {
    color: #475569;
    max-width: 28rem;
    margin: 0 auto 1.2rem;
}

body.sb-modal-open {
    overflow: hidden;
}

.sb-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.sb-modal.is-on,
.sb-modal:not([hidden]) {
    display: flex;
}

.sb-modal[hidden] {
    display: none !important;
}

.sb-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.sb-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(32rem, 100%);
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.sb-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    cursor: pointer;
}

.sb-modal__media {
    height: 190px;
    background: #e7f7f7;
}

.sb-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-modal__media .sb-mission__ico {
    height: 190px;
    font-size: 3rem;
}

.sb-modal__body {
    padding: 1.15rem 1.2rem 1.3rem;
}

.sb-modal__type {
    margin: 0 0 0.2rem;
    color: var(--sb-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sb-modal__title {
    margin: 0 0 0.55rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sb-ink);
}

.sb-modal__price {
    margin: 0.7rem 0 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--sb-dark);
}

.sb-modal__price s {
    color: #94a3b8;
    font-weight: 600;
    margin-right: 0.35rem;
}

.sb-modal__price span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sb-muted);
}

.sb-modal__desc {
    margin: 0.85rem 0 0;
    color: #475569;
    white-space: pre-wrap;
    line-height: 1.5;
}

.sb-modal__desc.is-empty {
    color: var(--sb-muted);
    font-style: italic;
}

.sb-modal__variants {
    margin-top: 0.9rem;
}

.sb-modal__variants strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
}

.sb-modal__variants ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #475569;
}

.sb-modal__choose {
    width: 100%;
    margin: 1.1rem 0 0;
}

@keyframes sbSpin {
    to { transform: rotate(360deg); }
}

@keyframes sbPop {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 991.98px) {
    /* Header is absolute/fixed site-wide — put it in flow so quest isn't under it */
    body.front-booking .header-section,
    body.front-booking .header-section.header-fixed {
        position: relative;
        top: auto;
        background-color: var(--secondary);
    }

    body.front-booking .header-section .header,
    body.front-booking .header-section .header.active {
        position: relative;
        top: auto;
        transform: none;
        animation: none;
    }

    .sb-quest {
        padding-top: 1.25rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 767.98px) {
    .sb-quest { padding-top: 1rem; }
    .sb-form-grid { grid-template-columns: 1fr; }
    .sb-step-dot em { display: none; }
    .sb-missions { grid-template-columns: 1fr 1fr; }
}
