/* Welcome Page Specifics */
body.onboarding-body {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.onboarding-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
}

.selection-description p {
    font-size: 0.9rem;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Popping Text Animation */
.welcome-title {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    color: var(--text-dark, #2f415e);
    margin-bottom: 10px;
    opacity: 0;
    transform: scale(0.5);
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-dots::after {
    content: ' .';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ' .'; }
    40% { content: ' ..'; }
    60% { content: ' ...'; }
    80%, 100% { content: ''; }
}

/* Checklist Accordion */
.welcome-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* Checklist Accordion */
.offer-checklist {
    text-align: left;
    margin: 40px auto !important; 
    max-width: 600px;
}

.accordion-item {
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 35px !important; 
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.accordion-item:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.05);
}

.accordion-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark, #333);
    font-size: 1.1rem; 
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--primary-color, #D0B8A8);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: #666;
    font-size: 16px;
}

.accordion-item.active .accordion-icon {
    color: var(--accent-color, #FF676D);
}

.btn-primary {
    background: #CBB2A3;
    color: white;
    border: none;
    padding: 0; 
    height: 50px;
    width: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'DM Serif Display', serif;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(208, 184, 168, 0.4);
    background: #be9f8d;
}

.selection-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* Specific centering for Welcome Page Button */
.onboarding-container > .btn-primary {
    margin: 30px auto 0 auto;
}

.selection-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 40px 20px;
    width: 220px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 320px; /* Fixed height for uniformity */
}

.selection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: #CBB2A3;
}

.selection-card.selected {
    border-color: #CBB2A3;
    background: #fff;
    box-shadow: 0 0 0 2px #CBB2A3;
}

.selection-card img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.selection-card h3 {
    margin: 10px 0;
    color: #2f415e;
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    line-height: 1.2;
}

.selection-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 5px;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    align-items: center;
}

.btn-secondary {
    background: white;
    border: 1px solid #CBB2A3;
    color: #2f415e;
    padding: 0; 
    height: 50px;
    width: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'DM Serif Display', serif;
    font-weight: normal;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #fcfcfc;
    border-color: #be9f8d;
}

@media (max-width: 1366px) {
    body.onboarding-body {
        padding: 10px;
    }

    .onboarding-container {
        padding: 20px 30px; 
        max-width: 600px; 
        border-radius: 15px;
    }

    .welcome-title {
        font-size: 2rem;
        margin-bottom: 5px;
    }

    .onboarding-container p {
        font-size: 0.9rem;
        margin-bottom: 12px !important;
        line-height: 1.4;
    }

    .offer-checklist {
        margin: 10px auto;
        max-width: 500px;
    }

    .accordion-item {
        margin-bottom: 25px !important; 
        background: #fdfdfd; 
    }

    .accordion-header {
        padding: 8px 15px; 
        font-size: 0.9rem;
        font-weight: 600;
        min-height: auto; 
    }

    .accordion-content {
        font-size: 0.85rem;
    }
    
    .accordion-item.active .accordion-content {
        padding: 0 15px 10px 15px;
    }

    .btn-primary {
        padding: 0; 
        font-size: 1rem;
        box-shadow: none; 
        
    }

    .selection-description {
        font-size: 0.95rem;
        margin-top: 5px; 
        margin-bottom: 50px !important; 
    }

    .selection-container {
        margin: 15px 0;
        gap: 15px;
    }
    
    .selection-card {
        padding: 15px;
        width: 200px; 
        height: 280px; 
    }
    
    .selection-card img {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .selection-card h3 {
        font-size: 1.2rem;
    }

    .selection-card p {
        font-size: 0.85rem;
    }
    
    .nav-buttons {
        margin-top: 15px;
    }
}

@media (max-height: 800px) {
    body.onboarding-body {
        align-items: center; 
        padding-top: 10px;
        overflow-y: auto;
    }

    .onboarding-container {
        margin: 10px auto;
        padding: 15px 20px;
    }

    .welcome-title {
        font-size: 1.8rem; 
        margin-bottom: 5px;
    }

    .welcome-description, .selection-description {
        font-size: 0.9rem;
        margin-bottom: 10px; 
        line-height: 1.3;
    }

    .onboarding-container p {
        font-size: 0.85rem;
        margin-bottom: 8px !important;
    }

    .offer-checklist {
        margin: 10px auto !important;
        max-width: 500px;
    }

    .accordion-item {
        margin-bottom: 20px !important; /* Increased from 15px */
        background: #fdfdfd; 
    }

    .accordion-header {
        padding: 6px 15px; 
        font-size: 0.9rem;
        font-weight: 600;
        min-height: auto; 
    }

    .btn-primary {
        /* margin-top: 10px; Removed for alignment */
        font-size: 1rem;
        padding: 0;
    }

    /* Compact Selection for Short Screens */
    .selection-container {
        margin: 10px 0;
        gap: 15px;
    }

    .selection-card {
        padding: 12px;
        width: 190px;
        height: 250px; /* Compact height */
    }

    .selection-card img {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .selection-card h3 {
        font-size: 1.1rem;
    }

    .nav-buttons {
        margin-top: 10px;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    body.onboarding-body {
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .onboarding-container {
        padding: 20px;
        width: 95%;
        margin: 0 auto 20px auto;
    }

    .welcome-title {
        font-size: 1.8rem;
    }
    
    .offer-checklist {
        width: 100%;
    }

    .selection-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 20px 0;
    }
    
    .selection-card {
        width: 100%;
        max-width: 100%; 
        padding: 15px;
        display: flex;
        flex-direction: row; 
        height: auto; 
        align-items: center; 
        text-align: left;
        gap: 15px;
        box-sizing: border-box; 
    }
    
    .card-info {
        flex: 1; 
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .selection-card img {
        width: 60px;
        height: 60px;
        margin-bottom: 0; 
        flex-shrink: 0; 
    }

    .selection-card h3 {
        font-size: 1.2rem;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .selection-card p {
        font-size: 0.85rem;
        margin: 0 !important;
        line-height: 1.3;
    }
    
    .nav-buttons {
        gap: 10px;
        margin-top: 20px;
    }
    
    .btn-secondary, .btn-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Selection Description */
/* Selection Description */
/* Selection Description */
.selection-description {
    color: #666;
    font-size: 1.1rem;
    margin-top: 10px; /* Increased from -15px */
    margin-bottom: 40px; /* Increased from 20px */
}

/* Error Modal Styles */
.error-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease-out; /* Smooth overlay appearance */
}

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

.error-modal-content {
    background: white;
    padding: 20px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 85%;
    width: 280px; /* Reduced width */
}

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

.error-icon {
    width: 50px; /* Reduced size */
    height: 50px;
    background: #FFF0F0;
    color: #FF4444;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 10px auto;
    border: 2px solid #FFE0E0;
}

.error-modal-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem; /* Reduced font size */
}

.error-modal-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.modal-ok-btn {
    background: var(--primary-color, #D0B8A8);
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
}

/* Responsive adjustment for very small screens */
@media (max-width: 380px) {
    .error-modal-content {
        width: 85%;
        padding: 20px;
    }
}

.modal-ok-btn:hover {
    background: #c4a998;
    transform: translateY(-2px);
}
