/* survey_styles.css - yhtenäinen tyyli pääsivuston kanssa */

/* Perusasetukset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Body */
body {
    font-family: 'Montserrat', sans-serif;
    background: #2c2c2c;
    color: #f5f5f5;
}

/* Survey-osio */
#survey {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    text-align: center;
}

/* Kortit */
#survey .card {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #1f1f1f;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
    margin: 20px auto;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
    pointer-events: none;
    position: absolute;
}

/* Aktiivinen kortti */
#survey .card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

/* Fade-out */
#survey .card.fade-out {
    opacity: 0;
    transform: translateY(-50px);
}

/* Korttien otsikot */
#survey h2 {
    color: #f5f5f5;
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* Kortin vaihtoehdot */
#survey .options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Nappien perusväri */
#survey .options .btn {
    width: 100%;
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #ff0074;
    color: #1f1f1f;
    /* MUOKATTU: Lisätty box-shadow ja transition-aika varjolle */
    transition: transform 0.2s, background 0.3s, box-shadow 0.3s ease-in-out; 
    box-shadow: 0 0 0 rgba(255, 0, 116, 0); /* Oletuksena ei varjoa (läpinäkyvä) */
}

/* Hover */
#survey .options .btn:hover {
    transform: translateY(-3px);
    background: #ff3399;
    /* UUSI: Lisää valoefekti hoverissa */
    box-shadow: 0 0 15px rgba(255, 0, 116, 0.8), /* Kirkas hehku */
                0 5px 15px rgba(0, 0, 0, 0.4);   /* Normaali ala-varjo */
}

/* Valittu nappi */
#survey .options .btn.selected {
    background: #ff66aa;
    color: #fff;
    /* MUOKATTU: Vahvempi, jatkuva valo valitussa tilassa */
    box-shadow: 0 0 20px rgba(255, 0, 116, 1), 
                0 5px 20px rgba(0, 0, 0, 0.5);
    transform: scale(1.02); /* Pieni korostus valitulle */
}

/* UUSI: Valitun napin hover, jotta se pysyy paikallaan ja hehkuu kauniisti */
#survey .options .btn.selected:hover {
    /* Poistaa translateY hover-liikkeen ja pitää skaalauksen */
    transform: scale(1.02); 
    /* Antaa hieman lisää hehkua, kun jo valittua nappia painetaan */
    box-shadow: 0 0 25px rgba(255, 0, 116, 1), 
                0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Lomake */
#survey form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
    margin-top: 30px;
    padding: 30px;
    background: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Inputit ja textarea */
#survey input,
#survey textarea {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #1f1f1f;
    color: #f5f5f5;
    font-size: 1em;
    transition: all 0.3s ease;
}
#survey textarea { min-height: 200px; max-height: 400px; resize: vertical; }

/* Fokus */
#survey input:focus,
#survey textarea:focus {
    border-color: #ff0074;
    box-shadow: 0 0 8px rgba(255,0,116,0.5);
    outline: none;
}

/* Lomakenappi */
#survey form .btn {
    margin-top: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff0074, #ff3399);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,0,116,0.4);
}
#survey form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,0,116,0.6);
}

/* Back-to-home nappi */
#back-to-home {
    margin-top: 20px;
    text-align: center;
    display: none;
}
#back-to-home .btn {
    padding: 12px 25px;
    font-weight: 700;
    border-radius: 6px;
    background: #ff0074;
    color: #1f1f1f;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}
#back-to-home .btn:hover {
    transform: translateY(-3px);
    background: #ff3399;
}

/* Kortin pienempi ohjeteksti */
.card-subtitle { font-size: 0.9em; color: #ccc; margin-top: -5px; margin-bottom: 15px; text-align: center; }

/* Responsive */
@media(max-width: 600px){
    #survey .card { width: 90%; padding: 30px; }
    #survey .options .btn { font-size: 1em; padding: 10px 15px; }
}
