/* ==========================================================================
   WS ATS — Application Form Styles (Breakdance-compatible)
   ========================================================================== */

/* Form wrapper */
.breakdance-form {
    display: flex;
    flex-direction: column;
}

.breakdance-form--vertical {
    gap: 16px;
}

/* Field wrapper */
.breakdance-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Label */
.breakdance-form-field__label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

/* Required asterisk */
.breakdance-form-field__required {
    color: #cc0000;
    margin-left: 2px;
}

/* Inputs & textarea */
.breakdance-form-field__input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.breakdance-form-field__input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

textarea.breakdance-form-field__input {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* File input */
input[type="file"].breakdance-form-field__input {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Field description / hint */
.breakdance-form-field__description {
    margin: 0;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

/* Checkbox field */
.breakdance-form-field--checkbox .breakdance-form-field__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    color: #444;
    cursor: pointer;
}

/* ID-selector wint van alle Breakdance class-selectors */
#ws-ats-application-form input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    display: inline-block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    pointer-events: auto !important;
    border: 1px solid #999 !important;
    background: #fff !important;
    padding: 0 !important;
}

/* Footer / submit row */
.breakdance-form-footer {
    margin-top: 8px;
}

/* Submit button */
.breakdance-form-button__submit,
.button-atom--primary {
    display: inline-block;
    padding: 12px 28px;
    background-color: #1d2327;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.breakdance-form-button__submit:hover,
.button-atom--primary:hover {
    background-color: #2c353d;
}

.breakdance-form-button__submit:active,
.button-atom--primary:active {
    transform: translateY(1px);
}

.breakdance-form-button__submit:focus,
.button-atom--primary:focus {
    outline: 3px solid rgba(34, 113, 177, 0.5);
    outline-offset: 2px;
}

.breakdance-form-button__submit:disabled,
.button-atom--primary:disabled {
    background-color: #888;
    cursor: not-allowed;
    transform: none;
}

/* Success message */
.ws-ats-success {
    padding: 14px 18px;
    margin-bottom: 24px;
    background-color: #ecf7ed;
    border: 1px solid #46b450;
    border-left-width: 4px;
    border-radius: 4px;
    color: #1e4620;
    font-size: 15px;
    line-height: 1.5;
}

/* Error message */
.ws-ats-error {
    padding: 14px 18px;
    margin-bottom: 24px;
    background-color: #fde8e8;
    border: 1px solid #cc0000;
    border-left-width: 4px;
    border-radius: 4px;
    color: #7a0000;
    font-size: 15px;
    line-height: 1.5;
}

/* Inline veldvalidatie */
.ws-ats-field--invalid {
    border-color: #cc0000 !important;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.15) !important;
}

.ws-ats-field-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #cc0000;
    line-height: 1.4;
}

/* Closed position message */
.ws-ats-closed {
    padding: 14px 18px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-left: 4px solid #888;
    border-radius: 4px;
    color: #555;
    font-size: 15px;
}
