/* ============================================
   SERVICE CONFIGURATOR — Bold Branded Styles
   ============================================ */

:root {
    /* Brand Colors */
    --purple-deep: #47124d;
    --purple-vibrant: #b851b8;
    --purple-glow: rgba(184, 81, 184, 0.3);
    --blue-cta: #0066CC;
    --blue-hover: #0052a3;
    --olive: #7d8a45;

    /* Dark Theme */
    --bg-body: #0a0612;
    --bg-surface: #140e1f;
    --bg-card: #1a1230;
    --bg-card-hover: #221840;
    --bg-card-active: #2a1d4a;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a09bb5;
    --text-muted: #6b6580;

    /* Borders */
    --border-subtle: rgba(184, 81, 184, 0.15);
    --border-active: var(--purple-vibrant);

    /* Misc */
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.25s ease;
    --shadow-glow: 0 0 20px rgba(184, 81, 184, 0.15);
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Rokkitt', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   AUTH PAGE
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(71, 18, 77, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(184, 81, 184, 0.1) 0%, transparent 40%),
        var(--bg-body);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-glow);
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand h1 {
    font-size: 2.2rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.auth-brand h1 span {
    color: var(--purple-vibrant);
}

.auth-brand p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.auth-tab {
    flex: 1;
    padding: 0.8rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.auth-tab.active {
    color: var(--purple-vibrant);
    border-bottom-color: var(--purple-vibrant);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--purple-vibrant);
    box-shadow: 0 0 0 3px rgba(184, 81, 184, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: var(--blue-cta);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
}

.auth-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(220, 50, 50, 0.1);
    border: 1px solid rgba(220, 50, 50, 0.3);
    border-radius: var(--radius-sm);
    color: #f87171;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-error.visible {
    opacity: 1;
}

/* ============================================
   CONFIGURATOR PAGE
   ============================================ */

.configurator-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.header-brand {
    font-family: 'Rokkitt', serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.header-brand span {
    color: var(--purple-vibrant);
}

.header-brand .brand-pii {
    color: var(--text-primary);
}

.header-brand .brand-web {
    color: var(--olive);
}

.header-brand .brand-divider {
    display: inline-block;
    width: 1px;
    height: 1.1em;
    background: var(--text-muted);
    margin: 0 0.75rem;
    vertical-align: middle;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-logout {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-logout:hover {
    color: var(--purple-vibrant);
    border-color: var(--purple-vibrant);
}

/* Progress Bar */
.progress-bar {
    padding: 1.5rem 2rem 1rem;
    position: relative;
}

.progress-track {
    position: absolute;
    top: 2.1rem;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--bg-card);
    border-radius: 2px;
}

.progress-fill {
    height: 100%;
    background: var(--purple-vibrant);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.progress-step.active .step-num {
    background: var(--purple-vibrant);
    border-color: var(--purple-vibrant);
    box-shadow: 0 0 12px rgba(184, 81, 184, 0.4);
}

.progress-step.active .step-label {
    color: var(--purple-vibrant);
    font-weight: 600;
}

.progress-step.completed .step-num {
    background: var(--purple-deep);
    border-color: var(--purple-vibrant);
}

.progress-step.completed .step-label {
    color: var(--text-secondary);
}

/* Step Header */
.step-header {
    display: none;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 2rem 2rem 0;
    width: 100%;
}

.step-header.active {
    display: block;
}

/* Main Body */
.config-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    align-items: start;
    gap: 2rem;
    padding: 0 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Step Container */
.step-container {
    min-width: 0;
}

.step-panel {
    display: none;
    animation: fadeSlideIn 0.35s ease;
}

.step-panel.active {
    display: block;
}

.step-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Option Cards */
.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.addon-checklist,
.addon-info {
    margin-bottom: 1.5rem;
}

.option-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: var(--transition);
    pointer-events: none;
}

.option-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.option-card.selected {
    background: var(--bg-card-active);
}

.option-card.selected::before {
    border-color: var(--purple-vibrant);
    box-shadow: var(--shadow-glow);
}

.option-card.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.option-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.option-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-price {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--olive);
}

/* Service Checklist */
.service-checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* List Card — shared visual base */
.list-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.list-card + .list-card {
    margin-top: -1px;
}

.list-card.stack-first {
    border-radius: var(--radius) var(--radius) 0 0;
}

.list-card.stack-last {
    border-radius: 0 0 var(--radius) var(--radius);
}

.list-card:hover {
    background: var(--bg-card-hover);
}

.list-card.checked,
.list-card.selected {
    background: var(--bg-card-active);
    border-color: var(--purple-vibrant);
    z-index: 1;
}

.list-card-info {
    flex: 1;
}

.list-card-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.list-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Service items — checkbox-based */
.service-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--purple-vibrant);
    cursor: pointer;
    flex-shrink: 0;
}

.service-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--olive);
    white-space: nowrap;
}

.badge-recommended {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    margin-left: 0.5rem;
    background: rgba(184, 81, 184, 0.15);
    color: var(--purple-vibrant);
    border-radius: 3px;
    text-transform: uppercase;
}

