/* ============================================================
   FaWoWa - forms.css
   Formulierstijlen voor contact, login, register, community
   ============================================================ */

/* Basis formulier layout */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group .form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Input velden */
.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background: white;
    transition: border-color var(--transition), box-shadow var(--transition);
    min-height: 48px; /* Touch-vriendelijk */
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39,174,96,0.15);
}

.form-control::placeholder { color: #94a3b8; }

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' fill='none' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Formulier aanmelden / login kaart */
.auth-card {
    max-width: 480px;
    margin: 4rem auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-card-header {
    background: var(--dark);
    padding: 2.5rem;
    text-align: center;
    border-bottom: 4px solid var(--primary);
}

.auth-card-header h1 {
    color: white;
    margin: 0;
    font-size: 1.6rem;
}

.auth-card-header p {
    color: rgba(255,255,255,0.7);
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.auth-card-body { padding: 2.5rem; }

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-links a { color: var(--primary); font-weight: 600; }

/* Submit knop in formulier (volledige breedte) */
.form-submit {
    width: 100%;
    height: 3.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

/* Checkbox / Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}
.form-check label { font-weight: 400; cursor: pointer; line-height: 1.5; }

/* Formulier foutmeldingen */
.form-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Contact formulier layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.contact-sidebar {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 2.5rem;
    color: white;
}

.contact-sidebar h2 { color: white; }
.contact-sidebar p { color: rgba(255,255,255,0.8); }

/* Mobiel */
@media (max-width: 768px) {
    .auth-card { margin: 2rem 1rem; }
    .auth-card-body { padding: 1.5rem; }
    .auth-card-header { padding: 2rem 1.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-sidebar { order: -1; }
    .form-control { font-size: 16px; } /* Voorkomt iOS auto-zoom */
}
