/* ============================================================
   HOTEL RIVEL — BUILD YOUR OWN PROGRAM PAGE STYLESHEET
   Scope: .rivel-build-your-own-program-template (body also
   carries .rivel-site for shared header/footer/modal styles
   defined in global.css).

   Organized in the same order the sections appear on the page.
   Each section below has its own comment block and its own set
   of purpose-named classes. The builder itself (.builder-*) is
   new and specific to this page — everything else reuses the
   sitewide hero, eyebrow, stay-facts and faq patterns.
   ============================================================ */


/* ============================================================
   BASE / RESET
   ============================================================ */
.rivel-build-your-own-program-template *,
.rivel-build-your-own-program-template *::before,
.rivel-build-your-own-program-template *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.rivel-build-your-own-program-template a { text-decoration: none; color: inherit; }
.rivel-build-your-own-program-template ul { list-style: none; }
.rivel-build-your-own-program-template button { border: none; background: none; cursor: pointer; font-family: inherit; }
.rivel-build-your-own-program-template img { display: block; max-width: 100%; }
.rivel-build-your-own-program-template .text-ivory { color: var(--clr-warm-ivory); }
.rivel-build-your-own-program-template .text-terracotta { color: var(--clr-terracotta); }


/* ============================================================
   SHARED — EYEBROW LABELS
   ============================================================ */
.rivel-build-your-own-program-template .eyebrow-light-bg {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-primary); font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    margin-bottom: 1rem; color: var(--clr-terracotta);
}


/* ============================================================
   SHARED — SECTION SCAFFOLDING
   ============================================================ */
.rivel-build-your-own-program-template section { padding: 5rem 1.5rem; }
.rivel-build-your-own-program-template .container { max-width: 1280px; margin: 0 auto; }
.rivel-build-your-own-program-template .section-header-split {
    display: flex; flex-direction: column; gap: 1.5rem;
    margin-bottom: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(32,36,31,0.1);
}
.rivel-build-your-own-program-template .section-heading {
    font-family: var(--font-primary); font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--clr-text-primary);
}
.rivel-build-your-own-program-template .section-desc {
    font-family: var(--font-primary); font-size: 1rem; line-height: 1.7;
    color: var(--clr-text-secondary); max-width: 480px;
}
@media (min-width: 1024px) {
    .rivel-build-your-own-program-template section { padding: 7rem 2rem; }
    .rivel-build-your-own-program-template .section-header-split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 3rem; }
}


/* ============================================================
   SECTION: HERO
   Compact variant with breadcrumb.
   ============================================================ */
