/*
 * Private schedule page (/private-schedule) in the home page (home v2) design language.
 * Loaded after home-v2.css, which provides the shell, header, footer and the
 * private-sessions banner pieces reused in the hero (hv2-pvt__waves, __badge, __feats).
 */

#home-v2.hv2-ps {
    --ps-ink: #0B1F44;
    --ps-ink-2: #13376B;
    --ps-text: #55657C;
    --ps-muted: #6B7A90;
    --ps-blue: #0A7DF9;
    --ps-blue-2: #0A6CF3;
    --ps-line: #E1ECF8;
    --ps-field-line: #D9E6F5;
    --ps-primary: linear-gradient(180deg, #0AA0FB 0%, #0A7DF9 100%);
    --ps-tile: linear-gradient(180deg, #3D8BFD 0%, #1C6FF0 100%);
    --ps-head-font: "Plus Jakarta Sans", Inter, Cairo, Tajawal, system-ui, sans-serif;
    --ps-body-font: Inter, Cairo, Tajawal, system-ui, sans-serif;
    --ps-hero-font: Montserrat, Inter, Cairo, Tajawal, system-ui, sans-serif;
    --ps-overlap: clamp(44px, 5vw, 72px);
    background: #FBFDFF;
    color: var(--ps-ink);
    font-family: var(--ps-body-font);
}

#home-v2.hv2-ps *,
#home-v2.hv2-ps *::before,
#home-v2.hv2-ps *::after {
    box-sizing: border-box;
}

/* app.css forces `p { font-family: Tajawal !important }`; home-v2.css overrides it the same way. */
#home-v2 :where(.hv2-ps-hero, .hv2-ps-body) p {
    font-family: var(--ps-body-font) !important;
}

/* ---------- Hero (same look as the home page "One-to-One Support" banner) ---------- */

#home-v2 .hv2-ps-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(36px, 4.4vw, 64px) 0 calc(clamp(36px, 4vw, 56px) + var(--ps-overlap));
    background:
        radial-gradient(38% 60% at 30% 45%, #FAFDFF 0%, rgba(250, 253, 255, 0) 100%),
        linear-gradient(180deg, #F2F8FE 0%, #EDF6FE 100%);
    font-family: var(--ps-hero-font);
}

#home-v2 .hv2-ps-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
}

#home-v2 .hv2-ps-hero__text > * {
    animation: hv2RevealIn 1s cubic-bezier(.22, 1, .36, 1) backwards;
}

#home-v2 .hv2-ps-hero__text > :nth-child(1) { animation-delay: .05s; }
#home-v2 .hv2-ps-hero__text > :nth-child(2) { animation-delay: .17s; }
#home-v2 .hv2-ps-hero__text > :nth-child(3) { animation-delay: .29s; }
#home-v2 .hv2-ps-hero__text > :nth-child(4) { animation-delay: .41s; }

/* The banner's badge is a link on the home page; here it is a label. */
#home-v2 .hv2-ps-hero__badge,
#home-v2 .hv2-ps-hero__badge:hover {
    cursor: default;
    transform: rotate(-4deg);
}

[dir="rtl"] #home-v2 .hv2-ps-hero__badge,
[dir="rtl"] #home-v2 .hv2-ps-hero__badge:hover {
    transform: rotate(4deg);
}

#home-v2 .hv2-ps-hero__title {
    margin: clamp(22px, 2.4vw, 32px) 0 0;
    color: #0D3884;
    font-family: var(--ps-hero-font);
    font-size: clamp(34px, 4.4vw, 62px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.015em;
}

#home-v2 .hv2-ps-hero__title span {
    background: linear-gradient(90deg, #0A6CF3 0%, #1B84F2 55%, #2598EE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

[dir="rtl"] #home-v2 .hv2-ps-hero__title {
    line-height: 1.3;
    letter-spacing: 0;
}

#home-v2 .hv2-ps-hero__lead {
    max-width: 540px;
    margin: 18px 0 0;
    color: var(--ps-text);
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.6;
}

#home-v2 .hv2-ps-hero__feats {
    margin-top: clamp(22px, 2.6vw, 34px);
}

#home-v2 .hv2-ps-hero__art {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    animation: hv2RevealInScale 1.2s cubic-bezier(.16, 1, .3, 1) .2s backwards;
}

#home-v2 .hv2-ps-hero__art img {
    display: block;
    width: 100%;
    height: auto;
}

/* Below the two-column layout the picture would stack under the text: leave it out so the form stays near the top. */
@media (max-width: 1023px) {
    #home-v2 .hv2-ps-hero__art {
        display: none;
    }
}

@media (min-width: 1024px) {
    #home-v2 .hv2-ps-hero__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        gap: 40px;
    }
}

/* Phones: the four marketing features push the form down, so the hero keeps only the title and the lead. */
@media (max-width: 639px) {
    #home-v2 .hv2-ps-hero__feats {
        display: none;
    }
}

/* Components below set their own display; the hidden attribute must still win. */
#home-v2.hv2-ps [hidden] {
    display: none !important;
}

/* ---------- Body and layout ---------- */

#home-v2 .hv2-ps-body {
    position: relative;
    z-index: 1;
    margin-top: calc(-1 * var(--ps-overlap));
    padding-bottom: clamp(48px, 6vw, 88px);
}

/* minmax(0, 1fr) keeps wide content (day tabs) scrolling inside the card instead of stretching it past the screen. */
#home-v2 .hv2-ps-body__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#home-v2 .ps-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