.option-card > .badge-recommended {
    display: block;
    margin: 1.5rem auto 0;
    width: fit-content;
}

.none-item {
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0;
    background: #1c1c24;
}

.bundle-item {
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
}

.bundle-item .list-card-name {
    font-size: 1.05rem;
}

/* Hours Selector */
.hours-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hour-option {
    flex: 1;
    min-width: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.hour-option:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.hour-option.selected {
    background: var(--bg-card-active);
    border-color: var(--purple-vibrant);
    box-shadow: var(--shadow-glow);
}

.hour-value {
    font-family: 'Rokkitt', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hour-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.hour-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--olive);
}

.hour-rate {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.support-item {
    border-radius: var(--radius);
    cursor: default;
}

.support-item + .support-item {
    margin-top: 0.75rem;
}

.support-item:hover {
    background: var(--bg-card);
}

.support-item.none-item {
    cursor: pointer;
}

.support-item.none-item:hover {
    background: var(--bg-card-hover);
}

.list-card-desc + .dual-price {
    margin-top: 0.75rem;
    border-top: 1px solid rgba(125, 138, 69, 0.25);
    padding-top: 0.4rem;
}

.dual-price + .dual-price {
    margin-top: 0.4rem;
    border-top: 1px solid rgba(125, 138, 69, 0.25);
}

.dual-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--olive);
    font-weight: 500;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
}

.dual-price input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--purple-vibrant);
    cursor: pointer;
    flex-shrink: 0;
}

.dual-price:hover {
    border-color: var(--border-subtle);
    background: rgba(125, 138, 69, 0.08);
}

.dual-price.billing-selected {
    border-color: var(--purple-vibrant);
    background: rgba(138, 100, 200, 0.1);
    box-shadow: 0 0 6px rgba(138, 100, 200, 0.2);
}

.dual-price.billing-dimmed {
    opacity: 0.4;
    text-decoration: line-through;
}

/* Step Notes */
.step-note {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(125, 138, 69, 0.1);
    border: 1px solid rgba(125, 138, 69, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--olive);
}

.constraint-warning {
    background: rgba(220, 50, 50, 0.08);
    border-color: rgba(220, 50, 50, 0.25);
    color: #f87171;
}

/* Pricing Sidebar */
.pricing-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    background: var(--purple-deep);
    font-family: 'Rokkitt', serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-subtle);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
}