.rivel-build-your-own-program-template .hero-section {
    position: relative;
    min-height: 60vh; min-height: 60dvh;
    margin-top: 0 !important;
    display: flex; align-items: flex-end;
    padding: 8rem 2rem 3.5rem;
    overflow: hidden;
    color: var(--clr-warm-ivory);
    isolation: isolate;
}
.rivel-build-your-own-program-template .hero-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.rivel-build-your-own-program-template .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(210deg, rgba(16,42,32,0.10) 0%, rgba(16,42,32,0.75) 60%, rgba(10,26,20,0.95) 100%);
    z-index: -1;
}
.rivel-build-your-own-program-template .hero-container { width: 100%; max-width: 1280px; margin: 0 auto; }
.rivel-build-your-own-program-template .hero-content-left { display: flex; flex-direction: column; max-width: 750px; }
.rivel-build-your-own-program-template .hero-breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-primary); font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(245,242,233,0.65); margin-bottom: 1.25rem;
}
.rivel-build-your-own-program-template .hero-breadcrumb a { color: rgba(245,242,233,0.85); transition: color var(--transition-fast); }
.rivel-build-your-own-program-template .hero-breadcrumb a:hover { color: var(--clr-warm-ivory); }
.rivel-build-your-own-program-template .hero-breadcrumb span:last-child { color: var(--clr-warm-ivory); }
.rivel-build-your-own-program-template .hero-title {
    font-family: var(--font-primary); font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700; text-transform: uppercase; line-height: 0.98;
    letter-spacing: -0.035em; margin-bottom: 1.25rem;
}
.rivel-build-your-own-program-template .hero-description {
    font-family: var(--font-primary); font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.6; color: rgba(245,242,233,0.85); max-width: 500px;
    margin-bottom: 2.25rem;
}
.rivel-build-your-own-program-template .hero-btn-primary {
    font-family: var(--font-primary); font-size: 0.8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; border-radius: 50px;
    display: inline-flex; align-items: center; gap: 1rem; text-decoration: none;
    background-color: var(--clr-warm-ivory); color: var(--clr-primary-green);
    padding: 0.375rem 0.375rem 0.375rem 1.5rem;
}
.rivel-build-your-own-program-template .hero-btn-primary:hover { background-color: #ffffff; }
.rivel-build-your-own-program-template .btn-icon-wrapper {
    background-color: rgba(24,58,43,0.1); border: 1px solid rgba(24,58,43,0.15);
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition-fast);
}
.rivel-build-your-own-program-template .hero-btn-primary:hover .btn-icon-wrapper { transform: translateY(2px); }
@media (max-width: 767px) {
    .rivel-build-your-own-program-template .hero-section { min-height: 50vh; min-height: 50svh; padding: 7rem 1.5rem 3rem; }
    .rivel-build-your-own-program-template .hero-content-left { max-width: 100%; }
    .rivel-build-your-own-program-template .hero-title { font-size: clamp(1.7rem, 8vw, 2.5rem); }
    .rivel-build-your-own-program-template .hero-description { font-size: 0.9rem; max-width: 100%; }
}


/* ============================================================
   SECTION: THE BUILDER
   Interactive tool. .builder-layout is a two-column grid on
   desktop: the four steps on the left, a sticky live-summary
   panel on the right. All interactivity is handled by
   build-your-own-program.js — this file only styles states the
   JS toggles (.is-selected, [aria-checked], [aria-pressed], the
   summary's [hidden] attributes).
   ============================================================ */
.rivel-build-your-own-program-template .builder-section { background-color: var(--clr-warm-ivory); }
.rivel-build-your-own-program-template .builder-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
.rivel-build-your-own-program-template .builder-steps { display: flex; flex-direction: column; gap: 3rem; }