#home-v2 .ps-card,
#home-v2 .ps-requests,
#home-v2 .ps-summary {
    border: 1px solid var(--ps-line);
    border-radius: clamp(22px, 2.6vw, 32px);
    background: #fff;
    box-shadow: 0 30px 60px -36px rgba(38, 98, 196, .45), 0 2px 6px rgba(17, 36, 58, .04);
}

#home-v2 .ps-card {
    --ps-card-pad: clamp(20px, 3.4vw, 40px);
    padding: var(--ps-card-pad);
}

/* ---------- Progress ---------- */

#home-v2 .ps-progress {
    margin: 0 0 clamp(22px, 2.8vw, 30px);
    padding-bottom: clamp(16px, 2.2vw, 24px);
    border-bottom: 1px solid #EDF3FA;
}

#home-v2 .ps-progress__count,
#home-v2 .ps-progress__bar {
    display: none;
}

#home-v2 .ps-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

#home-v2 .ps-step-dot {
    position: relative;
}

/* Line from the previous step to this one; blue once this step is reached. */
#home-v2 .ps-step-dot + .ps-step-dot::before {
    content: "";
    position: absolute;
    top: 23px;
    inset-inline-end: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    border-radius: 2px;
    background: var(--ps-line);
    transition: background-color .3s ease;
}

#home-v2 .ps-step-dot.is-active::before,
#home-v2 .ps-step-dot.is-done::before {
    background: #5AA6FB;
}

#home-v2 .ps-step-dot__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 4px 2px;
    border: 0;
    border-radius: 14px;
    background: none;
    color: #8C97A8;
    font-family: var(--ps-head-font);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
}

#home-v2 .ps-step-dot__btn:disabled {
    cursor: default;
}

#home-v2 .ps-step-dot__btn:focus-visible {
    outline: 2px solid var(--ps-blue);
    outline-offset: 2px;
}

#home-v2 .ps-step-dot .num {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid #DCE8F6;
    border-radius: 9999px;
    background: #F4F8FD;
    color: #8C97A8;
    font-size: 15px;
    font-weight: 700;
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, color .3s ease;
}

#home-v2 .ps-step-dot .num svg {
    display: none;
    width: 18px;
    height: 18px;
}

#home-v2 .ps-step-dot.is-active .ps-step-dot__btn {
    color: var(--ps-ink);
    font-weight: 700;
}

#home-v2 .ps-step-dot.is-active .num {
    border-color: transparent;
    background: var(--ps-primary);
    box-shadow: 0 10px 20px -8px rgba(7, 127, 255, .6), 0 0 0 5px rgba(10, 125, 249, .12);
    color: #fff;
}

#home-v2 .ps-step-dot.is-done .ps-step-dot__btn {
    color: var(--ps-ink-2);
}

#home-v2 .ps-step-dot.is-done .num {
    border-color: #BBD8FB;
    background: #E6F1FE;
    color: var(--ps-blue-2);
}

#home-v2 .ps-step-dot.is-done .ps-step-dot__btn:hover .num {
    border-color: var(--ps-blue);
}

#home-v2 .ps-step-dot.is-done .num > span {
    display: none;
}

#home-v2 .ps-step-dot.is-done .num svg {
    display: block;
}

/* ---------- Notices ---------- */

#home-v2 .ps-alert,
#home-v2 .ps-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
}

#home-v2 .ps-alert {
    border: 1px solid #FBD5D5;
    background: #FEF2F2;
    color: #9B1C1C;
}

#home-v2 .ps-alert strong {
    display: block;
}

#home-v2 .ps-alert ul {
    margin: 4px 0 0;
    padding-inline-start: 18px;
}

#home-v2 .ps-notice {
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #D3E6FC;
    background: #EEF6FF;
    color: var(--ps-ink-2);
}

#home-v2 .ps-alert > svg,
#home-v2 .ps-notice > svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

#home-v2 .ps-notice > svg {
    color: var(--ps-blue);
}

#home-v2 .ps-notice button {
    margin-inline-start: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ps-blue-2);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

#home-v2 .ps-guest-note {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #F5FAFF;
    color: var(--ps-ink-2);
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- Steps ---------- */

#home-v2 .ps-step {
    display: none;
}

#home-v2 .ps-step.is-active {
    display: block;
    animation: hv2PsStepIn .3s ease;
}

@keyframes hv2PsStepIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

#home-v2 .ps-step__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

#home-v2 .ps-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--ps-tile);
    box-shadow: 0 10px 18px -10px rgba(28, 111, 240, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
    color: #fff;
}

#home-v2 .ps-step__icon svg {
    width: 22px;
    height: 22px;
}

#home-v2 .ps-step__title {
    margin: 0;
    color: var(--ps-ink);
    font-family: var(--ps-head-font);
    font-size: clamp(20px, 1.9vw, 24px);
    font-weight: 800;
    line-height: 1.25;
}

#home-v2 .ps-step__title:focus {
    outline: none;
}

#home-v2 .hv2-ps-body .ps-hint {
    margin: 6px 0 0;
    color: var(--ps-muted);
    font-size: 15px;
    line-height: 1.6;
}

#home-v2 .hv2-ps-body .ps-hint--after {
    margin-top: 10px;
    font-size: 13.5px;
}

#home-v2 .ps-block,
#home-v2 .ps-repeat,
#home-v2 .ps-branches {
    min-width: 0;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

#home-v2 .ps-label,
#home-v2 .ps-field label {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    color: var(--ps-ink-2);
    font-family: var(--ps-head-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

/* ---------- Fields ---------- */

#home-v2 .ps-field {
    margin: 0 0 20px;
}

#home-v2 .ps-field--spaced {
    margin-top: 22px;
}

