/* Apply Now - Careers form styling (Contact Form 7 #27871) */

.apply-now-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.apply-now-form .anf-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E5E9ED;
}

.apply-now-form .anf-section:last-of-type,
.apply-now-form .anf-upload {
    border-bottom: none;
}

.apply-now-form .anf-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #142C47;
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid #00597D;
}

.apply-now-form .anf-position .anf-field label {
    font-size: 16px;
    font-weight: 700;
    color: #142C47;
}

.apply-now-form .anf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 20px;
}

.apply-now-form .anf-field {
    margin: 0;
}

.apply-now-form .anf-full {
    grid-column: 1 / -1;
}

.apply-now-form .anf-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #3A4A5C;
    margin-bottom: 6px;
}

.apply-now-form .anf-field input[type="text"],
.apply-now-form .anf-field input[type="tel"],
.apply-now-form .anf-field input[type="email"],
.apply-now-form .anf-field select,
.apply-now-form .anf-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #142C47;
    background-color: #FBFCFD;
    border: 1px solid #D5DCE3;
    border-radius: 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.apply-now-form .anf-field select {
    height: 44px;
    cursor: pointer;
}

.apply-now-form .anf-field textarea {
    min-height: 90px;
    resize: vertical;
}

.apply-now-form .anf-field input:focus,
.apply-now-form .anf-field select:focus,
.apply-now-form .anf-field textarea:focus {
    outline: none;
    border-color: #00597D;
    box-shadow: 0 0 0 3px rgba(0, 89, 125, 0.12);
    background-color: #FFFFFF;
}

/* Gender radio buttons */
.apply-now-form .wpcf7-radio {
    display: flex;
    gap: 24px;
    align-items: center;
    min-height: 44px;
}

.apply-now-form .wpcf7-radio .wpcf7-list-item {
    margin: 0;
}

.apply-now-form .wpcf7-radio .wpcf7-list-item-label {
    margin-left: 6px;
    font-weight: 400;
    color: #142C47;
}

/* File upload field */
.apply-now-form .anf-upload input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    background-color: #FBFCFD;
    border: 1px dashed #B7C2CD;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.apply-now-form .anf-upload small {
    display: block;
    margin-top: 6px;
    color: #7A8797;
    font-size: 12px;
}

/* Submit button */
.apply-now-form .anf-submit-row {
    text-align: center;
    margin-top: 10px;
}

.apply-now-form input.wpcf7-submit {
    background-color: #00597D;
    color: #FFFFFF;
    border: none;
    padding: 15px 48px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.apply-now-form input.wpcf7-submit:hover {
    background-color: #142C47;
}

.apply-now-form input.wpcf7-submit:active {
    transform: translateY(1px);
}

.apply-now-form input.wpcf7-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Validation error styling */
.apply-now-form .wpcf7-not-valid {
    border-color: #D64545 !important;
}

.apply-now-form .wpcf7-not-valid-tip {
    display: block;
    color: #D64545;
    font-size: 12px;
    margin-top: 4px;
}

.apply-now-form .wpcf7-response-output {
    max-width: 900px;
    margin: 20px auto 0;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 700px) {
    .apply-now-form .anf-grid {
        grid-template-columns: 1fr;
    }
    .apply-now-form input.wpcf7-submit {
        width: 100%;
    }
}
