/* Frontend Job Posting Form Styles */

.fciaa-jobs-form-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.fciaa-form {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
    border: 1px solid #e5e5e5;
}

/* Form Messages */
#fciaa-form-messages {
    margin-bottom: 25px;
}

.fciaa-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.fciaa-message-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.fciaa-message-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.fciaa-message-loading {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Form Sections */
.fciaa-form-section {
    margin-bottom: 35px;
}

.fciaa-form-section h3 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 3px solid #0073aa;
}

/* Form Rows */
.fciaa-form-row {
    margin-bottom: 24px;
}

.fciaa-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.fciaa-required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Multi-column layouts */
.fciaa-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fciaa-three-column {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.fciaa-form-column {
    display: flex;
    flex-direction: column;
}

.fciaa-form-column label {
    margin-bottom: 8px;
}

/* Input Fields */
.fciaa-input,
select.fciaa-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d1d1;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.5;
    box-sizing: border-box;
}

.fciaa-input:hover {
    border-color: #0073aa;
}

.fciaa-input:focus,
select.fciaa-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

/* Select specific styling */
select.fciaa-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

select.fciaa-input::-ms-expand {
    display: none;
}

/* Textarea */
textarea.fciaa-input {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Checkbox styling */
.fciaa-form-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    vertical-align: middle;
}

.fciaa-form-row label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
}

/* Field Description */
.fciaa-field-description {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

/* File Upload */
.fciaa-file-upload {
    position: relative;
}

.fciaa-file-upload input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #d1d1d1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fciaa-file-upload input[type="file"]:hover {
    border-color: #0073aa;
    background: #f8f9fa;
}

/* Form Actions */
.fciaa-form-actions {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.fciaa-submit-button {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #ffffff;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.fciaa-submit-button:hover {
    background: linear-gradient(135deg, #005a87 0%, #003d5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
}

.fciaa-submit-button:active {
    transform: translateY(0);
}

.fciaa-submit-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fciaa-spinner {
    color: #666;
    font-style: italic;
    font-size: 14px;
}

/* Validation Errors */
.fciaa-input.error {
    border-color: #dc3545;
}

.fciaa-error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fciaa-jobs-form-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .fciaa-form {
        padding: 25px 20px;
    }
    
    .fciaa-form-section h3 {
        font-size: 20px;
    }
    
    .fciaa-two-column,
    .fciaa-three-column {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .fciaa-form-column {
        margin-bottom: 20px;
    }
    
    .fciaa-submit-button {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 600px) {
    .fciaa-form {
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    .fciaa-input,
    select.fciaa-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Loading State */
.fciaa-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.fciaa-form.loading .fciaa-submit-button {
    background: #cccccc;
}

/* Success State */
.fciaa-form.submitted {
    text-align: center;
    padding: 60px 40px;
}

.fciaa-form.submitted h3 {
    color: #28a745;
    border: none;
    padding: 0;
    margin-bottom: 15px;
}

/* Datepicker Override */
.ui-datepicker {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border: 1px solid #d1d1d1 !important;
}

.ui-datepicker-header {
    background: #0073aa !important;
    color: white !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 10px !important;
}

.ui-datepicker-title {
    color: white !important;
}

.ui-datepicker-next,
.ui-datepicker-prev {
    color: white !important;
}

/* Placeholder Styling */
.fciaa-input::placeholder {
    color: #999;
    opacity: 1;
}

.fciaa-input::-ms-input-placeholder {
    color: #999;
}
