/* RV Site Services — Public Styles */
:root {
    --rv-green-dark:  #2D5016;
    --rv-green-mid:   #4A7C1F;
    --rv-green-base:  #6B9E2E;
    --rv-green-light: #C8DFA8;
    --rv-green-pale:  #EEF5E4;
    --rv-maple-dark:  #7A2E0A;
    --rv-maple-mid:   #B84F1A;
    --rv-maple-base:  #D4732F;
    --rv-maple-light: #F0C89A;
    --rv-maple-pale:  #FBF0E4;
    --rv-bark:        #3D2B1A;
    --rv-stone:       #8A8070;
    --rv-stone-light: #E8E4DC;
    --rv-cream:       #F7F4EE;
}

.rvss-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* ── Auth container ───────────────────────────────── */
.rvss-auth-container { max-width: 520px; margin: 40px auto 0; }
.rvss-auth-header { text-align: center; margin-bottom: 24px; }
.rvss-auth-header h1 { font-size: 22px; font-weight: 600; color: var(--rv-green-dark); margin: 12px 0 0; }
.rvss-logo { max-height: 64px; width: auto; }

.rvss-auth-tabs { display: flex; border-bottom: 2px solid var(--rv-green-light); margin-bottom: 24px; }
.rvss-auth-tab { flex: 1; padding: 10px; background: none; border: none; font-size: 14px; font-weight: 500; color: var(--rv-stone); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.15s, border-color 0.15s; }
.rvss-auth-tab-active { color: var(--rv-green-dark); border-bottom-color: var(--rv-green-mid); }
.rvss-auth-panel { display: none; }
.rvss-auth-panel-active { display: block; }

/* ── Portal header ────────────────────────────────── */
.rvss-portal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--rv-green-light); }
.rvss-portal-header h1 { font-size: 20px; font-weight: 600; color: var(--rv-green-dark); margin: 0 0 4px; }
.rvss-portal-welcome p { color: var(--rv-stone); font-size: 14px; margin: 0; }
.rvss-portal-slip { text-align: right; }
.rvss-slip-label { display: block; font-size: 11px; color: var(--rv-stone); text-transform: uppercase; letter-spacing: 0.06em; }
.rvss-slip-number { font-size: 22px; font-weight: 600; color: var(--rv-green-dark); }

/* ── Portal nav ───────────────────────────────────── */
.rvss-portal-nav { display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.rvss-portal-nav-link { padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--rv-stone); text-decoration: none; transition: background 0.15s, color 0.15s; }
.rvss-portal-nav-link:hover { background: var(--rv-green-pale); color: var(--rv-green-dark); }
.rvss-portal-nav-active { background: var(--rv-green-pale); color: var(--rv-green-dark); }

/* ── Portal cards (dashboard) ─────────────────────── */
.rvss-portal-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.rvss-portal-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px 16px; background: #fff; border: 1px solid var(--rv-green-light); border-radius: 10px; text-decoration: none; color: var(--rv-green-dark); font-size: 14px; font-weight: 500; transition: box-shadow 0.15s, border-color 0.15s; }
.rvss-portal-card i { font-size: 28px; color: var(--rv-green-mid); }
.rvss-portal-card:hover { box-shadow: 0 4px 12px rgba(45,80,22,0.1); border-color: var(--rv-green-base); }

/* ── Public card ──────────────────────────────────── */
.rvss-public-card { background: #fff; border: 1px solid var(--rv-green-light); border-radius: 10px; padding: 24px; margin-bottom: 20px; }
.rvss-public-card h2 { font-size: 16px; font-weight: 600; color: var(--rv-green-dark); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rv-stone-light); }

/* ── Forms ────────────────────────────────────────── */
.rvss-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.rvss-field label { font-size: 13px; font-weight: 500; color: var(--rv-bark); }
.rvss-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rvss-field-row-3 { grid-template-columns: 2fr 1fr 1fr; }
.rvss-field-inline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 13px; }
.rvss-field-note { font-size: 12px; color: var(--rv-stone); margin: 3px 0 0; }
.rvss-required { color: var(--rv-maple-mid); }

