/* Onboarding Wizard */
.onboarding-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark), var(--darker));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

.onboarding-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

/* Progress Bar */
.onboarding-progress {
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.progress-bar-track {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Step Card */
.onboarding-step-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1a1a2e;
}

.step-subtitle {
    color: #666;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

/* Option Cards / Buttons */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option-grid-single {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 70px;
    font-size: 0.9375rem;
    color: #333;
}

.step-card:hover {
    border-color: var(--primary);
    background: #f0fdf4;
}

.step-card.selected {
    border-color: var(--primary);
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.step-card i {
    font-size: 1.25rem;
    color: #666;
}

.step-card.selected i {
    color: var(--primary-dark);
}

.step-card-wide {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 1rem 1.25rem;
}

.step-card-wide i {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.step-card-wide .card-text {
    display: flex;
    flex-direction: column;
}

.step-card-wide .card-text .card-label {
    font-weight: 600;
}

.step-card-wide .card-text .card-desc {
    font-size: 0.8125rem;
    color: #888;
    font-weight: 400;
}

.step-card-wide.selected .card-text .card-desc {
    color: #166534;
}

/* Select All button */
.select-all-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    color: #666;
    cursor: pointer;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.select-all-toggle:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Navigation Buttons */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.step-nav .btn {
    min-width: 100px;
}

/* Location Tabs */
.location-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.location-tab {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.location-tab:hover {
    border-color: var(--primary);
}

.location-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.location-tab .fa-check {
    font-size: 0.7rem;
}

/* Section label */
.section-label {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Day selector */
.day-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.day-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-btn:hover {
    border-color: var(--primary);
}

.day-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.daily-btn {
    height: 44px;
    padding: 0 1rem;
    border-radius: 22px;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
}

.daily-btn:hover {
    border-color: var(--primary);
}

.daily-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Unit toggle */
.unit-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    overflow: hidden;
    width: fit-content;
}

.unit-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    color: #666;
    transition: all 0.2s;
}

.unit-btn.active {
    background: var(--primary);
    color: white;
}

/* Form inputs within wizard */
.onboarding-step-card .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
}

.onboarding-step-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(46,204,113,0.25);
}

.onboarding-step-card .form-label {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    color: #333;
}

/* Height imperial layout */
.height-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.height-row > div {
    flex: 1;
}

/* Medical disclaimer */
.medical-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: #856404;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.medical-disclaimer i {
    margin-top: 0.125rem;
}

/* Review section */
.review-section {
    border: 1px solid #eee;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.review-section h5 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-section h5 i {
    color: var(--primary);
}

.review-section p,
.review-section .review-value {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 0.25rem;
}

.review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.review-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    color: #166534;
}

/* Location details section divider */
.location-section {
    margin-bottom: 1.25rem;
}

/* Age error */
.age-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #991b1b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Error banner */
.submit-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #991b1b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 576px) {
    .onboarding-page {
        padding: 1rem 0.5rem;
    }

    .onboarding-step-card {
        padding: 1.25rem;
    }

    .option-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-title {
        font-size: 1.25rem;
    }

    .height-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}
