/**
 * Hiring Form CSS Styles
 * Extends base styles from form-signup.css
 */

/* ── Container ───────────────────────────────────────────────── */
.mac-hiring-form {
    background: #fff;
}

.mac-hiring-form .mac-form-subtitle {
    margin: 10px 0 20px;
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

.mac-hiring-form .mac-form-subtitle strong {
    color: #0073aa;
    font-weight: 600;
}

/* ── Grid Layout ─────────────────────────────────────────────── */
.mac-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mac-form-grid .mac-form-field {
    margin-bottom: 0; /* gap handles spacing */
}

/* Full width fields */
.mac-form-grid .mac-field-full {
    flex: 0 0 100%;
    width: 100%;
}

/* Half width fields */
.mac-form-grid .mac-field-half {
    flex: 0 0 calc(50% - 6px);
    width: calc(50% - 6px);
}

/* Responsive: stack on small screens */
@media (max-width: 560px) {
    .mac-form-grid .mac-field-half {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* ── Select field ─────────────────────────────────────────────── */
.mac-form-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    background-color: #fff;
    appearance: auto;
    font-size: inherit;
    line-height: 1.4;
}

.mac-form-field select.touched:not(:focus):invalid,
.mac-form-field select[style*="border-color: rgb(220"] {
    border-color: #dc3545;
}

.mac-form-field select.touched:not(:focus):valid {
    border-color: #28a745;
}

/* ── Number input ─────────────────────────────────────────────── */
.mac-form-field input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

.mac-form-field input[type="number"].touched:not(:focus):invalid {
    border-color: #dc3545;
}

.mac-form-field input[type="number"].touched:not(:focus):valid {
    border-color: #28a745;
}

/* ── Date input ───────────────────────────────────────────────── */
.mac-form-field input[type="date"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: inherit;
}

.mac-form-field input[type="date"].touched:not(:focus):invalid {
    border-color: #dc3545;
}

/* ── Textarea ─────────────────────────────────────────────────── */
.mac-form-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: inherit;
    font-family: inherit;
    resize: vertical;
    line-height: 1.5;
}

.mac-form-field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.mac-form-field textarea.touched:not(:focus):invalid {
    border-color: #dc3545;
}

/* ── Consent label ────────────────────────────────────────────── */
.mac-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.mac-consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}