.rvss-input { width: 100%; padding: 9px 12px; border: 1px solid var(--rv-stone-light); border-radius: 6px; font-size: 14px; color: var(--rv-bark); background: #fff; transition: border-color 0.15s; box-sizing: border-box; }
.rvss-input:focus { outline: none; border-color: var(--rv-green-base); box-shadow: 0 0 0 3px rgba(107,158,46,0.12); }
.rvss-input-readonly { background: var(--rv-cream); color: var(--rv-stone); cursor: not-allowed; }
.rvss-input-slip { font-weight: 600; font-size: 16px; }

.rvss-form-section-title { font-size: 14px; font-weight: 600; color: var(--rv-green-dark); margin: 20px 0 12px; padding-top: 16px; border-top: 1px solid var(--rv-stone-light); }
.rvss-form-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rv-stone-light); display: flex; gap: 10px; align-items: center; }

/* ── Buttons ──────────────────────────────────────── */
.rvss-btn { display: inline-block; padding: 10px 22px; border-radius: 7px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: background 0.15s, opacity 0.15s; text-decoration: none; text-align: center; }
.rvss-btn-primary { background: var(--rv-green-mid); color: #fff; }
.rvss-btn-primary:hover { background: var(--rv-green-dark); color: #fff; }
.rvss-btn-secondary { background: var(--rv-maple-mid); color: #fff; }
.rvss-btn-secondary:hover { background: var(--rv-maple-dark); color: #fff; }
.rvss-btn-outline { background: transparent; color: var(--rv-stone); border: 1px solid var(--rv-stone-light); }
.rvss-btn-outline:hover { border-color: var(--rv-stone); color: var(--rv-bark); }
.rvss-btn-full { width: 100%; }
.rvss-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Notice ───────────────────────────────────────── */
.rvss-public-notice { padding: 12px 16px; border-radius: 7px; margin-bottom: 16px; font-size: 13px; font-weight: 500; }
.rvss-public-notice.rvss-notice-success { background: var(--rv-green-pale); border-left: 4px solid var(--rv-green-mid); color: var(--rv-green-dark); }
.rvss-public-notice.rvss-notice-error   { background: var(--rv-maple-pale); border-left: 4px solid var(--rv-maple-mid); color: var(--rv-maple-dark); }

/* ── Password strength ────────────────────────────── */
.rvss-password-strength { height: 4px; border-radius: 2px; margin-top: 6px; background: var(--rv-stone-light); transition: background 0.3s; }
.rvss-password-strength.weak   { background: #e74c3c; }
.rvss-password-strength.fair   { background: var(--rv-maple-base); }
.rvss-password-strength.good   { background: var(--rv-green-base); }
.rvss-password-strength.strong { background: var(--rv-green-dark); }

/* ── Terms box ────────────────────────────────────── */
.rvss-terms-box { max-height: 120px; overflow-y: auto; border: 1px solid var(--rv-stone-light); border-radius: 6px; padding: 10px 12px; font-size: 12px; color: var(--rv-stone); background: var(--rv-cream); margin-bottom: 8px; }
.rvss-checkbox-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }

/* ── Link ─────────────────────────────────────────── */
.rvss-link { color: var(--rv-green-mid); text-decoration: none; font-size: 13px; }
.rvss-link:hover { text-decoration: underline; }

/* ── Divider ──────────────────────────────────────── */
.rvss-divider { border: none; border-top: 1px solid var(--rv-stone-light); margin: 16px 0; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
    .rvss-field-row { grid-template-columns: 1fr; }
    .rvss-field-row-3 { grid-template-columns: 1fr; }
    .rvss-portal-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .rvss-portal-slip { text-align: left; }
}

/* ── Phase 5: Booking wizard ──────────────────────── */
.rvss-steps {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.rvss-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.rvss-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rv-stone-light);
    color: var(--rv-stone);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.rvss-step-label {
    font-size: 11px;
    color: var(--rv-stone);
    white-space: nowrap;
}

.rvss-step-active .rvss-step-num {
    background: var(--rv-green-mid);
    color: #fff;
}

.rvss-step-active .rvss-step-label {
    color: var(--rv-green-dark);
    font-weight: 600;
}

.rvss-step-done .rvss-step-num {
    background: var(--rv-green-light);
    color: var(--rv-green-dark);
}

.rvss-step-line {
    flex: 1;
    height: 2px;
    background: var(--rv-stone-light);
    margin: 0 6px;
    margin-bottom: 16px;
    min-width: 20px;
}

/* ── Service card grid ────────────────────────────── */
.rvss-service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.rvss-svc-card {
    background: #fff;
    border: 1.5px solid var(--rv-stone-light);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, box-shadow 0.15s;
    user-select: none;
}

.rvss-svc-card:hover {
    border-color: var(--rv-green-light);
    box-shadow: 0 2px 8px rgba(45,80,22,0.08);
}

.rvss-svc-card-selected {
    border-color: var(--rv-green-base);
    background: var(--rv-green-pale);
    box-shadow: 0 2px 10px rgba(45,80,22,0.12);
}

.rvss-svc-card-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--rv-green-mid);
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
}

.rvss-svc-card-selected .rvss-svc-card-check {
    display: flex;
}

.rvss-svc-card-icon {
    font-size: 24px;
    color: var(--rv-green-mid);
    margin-bottom: 8px;
}

.rvss-svc-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--rv-green-dark);
    margin-bottom: 4px;
}

