/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #10b981 50%, #0f172a 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* ===== LOADING ===== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(16, 185, 129, 0.3);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-small {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== LAYOUT ===== */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.container-small {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== TEXT ===== */
h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.subtitle {
    font-size: 1.25rem;
    color: #86efac;
    margin-bottom: 0.5rem;
}

.description {
    font-size: 1rem;
    color: rgba(134, 239, 172, 0.8);
    margin-bottom: 2rem;
}

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

/* ===== ICONS ===== */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    border-radius: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.icon-box-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.icon-box-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.icon-large {
    font-size: 3rem;
}

.icon-medium {
    font-size: 2.5rem;
}

/* ===== PROGRAMS GRID ===== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.program-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.program-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.program-type {
    font-size: 0.875rem;
    color: #86efac;
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #0d9488);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-back {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem;
    background: transparent;
    color: #86efac;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: #fff;
}

.btn-back.visible {
    display: block;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    margin-bottom: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #86efac;
    margin-bottom: 0.5rem;
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #14b8a6);
    border-radius: 999px;
    transition: width 0.5s ease;
    width: 0%;
}

/* ===== QUESTION CARD ===== */
.question-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: rgba(134, 239, 172, 1);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(16, 185, 129, 0.5);
}

.option-btn.selected {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #fff;
}

.option-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

/* ===== EMAIL FORM ===== */
.email-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #86efac;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(134, 239, 172, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-input.error {
    border-color: #f87171;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.error-message {
    display: none;
    margin-top: 0.5rem;
    color: #fca5a5;
    font-size: 0.875rem;
}

.error-message.visible {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.privacy-info {
    text-align: center;
    color: rgba(134, 239, 172, 0.6);
    font-size: 0.75rem;
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

/* ===== RESULT SCREEN ===== */
.result-program {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.result-subtitle {
    color: #86efac;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.scores-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.score-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.score-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.score-label {
    color: #86efac;
}

.score-value {
    color: #fff;
    font-weight: 600;
}

.score-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1s ease;
}

.program-description {
    color: #86efac;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #86efac;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.benefits-list li::before {
    content: "✓";
    color: #22c55e;
    font-weight: bold;
    flex-shrink: 0;
}

.ideal-for {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1rem;
}

.ideal-label {
    color: #86efac;
    font-size: 0.875rem;
}

.ideal-for span:last-child {
    color: #fff;
}

.cta-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(20, 184, 166, 0.2));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.cta-card p {
    color: #86efac;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1rem;
}

.cta-card a {
    color: #fff;
    text-decoration: none;
}

.cta-card a:not(.btn-primary) {
    font-weight: 600;
}

.cta-card .btn-primary {
    display: inline-block;
    margin-top: 0;
    padding: 1.25rem 2rem;
    font-size: 1rem;
    width: auto;
    min-width: 280px;
}

/* ===== FOOTER ===== */
.footer-logo {
    text-align: center;
    margin-top: 1.5rem;
}

.logo-text {
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.footer-text {
    color: rgba(134, 239, 172, 0.4);
    font-size: 0.75rem;
}

.footer-text-center {
    text-align: center;
    color: rgba(134, 239, 172, 0.6);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

.time-info {
    text-align: center;
    color: rgba(134, 239, 172, 0.6);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1.125rem;
    }

    .description {
        font-size: 0.875rem;
    }

    .icon-box {
        width: 70px;
        height: 70px;
    }

    .icon-large {
        font-size: 2.5rem;
    }

    .programs-grid {
        gap: 0.75rem;
    }

    .program-box {
        padding: 1rem;
    }

    .program-name {
        font-size: 1.25rem;
    }

    .question-card {
        padding: 1.5rem;
    }

    .email-card {
        padding: 1.5rem;
    }

    .result-program {
        font-size: 2.5rem;
    }

    .result-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .screen {
        padding: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .programs-grid {
        gap: 0.5rem;
    }

    .program-name {
        font-size: 1.125rem;
    }

    .program-type {
        font-size: 0.75rem;
    }

    .option-btn {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .option-icon {
        font-size: 1.5rem;
    }

    .question-card, .email-card, .result-card {
        padding: 1.25rem;
    }

    .result-program {
        font-size: 2rem;
    }
}
