/* Job Application Form - Same design as Funded Application */
.ahllf-container {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    max-width: 1100px;
    margin: 20px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.ahllf-step {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ahllf-step.active {
    display: block;
}

.grid { display: grid; gap: 16px; margin: 14px 0; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

label { display: flex; flex-direction: column; font-weight: 600; color: #222; }

input, select, textarea {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    background: white;
    color: black;
    outline: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

input:hover:not(.error), select:hover:not(.error), textarea:hover:not(.error) {
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

input:focus, select:focus, textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(0);
}

input.error, select.error, textarea.error {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1) !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-message {
    color: #e53e3e !important;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    background: #f9fafb;
    transition: all 0.2s ease;
    color: #374151;
    min-width: 80px;
    justify-content: flex-start;
}

.radio-option:hover { border-color: #9ca3af; background: #f3f4f6; }
.radio-option input[type="radio"] { margin: 0; width: 18px; height: 18px; cursor: pointer; accent-color: #3b82f6; flex-shrink: 0; }
.radio-option input[type="radio"]:checked + span { font-weight: 500; color: #1f2937; }

.radio-group-error {
    border: 1px solid #e53e3e !important;
    border-radius: 6px;
    padding: 4px;
    background: rgba(229, 62, 62, 0.05);
}
.radio-group-error .radio-option { border-color: #e53e3e; }

input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 15px;
    cursor: pointer;
    color: #374151;
}

input[type="file"]::-webkit-file-upload-button,
input[type="file"]::file-selector-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-right: 12px;
}
input[type="file"]::-webkit-file-upload-button:hover,
input[type="file"]::file-selector-button:hover { background: #2563eb; }

.file-input-helper { font-size: 13px; color: #6b7280; margin-top: 6px; display: block; }
textarea { min-height: 140px; resize: vertical; font-family: inherit; }

.btn-prev, .btn-next, .btn-pay {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-prev { background: #e2e8f0; color: #4a5568; }
.btn-prev:hover { transform: translateY(-2px); background: #cbd5e0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn-next { background: linear-gradient(135deg, #4c51bf, #667eea); color: white; box-shadow: 0 4px 15px rgba(76, 81, 191, 0.3); }
.btn-next:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(76, 81, 191, 0.4); }
.btn-pay { background: linear-gradient(135deg, #48bb78, #38a169); color: white; box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3); }
.btn-pay:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4); }

@media (max-width: 767px) {
    .ahllf-container { margin: 10px; padding: 15px; border-radius: 12px; }
    .form-wrapper { padding: 20px; border-radius: 12px; }
    .form-header h1 { font-size: 1.5rem !important; }
    .form-header p { font-size: 0.9rem !important; }
    .ahllf-stepper { flex-direction: column !important; gap: 16px; align-items: flex-start; margin-bottom: 30px; }
    .ahllf-stepper > div[style*="position:absolute"][style*="height:3px"], #stepperProgress { display: none !important; }
    .step-item { flex-direction: row !important; gap: 12px; align-items: center; width: 100%; }
    .step-number { width: 36px !important; height: 36px !important; font-size: 0.9rem !important; margin-bottom: 0 !important; border: 2px solid white !important; flex-shrink: 0; }
    .step-item.done .step-number { background: #48bb78 !important; color: white !important; }
    .step-item.done .step-label { color: #48bb78 !important; font-weight: 600 !important; }
    .step-item.active .step-number { background: #4c51bf !important; color: white !important; }
    .step-item.active .step-label { color: #4c51bf !important; font-weight: 700 !important; }
    .step-item:not(.active):not(.done) .step-number { background: #e2e8f0 !important; color: #a0aec0 !important; }
    .step-item:not(.active):not(.done) .step-label { color: #a0aec0 !important; font-weight: 500 !important; }
    .step-label { font-size: 0.9rem !important; text-align: left !important; }
    [style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 16px !important; }
    .grid.two, .grid.three { grid-template-columns: 1fr; }
    .radio-option { flex: 1; min-width: 0; }
    .btn-prev, .btn-next, .btn-pay { width: 100%; margin-bottom: 10px; }
    [style*="justify-content:space-between"], [style*="justify-content:flex-end"] { flex-direction: column !important; }
    input, select, textarea { font-size: 16px !important; }
    #job-app-success-alert, #gymparis-funded-success-alert { padding: 16px !important; }
    [style*="padding:24px"] { padding: 16px !important; }
    .form-header p { display: block !important; }
    .step-number { width: 35px !important; height: 35px !important; font-size: 0.9rem !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .ahllf-container { margin: 15px; padding: 20px; }
    .form-wrapper { padding: 30px; }
    .step-label { font-size: 0.75rem !important; }
    [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr 1fr !important; }
}

@media (min-width: 1440px) {
    .ahllf-container { max-width: 1200px; }
}