.rvss-svc-card-desc {
    font-size: 12px;
    color: var(--rv-stone);
    line-height: 1.5;
    margin-bottom: 8px;
}

.rvss-svc-card-meta {
    font-size: 11px;
    color: var(--rv-stone);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rvss-svc-card-pay {
    color: var(--rv-maple-mid);
    font-weight: 500;
}

/* ── Total bar ────────────────────────────────────── */
.rvss-total-bar {
    position: sticky;
    bottom: 16px;
    background: var(--rv-green-dark);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(45,80,22,0.25);
    z-index: 10;
}

/* ── Option blocks ────────────────────────────────── */
.rvss-option-block {
    background: #fff;
    border: 1px solid var(--rv-green-light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.rvss-option-block-header {
    font-size: 16px;
    color: var(--rv-green-dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rv-stone-light);
}

.rvss-option-block-header i {
    color: var(--rv-green-mid);
    margin-right: 6px;
}

.rvss-opt-section {
    margin-bottom: 16px;
}

.rvss-opt-section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--rv-stone);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.rvss-opt-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.12s;
    margin-bottom: 4px;
}

.rvss-opt-row:hover {
    background: var(--rv-green-pale);
}

.rvss-opt-label { flex: 1; color: var(--rv-bark); }
.rvss-opt-desc  { font-size: 11px; color: var(--rv-stone); }
.rvss-opt-price { color: var(--rv-maple-mid); font-weight: 500; white-space: nowrap; }
.rvss-opt-none  { color: var(--rv-stone); font-size: 13px; }

.rvss-rules-list {
    background: var(--rv-cream);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--rv-stone);
}

.rvss-rules-list ul {
    margin: 6px 0 0 16px;
    padding: 0;
}

.rvss-rules-list li { margin-bottom: 3px; }

/* ── Schedule blocks ──────────────────────────────── */
.rvss-schedule-block {
    background: #fff;
    border: 1px solid var(--rv-green-light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.rvss-special-request-note {
    background: var(--rv-maple-pale);
    border: 1px solid var(--rv-maple-light);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--rv-maple-dark);
    margin-top: 10px;
}

.rvss-weather-note {
    color: var(--rv-green-mid);
}

/* ── Review ───────────────────────────────────────── */
.rvss-review-service {
    background: #fff;
    border: 1px solid var(--rv-green-light);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.rvss-review-svc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--rv-green-dark);
}

.rvss-review-svc-total {
    margin-left: auto;
    font-weight: 600;
    color: var(--rv-maple-mid);
}

.rvss-review-opts {
    font-size: 12px;
    color: var(--rv-stone);
    margin: 0 0 8px 20px;
    padding: 0;
}

.rvss-review-schedule,
.rvss-review-recurring {
    font-size: 12px;
    color: var(--rv-stone);
    margin-bottom: 4px;
}

.rvss-review-total-bar {
    background: var(--rv-green-dark);
    color: #fff;
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    margin-top: 12px;
}

.rvss-review-grand-total {
    font-size: 20px;
    font-weight: 600;
}

/* ── Confirm ──────────────────────────────────────── */
.rvss-confirm-block {
    background: #fff;
    border: 1px solid var(--rv-green-light);
    border-radius: 10px;
    padding: 24px;
}

.rvss-confirm-block h3 {
    color: var(--rv-green-dark);
    margin: 0 0 8px;
}

.rvss-confirm-list { margin-top: 16px; }

.rvss-confirm-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--rv-stone-light);
    font-size: 14px;
    color: var(--rv-bark);
}

.rvss-confirm-note {
    font-size: 12px;
    color: var(--rv-stone);
    font-style: italic;
    margin-top: 4px;
}