#home-v2 .ps-field textarea,
#home-v2 .ps-search input {
    display: block;
    width: 100%;
    margin: 0;
    border: 1.5px solid var(--ps-field-line);
    border-radius: 14px;
    background-color: #F8FBFF;
    color: var(--ps-ink);
    font-family: var(--ps-body-font);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

#home-v2 .ps-field textarea {
    min-height: 96px;
    padding: 14px 16px;
    resize: vertical;
}

#home-v2 .ps-field textarea:hover,
#home-v2 .ps-search input:hover {
    border-color: #B7D3F5;
}

#home-v2 .ps-field textarea:focus,
#home-v2 .ps-search input:focus {
    outline: none;
    border-color: #3D8BFD;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(61, 139, 253, .15);
}

#home-v2 .ps-field textarea::placeholder,
#home-v2 .ps-search input::placeholder {
    color: #9AA8BA;
}

#home-v2 .ps-counter {
    margin: 6px 0 0;
    color: #9AA8BA;
    font-size: 12.5px;
    text-align: end;
}

/* ---------- Option cards (children, students, places, branches, plans) ---------- */

#home-v2 .ps-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

#home-v2 .ps-options--inline {
    grid-template-columns: repeat(auto-fill, minmax(0, 220px));
}

#home-v2 .ps-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 16px 50px 16px 16px;
    border: 1.5px solid #DFEAF6;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

[dir="rtl"] #home-v2 .ps-option {
    padding: 16px 16px 16px 50px;
}

#home-v2 .ps-options--inline .ps-option,
#home-v2 .ps-option--person {
    align-items: center;
}

#home-v2 .ps-option:hover {
    border-color: #B7D3F5;
    box-shadow: 0 12px 24px -18px rgba(30, 111, 208, .5);
}

#home-v2 .ps-option:has(input:focus-visible) {
    outline: 2px solid var(--ps-blue);
    outline-offset: 2px;
}

#home-v2 .ps-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Selection mark in the corner. */
#home-v2 .ps-option::after {
    content: "";
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    width: 22px;
    height: 22px;
    border: 1.5px solid #C9DAEE;
    border-radius: 9999px;
    background: #fff center / 14px no-repeat;
    transition: background-color .2s ease, border-color .2s ease;
}

#home-v2 .ps-options--inline .ps-option::after,
#home-v2 .ps-option--person::after {
    top: calc(50% - 11px);
}

#home-v2 .ps-option.is-selected {
    border-color: #2B8CF8;
    background: linear-gradient(180deg, #F5FAFF 0%, #EEF6FF 100%);
    box-shadow: 0 0 0 3px rgba(43, 140, 248, .12), 0 14px 28px -20px rgba(10, 125, 249, .55);
}

#home-v2 .ps-option.is-selected::after {
    border-color: var(--ps-blue);
    background-color: var(--ps-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

#home-v2 .ps-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #EAF3FE;
    color: #1E6FD0;
    transition: background .2s ease, color .2s ease;
}

#home-v2 .ps-option__icon svg {
    width: 20px;
    height: 20px;
}

#home-v2 .ps-option.is-selected .ps-option__icon {
    background: var(--ps-tile);
    color: #fff;
}

#home-v2 .ps-option__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-top: 1px;
}

#home-v2 .ps-option .t,
#home-v2 .ps-missing .t {
    display: block;
    color: var(--ps-ink);
    font-family: var(--ps-head-font);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
}

#home-v2 .ps-option .d,
#home-v2 .ps-missing .d {
    display: block;
    color: var(--ps-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

#home-v2 .ps-option__price,
#home-v2 .ps-plan-card__price {
    display: block;
    margin-top: 4px;
    color: var(--ps-blue-2);
    font-size: 14px;
    font-weight: 700;
}

#home-v2 .ps-options--people {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

#home-v2 .ps-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: var(--ps-tile);
    color: #fff;
    font-family: var(--ps-head-font);
    font-size: 16px;
    font-weight: 800;
}

/* ---------- Step 1: programs and subjects ---------- */

#home-v2 .ps-programs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

#home-v2 .ps-program {
    --ps-tint: #EEF5FF;
    --ps-icon-bg: #E3EEFF;
    --ps-icon: #1E6FD0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    margin: 0;
    padding: 14px 16px;
    border: 1.5px solid #DFEAF6;
    border-radius: 18px;
    background: linear-gradient(135deg, #FFFFFF 30%, var(--ps-tint) 100%);
    color: var(--ps-ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#home-v2 .ps-program--purple { --ps-tint: #F4F0FF; --ps-icon-bg: #ECE6FF; --ps-icon: #6D4AE0; }
#home-v2 .ps-program--green { --ps-tint: #ECFAF4; --ps-icon-bg: #DDF5EA; --ps-icon: #13866A; }
#home-v2 .ps-program--amber { --ps-tint: #FFF7E8; --ps-icon-bg: #FFEFD1; --ps-icon: #B86E00; }

#home-v2 .ps-program:hover {
    border-color: #B7D3F5;
    box-shadow: 0 14px 26px -20px rgba(30, 111, 208, .6);
    transform: translateY(-1px);
}

#home-v2 .ps-program:focus-visible,
#home-v2 .ps-chip-btn:focus-visible,
#home-v2 .ps-missing:focus-visible,
#home-v2 .ps-day:focus-visible,
#home-v2 .ps-time:focus-visible,
#home-v2 .ps-pack:focus-visible,
#home-v2 .ps-edit:focus-visible,
#home-v2 .ps-chosen__change:focus-visible {
    outline: 2px solid var(--ps-blue);
    outline-offset: 2px;
}

#home-v2 .ps-program__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ps-icon-bg);
    color: var(--ps-icon);
}

