/* =======================================
   WPForms-lomaketyyli
   Jo Designs
======================================= */

.wpforms-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(183, 110, 121, 0.12);
    border-top: 3px solid #b7c5a6; /* Sage-korostus */
}

@media (max-width: 768px) {
    .wpforms-container {
        padding: 35px 25px;
    }
}

/* Otsikko ja kuvaus */
.wpforms-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #5e514a;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 400;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .wpforms-title {
        font-size: 28px;
    }
}

.wpforms-description {
    text-align: center;
    color: #5e514a;
    margin-bottom: 40px;
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .wpforms-description {
        font-size: 15px;
    }
}

/* Kentät */
.wpforms-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #5e514a;
    font-weight: 500;
    font-family: 'Lato', sans-serif;
}

.wpforms-required-label {
    color: #B76E79; /* Rose-gold */
}

.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="url"],
.wpforms-field textarea,
.wpforms-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #c9d3ba; /* Sage-light */
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    color: #5e514a;
    background: #f9f7f6; /* Linen-white */
    transition: border-color 0.3s;
    box-shadow: none;
}

.wpforms-field input:focus,
.wpforms-field textarea:focus,
.wpforms-field select:focus {
    outline: none;
    border-color: #B76E79; /* Rose-gold fokus */
    background: white;
    box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.1);
}

.wpforms-field textarea {
    min-height: 100px;
    resize: vertical;
}

/* Radio buttons - kauniit laatikot */
.wpforms-field-radio ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.wpforms-field-radio li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(183, 197, 166, 0.08); /* Sage-light tausta */
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0;
    border: 1px solid transparent;
}

.wpforms-field-radio li:hover {
    background: rgba(183, 197, 166, 0.15);
    border-color: #c9d3ba;
}

.wpforms-field-radio input[type="radio"] {
    margin-top: 3px;
    accent-color: #B76E79; /* Rose-gold */
    width: auto;
}

.wpforms-field-radio label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    flex: 1;
    display: block;
}

/* Jos radio-labeleissa on strong */
.wpforms-field-radio label strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
}

.wpforms-field-radio label small {
    font-size: 14px;
    opacity: 0.8;
}

/* Checkboxit */
.wpforms-field-checkbox ul {
    margin-top: 15px;
}

.wpforms-field-checkbox li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.wpforms-field-checkbox input[type="checkbox"] {
    margin-top: 4px;
    accent-color: #b7c5a6; /* Sage */
    width: auto;
}

.wpforms-field-checkbox label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

/* Highlight box - esim. hinnoitteluselitys */
.wpforms-field-html {
    background: rgba(232, 213, 208, 0.3); /* Blush */
    padding: 20px 25px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 3px solid #b7c5a6; /* Sage */
}

.wpforms-field-html p {
    margin: 0;
    font-size: 15px;
    color: #5e514a;
    line-height: 1.7;
}

.wpforms-field-html strong {
    font-weight: 600;
}

/* Submit-nappi */
.wpforms-submit-container {
    margin-top: 30px;
}

.wpforms-submit {
    width: 100%;
    padding: 16px 30px;
    background: #B76E79; /* Rose-gold */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.wpforms-submit:hover {
    background: #a35d6a; /* Tummempi rose-gold */
    transform: translateY(-2px);
}

.wpforms-submit:focus {
    outline: 2px solid #B76E79;
    outline-offset: 2px;
}

/* Privacy note / disclaimer */
.wpforms-field-description {
    font-size: 16px;
    color: #5e514a;
    opacity: 0.7;
    text-align: left;
    margin-top: 20px;
    line-height: 1.6;
}

/* Fieldset (radio/checkbox-ryhmät) */
.wpforms-field fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.wpforms-field legend {
    font-size: 20px;
    color: #5e514a;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* Helper text / kuvaus */
.wpforms-field-sublabel {
    font-size: 14px;
    color: #5e514a;
    opacity: 0.7;
    margin-top: 5px;
}

/* Virheviestit */
.wpforms-error {
    color: #B76E79; /* Rose-gold */
    font-size: 14px;
    margin-top: 5px;
}

.wpforms-field.wpforms-has-error input,
.wpforms-field.wpforms-has-error textarea,
.wpforms-field.wpforms-has-error select {
    border-color: #B76E79;
}

/* Onnistumisviesti */
.wpforms-confirmation-container {
    background: rgba(183, 197, 166, 0.12); /* Sage-light */
    padding: 20px;
    border-radius: 6px;
    border-left: 3px solid #b7c5a6; /* Sage */
    color: #5e514a;
}

/* Varmista että placeholder näkyy */
.wpforms-field input::placeholder,
.wpforms-field textarea::placeholder {
    color: #999;
    opacity: 1;
}

/* Jos lomakkeessa on osioita/headereita */
.wpforms-field-section {
    margin-top: 35px;
    margin-bottom: 20px;
}

.wpforms-field-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #5e514a;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Poista WPFormsin oletustyylit */
.wpforms-container .wpforms-form {
    padding: 0;
}

/* Kenttien välit */
.wpforms-field {
    margin-bottom: 20px;
}

/* Saavutettavuus - fokus */
.wpforms-field input:focus,
.wpforms-field textarea:focus,
.wpforms-field select:focus,
.wpforms-submit:focus {
    outline: 2px solid #B76E79; /* Rose-gold */
    outline-offset: 2px;
}

.brand-question-box {
    background: #E8D5D0; /* Blush */
    padding: 20px 25px;
    border-radius: 6px;
    margin-top: 30px;
    border: 2px dashed #b7c5a6; /* Sage */
}

.brand-question-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #5e514a;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Jos lomakkeessa on conditional logic -kenttiä */
.wpforms-conditional-hide {
    display: none;
}

@media (max-width: 768px) {
    .wpforms-field-radio li,
    .wpforms-field-checkbox li {
        padding: 10px 12px;
    }
    
    .wpforms-field input,
    .wpforms-field textarea,
    .wpforms-field select {
        font-size: 16px; /* Estää iOS-zoomaus */
    }
}