/* ── Step nav ─────────────────────────────────────── */
.rvss-step-nav {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--rv-stone-light);
}

/* ── Booking list ─────────────────────────────────── */
.rvss-booking-group {
    background: #fff;
    border: 1px solid var(--rv-green-light);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.rvss-booking-group-header {
    background: var(--rv-green-pale);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--rv-green-dark);
    border-bottom: 1px solid var(--rv-green-light);
}

.rvss-invoice-num { font-weight: 600; }
.rvss-booking-slip { color: var(--rv-stone); }

.rvss-booking-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rv-stone-light);
}

.rvss-booking-row:last-child { border-bottom: none; }

.rvss-booking-row-icon {
    font-size: 20px;
    color: var(--rv-green-mid);
    width: 28px;
    flex-shrink: 0;
}

.rvss-booking-row-info { flex: 1; }

.rvss-booking-row-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--rv-bark);
}

.rvss-booking-row-meta {
    font-size: 12px;
    color: var(--rv-stone);
    margin-top: 2px;
}

.rvss-booking-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.rvss-booking-amount {
    font-size: 13px;
    font-weight: 500;
    color: var(--rv-bark);
}

/* ── Status pills ─────────────────────────────────── */
.rvss-status-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
}

.rvss-status-confirmed            { background: var(--rv-green-pale);  color: var(--rv-green-dark); }
.rvss-status-pending              { background: var(--rv-maple-pale);  color: var(--rv-maple-dark); }
.rvss-status-pending_confirmation { background: var(--rv-maple-pale);  color: var(--rv-maple-dark); }
.rvss-status-completed            { background: #E8F5E4;               color: #1E4010; }
.rvss-status-cancelled            { background: var(--rv-stone-light); color: var(--rv-bark); }
.rvss-status-disrupted            { background: #FFF3CD;               color: #7A5200; }
.rvss-status-rescheduled          { background: #E8EAF6;               color: #303F9F; }

/* ── Invoice ──────────────────────────────────────── */
.rvss-invoice-wrap {
    background: #fff;
    border: 1px solid var(--rv-green-light);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.rvss-invoice-header {
    background: var(--rv-green-pale);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--rv-green-light);
}

.rvss-invoice-num  { font-size: 18px; font-weight: 600; color: var(--rv-green-dark); }
.rvss-invoice-date { font-size: 12px; color: var(--rv-stone); margin-top: 2px; }
.rvss-invoice-slip { font-size: 13px; color: var(--rv-stone); margin-top: 4px; }

.rvss-invoice-services { padding: 8px 0; }

.rvss-invoice-service-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--rv-stone-light);
}

.rvss-invoice-service-row:last-child { border-bottom: none; }
.rvss-invoice-svc-icon { font-size: 20px; color: var(--rv-green-mid); flex-shrink: 0; width: 24px; }
.rvss-invoice-svc-info { flex: 1; }
.rvss-invoice-svc-title { font-size: 14px; font-weight: 500; color: var(--rv-bark); }
.rvss-invoice-svc-meta  { font-size: 12px; color: var(--rv-stone); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.rvss-invoice-note      { font-size: 12px; color: var(--rv-stone); font-style: italic; margin-top: 4px; }
.rvss-invoice-svc-amount { text-align: right; flex-shrink: 0; }
.rvss-invoice-svc-total  { font-size: 15px; font-weight: 600; color: var(--rv-bark); }
.rvss-invoice-svc-deposit{ font-size: 11px; color: var(--rv-stone); margin-top: 2px; }

.rvss-invoice-totals {
    padding: 16px 20px;
    background: var(--rv-cream);
    border-top: 1px solid var(--rv-stone-light);
}

.rvss-invoice-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--rv-stone);
    padding: 4px 0;
}

.rvss-invoice-grand-total {
    font-size: 16px;
    font-weight: 600;
    color: var(--rv-bark);
    padding-top: 10px;
    border-top: 1px solid var(--rv-stone-light);
    margin-top: 6px;
}

.rvss-invoice-paid { color: var(--rv-green-mid); }
.rvss-invoice-due  { color: var(--rv-maple-mid); font-weight: 500; }

/* ── Empty state public ───────────────────────────── */
.rvss-empty-state-public {
    text-align: center;
    padding: 48px 20px;
    background: var(--rv-cream);
    border: 1px dashed var(--rv-green-light);
    border-radius: 10px;
}