.sidebar-body {
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

.price-group {
    margin-bottom: 0.5rem;
}

.price-group + .price-group {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.price-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.price-value {
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.price-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.75rem 0;
}

.price-section.total .price-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.price-section.total .price-value {
    font-family: 'Rokkitt', serif;
    font-size: 1.5rem;
    color: var(--purple-vibrant);
    font-weight: 800;
}


/* Step Navigation */
.step-nav {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
}

.btn-back, .btn-next {
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-back {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-back:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-next {
    background: var(--blue-cta);
    color: white;
}

.btn-next:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
}

/* Review Step */
.review-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.review-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.review-block-content h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.review-block-content p {
    font-size: 1rem;
    font-weight: 500;
}

.review-block-price {
    font-weight: 600;
    color: var(--olive);
    font-size: 0.95rem;
    white-space: nowrap;
}

.review-edit-btn {
    background: none;
    border: none;
    color: var(--purple-vibrant);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.review-edit-btn:hover {
    background: rgba(184, 81, 184, 0.1);
}

.btn-save {
    margin-top: 1rem;
}

.save-status {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    text-align: center;
    color: var(--olive);
    min-height: 1.2em;
}

/* Welcome Popover */
.popover-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.popover-overlay.hidden {
    display: none;
}

.popover-card {
    background: var(--bg-surface);
    border: 2px solid var(--purple-vibrant);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    max-width: 420px;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.popover-card p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.popover-dismiss {
    width: auto;
    padding: 0.7rem 2rem;
}

/* ============================================
   PAYMENT POPOVER
   ============================================ */

.payment-popover-card {
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.payment-popover-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.payment-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.payment-summary-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.payment-total {
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.payment-total span:last-child {
    font-family: 'Rokkitt', serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--purple-vibrant);
}

#payment-element {
    margin-bottom: 1.25rem;
}

.payment-error {
    color: #f87171;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    min-height: 1.2em;
}

.payment-submit {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.payment-submit:disabled {
    background: #2a2a3a;
    color: #6b6580;
    cursor: not-allowed;
    transform: none;
}

.payment-cancel {
    width: 100%;
    padding: 0.7rem;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.payment-cancel:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* ============================================
   ORDER CONFIRMATION
   ============================================ */

.confirmation-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confirmation-page .config-header {
    width: 100%;
}

.confirmation-card {
    width: 100%;
    max-width: 600px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--purple-vibrant);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glow);
    text-align: center;
}

.confirmation-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.confirmation-order {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--olive);
    margin-bottom: 0.5rem;
}

.confirmation-receipt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.confirmation-rows {
    text-align: left;
    margin-bottom: 1.5rem;
}

.confirmation-row {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

.confirmation-label {
    color: var(--text-secondary);
    width: 9.5rem;
    flex-shrink: 0;
}

.confirmation-desc {
    flex: 1;
    font-weight: 500;
}

.confirmation-value {
    font-weight: 600;
    color: var(--olive);
    text-align: left;
    white-space: nowrap;
    width: 7rem;
    flex-shrink: 0;
}

.confirmation-totals {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
    margin-bottom: 2rem;
}

.confirmation-totals .confirmation-desc {
    text-align: right;
    padding-right: 1.5rem;
}

.confirmation-total .confirmation-value {
    font-family: 'Rokkitt', serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--purple-vibrant);
}

.confirmation-recurring .confirmation-value {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


@media print {
    .confirmation-actions,
    .header-user {
        display: none !important;
    }

    .config-header {
        border-bottom: 1px solid #ccc;
        background: #fff;
    }

    .header-brand {
        color: #111;
    }

    .header-brand span,
    .header-brand .brand-pii,
    .header-brand .brand-web {
        color: #111;
    }

    .header-brand .brand-divider {
        background: #999;
    }

    body {
        background: #fff;
    }

    .confirmation-page {
        min-height: auto;
        background: #fff;
    }

    .confirmation-card {
        border: none;
        box-shadow: none;
        margin: 0;
        background: #fff;
        color: #111;
    }

    .confirmation-card h2 {
        color: #111;
    }

    .confirmation-order {
        color: #555;
    }

    .confirmation-receipt {
        color: #777;
    }

    .confirmation-label {
        color: #555;
    }

    .confirmation-desc {
        color: #111;
    }

    .confirmation-value {
        color: #333;
    }

    .confirmation-totals {
        border-top-color: #ccc;
    }

    .confirmation-total .confirmation-value {
        color: #111;
    }

    .confirmation-recurring .confirmation-value {
        color: #555;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .config-body {
        grid-template-columns: 1fr;
    }

    .pricing-sidebar {
        width: 100%;
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-top: 1px solid var(--border-subtle);
        border-radius: 0;
        z-index: 100;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }

    .sidebar-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        background: none;
        border: none;
        border-radius: 0;
    }

    .sidebar-header {
        display: none;
    }

    .price-group {
        display: none;
    }

    .price-divider {
        display: none !important;
    }

    .price-section.total {
        display: flex;
    }

    .step-container {
        padding-bottom: 8rem;
    }
}

@media (max-width: 600px) {
    .option-cards {
        grid-template-columns: 1fr;
    }

    .hours-selector {
        flex-direction: column;
    }

    .hour-option {
        min-width: unset;
    }

    .step-header h2 {
        font-size: 1.4rem;
    }

    .config-body {
        padding: 1rem;
    }

    /* Header — compact for phones */
    .config-header {
        padding: 0.75rem 1rem;
    }

    .header-brand {
        font-size: 0;
    }

    .header-brand .brand-pii,
    .header-brand .brand-web {
        font-size: 1.1rem;
    }

    .header-brand .brand-divider {
        display: none;
    }

    .header-user {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    /* Progress bar — circles only, no labels */
    .progress-bar {
        padding: 1rem 1rem 0.5rem;
    }

    .step-label {
        display: none;
    }

    .step-num {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .progress-steps {
        max-width: 100%;
    }

    .progress-track {
        left: 5%;
        right: 5%;
    }

    /* Step header — tighten padding */
    .step-header {
        padding: 1.5rem 1rem 0;
    }

    /* List cards — reduce padding */
    .list-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    /* Review blocks — stack on narrow */
    .review-block {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Auth — reduce padding */
    .auth-page {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-brand h1 {
        font-size: 1.8rem;
    }

    /* Confirmation — stack rows vertically */
    .confirmation-card {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .confirmation-card h2 {
        font-size: 1.4rem;
    }

    .confirmation-row {
        flex-wrap: wrap;
    }

    .confirmation-label {
        width: 100%;
        font-size: 0.8rem;
        padding-bottom: 0;
    }

    .confirmation-value {
        width: auto;
    }

    .confirmation-totals .confirmation-row {
        flex-wrap: nowrap;
    }

    .confirmation-totals .confirmation-label {
        display: none;
    }

    /* Payment popover — fit viewport */
    .popover-card {
        margin: 1rem;
        padding: 1.5rem;
        max-width: calc(100vw - 2rem);
    }

    .payment-popover-card {
        max-width: calc(100vw - 2rem);
        padding: 1.5rem;
    }
}

@media (max-width: 380px) {
    .header-brand .brand-pii,
    .header-brand .brand-web {
        font-size: 1rem;
    }

    .config-body {
        padding: 0.75rem;
    }

    .step-header {
        padding: 1rem 0.75rem 0;
    }

    .step-header h2 {
        font-size: 1.25rem;
    }

    .list-card {
        flex-wrap: wrap;
        padding: 0.875rem;
    }

    .service-price {
        margin-left: auto;
    }

    .option-card {
        padding: 1.25rem;
    }

    .auth-card {
        padding: 1.25rem;
    }

    .confirmation-card {
        padding: 1rem;
    }

    .popover-card,
    .payment-popover-card {
        margin: 0.5rem;
        padding: 1.25rem;
        max-width: calc(100vw - 1rem);
    }
}
