/* Hero Section */
.apply-hero {
    position: relative;
    height: 50vh;
    min-height: auto;
    margin-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 2rem;
}

.apply-hero h1 {
    font-family: 'Michroma',sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 1.5rem;
    text-shadow:
        0 0 20px rgba(255, 215, 0, 0.7),
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3);
}

.apply-hero p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .apply-hero h1 {
        font-size: 4rem;
    }
    
    .apply-hero p {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .apply-hero h1 {
        font-size: 3.5rem;
    }
    
    .apply-hero p {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .apply-hero {
        height: 40vh;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .apply-hero h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .apply-hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .apply-hero {
        height: 35vh;
    }
    
    .apply-hero h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .apply-hero p {
        font-size: 1rem;
    }
}

/* Info Cards Section (Requirements & Departments) */
.info-cards-section {
    padding: 80px 0;
    background: var(--dark-bg);
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(255, 215, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.header-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--dark-bg);
    flex-shrink: 0;
}

.card-header h2 {
    font-family: 'Michroma',sans-serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 1px;
}

.card-body {
    padding: 35px;
}

/* Requirements Card Specific */
.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.requirement-item .req-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.req-content h3 {
    font-family: 'Michroma',sans-serif;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.req-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Departments Card Specific */
.department-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.department-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.department-item .dept-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.dept-content h3 {
    font-family: 'Michroma',sans-serif;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.dept-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dept-content ul li {
    color: var(--text-light);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
    transition: all 0.2s ease;
}

.dept-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.dept-content ul li:hover {
    padding-left: 25px;
    color: var(--primary-color);
}

/* Apply Section */
.apply-section {
    padding: 50px 0;
    background: var(--dark-bg);
}

.apply-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* Requirements Card */
.requirements-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    height: fit-content;
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: sticky;
    top: 100px;
}

.requirements-list {
    list-style: none;
    margin-bottom: 30px;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.requirements-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.available-positions h3 {
    color: var(--primary-color);
    font-family: 'Michroma',sans-serif;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.position-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.position-tag {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* Application Form */
.application-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.application-form h2 {
    color: var(--primary-color);
    font-family: 'Michroma',sans-serif;
    margin-bottom: 30px;
}

.form-wrapper h2,
.form-wrapper > p {
    text-align: center;
}

.form-wrapper > p {
    color: var(--text-light);
    margin-bottom: 40px;
}

#applyForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-section {
    margin-bottom: 0;
}

.form-section:nth-child(1) {
    grid-column: 1;
}

.form-section:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.form-section:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.form-section:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.submit-btn {
    grid-column: 1 / -1;
}

#formMessage {
    grid-column: 1 / -1;
}

.form-section h3 {
    color: var(--text-light);
    font-family: 'Michroma',sans-serif;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.form-group input[type="file"] {
    padding: 10px;
    background: transparent;
    border: 2px dashed rgba(255, 215, 0, 0.2);
    cursor: pointer;
}

.form-group input[type="file"]::-webkit-file-upload-button {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-family: 'Michroma',sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .apply-wrapper {
        grid-template-columns: 1fr;
    }

    .requirements-card {
        position: static;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-header {
        padding: 25px;
        gap: 15px;
    }

    .header-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .application-form {
        padding: 30px 20px;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

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

/* تحسينات للهواتف النقالة */
@media (max-width: 768px) {
    /* Hero Section */
    .apply-hero {
        height: 30vh;
        margin-top: 60px;
    }

    .apply-hero h1 {
        font-size: 2rem;
        letter-spacing: 2px;
        padding: 0 15px;
    }

    .apply-hero p {
        font-size: 1rem;
        padding: 0 20px;
    }

    /* Info Cards Section */
    .info-cards-section {
        padding: 40px 0;
    }

    .info-cards-grid {
        padding: 0 15px;
    }

    .card-header {
        padding: 20px;
        gap: 12px;
        flex-direction: row;
        text-align: left;
    }

    .header-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .card-header h2 {
        font-size: 1.3rem;
    }

    .card-body {
        padding: 20px;
    }

    .requirement-item {
        flex-direction: row;
        text-align: left;
        gap: 12px;
        padding: 15px;
        margin-bottom: 20px;
        border-left: 3px solid var(--primary-color);
        border-top: none;
    }

    .requirement-item:hover {
        transform: translateY(-3px);
    }

    .req-content h3,
    .dept-content h3 {
        font-size: 1.1rem;
    }

    .department-item {
        flex-direction: row;
        gap: 15px;
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .dept-content {
        width: 100%;
    }

    .dept-content ul li {
        font-size: 0.95rem;
    }

    /* Application Form Grid */
    #applyForm {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-section:nth-child(1),
    .form-section:nth-child(2),
    .form-section:nth-child(3),
    .form-section:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }

    /* Apply Section */
    .apply-section {
        padding: 40px 0;
    }

    .apply-wrapper {
        padding: 0 15px;
    }

    /* Requirements Card */
    .requirements-card {
        padding: 20px;
        margin-bottom: 30px;
    }

    .requirements-list li {
        gap: 10px;
        font-size: 0.9rem;
    }

    .position-tags {
        gap: 8px;
    }

    .position-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Application Form */
    .application-form {
        padding: 20px;
        border-radius: 15px;
    }

    .application-form h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .form-section {
        margin-bottom: 30px;
    }

    .form-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

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

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .form-group input[type="file"] {
        padding: 8px;
    }

    .form-group input[type="file"]::-webkit-file-upload-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .submit-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

/* تحسينات إضافية للشاشات الأصغر */
@media (max-width: 480px) {
    .apply-hero h1 {
        font-size: 1.8rem;
    }

    .application-form h2 {
        font-size: 1.3rem;
    }

    .form-group input[type="file"] {
        font-size: 0.8rem;
    }

    .position-tags {
        justify-content: center;
    }

    .requirements-list {
        padding-left: 0;
    }

    .requirements-list li {
        font-size: 0.85rem;
    }
}

/* إضافة أنماط رسائل النموذج */
.form-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.success-message,
.error-message {
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.success-message i,
.error-message i {
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* أنماط مؤشر التحميل */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Media Queries */
/* Large Screens (1400px and up) */
@media screen and (min-width: 1400px) {
    .apply-wrapper {
        max-width: 1400px;
        margin: 0 auto;
        grid-template-columns: 350px 1fr;
        gap: 60px;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Desktop and Laptops (1200px to 1399px) */
@media screen and (max-width: 1399px) {
    .apply-wrapper {
        grid-template-columns: 320px 1fr;
        gap: 40px;
    }
}

/* Tablets and Small Laptops (992px to 1199px) */
@media screen and (max-width: 1199px) {
    .apply-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }

    .requirements-card {
        padding: 25px;
    }
}

/* Tablets (768px to 991px) */
@media screen and (max-width: 991px) {
    .apply-hero {
        height: 35vh;
    }

    .apply-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .requirements-card {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (767px and down) */
@media screen and (max-width: 767px) {
    .apply-hero {
        height: 30vh;
        margin-top: 60px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .apply-hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .application-form {
        padding: 20px;
    }

    .form-section h3 {
        font-size: 1.2rem;
    }

    .submit-btn {
        width: 100%;
        padding: 12px 25px;
    }
}

/* Small Mobile (480px and down) */
@media screen and (max-width: 480px) {
    .apply-hero {
        height: 25vh;
    }

    .apply-hero h1 {
        font-size: 1.8rem;
    }

    .apply-hero p {
        font-size: 0.9rem;
    }

    .requirements-card {
        padding: 15px;
    }

    .application-form h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .requirements-list li {
        font-size: 0.85rem;
        gap: 8px;
    }

    .position-tag {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px;
        font-size: 0.85rem;
    }

    .success-message,
    .error-message {
        padding: 10px;
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile (360px and down) */
@media screen and (max-width: 360px) {
    .apply-hero h1 {
        font-size: 1.5rem;
    }

    .application-form h2 {
        font-size: 1.2rem;
    }

    .submit-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
} 