#home-v2 .ps-program__icon svg {
    width: 22px;
    height: 22px;
}

#home-v2 .ps-program__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#home-v2 .ps-program__title {
    color: var(--ps-ink);
    font-family: var(--ps-head-font);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
}

#home-v2 .ps-program__meta {
    color: var(--ps-muted);
    font-size: 13px;
}

/* The chosen program folds into one row so the subjects come straight after it. */
#home-v2 .ps-chosen {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #BBD8FB;
    border-radius: 16px;
    background: #F2F8FF;
}

#home-v2 .ps-chosen__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    background: var(--ps-primary);
    color: #fff;
}

#home-v2 .ps-chosen__check svg {
    width: 16px;
    height: 16px;
}

#home-v2 .ps-chosen__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

#home-v2 .ps-chosen__text small {
    color: var(--ps-muted);
    font-size: 12.5px;
}

#home-v2 .ps-chosen__text strong {
    color: var(--ps-ink);
    font-size: 15.5px;
    font-weight: 700;
}

#home-v2 .ps-chosen__change,
#home-v2 .ps-edit {
    flex-shrink: 0;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid #CFE0F5;
    border-radius: 9999px;
    background: #fff;
    color: var(--ps-blue-2);
    font-family: var(--ps-head-font);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

#home-v2 .ps-chosen__change:hover,
#home-v2 .ps-edit:hover {
    border-color: #9CC4F5;
    background: #F2F8FF;
}

#home-v2 .ps-search {
    position: relative;
    max-width: 380px;
    margin: 0 0 12px;
}

#home-v2 .ps-search svg {
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    width: 18px;
    height: 18px;
    color: #8C97A8;
    transform: translateY(-50%);
    pointer-events: none;
}

#home-v2 .ps-search input {
    min-height: 46px;
    padding: 10px 14px;
    padding-inline-start: 42px;
}

#home-v2 .ps-chips--subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#home-v2 .ps-subject-group {
    flex: 1 0 100%;
    margin: 6px 0 0;
    color: var(--ps-muted, #5b7190);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

#home-v2 .ps-subject-group:first-child {
    margin-top: 0;
}

#home-v2 .ps-chip-btn {
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;
    border: 1.5px solid #DFEAF6;
    border-radius: 9999px;
    background: #fff;
    color: var(--ps-ink-2);
    font-family: var(--ps-body-font);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

#home-v2 .ps-chip-btn:hover {
    border-color: #9CC4F5;
    background: #F5FAFF;
}

#home-v2 .ps-chip-btn[aria-pressed="true"],
#home-v2 .ps-time[aria-pressed="true"] {
    border-color: transparent;
    background: var(--ps-primary);
    box-shadow: 0 10px 18px -10px rgba(7, 127, 255, .7);
    color: #fff;
}

#home-v2 .ps-empty {
    margin: 4px 0 0;
    color: var(--ps-muted);
    font-size: 14px;
}

#home-v2 .ps-missing {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 16px 0 0;
    padding: 14px 16px;
    border: 1.5px dashed #F2C77A;
    border-radius: 16px;
    background: #FFFBF2;
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

#home-v2 .ps-missing:hover,
#home-v2 .ps-missing.is-selected {
    border-style: solid;
    border-color: #E8A93A;
    background: #FFF6E3;
}

#home-v2 .ps-missing__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #FFEFD1;
    color: #B86E00;
}

#home-v2 .ps-missing__icon svg {
    width: 18px;
    height: 18px;
}

#home-v2 #psRequestedField {
    margin: 12px 0 0;
}

/* ---------- Step 2: days, times, weekly repeat ---------- */

#home-v2 .ps-days {
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

#home-v2 .ps-day {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 0 16px;
    border: 1.5px solid #DFEAF6;
    border-radius: 9999px;
    background: #fff;
    color: var(--ps-ink-2);
    font-family: var(--ps-head-font);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    scroll-snap-align: start;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

#home-v2 .ps-day:hover,
#home-v2 .ps-day.has-times {
    border-color: #BBD8FB;
    background: #F2F8FF;
}

#home-v2 .ps-day[aria-selected="true"] {
    border-color: transparent;
    background: var(--ps-ink-2);
    color: #fff;
}

#home-v2 .ps-day__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 9999px;
    background: var(--ps-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

#home-v2 .ps-day[aria-selected="true"] .ps-day__count {
    background: #fff;
    color: var(--ps-ink-2);
}

#home-v2 .ps-day__date {
    font-family: var(--ps-body-font);
    font-size: 12.5px;
    font-weight: 500;
    opacity: .75;
    white-space: nowrap;
}

#home-v2 .ps-day:disabled {
    border-color: #E6ECF3;
    background: #F4F6F9;
    color: var(--ps-muted);
    opacity: .6;
    cursor: not-allowed;
}

/* Week picker above the day tabs: ‹ This week · 25 Oct – 31 Oct › */
#home-v2 .ps-week {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    padding: 8px;
    border: 1px solid var(--ps-line);
    border-radius: 16px;
    background: #fff;
}

#home-v2 .ps-week__nav {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1.5px solid #DFEAF6;
    border-radius: 12px;
    background: #fff;
    color: var(--ps-ink-2);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}

#home-v2 .ps-week__nav:hover:not(:disabled) {
    border-color: #8FC0FA;
    background: #EEF6FF;
}

#home-v2 .ps-week__nav:disabled {
    opacity: .35;
    cursor: not-allowed;
}

#home-v2 .ps-week__nav:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 2px;
}

#home-v2 .ps-week__nav svg {
    width: 20px;
    height: 20px;
}

