/* ── Proefrit Formulier – Frontend CSS ── */

.pf-form-wrap {
    font-family: inherit;
    max-width: 860px;
    margin: 0 auto;
}

.pf-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 20px;
}

.pf-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.pf-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

/* Field widths */
.pf-field { display: flex; flex-direction: column; gap: 5px; }
.pf-field-full    { width: 100%; }
.pf-field-half    { width: calc(50% - 8px); }
.pf-field-third   { width: calc(33.33% - 11px); }
.pf-field-quarter { width: calc(25% - 12px); }

/* Labels */
.pf-field label,
.pf-group-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    display: block;
}
.pf-required { color: #e74c3c; }

/* Inputs */
.pf-field input[type="text"],
.pf-field input[type="email"],
.pf-field input[type="tel"],
.pf-field textarea,
.pf-field select,
.pf-timeslot-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    -webkit-appearance: none;
}

.pf-field input:focus,
.pf-field textarea:focus,
.pf-field select:focus,
.pf-timeslot-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,.15);
}

.pf-field textarea { resize: vertical; min-height: 110px; }

/* Select arrow */
.pf-field select,
.pf-timeslot-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

/* HTML text blocks */
.pf-field-html .pf-html-text {
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    margin: 6px 0 0;
    padding: 0;
}

/* Radio & Checkbox groups */
.pf-radio-group,
.pf-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.pf-radio-label,
.pf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #fafafa;
    transition: background .15s, border-color .15s;
}
.pf-radio-label:hover,
.pf-checkbox-label:hover {
    background: #f0f6ff;
    border-color: #2271b1;
}
.pf-radio-label input,
.pf-checkbox-label input {
    width: 16px; height: 16px; flex-shrink: 0;
    accent-color: #2271b1;
}

/* Timeslots */
.pf-timeslots { }
.pf-timeslot-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.pf-timeslot-nr {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    min-width: 80px;
}

/* Submit */
.pf-submit-wrap { justify-content: flex-start; margin-top: 8px; }
.pf-submit-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.pf-submit-btn:hover  { background: #135e96; }
.pf-submit-btn:active { transform: scale(.98); }
.pf-submit-btn:disabled { background: #aaa; cursor: not-allowed; }

/* Conditional fields hidden by default */
.pf-conditional { transition: opacity .25s; }
.pf-conditional.pf-hidden { display: none !important; }

@media (max-width: 600px) {
    .pf-field-half { width: 100%; }
    .pf-timeslot-row { flex-direction: column; align-items: flex-start; }
    .pf-timeslot-nr { min-width: auto; }
}