.rvss-empty-state-public p {
    color: var(--rv-stone);
    font-size: 15px;
    margin-bottom: 16px;
}

/* ── Phase 7: Payment & confirmation ──────────────── */
.rvss-payment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.rvss-payment-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--rv-stone-light);
}

.rvss-payment-summary-row:last-of-type { border-bottom: none; }

.rvss-payment-summary-svc {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.rvss-payment-summary-svc i { font-size: 18px; color: var(--rv-green-mid); }
.rvss-payment-summary-title { font-weight: 500; color: var(--rv-bark); }
.rvss-payment-summary-meta  { font-size: 12px; color: var(--rv-stone); }
.rvss-payment-summary-amt   { font-weight: 500; color: var(--rv-bark); }

.rvss-payment-due-bar {
    background: var(--rv-green-dark);
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-top: 14px;
}

.rvss-payment-due-amount {
    font-size: 20px;
    font-weight: 600;
}

.rvss-payment-card { margin-bottom: 16px; }

#square-card-container {
    min-height: 80px;
    border: 1px solid var(--rv-stone-light);
    border-radius: 6px;
    padding: 10px;
    background: #fafafa;
}

/* ── Confirmation ─────────────────────────────────── */
.rvss-confirmation-hero {
    text-align: center;
    padding: 32px 16px;
    margin-bottom: 24px;
}

.rvss-confirmation-icon {
    font-size: 56px;
    color: var(--rv-green-mid);
    margin-bottom: 12px;
}

.rvss-confirmation-hero h1 {
    font-size: 26px;
    font-weight: 600;
    color: var(--rv-green-dark);
    margin: 0 0 8px;
}

.rvss-confirmation-hero p {
    font-size: 15px;
    color: var(--rv-stone);
}

.rvss-confirmation-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rvss-confirmation-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--rv-bark);
    border-bottom: 1px solid var(--rv-stone-light);
}

.rvss-confirmation-steps li:last-child { border-bottom: none; }
.rvss-confirmation-steps li i { color: var(--rv-green-mid); font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.rvss-confirmation-booking-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rv-stone-light);
    font-size: 14px;
}

.rvss-confirmation-booking-row:last-child { border-bottom: none; }
.rvss-confirmation-booking-row i { font-size: 20px; color: var(--rv-green-mid); flex-shrink: 0; }
.rvss-confirmation-booking-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.rvss-confirmation-booking-info strong { color: var(--rv-bark); }
.rvss-confirmation-booking-info span { font-size: 12px; color: var(--rv-stone); }
.rvss-confirmation-booking-amt { font-weight: 500; color: var(--rv-bark); }

@media (max-width: 600px) {
    .rvss-payment-layout { grid-template-columns: 1fr; }
}

/* ── Phase 7: Payment / checkout ──────────────────── */
.rvss-checkout-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--rv-stone);
    padding: 6px 0;
    border-bottom: 1px solid var(--rv-stone-light);
}

.rvss-checkout-row:last-child { border-bottom: none; }

.rvss-checkout-total {
    font-size: 16px;
    font-weight: 600;
    color: var(--rv-bark);
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px solid var(--rv-green-light);
    border-bottom: none;
}

.rvss-refund-policy {
    font-size: 12px;
    color: var(--rv-stone);
    line-height: 1.6;
}

.rvss-payment-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--rv-green-light);
}

.rvss-payment-tab {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--rv-stone);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.rvss-payment-tab:hover { color: var(--rv-green-dark); }

.rvss-payment-tab-active {
    color: var(--rv-green-dark);
    border-bottom-color: var(--rv-green-mid);
}

.rvss-payment-panel { display: none; }
.rvss-payment-panel-active { display: block; }

#rvss-square-card-container {
    min-height: 90px;
    border: 1px solid var(--rv-stone-light);
    border-radius: 6px;
    padding: 12px;
}

/* ── Confirmation page ────────────────────────────── */
.rvss-confirmation-wrap {
    text-align: center;
    padding: 32px 0;
}

.rvss-confirmation-icon {
    font-size: 56px;
    color: var(--rv-green-mid);
    margin-bottom: 16px;
}

.rvss-confirmation-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--rv-green-dark);
    margin-bottom: 10px;
}

.rvss-confirmation-subtitle {
    font-size: 14px;
    color: var(--rv-stone);
    margin-bottom: 24px;
}

