/**
 * Careers Form Frontend Styles
 *
 * @package Standalone_Careers_Form
 * @version 1.0.0
 */

/* Careers Form Wrapper */
.careers-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.careers-form-wrapper.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Form Controls */
.careers-form .form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.careers-form .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.careers-form .form-control:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 115, 170, 0.15);
}

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

/* Form Text/Help Text */
.careers-form .form-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* Required Field Indicator */
.text-danger {
    color: #dc3545;
}

/* Input Group (for file upload) */
.input-group {
    display: flex;
}

.input-group .form-control {
    flex: 1;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-left: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.input-group-text:hover {
    background: #e9ecef;
}

/* Resume Validation Message */
#resume-validation-message {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

#resume-validation-message.alert {
    display: block;
}

#resume-validation-message.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#resume-validation-message.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Form Message (Success/Error) */
.form-message {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.form-message.alert {
    display: block;
}

.form-message.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Submit Button */
.careers-form .btn-primary {
    background: #0073aa;
    border: none;
    color: #fff;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.careers-form .btn-primary:hover {
    background: #005a87;
}

.careers-form .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Button Loading State */
.button-loading {
    display: none;
}

.button-loading.d-none {
    display: none;
}

.button-loading:not(.d-none) {
    display: inline-block;
}

/* Spinner */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.15em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Row/Col Grid System (Bootstrap-like) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Margin Bottom Utility */
.mb-3 {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 767px) {
    .careers-form-wrapper {
        padding: 20px;
    }

    .careers-form .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .careers-form .btn-primary {
        width: 100%;
    }
}

/* Accessibility */
.careers-form input:focus,
.careers-form textarea:focus,
.careers-form select:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .careers-form .btn-primary,
    .careers-form .form-message {
        display: none;
    }
}