[dir="rtl"] #home-v2 .ps-week__nav svg {
    transform: scaleX(-1);
}

#home-v2 .hv2-ps-body .ps-week__label {
    display: grid;
    gap: 2px;
    margin: 0;
    text-align: center;
}

#home-v2 .ps-week__label strong {
    color: var(--ps-ink-2);
    font-family: var(--ps-head-font);
    font-size: 15px;
    font-weight: 700;
}

#home-v2 .ps-week__label span {
    color: var(--ps-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

#home-v2 .hv2-ps-body .ps-times__note {
    margin: 0;
    color: var(--ps-muted);
    font-size: 13px;
}

#home-v2 .ps-time.is-gone {
    text-decoration: line-through;
}

#home-v2 .ps-times {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--ps-line);
    border-radius: 20px;
    background: #FBFDFF;
}

#home-v2 .hv2-ps-body .ps-times__part {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--ps-muted);
    font-size: 13.5px;
    font-weight: 700;
}

#home-v2 .ps-times__part svg {
    width: 18px;
    height: 18px;
    color: var(--ps-blue);
}

#home-v2 .ps-times__chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

#home-v2 .ps-time {
    min-height: 46px;
    margin: 0;
    padding: 8px 10px;
    border: 1.5px solid #DFEAF6;
    border-radius: 12px;
    background: #fff;
    color: var(--ps-ink-2);
    font-family: var(--ps-body-font);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

#home-v2 .ps-time:hover:not(:disabled) {
    border-color: #8FC0FA;
    background: #EEF6FF;
}

#home-v2 .ps-time:disabled {
    opacity: .45;
    cursor: not-allowed;
}

#home-v2 .ps-tray {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px dashed #BBD8FB;
    border-radius: 16px;
    background: #F2F8FF;
}

#home-v2 .hv2-ps-body .ps-tray__count {
    margin: 0 0 8px;
    color: var(--ps-ink-2);
    font-size: 14px;
    font-weight: 700;
}

#home-v2 .ps-tray__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#home-v2 .ps-tray__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    padding-inline-start: 12px;
    border: 1px solid #BBD8FB;
    border-radius: 9999px;
    background: #fff;
    color: #0E5FC4;
    font-size: 13.5px;
    font-weight: 600;
}

#home-v2 .ps-tray__chip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: #E6F1FE;
    color: var(--ps-blue-2);
    cursor: pointer;
}

#home-v2 .ps-tray__chip button:hover {
    background: #D3E6FC;
}

#home-v2 .ps-tray__chip button svg {
    width: 12px;
    height: 12px;
}

#home-v2 .hv2-ps-body .ps-tray__empty,
#home-v2 .hv2-ps-body .ps-tray__full {
    margin: 0;
    color: var(--ps-muted);
    font-size: 13.5px;
}

#home-v2 .hv2-ps-body .ps-tray__full {
    margin-top: 8px;
    color: #8A5A00;
}

#home-v2 .ps-repeat {
    margin-top: 24px;
}

#home-v2 .ps-seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    background: #F1F6FC;
}

#home-v2 .ps-seg__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--ps-ink-2);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

#home-v2 .ps-seg__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#home-v2 .ps-seg__item:has(input:focus-visible) {
    outline: 2px solid var(--ps-blue);
    outline-offset: 1px;
}

#home-v2 .ps-seg__item.is-selected {
    background: #fff;
    box-shadow: 0 6px 14px -10px rgba(30, 111, 208, .6);
    color: var(--ps-blue-2);
    font-weight: 700;
}

#home-v2 .ps-weeks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 16px;
}

#home-v2 .ps-weeks .ps-label {
    margin: 0;
}

#home-v2 .ps-stepper {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1.5px solid var(--ps-field-line);
    border-radius: 14px;
    background: #fff;
}

#home-v2 .ps-stepper button {
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    background: #F4F8FD;
    color: var(--ps-blue-2);
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

#home-v2 .ps-stepper button:hover {
    background: #E6F1FE;
}

#home-v2 .ps-stepper input {
    width: 64px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--ps-ink);
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

#home-v2 .ps-stepper input::-webkit-inner-spin-button,
#home-v2 .ps-stepper input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

#home-v2 .ps-stepper input:focus {
    outline: 2px solid var(--ps-blue);
    outline-offset: -2px;
}

#home-v2 .hv2-ps-body .ps-weeks__total {
    margin: 0;
    color: var(--ps-blue-2);
    font-size: 14px;
    font-weight: 700;
}

/* ---------- Step 3: plans ---------- */

#home-v2 .hv2-ps-body .ps-balance {
    display: inline-flex;
    margin: 0 0 16px;
    padding: 7px 12px;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 700;
}

#home-v2 .ps-balance--green { background: #E8F7EF; color: #0F7A44; }
#home-v2 .ps-balance--orange { background: #FFF3E0; color: #A45600; }
#home-v2 .ps-balance--red { background: #FDECEC; color: #B42318; }

#home-v2 .ps-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    align-items: start;
}

#home-v2 .ps-plan-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#home-v2 .ps-plan-card__reason {
    display: block;
    margin-top: 4px;
    color: #8A5A00;
    font-size: 13px;
    line-height: 1.45;
}

#home-v2 .ps-plan-wrap.is-disabled .ps-option {
    background: #F7F9FC;
    box-shadow: none;
    cursor: not-allowed;
}

#home-v2 .ps-plan-wrap.is-disabled .ps-option .t,
#home-v2 .ps-plan-wrap.is-disabled .ps-option .d,
#home-v2 .ps-plan-wrap.is-disabled .ps-option__icon,
#home-v2 .ps-plan-wrap.is-disabled .ps-plan-card__price {
    opacity: .55;
}

