/*
 * AJB Application Form Styles
 * Clean white card — works with Avcon and Butler National themes.
 */

.ajba-wrap {
    font-family: inherit;
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Job header */
.ajba-job-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #bb0000;
}
.ajba-applying-for {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 .3rem;
}
.ajba-job-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #162138;
    margin: 0;
    line-height: 1.2;
}

/* Form card */
.ajba-form-card {
    background: #ffffff;
    border: 1px solid #e2e5ea;
    border-top: 4px solid #bb0000;
    border-radius: 6px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(22,33,56,.08);
}
.ajba-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #162138;
    margin: 0 0 .4rem;
}
.ajba-form-subtitle {
    font-size: .88rem;
    color: #6b7280;
    margin: 0 0 2rem;
}
.ajba-required-star { color: #bb0000; }
.ajba-optional { font-weight: 400; color: #9ca3af; font-size: .85em; }

/* Form rows */
.ajba-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 600px) { .ajba-form-row { grid-template-columns: 1fr; } }

.ajba-form-group { display: flex; flex-direction: column; gap: .4rem; }
.ajba-label {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #162138;
}
.ajba-input {
    padding: .75rem 1rem;
    border: 1px solid #d4d8de;
    border-radius: 4px;
    font-family: inherit;
    font-size: .95rem;
    color: #162138;
    background: #ffffff;
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
    box-sizing: border-box;
}
.ajba-input:focus {
    outline: none;
    border-color: #0553a2;
    box-shadow: 0 0 0 3px rgba(5,83,162,.12);
}

/* Work auth checkbox */
.ajba-form-group--auth { justify-content: flex-end; padding-bottom: .1rem; }
.ajba-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    cursor: pointer;
    font-size: .92rem;
    color: #162138;
    line-height: 1.5;
    padding: .75rem 1rem;
    border: 1px solid #d4d8de;
    border-radius: 4px;
    background: #f5f6f8;
    transition: border-color .2s;
}
.ajba-checkbox-label:hover { border-color: #0553a2; }
.ajba-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #0553a2;
    cursor: pointer;
}

/* File upload */
.ajba-file-wrap {
    position: relative;
    cursor: pointer;
}
.ajba-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.ajba-file-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 1.5rem 1rem;
    border: 2px dashed #d4d8de;
    border-radius: 4px;
    background: #f5f6f8;
    text-align: center;
    transition: all .2s ease;
    min-height: 110px;
}
.ajba-file-wrap:hover .ajba-file-display,
.ajba-file-wrap.has-file .ajba-file-display {
    border-color: #0553a2;
    background: #eef3fa;
}
.ajba-file-display svg {
    width: 28px;
    height: 28px;
    color: #9ca3af;
    flex-shrink: 0;
}
.ajba-file-wrap.has-file .ajba-file-display svg { color: #0553a2; }
.ajba-file-text {
    font-size: .88rem;
    font-weight: 600;
    color: #162138;
}
.ajba-file-hint {
    font-size: .75rem;
    color: #9ca3af;
}
.ajba-file-wrap.has-file .ajba-file-text { color: #0553a2; }

/* Messages */
.ajba-message {
    padding: 1rem 1.25rem;
    border-radius: 4px;
    font-size: .92rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.ajba-message--success {
    background: rgba(16,185,129,.1);
    border: 1px solid rgba(16,185,129,.3);
    color: #065f46;
}
.ajba-message--error {
    background: rgba(187,0,0,.07);
    border: 1px solid rgba(187,0,0,.2);
    color: #7f1d1d;
}

/* Form footer */
.ajba-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e5ea;
    flex-wrap: wrap;
}
.ajba-privacy-note {
    font-size: .78rem;
    color: #9ca3af;
    margin: 0;
    max-width: 420px;
    line-height: 1.5;
    flex: 1;
}
.ajba-submit-btn {
    padding: .85rem 2.5rem;
    background: #bb0000;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
    flex-shrink: 0;
}
.ajba-submit-btn:hover { background: #990000; transform: translateY(-1px); }
.ajba-submit-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

@media (max-width: 600px) {
    .ajba-form-card { padding: 1.5rem 1.25rem; }
    .ajba-form-footer { flex-direction: column; align-items: stretch; }
    .ajba-submit-btn { width: 100%; text-align: center; justify-content: center; }
}
