/* --- Algemeen --- */
form.mx_form {
  background: #ececec;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', 'Arial', sans-serif;
    max-width: 700px;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Form row --- */
form.mx_form .mx_form_row {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* --- Labels --- */
form.mx_form label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

/* --- Inputs, select, textarea --- */
.mx_form_input input,
.mx_form_input select,
.mx_form_input textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.mx_form_input input:focus,
.mx_form_input select:focus,
.mx_form_input textarea:focus {
    border-color: #2895ce;
    box-shadow: 0 0 6px rgba(40, 149, 206, 0.2);
    outline: none;
}

/* --- Textarea --- */
.mx_form_input textarea {
    resize: vertical;
    min-height: 100px;
}

/* --- Submit button --- */
form.mx_form input[type="submit"] {
    padding: 14px 20px;
    background-color: #1f3e98;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

form.mx_form input[type="submit"]:hover {
    background-color: #dc2623;
}

/* --- Error styling --- */
.mx_error input,
.mx_error textarea,
.mx_error select {
    border-color: #e74c3c;
}

.mx_error .mx_form_input_option {
    color: #e74c3c !important;
}

/* --- Checkbox / Radio --- */
.mx_form_input_option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Baseline checkbox & radio */
.mx_form_input_option input[type="checkbox"],
.mx_form_input_option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0 0 2px 0;
    width: 20px;
    height: 20px;
    border: 2px solid #1f3e98;
    border-radius: 4px; /* rond voor checkbox, 50% voor radio */
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background-color: #fff;
}

/* Radio shape */
.mx_form_input_option input[type="radio"] {
    border-radius: 50%;
}

/* Checked state - volle kleur met animatie */
.mx_form_input_option input[type="checkbox"]:checked,
.mx_form_input_option input[type="radio"]:checked {
    background-color: #1f3e98;
    border-color: #1f3e98;
    animation: fillCheck 0.2s ease forwards;
}

/* Checkbox vinkje */
.mx_form_input_option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 16px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Radio bolletje */
.mx_form_input_option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Hover effect */
.mx_form_input_option input[type="checkbox"]:hover,
.mx_form_input_option input[type="radio"]:hover {
    box-shadow: 0 0 4px rgba(40, 149, 206, 0.5);
}

/* Checkbox/radio fill animatie */
@keyframes fillCheck {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Placeholder --- */
::placeholder {
    color: #ccc;
}

/* --- Spacers --- */
.mx_form_spacer {
    height: 1rem;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    form.mx_form {
        padding: 25px 20px;
    }
    .mx_form_input input,
    .mx_form_input select,
    .mx_form_input textarea {
        font-size: 13px;
        padding: 10px 12px;
    }
    form.mx_form input[type="submit"] {
        font-size: 13px;
        padding: 12px 18px;
    }
}
