/* Onboarding Styles */
.onboarding-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f0fdf7 0%, #e8faf2 100%);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Header */
.onboarding-header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 1.5rem 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.onboarding-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.onboarding-logo:hover {
    transform: scale(1.05);
}

.onboarding-logo-img {
    height: 65px;
    width: auto;
    display: block;
}

.header-step {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.header-step span {
    font-weight: 700;
    color: #1a1a1a;
}

/* Progress Bar */
.progress-container {
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.progress-bar {
    width: 100%;
    max-width: 600px;
    height: 8px;
    background: #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 0.8rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2d6a5c 0%, #3d8a7a 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 3.7%; /* 1 of 27 steps */
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

/* Onboarding Content */
.onboarding-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem;
}

.step {
    display: none;
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.step.active {
    display: block;
}

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

.step-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.2;
}

.step-subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Options Grid (for cards) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-card {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.option-card:hover {
    border-color: #2d6a5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 106, 92, 0.2);
}

.option-icon {
    font-size: 2.5rem;
}

.option-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d6a5c;
}

.option-text,
.option-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Options List (for buttons) */
.options-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option-button {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
}

.option-button:hover {
    border-color: #2d6a5c;
    background: #f0fdf7;
    transform: translateX(4px);
}

.option-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.option-content strong {
    font-size: 1rem;
    color: #1a1a1a;
}

.option-content small {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

/* Input Fields */
.input-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.input-field {
    padding: 1rem 1.2rem;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    min-width: 160px;
    transition: all 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #2d6a5c;
    box-shadow: 0 0 0 3px rgba(45, 106, 92, 0.1);
}

.input-unit {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
}

/* Measurement Toggle */
.measurement-toggle {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.toggle-btn {
    padding: 0.8rem 2rem;
    border: 2px solid #e5e5e5;
    background: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: #2d6a5c;
    color: white;
    border-color: #2d6a5c;
}

/* Checkbox List */
.checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    background: white;
    width: 100%;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.checkbox-option input:checked + .checkbox-label {
    border-color: #2d6a5c;
    background: #f0fdf7;
}

.checkbox-emoji {
    font-size: 1.5rem;
}

/* Buttons */
.btn-continue {
    background: linear-gradient(135deg, #2d6a5c 0%, #3d8a7a 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 350px;
    margin: 0.5rem auto 0;
    display: block;
    box-shadow: 0 3px 12px rgba(45, 106, 92, 0.3);
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(45, 106, 92, 0.4);
}

.btn-final {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.privacy-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Navigation Buttons */
.navigation-buttons {
    padding: 2rem;
    text-align: center;
}

.btn-back {
    background: transparent;
    border: 2px solid #e5e5e5;
    color: #666;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back:hover {
    border-color: #2d6a5c;
    color: #2d6a5c;
}

/* Footer */
.onboarding-footer {
    padding: 2rem;
    text-align: center;
}

.footer-home-link {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-home-link:hover {
    color: #2d6a5c;
}

/* Disclaimer Box */
.disclaimer-box {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: left;
}

.disclaimer-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.disclaimer-text:last-child {
    margin-bottom: 0;
}

.disclaimer-text strong {
    color: #1a1a1a;
    font-weight: 600;
}

.disclaimer-link {
    color: #2d6a5c;
    text-decoration: underline;
    font-weight: 500;
}

.disclaimer-link:hover {
    color: #3d8a7a;
}

/* Disclaimer Checkbox */
.disclaimer-checkbox-container {
    max-width: 500px;
    margin: 1.5rem auto;
}

.disclaimer-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
}

.disclaimer-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #2d6a5c;
}

.disclaimer-checkbox-text {
    font-size: 0.95rem;
    color: #1a1a1a;
    line-height: 1.5;
    font-weight: 500;
}

/* Confirmation Screen */
.confirmation-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-message {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .onboarding-header {
        padding: 1rem 1.5rem;
    }

    .onboarding-logo-img {
        height: 50px;
    }

    .header-step {
        font-size: 0.9rem;
    }

    .progress-container {
        padding: 1rem 1.5rem;
    }

    .onboarding-content {
        padding: 1.5rem 1rem;
    }

    .step-title {
        font-size: 1.8rem;
    }

    .step-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .options-list {
        grid-template-columns: 1fr;
    }

    .checkbox-list {
        grid-template-columns: 1fr;
    }

    .option-card {
        padding: 1.25rem 1rem;
    }

    .option-button {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }

    .input-field {
        min-width: 140px;
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }
}

@media (max-width: 480px) {
    .onboarding-header {
        padding: 1rem;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .header-step {
        font-size: 0.85rem;
    }

    .onboarding-content {
        padding: 1.25rem 1rem;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .step-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .option-card {
        padding: 1rem 0.75rem;
    }

    .option-icon,
    .option-number {
        font-size: 2rem;
    }

    .option-text,
    .option-label {
        font-size: 0.9rem;
    }

    .option-emoji {
        font-size: 1.3rem;
    }

    .option-button {
        padding: 0.8rem 0.9rem;
        font-size: 0.85rem;
    }

    .checkbox-label {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .checkbox-emoji {
        font-size: 1.3rem;
    }

    .btn-continue {
        padding: 0.9rem 1.75rem;
        font-size: 1rem;
    }

    .input-field {
        min-width: 120px;
        font-size: 0.95rem;
        padding: 0.8rem 0.9rem;
    }
}
