/* 1. PAGRINDINIAI NUSTATYMAI */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #FF8501;
    color: white;
    line-height: 1.4;
    overflow-x: hidden;
}

/* Pagrindinis rėmas - padidinam iki 1200px kaip dreambig.lt */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
}

header {
    margin-bottom: 60px;
    text-align: left;
}

.logo {
    max-width: 200px;
    height: auto;
}

/* 2. INTRO EKRANAS (Desktop versija - 2 PAV) */
.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Tekstas kairėje, foto dešinėje */
    gap: 100px;
    align-items: center;
    text-align: left;
}

h1 {
    font-size: 3.5rem; /* Didelis, ryškus headline */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

/* Autoriaus kortelė po tekstu */
.author-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    margin-top: 20px;
}

.author-img-small {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: none; /* Desktop versijoje slepiam, nes bus didelė foto */
}

.author-text .name {
    display: block;
    font-weight: 800;
    font-size: 1.2rem;
}

.author-text .title {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Didelė hero nuotrauka dešinėje */
.hero-img {
    width: 100%;
    max-width: 480px;
    border-radius: 30px;
    /* Sukuriame tą stilingą rėmelį/šešėlį iš pavyzdžio */
    box-shadow: 30px 30px 0px rgba(255, 255, 255, 0.2);
}

/* Mygtukas */
.btn-primary {
    background: white;
    color: #FF8501;
    border: none;
    padding: 22px 50px;
    font-size: 1.2rem;
    font-weight: 900;
    border-radius: 15px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 3. MOBILI VERSIJA (1 PAV) */
@media (max-width: 900px) {
    .container {
        padding: 20px;
    }

    header {
        text-align: center;
        margin-bottom: 30px;
    }

    .logo {
        margin: 0 auto;
    }

    .intro-grid {
        grid-template-columns: 1fr; /* Vienas stulpelis */
        text-align: center;
        gap: 30px;
    }

    h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .subtitle {
        font-size: 1.1rem;
        margin: 0 auto 30px auto;
        text-align: center;
    }

    .intro-image-desktop {
        display: none; /* Paslepiame didelę foto mobilioje versijoje */
    }

    .author-card {
        flex-direction: column;
        text-align: center;
        margin: 20px auto 30px auto;
        background: rgba(255,255,255,0.1);
        padding: 20px;
        border-radius: 20px;
        width: 100%;
    }

    .author-img-small {
        display: block;
        width: 100px;
        height: 100px;
        border: none;
        outline: 3px solid white;
        margin-top: 40px !important;
        outline-offset: 8px;
        object-position: top center;
    }

    .btn-primary {
        width: 100%; /* Mygtukas per visą plotį */
        max-width: 100%;
    }
    .result-profile-img {
        width: 120px;
        height: 120px;
        margin: 0; /* Reset inherited margins */
        margin-top: 40px; /* Ensure space from the top edge */
        outline-offset: 8px;
        object-position: top center;
    }
}

/* Sekcijų valdymas */
section { display: none; }
section.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Footer stilius */
footer {
    text-align: center;
    padding: 20px;
}

/* QUIZ, EMAIL & RESULTS STYLES */
.progress-info {
    margin-bottom: 10px;
    opacity: 0.8;
}
.progress-container { width: 100%; height: 10px; background: rgba(255,255,255,0.2); border-radius: 10px; margin-bottom: 40px; }
#progress-bar { height: 100%; background: white; width: 0%; border-radius: 10px; transition: 0.3s; }
.question-title { font-size: 2rem; margin-bottom: 30px; }
.option-btn { background: rgba(255,255,255,0.1); border: 2px solid white; color: white; padding: 18px; width: 100%; margin-bottom: 12px; border-radius: 12px; text-align: left; cursor: pointer; font-size: 1.1rem; font-family: inherit; transition: 0.2s; }
.option-btn:hover { background: white; color: #FF8501; }

#email-screen, #results-screen {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
#email-screen h2, #results-screen h2 { font-size: 2.5rem; margin-bottom: 15px; }
#email-screen p, #results-screen p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
input[type="email"] { width: 100%; max-width: 400px; padding: 20px; border-radius: 12px; border: none; font-size: 1.1rem; margin-bottom: 20px; display: block; margin-left: auto; margin-right: auto; }

.score-summary-box {
    background: white;
    color: #FF8501;
    padding: 30px;
    padding-top: 20px;
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}
.big-num { font-size: 4.5rem; font-weight: 900; line-height: 1; }
.score-label { font-size: 0.9rem; font-weight: 700; display: block; }
.result-profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: none; /* Explicitly remove border to avoid conflicts */
    object-fit: cover;
    object-position: top center; /* Ensures head is not cropped */
    outline: 3px solid white;
    outline-offset: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin: 15px; /* Default margin for desktop, overridden on mobile */
}
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.category-card { background: rgba(255,255,255,0.1); padding: 20px; border-radius: 15px; }
.category-header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; }
.bar-bg { width: 100%; height: 10px; background: rgba(255,255,255,0.2); border-radius: 5px; }
.bar-fill { height: 100%; background: white; width: 0%; border-radius: 5px; transition: 1s width; }
.cta-box { margin-top: 40px; padding: 30px; border: 1px dashed white; border-radius: 20px; background: rgba(255,255,255,0.05); }
.cta-box p { font-weight: 700; }
.cta-box .btn-primary { margin-top: 20px; }

@media (max-width: 600px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    .question-title {
        font-size: 1.5rem;
    }
    #email-screen h2, #results-screen h2 {
        font-size: 2rem;
    }
    .score-summary-box {
        flex-direction: column;
    }
}