/* Job Applicant Manager - Frontend Styles */

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

.jam-form-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.jam-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
}

.jam-form-section {
    margin-bottom: 35px;
}

.jam-form-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.jam-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.jam-form-group {
    display: flex;
    flex-direction: column;
}

.jam-form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.jam-form-group .required {
    color: #e74c3c;
}

.jam-form-group input[type="text"],
.jam-form-group input[type="email"],
.jam-form-group input[type="tel"],
.jam-form-group input[type="number"] {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.jam-form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.jam-checkbox-group {
    flex-direction: row;
    align-items: center;
}

.jam-checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.jam-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.jam-file-upload input[type="file"] {
    padding: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jam-file-upload input[type="file"]:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.jam-file-upload small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

.jam-form-actions {
    margin-top: 30px;
    text-align: center;
}

.jam-submit-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    padding: 15px 50px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.jam-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.jam-submit-btn:active {
    transform: translateY(0);
}

.jam-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.jam-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: jam-spin 0.8s linear infinite;
}

@keyframes jam-spin {
    to { transform: rotate(360deg); }
}

.jam-form-response {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
}

.jam-form-response.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.jam-form-response.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jam-form-container {
        padding: 25px;
    }
    
    .jam-form-title {
        font-size: 24px;
    }
    
    .jam-form-row {
        grid-template-columns: 1fr;
    }
    
    .jam-submit-btn {
        padding: 12px 40px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .jam-application-form-wrapper {
        padding: 0 10px;
    }
    
    .jam-form-container {
        padding: 20px;
    }
}
