/* Party Studio pages. Palette comes from common.css. */

/* --- landing hero ------------------------------------------------------ */
#studioHero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color1, #232327);
}
#studioHero .studio-hero-media {
    position: absolute;
    inset: 0;
    margin: 0;
}
#studioHero .studio-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
#studioHero .studio-hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 4rem 1rem;
}
#studioHero .studio-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--color2, #F28A2E);
}
#studioHero .studio-tagline { font-size: 1.3rem; margin: 0.5rem 0 0; }
#studioHero .studio-capacity { color: #ddd; margin: 0; }

/* --- plan cards -------------------------------------------------------- */
/* centered so a short list of plans still fills the step evenly */
#planCards { justify-content: center; }
.plan-card {
    border: 2px solid transparent;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.plan-card.selectable { cursor: pointer; }
.plan-card.selectable:hover { transform: translateY(-2px); }
.plan-card.selected { border-color: var(--color2, #F28A2E); }
.plan-card .plan-price .amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color1, #232327);
}
.plan-card .plan-price .duration { color: #777; }
.plus-tax {
    color: #999;
    font-size: 0.7em;
    font-weight: 400;
}
.plan-card .plan-details {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}
.plan-card .plan-details li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--color4, #f4f4f4);
    font-size: 0.95rem;
}

/* --- wizard shell ------------------------------------------------------ */
/* centered header + numbered progress over a framed form panel, so the page
   reads as one composed unit instead of loose sections */
#studioWizard h1 { text-align: center; }
.wizard-intro {
    text-align: center;
    color: #777;
    max-width: 36rem;
    margin: 0.5rem auto 0;
}

.wizard-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    counter-reset: step;
}
.progress-step {
    counter-increment: step;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem 0.35rem 0.45rem;
    border-radius: 2rem;
    background: var(--color4, #f4f4f4);
    color: #888;
    font-size: 0.85rem;
    white-space: nowrap;
}
.progress-step::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #fff;
    color: #888;
    font-weight: 700;
    font-size: 0.75rem;
}
.progress-step.current {
    background: var(--color1, #232327);
    color: #fff;
}
.progress-step.current::before { color: var(--color1, #232327); }
.progress-step.done {
    background: var(--color2, #F28A2E);
    color: #fff;
}
.progress-step.done::before {
    content: '✓';
    color: var(--color2, #F28A2E);
}

#psForm {
    margin-top: 1.75rem;
    background: #fff;
    border: 1px solid var(--color4, #eee);
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(35, 35, 39, 0.08);
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.wizard-step { margin-top: 0.5rem; }
.wizard-step h2 { font-size: 1.5rem; }
/* short accent bar anchors each step heading */
.wizard-step h2::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    border-radius: 2px;
    background: var(--color2, #F28A2E);
    margin-top: 0.5rem;
}

#psForm .form-control:focus,
#psForm .form-select:focus {
    border-color: var(--color2, #F28A2E);
    box-shadow: 0 0 0 0.25rem rgba(242, 138, 46, 0.15);
}

#psForm .wizard-nav {
    border-top: 1px solid var(--color4, #f4f4f4);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.field-error {
    color: var(--colorRed, #bf2121);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

/* --- calendar ---------------------------------------------------------- */
.ps-calendar {
    position: relative;
    border: 1px solid var(--color4, #f4f4f4);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.ps-calendar .cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.ps-calendar .cal-nav {
    border: none;
    background: var(--color4, #f4f4f4);
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.ps-calendar .cal-nav:hover { background: var(--color2, #F28A2E); color: #fff; }
.ps-calendar .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}
.ps-calendar .cal-dayname {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    padding-bottom: 0.25rem;
}
.ps-calendar .cal-day {
    aspect-ratio: 1;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #bbb;
    font-size: 0.95rem;
}
.ps-calendar .cal-day.open {
    background: var(--color4, #f4f4f4);
    color: var(--color1, #232327);
    font-weight: 600;
    cursor: pointer;
}
.ps-calendar .cal-day.open:hover { background: #ffd9b3; }
.ps-calendar .cal-day.selected {
    background: var(--color2, #F28A2E);
    color: #fff;
}
.ps-calendar .cal-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.75rem;
    font-weight: 600;
}

/* --- slots ------------------------------------------------------------- */
/* framed like the calendar so the two columns read as a balanced pair; fills
   its column so it always matches the calendar's height, and a long slot list
   scrolls inside rather than growing past it */
.slot-panel {
    border: 1px solid var(--color4, #f4f4f4);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.slot-panel .slot-date { font-weight: 700; margin-bottom: 0.5rem; }
.slot-list {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.5rem;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
}
.slot-list .slot {
    border: 1px solid var(--color1, #232327);
    background: #fff;
    color: var(--color1, #232327);
    border-radius: 0.5rem;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
}
.slot-list .slot:hover { background: var(--color4, #f4f4f4); }
.slot-list .slot.selected {
    background: var(--color1, #232327);
    color: #fff;
    border-color: var(--color1, #232327);
}

/* --- add-ons ----------------------------------------------------------- */
.addon-card {
    display: block;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: border-color 0.15s ease;
    margin: 0;
}
.addon-card.selected { border-color: var(--color2, #F28A2E); }
.addon-card input { margin-top: 0.3rem; }
.addon-card .addon-price {
    display: block;
    color: var(--color2, #F28A2E);
    font-weight: 600;
}

/* --- review + agreement ------------------------------------------------ */
.review-summary {
    max-width: 32rem;
    margin: 1rem auto 0;
    border: 1px solid var(--color4, #f4f4f4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.review-summary .card-body { padding: 1.5rem; }
.review-summary .cart-line { padding: 0.2rem 0; gap: 1rem; }
.agreement-body {
    max-height: 55vh;
    overflow-y: auto;
}
/* unmistakably locked until the terms are read to the bottom */
#modalReserve:disabled {
    background: #e4e4e4;
    border-color: #d0d0d0;
    color: #9a9a9a;
    opacity: 1;
    cursor: not-allowed;
}
.wizard-success {
    background: #fff;
    border: 1px solid var(--color4, #f4f4f4);
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(35, 35, 39, 0.08);
    padding: clamp(2rem, 5vw, 3.5rem);
    max-width: 36rem;
    margin-left: auto !important;
    margin-right: auto !important;
}
.wizard-success h2 { font-size: 2rem; }

/* add-ons empty state shouldn't leave the step looking abandoned */
#addonList > p.text-muted {
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    margin: 0;
}

/* --- checkout ---------------------------------------------------------- */
#studioCheckout .checkout-summary { max-width: 34rem; }
#studioCheckout .checkout-pending {
    border-left: 4px solid var(--color2, #F28A2E);
    padding-left: 1rem;
}
#studioCheckout .checkout-paid {
    max-width: 34rem;
    border-left: 4px solid #2e9e5b;
}
#studioCheckout .checkout-payment { max-width: 34rem; }


/* --- submit spinner (matches forms.css) -------------------------------- */
#navSubmit .spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: studio-spin 0.8s linear infinite;
    vertical-align: -0.15rem;
}
@keyframes studio-spin { to { transform: rotate(360deg); } }

/* --- mobile ------------------------------------------------------------ */
@media (max-width: 767px) {
    #studioHero { min-height: 45vh; }
    .slot-panel { margin-top: 1rem; height: auto; }
    .slot-list { flex-basis: auto; overflow-y: visible; }
    .ps-calendar .cal-day { font-size: 0.85rem; }
}
