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

:root {
    /* University of St.Gallen Brand Colors */
    --primary-color: #096B2B;        /* HSG Dark Green */
    --primary-dark: #075320;         /* Darker Green */
    --secondary-color: #000000;      /* Professional Black */
    --accent-color: #096B2B;         /* HSG Dark Green accent */
    --success-color: #096B2B;        /* HSG Dark Green */
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #E1D9CE;             /* Light beige */
    --white: #ffffff;
    --text-primary: #000000;         /* Black */
    --text-secondary: #000000;       /* Black */
    --border-color: #c5b9a8;         /* Darker beige for borders */
    --shadow: 0 2px 8px rgba(9, 107, 43, 0.08);
    --shadow-lg: 0 8px 24px rgba(9, 107, 43, 0.12);
}

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--light-bg);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

/* Screen Management */
.screen {
    display: none;
    padding: 40px;
    min-height: 500px;
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Headers */
.quiz-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.quiz-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.quiz-header h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Welcome Screen */
.welcome-content {
    max-width: 650px;
    margin: 0 auto;
}

.welcome-content > p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.7;
}

.benefits {
    background: var(--light-bg);
    padding: 28px 32px;
    border-radius: 4px;
    margin-bottom: 32px;
    border-left: 3px solid var(--accent-color);
}

.benefits h3 {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-size: 1.15rem;
    font-weight: 600;
}

.benefits ul {
    list-style: none;
    padding: 0;
}

.benefits li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Lead Capture Section (after results) */
.lead-capture-section {
    margin-top: 50px;
    padding: 40px;
    background: var(--light-bg);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
}

.lead-capture-section h3 {
    font-size: 1.65rem;
    color: var(--primary-color);
    margin-bottom: 14px;
    text-align: center;
    font-weight: 600;
}

.lead-capture-section > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.6;
}

/* Lead Form */
.lead-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 400;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(9, 107, 43, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.form-group.checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
    cursor: pointer;
}

/* Form Messages */
.form-message {
    padding: 14px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    transition: opacity 0.3s;
    border-left: 3px solid;
}

.form-message-success {
    background: #e8f5e9;
    color: #2d6a4f;
    border-left-color: var(--success-color);
}

.form-message-warning {
    background: #fff8e1;
    color: #f57c00;
    border-left-color: var(--warning-color);
}

.form-message-error {
    background: #ffebee;
    color: #c62828;
    border-left-color: var(--danger-color);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    margin-bottom: 24px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    width: 0%;
}

.question-counter {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Questions */
.question-text {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 32px;
    line-height: 1.5;
    font-weight: 400;
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.answer-option {
    padding: 18px 22px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--white);
}

.answer-option:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
    box-shadow: var(--shadow);
}

.answer-option.selected {
    border-color: var(--primary-color);
    background: var(--light-bg);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.answer-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.answer-option input[type="radio"] {
    margin-right: 15px;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.answer-text {
    flex: 1;
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 300;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-cta {
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

.btn-primary:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--light-bg);
}

.btn-cta {
    background: var(--accent-color);
    color: var(--white);
    width: 100%;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.btn-cta:hover {
    background: #b8965c;
    box-shadow: var(--shadow);
}

/* Results Screen */
.results-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.results-header h1 {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.type-badge {
    display: inline-block;
    padding: 16px 48px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 1.6rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.type-description {
    margin-bottom: 40px;
}

.type-description h2 {
    font-size: 1.85rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 600;
}

.type-description p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.characteristics, .strengths, .growth-areas, .recommendations {
    margin-bottom: 36px;
}

/* Plain recommendations section without background */
.recommendations-plain {
    background: transparent;
    padding: 0;
}

.recommendations-plain .seminar-card {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 20px;
}

.characteristics h3, .strengths h3, .growth-areas h3, .recommendations h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.characteristics ul, .strengths ul, .growth-areas ul {
    list-style: none;
    padding: 0;
}

.characteristics li, .strengths li, .growth-areas li {
    padding: 11px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.characteristics li:before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.strengths li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.growth-areas li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.seminar-card {
    background: var(--light-bg);
    padding: 22px;
    border-radius: 4px;
    margin-bottom: 16px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s ease;
}

.seminar-card:hover {
    box-shadow: var(--shadow);
}

.seminar-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 600;
}

.seminar-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.seminar-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.seminar-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.cta-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.cta-section h3 {
    font-size: 1.65rem;
    color: var(--primary-color);
    margin-bottom: 14px;
    font-weight: 600;
}

.cta-section > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .screen {
        padding: 28px 20px;
    }

    .quiz-header h1 {
        font-size: 1.6rem;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .btn-secondary, .btn-primary {
        width: 100%;
    }

    .type-badge {
        font-size: 1.3rem;
        padding: 14px 28px;
    }
    
    .lead-capture-section {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .quiz-header h1 {
        font-size: 1.4rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .answer-text {
        font-size: 0.95rem;
    }
    
    .type-description h2 {
        font-size: 1.5rem;
    }
}

/* Footer */
.quiz-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 32px 40px;
    margin-top: 0;
    font-weight: 400;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

.footer-subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .quiz-footer {
        padding: 28px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-logo {
        min-width: auto;
    }
    
    .footer-links {
        justify-content: center;
        gap: 16px;
    }
}

