/* Hero Section */
.contact-hero {
    height: 60vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 215, 0, 0.03) 2px,
            rgba(255, 215, 0, 0.03) 4px
        );
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.contact-hero h1 {
    font-family: 'Michroma',sans-serif;
    font-size: 4.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    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);
}

.contact-hero p {
    font-size: 1.8rem;
    color: var(--text-light);
    letter-spacing: 2px;
}

/* Contact Info Cards */
.contact-info-section {
    padding: 80px 0;
    background: var(--dark-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.contact-card:hover {
    transform: translateY(-10px);
}

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

.card-icon i {
    font-size: 1.8rem;
    color: var(--dark-bg);
}

.contact-card h3 {
    color: var(--primary-color);
    font-family: 'Michroma',sans-serif;
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-5px);
}

/* Contact Form & Map */
.contact-main {
    padding: 50px 0;
    background: var(--dark-bg);
}

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

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

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

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

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

.form-group input,
.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 textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.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;
}

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

/* Map Styles */
.map-container {
    position: relative;
    height: 100%;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 20px;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    max-width: 300px;
}

.map-overlay h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.map-overlay p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--dark-bg);
}

.faq-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Michroma',sans-serif;
}

.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    color: var(--text-light);
    font-size: 1.1rem;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

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

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

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

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

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

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

    /* Contact Info Cards */
    .contact-info-section {
        padding: 40px 20px;
    }

    .contact-grid {
        gap: 20px;
    }

    .contact-card {
        padding: 20px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 1.5rem;
    }

    /* Contact Form & Map */
    .contact-main {
        padding: 30px 20px;
    }

    .contact-wrapper {
        gap: 30px;
    }

    .contact-form {
        padding: 20px;
    }

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

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

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

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

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

    /* Map Styles */
    .map-container {
        height: 300px;
    }

    .map-overlay {
        top: 10px;
        left: 10px;
        padding: 15px;
        max-width: 250px;
    }

    .map-overlay h3 {
        font-size: 1rem;
    }

    .map-overlay p {
        font-size: 0.8rem;
    }

    /* FAQ Section */
    .faq-section {
        padding: 40px 20px;
    }

    .faq-section h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}

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

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .contact-card h3 {
        font-size: 1.2rem;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    .map-overlay {
        max-width: 200px;
    }
}

/* Add font styles */
.contact-hero h1,
.contact-card h3,
.faq-section h2,
.faq-question h3 {
    font-family: 'Michroma',sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.contact-hero p,
.contact-card p,
.contact-form label,
.contact-form input,
.contact-form textarea,
.faq-answer p {
    font-family: 'Rajdhani', sans-serif;
}

/* تحديث أنماط الأزرار */
.submit-btn {
    font-family: 'Michroma',sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

/* تحديث أنماط العناوين */
.contact-hero h1 {
    font-weight: 700;
    letter-spacing: 2px;
}

.contact-card h3 {
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* تحديث أنماط النموذج */
.form-group label {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

/* Form Messages */
.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
}

.success-message {
    background-color: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.error-message {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Media Queries */
/* Large Screens (1400px and up) */
@media screen and (min-width: 1400px) {
    .contact-wrapper {
        max-width: 1400px;
        margin: 0 auto;
        gap: 60px;
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop and Laptops (1200px to 1399px) */
@media screen and (max-width: 1399px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .map-container {
        height: 450px;
    }
}

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

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

    .map-container {
        height: 400px;
    }
}

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    .map-container {
        height: 300px;
    }

    .submit-btn {
        width: 100%;
    }
}

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

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

    .contact-card {
        padding: 15px;
    }

    .map-overlay {
        position: relative;
        top: auto;
        left: auto;
        max-width: 100%;
        margin-top: 15px;
    }
}