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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /* background: linear-gradient(135deg, rgb(35,233,177) 0%, rgb(93,166,203) 100%); */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('quiz-bg.png');
    background-repeat: no-repeat;
    background-size: cover;        /* scales image to fill the page */
    background-position: center;   /* keeps it centered as the page resizes */
    background-attachment: fixed;  /* optional: keeps image fixed during scroll */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.logo {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 200px;
    /* center */
}

.container {
    width: 100%;
    max-width: 700px;
}

.start-section,
.quiz-section,
.results-section,
.email-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in;
}

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

/* Start Section */
.start-section,
.email-section {
    text-align: center;
}

.start-title {
    font-size: 48px;
    background: linear-gradient(135deg, rgb(35,233,177) 0%, rgb(93,166,203) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 700;
}

.start-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.start-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 32px;
}

.feature-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.start-btn {
    padding: 18px 60px;
    background: linear-gradient(135deg, rgb(35,233,177) 0%, rgb(93,166,203) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.email-title {
    font-size: 48px;
    background: linear-gradient(135deg, rgb(35,233,177) 0%, rgb(93,166,203) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 700;
}

.email-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.email-form {
    max-width: 450px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.email-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.email-input:focus {
    outline: none;
    border-color: rgb(35,233,177);
    box-shadow: 0 0 0 3px rgba(35,233,177,0.1);
}

.email-input.error {
    border-color: #f5576c;
}

.error-message {
    color: #f5576c;
    font-size: 14px;
    margin-top: 8px;
    text-align: left;
}

.submit-btn {
    width: 100%;
    padding: 18px 60px;
    background: linear-gradient(135deg, rgb(35,233,177) 0%, rgb(93,166,203) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(35,233,177,0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(35,233,177,0.4);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress {
    height: 100%;
    /* background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); */
    background: #5da6cb;
    transition: width 0.3s ease;
    width: 0%;
}

/* Question Counter */
.question-counter {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Question Container */
.question-container {
    margin-bottom: 40px;
}

.question-text {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
    text-align: center;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: left;
    width: 100%;
}

.option-btn:hover {
    background: #f0f0f0;
    border-color: #667eea;
    transform: translateX(5px);
}

.option-btn.selected {
    background: linear-gradient(135deg, rgb(35,233,177) 0%, rgb(93,166,203) 100%);
    border-color: #667eea;
    color: white;
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: white;
    color: #667eea;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.option-btn.selected .option-letter {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.option-text {
    flex: 1;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.nav-btn {
    padding: 15px 30px;
    /* background: linear-gradient(135deg, rgb(35,233,177) 0%, rgb(93,166,203) 100%); */
    background: #5da6cb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.finish-btn {
    /* background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); */
    background: linear-gradient(135deg, rgb(35,233,177) 0%, rgb(93,166,203) 100%);
}

.finish-btn:hover:not(:disabled) {
    box-shadow: 0 10px 20px rgba(245, 87, 108, 0.4);
}

/* Results Section */
.results-section {
    text-align: center;
}

.results-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgb(35,233,177) 0%, rgb(93,166,203) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.personality-card {
    background: linear-gradient(135deg, rgb(35,233,177) 0%, rgb(93,166,203) 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.personality-type {
    font-size: 28px;
    margin-bottom: 15px;
}

.personality-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
}

/* Answer Breakdown */
.answer-breakdown {
    margin-bottom: 30px;
}

.answer-breakdown h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.breakdown-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.breakdown-letter {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
}

.breakdown-count {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.restart-btn {
    max-width: 300px;
    margin: 0 auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	#next-btn {
		order: 1;
	}
	#prev-btn {
		order: 2;
	}
    .start-section,
    .email-section,
    .quiz-section,
    .results-section {
        padding: 25px;
    }
    
    .start-title,
    .email-title {
        font-size: 36px;
    }
    
    .start-description,
    .email-description {
        font-size: 16px;
    }
    
    .start-features {
        gap: 20px;
    }
    
    .start-btn,
    .submit-btn {
        padding: 15px 50px;
        font-size: 16px;
    }
    
    .question-text {
        font-size: 20px;
    }
    
    .option-btn {
        padding: 15px;
        font-size: 15px;
    }
    
    .option-letter {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .navigation {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .results-title {
        font-size: 26px;
    }
    
    .personality-card {
        padding: 25px;
    }
    
    .personality-type {
        font-size: 24px;
    }
    
    .personality-description {
        font-size: 16px;
    }
    
    .breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .start-section,
    .email-section,
    .quiz-section,
    .results-section {
        padding: 20px;
    }
    
    .start-title,
    .email-title {
        font-size: 28px;
    }
    
    .start-description,
    .email-description {
        font-size: 15px;
    }
    
    .feature-icon {
        font-size: 24px;
    }
    
    .start-btn,
    .submit-btn {
        padding: 14px 40px;
        font-size: 16px;
    }
    
    .email-input {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .option-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .nav-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}