/* -- step header, shared by all four steps -- */
.rivel-build-your-own-program-template .builder-step-header { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.5rem; }
.rivel-build-your-own-program-template .builder-step-number {
    width: 32px; height: 32px; border-radius: 50%; background-color: var(--clr-primary-green);
    color: var(--clr-warm-ivory); font-family: var(--font-primary); font-size: 0.875rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rivel-build-your-own-program-template .builder-step-title { font-family: var(--font-primary); font-size: 1.25rem; font-weight: 600; color: var(--clr-text-primary); }
.rivel-build-your-own-program-template .builder-step-subtext { font-size: 0.875rem; color: var(--clr-text-muted); margin-bottom: 1.25rem; margin-left: 2.8rem; }

/* -- Step 1: program type option cards (single-select) -- */
.rivel-build-your-own-program-template .builder-options-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin-left: 0; }
.rivel-build-your-own-program-template .builder-option-card {
    display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.25rem;
    background-color: #ffffff; border: 1.5px solid rgba(32,36,31,0.12); border-radius: 12px;
    text-align: left; transition: all var(--transition-fast);
}
.rivel-build-your-own-program-template .builder-option-card:hover { border-color: rgba(184,111,69,0.4); }
.rivel-build-your-own-program-template .builder-option-card.is-selected {
    background-color: var(--clr-primary-green); border-color: var(--clr-primary-green); color: var(--clr-warm-ivory);
}
.rivel-build-your-own-program-template .builder-option-icon {
    width: 40px; height: 40px; border-radius: 10px; background-color: rgba(16,42,32,0.06);
    color: var(--clr-primary-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.rivel-build-your-own-program-template .builder-option-card.is-selected .builder-option-icon { background-color: rgba(245,242,233,0.15); color: var(--clr-warm-ivory); }
.rivel-build-your-own-program-template .builder-option-title { font-family: var(--font-primary); font-size: 0.9375rem; font-weight: 600; }
@media (min-width: 640px) {
    .rivel-build-your-own-program-template .builder-options-grid { grid-template-columns: repeat(2, 1fr); }
}

/* -- Steps 2 & 3: pill groups (single-select) -- */
.rivel-build-your-own-program-template .builder-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-left: 2.8rem; }
.rivel-build-your-own-program-template .builder-pill {
    font-family: var(--font-primary); font-size: 0.875rem; font-weight: 600;
    color: var(--clr-text-secondary); background-color: #ffffff; border: 1.5px solid rgba(32,36,31,0.12);
    padding: 0.7rem 1.4rem; border-radius: 50px; transition: all var(--transition-fast);
}
.rivel-build-your-own-program-template .builder-pill:hover { border-color: rgba(184,111,69,0.4); }
.rivel-build-your-own-program-template .builder-pill.is-selected { background-color: var(--clr-primary-green); border-color: var(--clr-primary-green); color: var(--clr-warm-ivory); }

/* -- Step 4: activity checkbox cards (multi-select) -- */
.rivel-build-your-own-program-template .builder-checkbox-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-left: 0; }
.rivel-build-your-own-program-template .builder-checkbox-card {
    display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1.1rem;
    background-color: #ffffff; border: 1.5px solid rgba(32,36,31,0.12); border-radius: 12px;
    text-align: left; transition: all var(--transition-fast);
}
.rivel-build-your-own-program-template .builder-checkbox-card:hover { border-color: rgba(184,111,69,0.4); }
.rivel-build-your-own-program-template .builder-checkbox-card.is-selected { border-color: var(--clr-primary-green); background-color: rgba(16,42,32,0.04); }
.rivel-build-your-own-program-template .builder-checkbox-box {
    width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid rgba(32,36,31,0.25);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: transparent;
    transition: all var(--transition-fast);
}
.rivel-build-your-own-program-template .builder-checkbox-card.is-selected .builder-checkbox-box {
    background-color: var(--clr-primary-green); border-color: var(--clr-primary-green); color: var(--clr-warm-ivory);
}
.rivel-build-your-own-program-template .builder-checkbox-label { font-family: var(--font-primary); font-size: 0.9375rem; font-weight: 500; color: var(--clr-text-primary); }
@media (min-width: 640px) {
    .rivel-build-your-own-program-template .builder-checkbox-grid { grid-template-columns: repeat(2, 1fr); }
}

/* -- Live summary panel -- */
.rivel-build-your-own-program-template .builder-summary { align-self: start; }
.rivel-build-your-own-program-template .builder-summary-inner {
    background-color: var(--clr-deep-green); color: var(--clr-warm-ivory);
    border-radius: 18px; padding: 2rem;
}
.rivel-build-your-own-program-template .builder-summary-heading { font-family: var(--font-editorial); color: var(--clr-warm-ivory); font-size: 1.5rem; font-weight: 500; margin-bottom: 1.25rem; }
.rivel-build-your-own-program-template .builder-summary-empty { font-size: 0.9375rem; line-height: 1.6; color: rgba(245,242,233,0.65); }
.rivel-build-your-own-program-template .builder-summary-list { display: flex; flex-direction: column; gap: 1.1rem; }
.rivel-build-your-own-program-template .builder-summary-row[hidden] { display: none; }
.rivel-build-your-own-program-template .builder-summary-row dt {
    font-family: var(--font-primary); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--clr-soft-sage); margin-bottom: 0.3rem;
}
.rivel-build-your-own-program-template .builder-summary-row dd { font-size: 0.9375rem; line-height: 1.5; color: var(--clr-warm-ivory); }
.rivel-build-your-own-program-template .builder-summary-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(245,242,233,0.15); }
.rivel-build-your-own-program-template .builder-copy-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    font-family: var(--font-primary); font-size: 0.8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--clr-primary-green);
    background-color: var(--clr-warm-ivory); padding: 0.85rem 1.25rem; border-radius: 50px;
    transition: background-color var(--transition-fast), opacity var(--transition-fast);
}
.rivel-build-your-own-program-template .builder-copy-btn:hover:not(:disabled) { background-color: #ffffff; }
.rivel-build-your-own-program-template .builder-copy-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.rivel-build-your-own-program-template .builder-continue-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    font-family: var(--font-primary); font-size: 0.8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--clr-warm-ivory);
    border: 1px solid rgba(245,242,233,0.4); padding: 0.85rem 1.25rem; border-radius: 50px;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.rivel-build-your-own-program-template .builder-continue-btn:hover { background-color: rgba(245,242,233,0.1); border-color: var(--clr-warm-ivory); }
