/* Application Page Styles */

.application-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 30px 0;
}

.application-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 40px 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.application-hero-content {
    text-align: center;
    color: white;
}

.application-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 800;
}

.application-hero h1 i {
    margin-right: 12px;
}

.application-hero p {
    font-size: 18px;
    opacity: 0.95;
}

/* Form Container */
.application-form-container {
    background: white;
    border-radius: 15px;
    padding: 35px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-header i {
    font-size: 26px;
    color: var(--primary-color);
}

.section-header h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 0;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Upload Boxes */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.upload-box {
    position: relative;
}

.upload-box input[type="file"] {
    display: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
    min-height: 200px;
}

.upload-label:hover {
    border-color: var(--secondary-color);
    background: #eff6ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-text {
    text-align: center;
}

.upload-text strong {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.upload-text span {
    display: block;
    color: var(--text-light);
    margin-bottom: 6px;
    font-size: 14px;
}

.upload-text small {
    display: block;
    color: #9ca3af;
    font-size: 12px;
}

.upload-preview {
    margin-top: 15px;
    text-align: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.upload-preview .file-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 8px;
    color: #166534;
    font-weight: 600;
}

.form-note {
    background: #eff6ff;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: start;
    gap: 12px;
    margin-top: 20px;
}

.form-note i {
    color: var(--secondary-color);
    font-size: 20px;
    margin-top: 2px;
}

.form-note p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-group label {
    color: var(--text-dark);
    line-height: 1.6;
    cursor: pointer;
}

/* Submit Section */
.form-submit {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-color), #ef4444);
    color: white;
    border: none;
    padding: 15px 45px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.submit-note {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 14px;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-content {
    background: white;
    padding: 45px 40px;
    border-radius: 20px;
    max-width: 550px;
    text-align: center;
    animation: slideUp 0.5s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease 0.3s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-icon i {
    font-size: 50px;
    color: white;
}

.success-content h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.success-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 15px;
}

.success-info {
    background: #f9fafb;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
    color: var(--text-dark);
    font-weight: 600;
}

.info-item i {
    color: var(--primary-color);
    font-size: 20px;
}

.btn-close-modal {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .application-page {
        padding: 20px 0;
    }
    
    .application-form-container {
        padding: 25px 20px;
    }
    
    .application-hero {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .application-hero h1 {
        font-size: 28px;
    }
    
    .form-grid,
    .upload-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .form-section {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }
    
    .success-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .section-header h3 {
        font-size: 18px;
    }
    
    .upload-label {
        min-height: 180px;
        padding: 25px 15px;
    }
}

@media (max-width: 480px) {
    .application-hero {
        padding: 25px 15px;
    }
    
    .application-hero h1 {
        font-size: 24px;
    }
    
    .application-hero p {
        font-size: 15px;
    }
    
    .application-form-container {
        padding: 20px 15px;
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
    }
}