#home-v2 .ps-packs {
    padding: 12px 14px;
    border: 1px solid #D3E6FC;
    border-radius: 16px;
    background: #F2F8FF;
}

#home-v2 .ps-packs .ps-label {
    margin-bottom: 8px;
    font-size: 14px;
}

#home-v2 .ps-packs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#home-v2 .ps-pack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 96px;
    min-height: 56px;
    margin: 0;
    padding: 8px 14px;
    border: 1.5px solid #CFE0F5;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

#home-v2 .ps-pack strong {
    color: var(--ps-ink);
    font-size: 14.5px;
    font-weight: 700;
}

#home-v2 .ps-pack small {
    color: var(--ps-muted);
    font-size: 12.5px;
}

#home-v2 .ps-pack:hover:not(:disabled) {
    border-color: #8FC0FA;
}

#home-v2 .ps-pack[aria-pressed="true"] {
    border-color: var(--ps-blue);
    box-shadow: 0 0 0 3px rgba(43, 140, 248, .15);
}

#home-v2 .ps-pack[aria-pressed="true"] strong {
    color: var(--ps-blue-2);
}

#home-v2 .ps-pack:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ---------- Step 4: home pin and branches ---------- */

#home-v2 .ps-panel {
    padding: 18px;
    border: 1px dashed #CFE0F5;
    border-radius: 18px;
    background: #FBFDFF;
}

#home-v2 .ps-panel .ps-hint {
    margin: 0 0 14px;
}

#home-v2 .hv2-ps-body .ps-saved-home {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ECFAF4;
    color: #13664F;
    font-size: 13.5px;
    line-height: 1.5;
}

#home-v2 .ps-location-status:not(:empty) {
    margin-top: 12px;
    color: var(--ps-ink-2);
    font-size: 14px;
    line-height: 1.5;
}

#home-v2 .ps-location-map {
    position: relative;
    z-index: 0;
    height: 260px;
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
}

#home-v2 #psLocationMapCanvas {
    height: 100%;
}

#home-v2 .ps-location-map .leaflet-pane,
#home-v2 .ps-location-map .leaflet-top,
#home-v2 .ps-location-map .leaflet-bottom {
    z-index: 1;
}

/* ---------- Step 5: review, cost, what happens next ---------- */

#home-v2 .ps-review {
    margin: 0;
    padding: 4px 18px;
    border: 1px solid var(--ps-line);
    border-radius: 20px;
    background: linear-gradient(180deg, #FBFDFF 0%, #F5FAFF 100%);
}

#home-v2 .ps-review__row {
    display: grid;
    grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) auto;
    grid-template-areas: "label value edit";
    gap: 4px 14px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid #E6EEF8;
}

#home-v2 .ps-review__row:first-child {
    border-top: 0;
}

#home-v2 .ps-review__row dt {
    grid-area: label;
    padding-top: 2px;
    color: var(--ps-muted);
    font-size: 14px;
    font-weight: 600;
}

#home-v2 .ps-review__row dd {
    grid-area: value;
    margin: 0;
    color: var(--ps-ink);
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#home-v2 .ps-review__row .ps-edit {
    grid-area: edit;
}

#home-v2 .ps-review__row dd.is-empty,
#home-v2 .ps-summary dd.is-empty {
    color: #A0AEC0;
    font-weight: 500;
}

#home-v2 .ps-review__sub {
    display: block;
    margin-top: 6px;
    color: var(--ps-muted);
    font-size: 13.5px;
    font-weight: 500;
}

#home-v2 .ps-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#home-v2 .ps-chip {
    padding: 5px 12px;
    border-radius: 9999px;
    background: #E6F1FE;
    color: #0E5FC4;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

#home-v2 .ps-cost {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #CFE0F5;
    border-radius: 20px;
    background: linear-gradient(180deg, #F5FAFF 0%, #EEF6FF 100%);
}

#home-v2 .hv2-ps-body .ps-cost__title,
#home-v2 .hv2-ps-body .ps-next__title {
    margin: 0 0 10px;
    color: var(--ps-ink);
    font-family: var(--ps-head-font) !important;
    font-size: 16px;
    font-weight: 800;
}

#home-v2 .ps-cost__rows {
    margin: 0;
}

#home-v2 .ps-cost__rows > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px dashed #D3E2F3;
}

#home-v2 .ps-cost__rows > div:first-child {
    border-top: 0;
}

#home-v2 .ps-cost__rows dt {
    color: var(--ps-muted);
    font-size: 14px;
    font-weight: 600;
}

#home-v2 .ps-cost__rows dd {
    margin: 0;
    color: var(--ps-ink);
    font-size: 15px;
    font-weight: 700;
    text-align: end;
}

#home-v2 .ps-cost__rows .ps-cost__due dt {
    color: var(--ps-ink);
    font-size: 15px;
    font-weight: 700;
}

#home-v2 .ps-cost__rows .ps-cost__due dd {
    color: var(--ps-blue-2);
    font-size: 21px;
    font-weight: 800;
}

#home-v2 .hv2-ps-body .ps-cost__hint,
#home-v2 .hv2-ps-body .ps-cost__wallet {
    margin: 6px 0 0;
    color: var(--ps-muted);
    font-size: 13px;
    line-height: 1.5;
}

#home-v2 .hv2-ps-body .ps-cost__wallet {
    margin-top: 10px;
    color: var(--ps-ink-2);
    font-weight: 600;
}

#home-v2 .ps-cost__low {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #FBD9A6;
    border-radius: 12px;
    background: #FFF4E5;
    color: #8A4B00;
    font-size: 13.5px;
    line-height: 1.5;
}

