

/* تصميم صفحة تواصل معنا المميز */
:root {
    --body-color: #ffffff;
    --nav-color: #668b8057;
    --side-nav: #e1e1e1;
    --text-color: #2d453d;
    --search-bar: #F2F2F2;
    --search-text: #010718;
    --title-background-color: linear-gradient(45deg, #e6b264, #2d453d 70%);
    --circle--color: #2d453d;
    --counter-color: #4a716489;
    --primary-color: #2d453d;
    --secondary-color: #e6b264;
    --border-color: rgba(45, 69, 61, 0.15);
    --form-bg: rgba(255, 255, 255, 0.95);
    --card-bg: rgba(255, 255, 255, 0.98);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

body.dark {
    --body-color: #18191A;
    --nav-color: #242526;
    --side-nav: #242526;
    --text-color: #CCC;
    --search-bar: #242526;
    --title-background-color: linear-gradient(45deg, #e6b264, #c1c2c2 70%);
    --circle--color: #dba245;
    --counter-color: #18191a;
    --primary-color: #dba245;
    --secondary-color: #e6b264;
    --border-color: rgba(219, 162, 69, 0.2);
    --form-bg: rgba(36, 37, 38, 0.95);
    --card-bg: rgba(36, 37, 38, 0.98);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}




.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* قسم العنوان */
.contact-section {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
    /* background: var(--body-color); */
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(230, 178, 100, 0.08) 10%, transparent 60%),
        radial-gradient(circle at 10% 90%, rgba(45, 69, 61, 0.08) 10%, transparent 60%);
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-title h1 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h1::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: var(--title-background-color);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-color);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 15px auto 0;
}

/* تصميم صندوق الاتصال */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.contact-info,
.contact-form-container {
    flex: 1;
    min-width: 300px;
}

/* بطاقة معلومات الاتصال */
.info-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-header {
    background: var(--title-background-color);
    padding: 25px 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header i {
    font-size: 28px;
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-details {
    padding: 30px;
}

.detail-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.detail-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.detail-item i {
    color: var(--secondary-color);
    font-size: 20px;
    margin-top: 4px;
}

.detail-item h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.detail-item p {
    color: #4a7164;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 30px 30px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
}

/* تصميم نموذج التواصل */
.contact-form-container {
    background: var(--form-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.contact-form-container:hover {
    box-shadow: var(--hover-shadow);
}

.contact-form {
    width: 100%;
}

.input-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    flex: 1;
    min-width: 200px;
    margin-bottom: 25px;
}

.message-group {
    margin-bottom: 35px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 2px 12px;
    border: none;
    border-bottom: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.form-group select::-ms-expand {
    display: none;
}

.form-group label {
    position: absolute;
    top: 15px;
    right: 2px;
    color: #4a7164;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group select:focus~label,
.form-group select:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -10px;
    right: 0;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.focus-border {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.4s ease;
}

.form-group input:focus~.focus-border,
.form-group select:focus~.focus-border,
.form-group textarea:focus~.focus-border {
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--title-background-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(45, 69, 61, 0.3);
    margin: 0 auto;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 69, 61, 0.4);
}

.submit-btn i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Media Queries */
@media (max-width: 992px) {
    .section-title h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 80px 0 60px;
    }

    .section-title h1 {
        font-size: 2.2rem;
    }

    .section-title p {
        font-size: 1.1rem;
    }

    .contact-form-container {
        padding: 30px 25px;
    }
}

@media (max-width: 576px) {
    .section-title h1 {
        font-size: 1.8rem;
    }

    .card-header {
        padding: 20px 25px;
    }

    .contact-details {
        padding: 25px;
    }

    .detail-item {
        gap: 12px;
    }

    .submit-btn {
        width: 100%;
    }
}