/* Scholarship Page Styles */
:root {
    --primary: #158e8c;
    --secondary: #2b275d;
    --accent: #ff6b35;
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

.scholarship-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 0;
}

.scholarship-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

/* Progress Bar */
.progress-container {
    position: sticky;
    top: 0;
    background: var(--white);
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    z-index: 10;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 12.5%;
}

.progress-text {
    font-size: 14px;
    color: var(--medium-gray);
    text-align: center;
    font-weight: 500;
}

/* Question Screens */
.question-screen {
    display: none;
    padding: 40px 30px;
    min-height: 500px;
    animation: slideIn 0.5s ease;
}

.question-screen.active {
    display: block;
}

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

.question-content {
    max-width: 100%;
}

.question-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    text-align: center;
}

.question-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 15px;
    text-align: center;
}

.question-hint {
    color: var(--medium-gray);
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

/* Welcome Screen */
.welcome-animation {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.scholarship-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.sparkles span {
    position: absolute;
    font-size: 24px;
    animation: sparkle 3s infinite;
}

.sparkles span:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.sparkles span:nth-child(2) {
    top: 30%;
    right: 25%;
    animation-delay: 1s;
}

.sparkles span:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-subtitle {
    font-size: 20px;
    color: var(--accent);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.welcome-description {
    color: var(--medium-gray);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Form Inputs */
.input-group {
    margin-bottom: 30px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 142, 140, 0.1);
}

.form-input::placeholder {
    color: #adb5bd;
}

/* Option Grid */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.option-card {
    background: var(--white);
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.option-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.option-card.selected {
    border-color: var(--primary);
    background: rgba(21, 142, 140, 0.05);
    box-shadow: var(--shadow);
}

.option-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.option-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 5px;
}

.option-card p {
    font-size: 12px;
    color: var(--medium-gray);
    margin: 0;
}

/* Option List */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.option-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.option-item.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(21, 142, 140, 0.1), rgba(21, 142, 140, 0.05));
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}

.option-item.selected .option-radio {
    border-color: var(--primary);
    background: var(--primary);
}

.option-item.selected .option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

.option-content {
    flex: 1;
}

.option-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.option-content p {
    font-size: 14px;
    color: var(--medium-gray);
    margin: 0;
}

/* Checkbox List */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.checkbox-item:hover {
    border-color: var(--primary);
    background: rgba(21, 142, 140, 0.05);
}

.checkbox-item.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(21, 142, 140, 0.1), rgba(21, 142, 140, 0.05));
}

.checkbox-input {
    width: 18px;
    height: 18px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
    background: var(--white);
}

.checkbox-item.selected .checkbox-input {
    border-color: var(--primary);
    background: var(--primary);
}

.checkbox-item.selected .checkbox-input::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-content h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    margin: 0;
}

/* REET Specific Questions */
.reet-specific {
    display: none;
}

.reet-specific.active {
    display: block;
}

/* Scrollbar for checkbox list */
.checkbox-list::-webkit-scrollbar {
    width: 6px;
}

.checkbox-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.checkbox-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.checkbox-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    gap: 15px;
}

.back-btn, .next-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn {
    background: var(--white);
    color: var(--primary);
}

.back-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.next-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    justify-content: center;
    max-width: 200px;
    width: 100%;
}

.next-btn:hover:not(:disabled) {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6c757d;
    border-color: #6c757d;
}

.primary-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.primary-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.primary-btn svg {
    width: 20px;
    height: 20px;
}

/* Analysis Screen */
.analysis-text {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 40px;
}

.analysis-animation {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e9ecef;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.analysis-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.5;
    transition: var(--transition);
}

.step.active {
    opacity: 1;
}

.step-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step.active .step-icon {
    background: var(--primary);
    color: var(--white);
}

.step span {
    font-weight: 500;
    color: var(--secondary);
}

/* Results Screen */
.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.success-animation {
    position: relative;
    margin-bottom: 20px;
}

.checkmark {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--white);
    margin: 0 auto;
    animation: checkmarkPop 0.6s ease;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.confetti span {
    position: absolute;
    font-size: 20px;
    animation: confettiFall 3s ease-in infinite;
}

.confetti span:nth-child(1) {
    top: -20px;
    left: 20%;
    animation-delay: 0s;
}

.confetti span:nth-child(2) {
    top: -20px;
    right: 30%;
    animation-delay: 0.5s;
}

.confetti span:nth-child(3) {
    top: -20px;
    left: 50%;
    animation-delay: 1s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100px) rotate(360deg);
        opacity: 0;
    }
}

.results-subtitle {
    color: var(--accent);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Offer Card */
.offer-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius);
    padding: 30px;
    color: var(--white);
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.offer-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.scholarship-badge {
    background: var(--accent);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.offer-details {
    margin-bottom: 25px;
}

.offer-details > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.original-price {
    color: rgba(255, 255, 255, 0.8);
}

.original-price .price {
    text-decoration: line-through;
}

.discounted-price {
    font-weight: 600;
    font-size: 18px;
}

.discounted-price .price.highlight {
    color: var(--accent);
    font-size: 24px;
    font-weight: 700;
}

.savings {
    color: var(--success);
    font-weight: 600;
}

.savings-amount {
    color: var(--success);
    font-weight: 700;
}

.offer-features {
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

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

.offer-validity {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-bottom: 30px;
}

.cta-btn {
    margin-bottom: 15px;
    font-size: 20px;
    padding: 18px 30px;
}

.cta-note {
    font-size: 14px;
    color: var(--medium-gray);
    margin: 0;
}

.social-proof {
    text-align: center;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    color: var(--medium-gray);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .scholarship-main {
        padding: 10px;
    }
    
    .scholarship-container {
        border-radius: 8px;
    }
    
    .question-screen {
        padding: 30px 20px;
        min-height: 400px;
    }
    
    .question-content h1 {
        font-size: 24px;
    }
    
    .question-content h2 {
        font-size: 20px;
    }
    
    .scholarship-icon {
        font-size: 60px;
    }
    
    .option-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .option-card {
        padding: 15px 10px;
    }
    
    .option-icon {
        font-size: 24px;
    }
    
    .option-card h3 {
        font-size: 14px;
    }
    
    .option-card p {
        font-size: 11px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .next-btn {
        width: 100%;
        justify-content: center;
    }
    
    .offer-card {
        padding: 20px;
    }
    
    .offer-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cta-btn {
        font-size: 18px;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .question-screen {
        padding: 20px 15px;
    }
    
    .option-grid {
        grid-template-columns: 1fr;
    }
    
    .scholarship-icon {
        font-size: 50px;
    }
    
    .checkmark {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .offer-card {
        padding: 15px;
    }
    
    .discounted-price .price.highlight {
        font-size: 20px;
    }
} 