#home-v2 .ps-cost__low svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

#home-v2 .ps-cost__low span {
    flex: 1 1 200px;
}

#home-v2 .ps-cost__low a {
    color: var(--ps-blue-2);
    font-weight: 700;
    text-decoration: underline;
}

#home-v2 .ps-next {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid var(--ps-line);
    border-radius: 20px;
    background: #fff;
}

#home-v2 .ps-next ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ps-next;
}

#home-v2 .ps-next li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ps-ink-2);
    font-size: 14px;
    line-height: 1.45;
    counter-increment: ps-next;
}

#home-v2 .ps-next li::before {
    content: counter(ps-next);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    background: #E6F1FE;
    color: var(--ps-blue-2);
    font-size: 13px;
    font-weight: 700;
}

/* ---------- Errors and buttons ---------- */

#home-v2 .ps-error:empty {
    display: none;
}

#home-v2 .ps-error {
    margin-top: 14px;
    padding: 11px 14px;
    border: 1px solid #FBD5D5;
    border-radius: 12px;
    background: #FEF2F2;
    color: #C0262D;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

#home-v2 .ps-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #EDF3FA;
}

#home-v2 .ps-actions #psNext,
#home-v2 .ps-actions #psSubmit {
    margin-inline-start: auto;
}

#home-v2 .ps-actions__summary {
    display: none;
}

#home-v2 .ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    margin: 0;
    padding: 0 26px;
    border: 0;
    border-radius: 9999px;
    font-family: var(--ps-head-font);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

#home-v2 .ps-btn:hover {
    transform: translateY(-1px);
}

#home-v2 .ps-btn:focus-visible {
    outline: 2px solid var(--ps-blue);
    outline-offset: 3px;
}

#home-v2 .ps-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

[dir="rtl"] #home-v2 .ps-btn__arrow {
    transform: scaleX(-1);
}

#home-v2 .ps-btn-next {
    background: var(--ps-primary);
    box-shadow: 0 12px 24px -10px rgba(7, 127, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
    color: #fff;
}

#home-v2 .ps-btn-next:hover {
    color: #fff;
    box-shadow: 0 16px 28px -10px rgba(7, 127, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}

#home-v2 .ps-btn-back {
    border: 1.5px solid #CFE0F5;
    background: #fff;
    color: var(--ps-ink-2);
}

#home-v2 .ps-btn-back:hover {
    border-color: #9CC4F5;
    color: var(--ps-ink-2);
    box-shadow: 0 10px 22px -14px rgba(30, 111, 208, .6);
}

#home-v2 .ps-btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

#home-v2 .ps-btn.is-loading svg {
    animation: hv2PsSpin 1s linear infinite;
}

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

/* ---------- Live summary (wide screens) ---------- */

#home-v2 .ps-summary {
    display: none;
    padding: 22px;
}

#home-v2 .ps-summary__title {
    margin: 0 0 12px;
    color: var(--ps-ink);
    font-family: var(--ps-head-font);
    font-size: 17px;
    font-weight: 800;
}

#home-v2 .ps-summary__list {
    margin: 0;
}

#home-v2 .ps-summary__list > div {
    padding: 10px 0;
    border-top: 1px solid #EDF3FA;
}

#home-v2 .ps-summary__list > div:first-child {
    border-top: 0;
}

#home-v2 .ps-summary__list dt {
    color: var(--ps-muted);
    font-size: 12.5px;
    font-weight: 600;
}

#home-v2 .ps-summary__list dd {
    margin: 3px 0 0;
    color: var(--ps-ink);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#home-v2 .ps-summary .ps-chip {
    font-size: 12.5px;
}

#home-v2 .ps-summary .ps-review__sub {
    font-size: 12.5px;
}

#home-v2 .ps-summary__total {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #F5FAFF 0%, #EEF6FF 100%);
}

#home-v2 .ps-summary__total span {
    color: var(--ps-muted);
    font-size: 13px;
    font-weight: 600;
}

#home-v2 .ps-summary__total strong {
    color: var(--ps-blue-2);
    font-size: 21px;
    font-weight: 800;
}

@media (min-width: 1100px) {
    #home-v2 .ps-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    #home-v2 .ps-summary {
        display: block;
        position: sticky;
        top: 100px;
    }
}

/* ---------- Pending requests ---------- */

#home-v2 .ps-requests {
    padding: clamp(18px, 2.6vw, 28px);
}

#home-v2 .ps-requests__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 16px;
}

#home-v2 .ps-requests__title {
    margin: 0;
    color: var(--ps-ink);
    font-family: var(--ps-head-font);
    font-size: clamp(18px, 1.6vw, 21px);
    font-weight: 800;
    line-height: 1.3;
}

#home-v2 .ps-requests__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ps-blue-2);
    font-family: var(--ps-head-font);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

#home-v2 .ps-requests__link:hover {
    color: #0757C2;
    text-decoration: none;
}

#home-v2 .ps-requests__link svg {
    width: 16px;
    height: 16px;
}

[dir="rtl"] #home-v2 .ps-requests__link svg {
    transform: scaleX(-1);
}

#home-v2 .ps-requests__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

#home-v2 .ps-requests__card {
    padding: 16px 18px;
    border: 1px solid var(--ps-line);
    border-radius: 18px;
    background: linear-gradient(180deg, #FBFDFF 0%, #F6FAFF 100%);
}

#home-v2 .ps-requests__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#home-v2 .ps-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

#home-v2 .ps-status--review {
    background: #FFF1CC;
    color: #8A5A00;
}

