/* --- YLEISET POHJATYYLIT --- */
:root {
    --wp--preset--color--luminous-vivid-orange: #ff6900;
    --wp--preset--color--white: #ffffff;
}

*, *:before, *:after {
    box-sizing: border-box;
}

html {
    font: 400 93.75%/1.5333 'Source Sans Pro', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #fff;
    color: #151518;
    margin: 0;
    padding: 20px;
}

/* --- LOMAKKEEN ELEMENTTIEN TYYLIT --- */
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.form-title {
    padding: 0 0 0.3846em;
    font-size: 1.7333rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1.1923;
    margin: 0 0 1.5rem 0;
}

.form-group {
    margin-bottom: 5px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.info-text {
    background-color: #f1f1f1;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.info-text p {
    padding: 0 0 1.5333em;
    margin: 0;
}
.info-text p:last-child {
    padding-bottom: 0;
}
.info-text a {
    color: #ef631a;
    text-decoration: underline;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
textarea {
    min-height: 120px;
    resize: vertical;
}
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M287%2C146.2l-14.7%2C14.7L146.2%2C287L0%2C140.6l14.7%2C-14.7l131.5%2C131.5L287%2C146.2z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%, 0 0;
    background-size: 0.65em auto, 100%;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ef631a;
    box-shadow: 0 0 5px rgba(239, 99, 26, 0.5);
}
select::-ms-expand {
    display: none;
}

.submit-button {
    display: inline-block;
    border-radius: 2px;
    background: #ef631a;
    margin: 5px 3px;
    padding: 9px 25px 10px;
    font-size: 85%;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 150ms ease-out;
}
.submit-button:hover {
    background-color: #d65917;
}

.checkbox-group { display: flex; align-items: center; }
.checkbox-group input { width: auto; margin-right: 12px; }
.checkbox-group label { margin-bottom: 0; font-weight: normal; }

.required-indicator { color: #cf2e2e; }
.error-message { color: #cf2e2e; font-size: 0.85rem; margin-top: 5px; height: 1.2em; }
.is-invalid { border-color: #cf2e2e !important; }

select option {
    background: #fff !important; /* Valkoinen tausta */
    font-family: 'Source Sans Pro', Arial, sans-serif; /* Sama fontti kuin muualla */
    padding: 8px; /* Pehmuste, joka ei välttämättä näy kaikissa selaimissa */
    color: #151518; /* Tekstin väri */
}

.form-group.hidden {
    display: none;
}