* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #FFFFFF;
    box-shadow: 0 0 20px rgba(0, 109, 171, 0.1);
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    padding-top: 20px;
    border-bottom: 3px solid #006DAB;
    position: relative;
    min-height: 80px;
}

.logo-container {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
}

.logo {
    max-height: 60px;
    max-width: 200px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 109, 171, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.header h1 {
    color: #006DAB;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 0;
}

.header h2 {
    color: #666;
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 0;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 109, 171, 0.05);
}

.form-section h3 {
    color: #006DAB;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #006DAB;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    color: #006DAB;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #FFFFFF;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #006DAB;
    box-shadow: 0 0 0 3px rgba(0, 109, 171, 0.1);
}

.form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #006DAB;
    background-color: #f8f9ff;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    background-color: #f0f4ff;
}

.file-hint {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    transform: scale(1.2);
    accent-color: #006DAB;
}

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

.submit-btn {
    background-color: #006DAB;
    color: #FFFFFF;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 109, 171, 0.2);
}

.submit-btn:hover {
    background-color: #005291;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 109, 171, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 109, 171, 0.2);
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    margin-top: 20px;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 10px;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    margin-top: 20px;
}

.error-message h3 {
    color: #721c24;
    margin-bottom: 10px;
}

.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #FFFFFF;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
        border-radius: 0;
    }
    
    .logo {
        max-height: 60px;
        max-width: 250px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header h2 {
        font-size: 1.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-height: 50px;
        max-width: 200px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .form-section {
        padding: 15px 10px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
    }
}

/* Print styles */
@media print {
    .submit-btn {
        display: none;
    }
    
    .container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
}
