/* ===== Contact Page Professional Styles ===== */
/* Variables */
:root {
    --primary-color: #0c2f86;
    --secondary-color: #9aa3b5;
    --dark-bg: #0a1628;
    --light-bg: #f8f9fc;
    --white: #ffffff;
    --text-dark: #1a202c;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(12, 47, 134, 0.08);
    --shadow-md: 0 4px 16px rgba(12, 47, 134, 0.12);
    --shadow-lg: 0 8px 32px rgba(12, 47, 134, 0.16);
    --gradient-primary: linear-gradient(135deg, #0c2f86 0%, #1a47b8 100%);
    --gradient-accent: linear-gradient(135deg, #8f97a8 0%, #c2c7d3 100%);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Hero Contact Section ===== */
.hero-contact {
    position: relative;
    background: var(--gradient-primary);
    padding: 120px 0 100px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.hero-contact-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-modern i {
    font-size: 20px;
}

.hero-contact-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-contact-lead {
    font-size: 20px;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-contact-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-feature-item i {
    font-size: 18px;
    color: var(--secondary-color);
}

/* ===== Contact Main Section ===== */
.contact-main-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ===== Contact Form Card ===== */
.contact-form-card {
    background: var(--white);
    padding: 35px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(57, 25, 197, 0.3);
}

.form-header h2 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Modern Form ===== */
.modern-form {
    margin-top: 20px;
}

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

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(12, 47, 134, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230c2f86' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    padding-left: 45px;
}

/* ===== Fake reCAPTCHA ===== */
.recaptcha-wrapper {
    margin: 20px 0;
}

.fake-recaptcha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 18px;
    background: #f9fafb;
    transition: var(--transition);
}

.fake-recaptcha:hover {
    border-color: var(--primary-color);
}

.fake-recaptcha-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.fake-recaptcha-left input[type="checkbox"] {
    display: none;
}

.fake-checkbox {
    position: relative;
    width: 30px;
    height: 30px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.fake-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.fake-check {
    font-size: 20px;
    color: var(--white);
    display: none;
    font-weight: bold;
}

.fake-recaptcha.loading .fake-spinner {
    display: block;
}

.fake-recaptcha.verified .fake-checkbox {
    background: #48bb78;
    border-color: #48bb78;
}

.fake-recaptcha.verified .fake-check {
    display: block;
}

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

.fake-text {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

.fake-recaptcha-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fake-recaptcha-right img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.fake-recaptcha-right small {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.2;
}

/* ===== Submit Button ===== */
.btn-submit {
    width: 100%;
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(12, 47, 134, 0.25);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(12, 47, 134, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit i {
    font-size: 20px;
}

/* ===== Form Alerts ===== */
#formAlert .form-alert {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

#formAlert .form-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#formAlert .form-alert.error {
    background: #fdecea;
    color: #b91c1c;
    border: 1px solid #f5c6cb;
}

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

/* ===== Contact Info Sidebar ===== */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(33, 15, 154, 0.3);
}

.info-card-header h3 {
    font-size: 22px;
    color: var(--text-dark);
    font-weight: 700;
}

.info-card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ===== Location Items ===== */
.location-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light-bg);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.location-item i {
    color: var(--primary-color);
    font-size: 18px;
}

.visit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.visit-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #e6f2ff 0%, #f0f7ff 100%);
    border: 1px solid rgba(12, 47, 134, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.visit-tag i {
    font-size: 12px;
}

/* ===== Contact Items ===== */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    background: linear-gradient(135deg, #e6f2ff 0%, #f0f7ff 100%);
    transform: translateX(-5px);
}

.contact-item-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-item-text a,
.contact-item-text span {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item-text a:hover {
    color: var(--primary-color);
}

/* ===== Departments Section ===== */
.departments-section {
    padding: 80px 0;
    background: var(--white);
}

.section-head-center {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e6f2ff 0%, #f0f7ff 100%);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-badge i {
    font-size: 18px;
}

.section-title {
    font-size: 42px;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.department-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.department-card:hover::before {
    transform: scaleX(1);
}

.department-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(12, 47, 134, 0.25);
    transition: var(--transition);
}

.department-card:hover .department-icon {
    transform: scale(1.1) rotate(5deg);
}

.department-badge {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #4b06d5 0%, #0a047d 100%);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #f9f9fb;
    margin-bottom: 15px;
}

.department-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.department-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    min-height: 60px;
}

.department-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--gradient-accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(51, 17, 173, 0.3);
}

.department-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(244, 170, 27, 0.4);
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-title.light,
.section-subtitle.light {
    color: var(--white);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
    user-select: none;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.faq-question i {
    font-size: 16px;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 30px 25px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-contact {
        padding: 80px 0 60px;
        min-height: 400px;
    }
    
    .hero-contact-title {
        font-size: 36px;
    }
    
    .hero-contact-lead {
        font-size: 16px;
    }
    
    .contact-form-card {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .social-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-contact-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-feature-item {
        width: 100%;
        justify-content: center;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .fake-recaptcha {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