.rivel-build-your-own-program-template .builder-reset-btn {
    display: block; margin: 1rem auto 0; font-family: var(--font-primary); font-size: 0.8125rem;
    font-weight: 600; color: rgba(245,242,233,0.55); text-decoration: underline;
    transition: color var(--transition-fast);
}
.rivel-build-your-own-program-template .builder-reset-btn:hover { color: var(--clr-warm-ivory); }
@media (min-width: 1024px) {
    .rivel-build-your-own-program-template .builder-layout { grid-template-columns: 1fr 360px; gap: 4rem; }
    .rivel-build-your-own-program-template .builder-summary { position: sticky; top: 2rem; }
}


/* ============================================================
   SECTION: GOOD TO KNOW
   Standard stay-facts card strip.
   ============================================================ */
.rivel-build-your-own-program-template .stay-facts { background-color: var(--clr-soft-cream); }
.rivel-build-your-own-program-template .stay-facts-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.rivel-build-your-own-program-template .stay-fact-card { background-color: #ffffff; border: 1px solid rgba(32,36,31,0.08); border-radius: 16px; padding: 1.75rem; }
.rivel-build-your-own-program-template .stay-fact-title { font-family: var(--font-primary); font-size: 1.0625rem; font-weight: 600; color: var(--clr-text-primary); margin-bottom: 0.6rem; }
.rivel-build-your-own-program-template .stay-fact-text { font-size: 0.9375rem; line-height: 1.6; color: var(--clr-text-secondary); }
@media (min-width: 768px) {
    .rivel-build-your-own-program-template .stay-facts-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}


/* ============================================================
   SECTION: FAQ
   Standard sitewide accordion component.
   ============================================================ */
.rivel-build-your-own-program-template .faq-section { background-color: var(--clr-warm-ivory); }
.rivel-build-your-own-program-template .faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 100%; }
.rivel-build-your-own-program-template .faq-item { background-color: #ffffff; border-radius: 14px; overflow: hidden; border: 1px solid rgba(32,36,31,0.08); }
.rivel-build-your-own-program-template .faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.25rem 1.5rem; text-align: left;
    font-family: var(--font-primary); font-size: 1rem; font-weight: 600; color: var(--clr-text-primary);
}
.rivel-build-your-own-program-template .faq-plus { font-size: 1.25rem; color: var(--clr-terracotta); transition: transform var(--transition-fast); flex-shrink: 0; }
.rivel-build-your-own-program-template .faq-item.active .faq-plus { transform: rotate(45deg); }
.rivel-build-your-own-program-template .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.rivel-build-your-own-program-template .faq-item.active .faq-answer { max-height: 260px; }
.rivel-build-your-own-program-template .faq-answer-inner { padding: 0 1.5rem 1.25rem; font-size: 0.9375rem; line-height: 1.65; color: var(--clr-text-secondary); }
