/* Stipendium Quiz Funnel - Frontend Styles */

.stipendium-quiz-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Progress Bar */
.quiz-progress {
    margin-bottom: 30px;
}

.progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e93a72, #d62a62);
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

/* Quiz Questions */
.quiz-question {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

.quiz-question h2,
.quiz-question h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 20px;
    line-height: 1.4;
}

.quiz-question p {
    margin: 10px 0;
    color: #6b7280;
    font-size: 14px;
}

.quiz-question .hint {
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

/* Options */
.options {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.options label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.options label:hover {
    border-color: #2563EB;
    background: #f0f9ff;
}

.options input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
}

.options input[type="radio"]:checked + label {
    border-color: #2563EB;
    background: #f0f9ff;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
    margin-right: 10px;
}

.btn-primary {
    background: #e93a72;
    color: white;
}

.btn-primary:hover {
    background: #d62a62;
}

.btn-secondary {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    border: 4px solid #e5e7eb;
    border-top: 4px solid #e93a72;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-spinner p {
    color: #6b7280;
    font-size: 16px;
}

/* Results Page */
.stipendium-results-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.result-header {
    background: linear-gradient(135deg, #f0f9ff, #f3f4f6);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.result-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.result-header p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.result-content {
    margin-bottom: 30px;
}

.result-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1f2937;
}

.scholarships-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.scholarship-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.scholarship-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #2563EB;
}

.scholarship-card h4 {
    margin: 0 0 5px 0;
    color: #1f2937;
    font-size: 16px;
}

.scholarship-card .organization {
    margin: 0 0 10px 0;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

.scholarship-card p {
    margin: 10px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.scholarship-card .btn {
    margin-top: 15px;
    margin-right: 0;
    display: inline-block;
}

/* Result CTA */
.result-cta {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.result-cta h3 {
    margin-top: 0;
    color: #1f2937;
}

.result-cta p {
    color: #6b7280;
    line-height: 1.6;
}

.email-capture {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.email-capture input {
    flex: 1;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.email-capture input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.email-capture button {
    padding: 12px 24px;
}

/* Responsive */
@media (max-width: 640px) {
    .stipendium-quiz-container {
        margin: 20px;
        padding: 15px;
    }
    
    .scholarships-list {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .email-capture {
        flex-direction: column;
    }
    
    .result-cta {
        padding: 20px;
    }
}
