/**
 * KIHV Aanmeldformulier Stijlen
 *
 * CSS voor het kunstenaars aanmeldformulier.
 */

/* Formulier container */
.kihv-registration-form-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.kihv-registration-form {
    font-family: inherit;
}

/* Fieldsets - groepering van formuliervelden */
.kihv-fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    background: #fafafa;
}

.kihv-fieldset legend {
    font-weight: 600;
    font-size: 1.1em;
    padding: 0 10px;
    color: #333;
}

/* Verplichte veld indicator */
.kihv-fieldset legend .required {
    color: #c00;
}

/* Formulier rijen */
.kihv-form-row {
    margin-bottom: 15px;
}

.kihv-form-row:last-child {
    margin-bottom: 0;
}

/* Halve breedte rijen voor twee velden naast elkaar */
.kihv-form-row-half {
    display: flex;
    gap: 20px;
}

.kihv-form-row-half .kihv-form-field {
    flex: 1;
}

/* Formulier velden */
.kihv-form-field {
    display: flex;
    flex-direction: column;
}

.kihv-form-field label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.kihv-form-field label .required {
    color: #c00;
}

/* Input en textarea stijlen */
.kihv-form-field input[type="text"],
.kihv-form-field input[type="email"],
.kihv-form-field input[type="tel"],
.kihv-form-field input[type="url"],
.kihv-form-field textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Focus state voor invoervelden */
.kihv-form-field input:focus,
.kihv-form-field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.kihv-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Radio en checkbox groepen */
.kihv-radio-group,
.kihv-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Inline weergave voor ja/nee keuzes */
.kihv-radio-inline {
    flex-direction: row;
    gap: 25px;
}

/* Radio en checkbox labels met klikbare achtergrond */
.kihv-radio-label,
.kihv-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s, background-color 0.2s;
}

/* Hover effect voor betere interactie */
.kihv-radio-label:hover,
.kihv-checkbox-label:hover {
    border-color: #0073aa;
    background-color: #f7fbfd;
}

.kihv-radio-label input[type="radio"],
.kihv-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.kihv-radio-text,
.kihv-checkbox-text {
    line-height: 1.5;
}

/* Prijzen markeren */
.kihv-radio-text strong,
.kihv-checkbox-text strong {
    color: #0073aa;
}

/* Specifieke stijl voor inline radio buttons */
.kihv-radio-inline .kihv-radio-label {
    padding: 8px 20px;
}

/* Anders optie met tekstveld */
.kihv-radio-other {
    flex-wrap: wrap;
}

.kihv-other-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    margin-left: 5px;
}

.kihv-other-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Verzendknop */
.kihv-form-submit {
    margin-top: 30px;
    text-align: center;
}

.kihv-submit-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.kihv-submit-button:hover {
    background: #005a87;
}

.kihv-submit-button:active {
    transform: scale(0.98);
}

/* Feedback berichten */
.kihv-form-message {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* Succesmelding */
.kihv-form-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.kihv-form-success p {
    margin: 0;
    font-size: 1.1em;
}

/* Foutmeldingen */
.kihv-form-errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.kihv-form-errors ul {
    margin: 0;
    padding-left: 20px;
}

.kihv-form-errors li {
    margin-bottom: 5px;
}

.kihv-form-errors li:last-child {
    margin-bottom: 0;
}

/* Responsive aanpassingen voor mobiele weergave */
@media (max-width: 600px) {
    .kihv-registration-form-wrap {
        padding: 10px;
    }

    .kihv-fieldset {
        padding: 15px;
    }

    /* Velden onder elkaar op smalle schermen */
    .kihv-form-row-half {
        flex-direction: column;
        gap: 15px;
    }

    /* Radio buttons onder elkaar op mobiel */
    .kihv-radio-inline {
        flex-direction: column;
        gap: 10px;
    }

    /* Verzendknop volledige breedte op mobiel */
    .kihv-submit-button {
        width: 100%;
    }
}