#home-v2 .ps-requests__id {
    color: #8C97A8;
    font-size: 12.5px;
    font-weight: 700;
}

#home-v2 .ps-requests__card-title {
    margin: 10px 0 8px;
    color: var(--ps-ink);
    font-family: var(--ps-head-font);
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.35;
}

#home-v2 .ps-requests .ps-hint {
    margin: 0 0 8px;
    font-size: 13px;
}

#home-v2 .ps-requests__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#home-v2 .ps-requests__meta span {
    padding: 4px 10px;
    border-radius: 9999px;
    background: #EEF5FE;
    color: var(--ps-ink-2);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

/* ---------- Your plans (what is left) and the link to all plans ---------- */

#home-v2 .ps-myplans__card {
    display: flex;
    flex-direction: column;
}

#home-v2 .ps-status--plan {
    background: #E8F2FF;
    color: var(--ps-blue-2);
}

#home-v2 .hv2-ps-body .ps-myplans__left {
    margin: 0 0 10px;
    color: var(--ps-blue-2);
    font-family: var(--ps-head-font);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

#home-v2 .ps-myplans__book {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    min-height: 40px;
    margin-top: 14px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--ps-blue);
    color: #fff;
    font-family: var(--ps-head-font);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease;
}

#home-v2 .ps-myplans__book:hover {
    background: #0757C2;
    color: #fff;
    text-decoration: none;
}

#home-v2 .ps-plans-promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 14px 20px;
    border: 1px dashed #BBD8FB;
    border-radius: 18px;
    background: #F2F8FF;
    color: var(--ps-ink-2);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
}

#home-v2 .ps-plans-promo:hover {
    border-color: #8FC0FA;
    color: var(--ps-ink-2);
    text-decoration: none;
}

#home-v2 .ps-plans-promo strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ps-blue-2);
    font-family: var(--ps-head-font);
    font-weight: 700;
}

#home-v2 .ps-plans-promo svg {
    width: 16px;
    height: 16px;
}

[dir="rtl"] #home-v2 .ps-plans-promo svg {
    transform: scaleX(-1);
}

/* ---------- Phones ---------- */

@media (max-width: 639px) {
    /* "Step 2 of 5 · Days & Times" and a bar replace the five dots, whose labels do not fit. */
    #home-v2 .ps-steps {
        display: none;
    }

    #home-v2 .hv2-ps-body .ps-progress__count {
        display: block;
        margin: 0 0 10px;
        color: var(--ps-ink-2);
        font-family: var(--ps-head-font) !important;
        font-size: 14px;
        font-weight: 700;
    }

    #home-v2 .ps-progress__bar {
        display: block;
        height: 6px;
        border-radius: 9999px;
        background: #E6EEF8;
        overflow: hidden;
    }

    #home-v2 .ps-progress__bar span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: var(--ps-primary);
        transition: width .3s ease;
    }

    #home-v2 .ps-progress {
        padding-bottom: 16px;
    }

    #home-v2 .ps-step__head {
        gap: 12px;
        margin-bottom: 20px;
    }

    #home-v2 .ps-step__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    #home-v2 .ps-options--inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #home-v2 .ps-programs {
        grid-template-columns: minmax(0, 1fr);
    }

    #home-v2 .ps-program {
        min-height: 64px;
        padding: 12px 14px;
    }

    /* The program name keeps the full row; "Change program" moves under it. */
    #home-v2 .ps-chosen {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    #home-v2 .ps-chosen__text {
        flex: 1 1 calc(100% - 42px);
    }

    #home-v2 .ps-chosen__change {
        margin-inline-start: 42px;
    }

    #home-v2 .ps-times {
        padding: 12px;
    }

    #home-v2 .ps-times__chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #home-v2 .ps-time {
        font-size: 13px;
    }

    #home-v2 .ps-seg__item {
        font-size: 13px;
    }

    #home-v2 .ps-review {
        padding: 4px 14px;
    }

    #home-v2 .ps-review__row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "label edit"
            "value value";
    }

    /* Back and Next stay at the bottom of the screen while the card is in view. */
    #home-v2 .ps-actions {
        position: sticky;
        bottom: 0;
        z-index: 5;
        gap: 10px;
        margin: 24px calc(-1 * var(--ps-card-pad)) calc(-1 * var(--ps-card-pad));
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--ps-line);
        border-radius: 0 0 22px 22px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 -12px 24px -18px rgba(17, 36, 58, .35);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    #home-v2 .hv2-ps-body .ps-actions__summary {
        display: block;
        flex: 1;
        min-width: 0;
        margin: 0;
        overflow: hidden;
        color: var(--ps-muted);
        font-size: 12.5px;
        font-weight: 600;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    #home-v2 .ps-actions #psNext,
    #home-v2 .ps-actions #psSubmit {
        margin-inline-start: 0;
    }

    #home-v2 .ps-btn {
        min-height: 48px;
        padding: 0 18px;
    }

    #home-v2 .ps-actions .ps-btn-back {
        padding: 0 14px;
    }

    /* The calculator button sits above the bottom bar instead of on top of "Back". */
    #home-v2.hv2-ps .eqfab {
        bottom: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #home-v2 .hv2-ps-hero__text > *,
    #home-v2 .hv2-ps-hero__art,
    #home-v2 .ps-step.is-active {
        animation: none;
    }

    #home-v2 .ps-btn.is-loading svg {
        animation: none;
    }
}

/* "The academy will confirm the price" is a sentence, not an amount. */
#home-v2 .ps-summary__total strong.is-pending,
#home-v2 .ps-cost__rows .ps-cost__due dd.is-pending {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}
