/* Job Application Form Styles */

/* Main Layout */
.job-application-main {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 50px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow-x: auto;
    gap: 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    min-width: 100px;
    flex: 1;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 70%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-step.active:not(:last-child)::after,
.progress-step.completed:not(:last-child)::after {
    background: #28a745;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.progress-step.active .step-number {
    background: #28a745;
    color: white;
    animation: pulse-step 2s ease-in-out infinite;
}

.progress-step.completed .step-number {
    background: #28a745;
    color: white;
}

.progress-step span {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    white-space: nowrap;
}

.progress-step.active span,
.progress-step.completed span {
    color: #28a745;
    font-weight: 600;
}

@keyframes pulse-step {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
}

/* Application Container */
.application-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.application-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #28a745 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.application-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="form-pattern" width="15" height="15" patternUnits="userSpaceOnUse"><circle cx="7.5" cy="7.5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23form-pattern)"/></svg>');
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(-5px) translateY(-10px); }
    75% { transform: translateX(-15px) translateY(-3px); }
}

.application-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.application-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.position-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.position-info i {
    margin-right: 8px;
    color: #ffd700;
}

/* Form Styles */
.application-form {
    padding: 40px;
}

.form-section {
    margin-bottom: 40px;
}

.field-container {
    margin-bottom: 30px;
}

.field-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c5aa0;
    font-size: 1.1rem;
}

.field-label i {
    margin-right: 8px;
    color: #28a745;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: #28a745;
    background: white;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-input:invalid {
    border-color: #dc3545;
}

.field-help {
    margin-top: 8px;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.field-help i {
    margin-top: 2px;
    color: #28a745;
}

.field-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.field-error.show {
    display: block;
    animation: slideInError 0.3s ease;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Tips */
.form-tips {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-left: 4px solid #28a745;
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin-top: 20px;
}

.form-tips h4 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1rem;
}

.form-tips h4 i {
    margin-right: 8px;
    color: #ffd700;
}

.form-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-tips li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #555;
    line-height: 1.5;
}

.form-tips li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    gap: 20px;
}

.nav-btn {
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.nav-btn.primary {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    animation: pulse-primary 3s ease-in-out infinite;
}

.nav-btn.primary:hover {
    background: linear-gradient(45deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
}

.nav-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.nav-btn.secondary:hover {
    background: #e9ecef;
    color: #333;
    border-color: #dee2e6;
}

@keyframes pulse-primary {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
    }
}

/* Application Info Cards */
.application-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    color: #28a745;
    font-size: 1.2rem;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #28a745;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-application-main {
        padding: 100px 0 60px;
    }
    
    .progress-bar {
        padding: 20px;
        gap: 10px;
    }
    
    .progress-step {
        min-width: 80px;
    }
    
    .progress-step:not(:last-child)::after {
        display: none;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .progress-step span {
        font-size: 0.8rem;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .application-header {
        padding: 30px 20px;
    }
    
    .application-header h1 {
        font-size: 1.5rem;
    }
    
    .application-form {
        padding: 30px 20px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        width: 100%;
        min-width: auto;
    }
    
    .application-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .progress-bar {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .progress-step {
        min-width: 60px;
        margin-bottom: 10px;
    }
    
    .application-header h1 {
        font-size: 1.3rem;
    }
    
    .application-header p {
        font-size: 1rem;
    }
    
    .form-input {
        padding: 12px 15px;
    }
    
    .nav-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .job-application-main {
        background: white;
        padding: 20px 0;
    }
    
    .progress-bar,
    .form-navigation,
    .application-info {
        display: none;
    }
    
    .application-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .application-header {
        background: #f8f9fa !important;
        color: #333 !important;
    }
}
