/*=====================================================
EDG School - Recruitment System Styles
=======================================================*/

/* Recruitment Page Styles */
.recruitment-area {
    background: #f8f9fa;
}

.recruitment-content {
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.recruitment-header .site-title-tagline {
    background: var(--theme-color-light);
    color: var(--theme-color);
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.recruitment-header .site-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
    line-height: 1.2;
}

.recruitment-header .site-title span {
    color: var(--theme-color);
}

.recruitment-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    color: var(--color-white);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 15px;
}

.deadline-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff3cd;
    border: 2px solid var(--theme-color2);
    border-radius: 10px;
    padding: 15px;
    color: #856404;
    font-weight: 500;
}

.deadline-badge i {
    font-size: 24px;
    color: var(--theme-color2);
}

.deadline-badge strong {
    color: var(--theme-color);
    font-size: 18px;
}

.program-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-white);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--theme-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.program-item i {
    color: var(--theme-color);
    font-size: 20px;
    min-width: 24px;
}

.mission-box {
    background: linear-gradient(135deg, var(--theme-color-light), rgba(253, 163, 27, 0.1));
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px solid var(--theme-color);
}

.mission-box h3 {
    color: var(--theme-color);
    font-family: var(--heading-font);
    font-size: 24px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mission-box i {
    font-size: 28px;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--theme-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 3px solid var(--theme-color-light);
    padding-bottom: 15px;
}

.section-title i {
    font-size: 28px;
    color: var(--theme-color2);
}

.organization-item {
    text-align: center;
    padding: 25px;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.organization-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.org-icon {
    width: 70px;
    height: 70px;
    background: var(--theme-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid var(--theme-color);
}

.org-icon i {
    font-size: 32px;
    color: var(--theme-color);
}

.organization-item h4 {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 15px;
}

.profile-box {
    background: var(--color-white);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    border-top: 5px solid var(--theme-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-box:hover {
    transform: translateY(-3px);
}

.academic-profile {
    border-top-color: var(--theme-color);
}

.professional-profile {
    border-top-color: var(--theme-color2);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.academic-profile .profile-header i {
    color: var(--theme-color);
}

.professional-profile .profile-header i {
    color: var(--theme-color2);
}

.profile-header i {
    font-size: 28px;
}

.profile-header h4 {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 600;
    color: #2d3436;
    margin: 0;
}

.zone-recruitment {
    display: flex;
    justify-content: center;
}

.zone-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--color-white);
    padding: 20px 30px;
    border-radius: 50px;
    border: 2px solid var(--theme-color);
    font-weight: 600;
    color: var(--theme-color);
    font-size: 18px;
}

.zone-item i {
    font-size: 24px;
    color: var(--theme-color2);
}

.candidature-box {
    background: var(--color-white);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid var(--theme-color-light);
}

.candidature-details h4 {
    color: var(--theme-color);
    font-family: var(--heading-font);
    font-size: 22px;
    margin-bottom: 20px;
}

.candidature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.candidature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.candidature-list li:last-child {
    border-bottom: none;
}

.candidature-list i {
    color: var(--theme-color);
    font-size: 18px;
    min-width: 20px;
}

.contact-info {
    background: var(--theme-color-light);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--theme-color);
}

.contact-info h5 {
    color: var(--theme-color);
    margin-bottom: 15px;
    font-family: var(--heading-font);
    font-weight: 600;
}

.contact-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--theme-color);
    min-width: 20px;
}

.qr-section {
    text-align: center;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px dashed var(--theme-color-light);
}

.qr-section h5 {
    color: var(--theme-color);
    margin-bottom: 15px;
    font-family: var(--heading-font);
}

.qr-placeholder {
    padding: 20px;
    background: var(--color-white);
    border-radius: 10px;
    margin-top: 15px;
}

.qr-placeholder i {
    color: var(--theme-color-light);
    margin-bottom: 10px;
}

.benefit-box {
    background: var(--color-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.benefit-box h4 {
    color: var(--theme-color);
    font-family: var(--heading-font);
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-box i {
    color: var(--theme-color2);
    font-size: 24px;
}

.benefit-box ul {
    list-style: none;
    padding: 0;
}

.benefit-box li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.benefit-box li:last-child {
    border-bottom: none;
}

.benefit-box li::before {
    content: "✓";
    color: var(--theme-color);
    font-weight: bold;
    min-width: 16px;
    margin-top: 2px;
}

.mission-final {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    color: var(--color-white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.mission-final h4 {
    color: var(--color-white);
    font-family: var(--heading-font);
    font-size: 24px;
    margin-bottom: 15px;
}

.recruitment-cta {
    background: var(--theme-color-light);
    padding: 50px;
    border-radius: 20px;
    border: 3px solid var(--theme-color);
}

.cta-content h3 {
    color: var(--theme-color);
    font-family: var(--heading-font);
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    color: var(--body-text-color);
    margin-bottom: 25px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 600;
}

/* Application Form Styles */
.application-area {
    background: #f8f9fa;
}

.application-header .site-title-tagline {
    background: var(--theme-color-light);
    color: var(--theme-color);
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.application-header .site-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
    line-height: 1.2;
}

.application-header .site-title span {
    color: var(--theme-color);
}

.application-form-wrapper {
    background: var(--color-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section-title {
    color: var(--theme-color);
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--theme-color-light);
}

.form-section-title i {
    color: var(--theme-color2);
    font-size: 24px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3436;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--body-font);
    transition: all 0.3s ease;
    background: var(--color-white);
}

.form-control:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px var(--theme-color-light);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-check:hover {
    background: var(--theme-color-light);
    border-color: var(--theme-color);
}

.form-check-input {
    margin: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--theme-color);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-check-input:checked {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}

.form-check-label {
    font-size: 15px;
    color: #2d3436;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.4;
}

.form-submit {
    padding: 30px 0;
    border-top: 2px solid var(--theme-color-light);
    margin-top: 30px;
}

.form-note {
    color: var(--body-text-color);
    font-style: italic;
}

.form-note i {
    color: var(--theme-color);
    margin-right: 5px;
}

/* Loading state for form */
.theme-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

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

/* Application Messages Styles */
.application-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.application-success {
    background: rgba(22, 163, 74, 0.9);
}

.application-error {
    background: rgba(220, 53, 69, 0.9);
}

.application-message .container {
    max-width: 600px;
}

.application-message .success-content {
    background: var(--color-white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
}

.application-message .success-content h3 {
    color: var(--theme-color);
    font-family: var(--heading-font);
    font-size: 28px;
    margin-bottom: 20px;
}

.application-message .success-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .theme-btn {
    padding: 12px 25px;
    font-size: 15px;
}

.application-error .container {
    background: var(--color-white);
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid #dc3545;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease;
}

.application-error h4 {
    color: #dc3545;
    font-family: var(--heading-font);
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.application-error ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.application-error li {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid #dc3545;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .recruitment-content {
        padding: 25px;
    }
    
    .recruitment-header .site-title {
        font-size: 2rem;
    }
    
    .application-form-wrapper {
        padding: 25px;
    }
    
    .form-section-title {
        font-size: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .deadline-badge {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .organization-item {
        margin-bottom: 20px;
    }
    
    .profile-box {
        margin-bottom: 20px;
    }
    
    .benefit-box {
        margin-bottom: 20px;
    }
    
    .recruitment-cta {
        padding: 30px 20px;
    }
    
    .cta-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .recruitment-header .site-title {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .application-header .site-title {
        font-size: 1.75rem;
    }
    
    .program-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .section-title {
        font-size: 20px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .zone-item {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        text-align: center;
    }
    
    .form-section-title {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}