/* 
   LOMAKESIVU
*/

.container {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;

    background: #e7f7db;
}

/* Lomakkeen laatikko */
.form-box {
    background: #ffffff;

    border: 2px solid #818479;
    border-radius: 20px;

    padding: 40px;

    max-width: 900px;
    width: 100%;
}

/* Sarakkeet */
.columns {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.column {
    width: 45%;
}

/* Otsikko */
h1 {
    margin-bottom: 20px;
    color: #818479;
}

/* Alatason otsikot */
h2 {
    color: #818479;
    margin-bottom: 12px;
}

/* Label */
label {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 12px 0;

    font-size: 18px;
    color: #583a28;

    cursor: pointer;
}

/* Checkbox */
input[type="checkbox"] {
    width: auto;
    margin: 0;

    transform: scale(1.1);

    flex-shrink: 0;
}

/* Radio button */
input[type="radio"] {
    width: auto;
    margin: 0;

    transform: scale(1.1);

    flex-shrink: 0;

    accent-color: #4caf50;
}

/* Muut inputit */
input,
textarea,
select {
    font-size: 16px;

    padding: 10px;

    border-radius: 8px;

    box-sizing: border-box;
}

/* Tekstialue */
textarea {
    min-height: 120px;
    width: 100%;
}

/* Nappi */
button {
    margin-top: 20px;
    padding: 10px 20px;

    font-size: 18px;

    border: none;
    border-radius: 10px;

    background: #818479;
    color: white;

    cursor: pointer;
}

/* Hover */
button:hover {
    opacity: 0.8;
}

/* Onnistumisviesti */
.success {
    color: green;
    margin-bottom: 10px;
}


/* =========================
   MOBIILI
========================= */

@media (max-width: 768px) {

    .container {
        padding: 16px;
        min-height: auto;
    }

    .form-box {
        width: 100%;
        max-width: 100%;

        padding: 24px 20px;

        border-radius: 18px;
    }

    .columns {
        flex-direction: column;
        gap: 24px;
    }

    .column {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 24px;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
        margin-top: 3px;
    }

    label {
        display: flex;
        align-items: center;

        gap: 10px;

        font-size: 1rem;
        line-height: 1.6;

        margin: 14px 0;
    }

    /* Checkboxit pysyvät tekstin vieressä */
    input[type="checkbox"] {
        width: auto;

        margin: 0;

        transform: scale(1.2);

        flex-shrink: 0;
    }

    /* Radio buttonit mobiilissa */
    input[type="radio"] {
        width: auto;

        margin: 0;

        transform: scale(1.2);

        flex-shrink: 0;

        accent-color: #4caf50;
    }

    /* Muut kentät */
    input:not([type="checkbox"]):not([type="radio"]),
    textarea,
    select {
        width: 100%;

        font-size: 16px;

        padding: 10px;

        border-radius: 8px;

        box-sizing: border-box;
    }

    textarea {
        min-height: 120px;
    }

    button {
        width: 100%;

        padding: 14px 20px;

        font-size: 1rem;

        margin-top: 30px;
    }

    .success {
        font-size: 1rem;
        line-height: 1.5;
    }
}