.rvss-confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ── Structured service rules (booking step 2) ────── */
.rvss-rules-list {
    background: var(--rv-cream);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--rv-stone);
}

.rvss-rules-list > strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--rv-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.rvss-rule-block {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rv-stone-light);
}

.rvss-rule-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rvss-rule-block-title {
    font-weight: 600;
    color: var(--rv-green-dark);
    font-size: 13px;
    margin-bottom: 5px;
}

.rvss-rule-block-para {
    margin: 0 0 6px;
    color: var(--rv-stone);
    font-size: 13px;
    line-height: 1.6;
}

.rvss-rule-block-para:last-child { margin-bottom: 0; }

/* ── Billing unit qty selector (booking step 2) ── */
.rvss-billing-unit-section {
    background: var(--rv-green-pale);
    border: 1px solid var(--rv-green-light);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.rvss-billing-unit-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--rv-green-dark);
    margin-bottom: 12px;
}

.rvss-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rvss-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--rv-green-mid);
    background: #fff;
    color: var(--rv-green-dark);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.12s;
}

.rvss-qty-btn:hover { background: var(--rv-green-pale); }

.rvss-qty-input {
    width: 70px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--rv-green-dark);
    border: 1px solid var(--rv-green-light);
    border-radius: 6px;
    padding: 6px 10px;
}

.rvss-duration-select {
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid var(--rv-green-light);
    border-radius: 6px;
    color: var(--rv-bark);
    background: #fff;
    min-width: 160px;
}

.rvss-qty-price-display {
    font-size: 15px;
    color: var(--rv-bark);
    margin-bottom: 8px;
}

.rvss-qty-price-display strong {
    color: var(--rv-green-dark);
    font-size: 18px;
}

.rvss-qty-unit-note {
    font-size: 12px;
    color: var(--rv-stone);
    margin-left: 6px;
}

.rvss-billing-disclaimer {
    font-size: 12px;
    color: var(--rv-stone);
    font-style: italic;
    border-top: 1px solid var(--rv-green-light);
    padding-top: 8px;
    margin-top: 6px;
    line-height: 1.5;
}

.rvss-review-qty-line {
    font-size: 13px;
    color: var(--rv-green-mid);
    font-weight: 500;
    margin: 4px 0 6px;
}

.rvss-review-flexible-note {
    font-size: 12px;
    color: var(--rv-stone);
    font-style: italic;
    margin-top: 4px;
}

/* ── Intake questions (booking step 2) ────────────── */
.rvss-questions-section {
    background: #fff;
    border: 1px solid var(--rv-green-light);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.rvss-questions-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--rv-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rv-green-light);
}

.rvss-question-field {
    margin-bottom: 14px;
}

.rvss-question-field:last-child { margin-bottom: 0; }

.rvss-q-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--rv-bark);
    margin-bottom: 6px;
}

.rvss-q-saved-note {
    font-size: 11px;
    color: var(--rv-green-mid);
    font-weight: 400;
    margin-left: 6px;
    font-style: italic;
}

.rvss-q-radio-label,
.rvss-q-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rv-bark);
    margin-bottom: 6px;
    cursor: pointer;
}

.rvss-q-yesno {
    display: flex;
    gap: 20px;
}

/* ── Surcharge line (booking review) ─────────────── */
.rvss-review-surcharge-line {
    font-size: 13px;
    color: var(--rv-maple-dark);
    font-weight: 500;
    background: var(--rv-maple-pale);
    border: 1px solid var(--rv-maple-light);
    border-radius: 4px;
    padding: 6px 10px;
    margin-top: 6px;
}

/* ── Discount selector (booking step 2) ────────────── */
.rvss-discount-section {
    background: var(--rv-green-pale);
    border: 1px solid var(--rv-green-light);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.rvss-discount-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--rv-green-dark);
    margin-bottom: 10px;
}

.rvss-discount-applied {
    font-size: 12px;
    color: var(--rv-green-dark);
    font-weight: 500;
    margin-top: 8px;
    padding: 6px 10px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid var(--rv-green-light);
}

/* ── Discount line in review ───────────────────────── */
.rvss-review-discount-line {
    font-size: 13px;
    color: var(--rv-green-dark);
    font-weight: 500;
    background: var(--rv-green-pale);
    border: 1px solid var(--rv-green-light);
    border-radius: 4px;
    padding: 6px 10px;
    margin-top: 6px;
}
