﻿/* ========================================
   Contact Us Section - اتصل بنا
   ======================================== */
.contact-us-section {
    padding: 5rem 2rem;
    position: relative;
}

.contact-us-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-us-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-us-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border: 1px solid rgba(26,115,167,0.15);
}

    .contact-us-badge svg {
        width: 18px;
        height: 18px;
    }

.contact-us-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.contact-us-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

/* Main Card - Branch-style */
.contact-us-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(93, 208, 240, 0.12);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

    .contact-us-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .contact-us-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 60px rgba(93, 208, 240, 0.18);
        border-color: rgba(93, 208, 240, 0.3);
    }

        .contact-us-card:hover::before {
            opacity: 1;
        }

/* Card Header */
.cu-card-header {
    padding: 2rem 2.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(93, 208, 240, 0.05) 0%, rgba(26, 115, 167, 0.05) 100%);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cu-header-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(26,115,167,0.2);
    transition: transform 0.3s ease;
}

.contact-us-card:hover .cu-header-icon {
    transform: scale(1.08);
}

.cu-header-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    stroke: white;
}

.cu-header-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.cu-header-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Card Body - Form */
.cu-card-body {
    padding: 2rem 2.5rem 2.5rem;
}

/* Form Rows */
.cu-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.cu-form-group {
    display: flex;
    flex-direction: column;
}

    .cu-form-group.cu-full {
        margin-bottom: 1.25rem;
    }

    .cu-form-group label {
        font-size: 0.9rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.5rem;
    }

.cu-required {
    color: #ef4444;
}

/* Input Fields */
.cu-input-wrap {
    position: relative;
}

    .cu-input-wrap input {
        width: 100%;
        padding: 0.875rem 2.75rem 0.875rem 1rem;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 0.95rem;
        font-family: inherit;
        background: #fafafa;
        transition: all 0.2s ease;
    }

        .cu-input-wrap input:focus {
            outline: none;
            border-color: var(--primary-color);
            background: white;
            box-shadow: 0 0 0 4px rgba(26,115,167,0.1);
        }

.cu-input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}

/* Phone Field */
.cu-phone-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .cu-phone-wrap input {
        width: 80%;
        padding: 0.875rem 1.5rem 0.875rem 1rem;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 0.95rem;
        font-family: inherit;
        background: #fafafa;
        transition: all 0.2s ease;
    }
.cu-input-wrap-phone {
    width: 100%;
    padding: 0.875rem 2.75rem 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.2s ease;
}

        .cu-phone-wrap input:focus {
            outline: none;
            border-color: var(--primary-color);
            background: white;
            box-shadow: 0 0 0 4px rgba(26,115,167,0.1);
        }

.cu-phone-prefix {
    position: absolute;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 0.75rem;
    border-left: 1px solid #e5e7eb;
    pointer-events: none;
}

.cu-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
}

.cu-country-code {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    direction: ltr;
}

/* Select Field */
.cu-select-wrap {
    position: relative;
}

    .cu-select-wrap select {
        width: 100%;
        padding: 0.875rem 1rem 0.875rem 2.5rem;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 0.95rem;
        font-family: inherit;
        background: #fafafa;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .cu-select-wrap select:focus {
            outline: none;
            border-color: var(--primary-color);
            background: white;
            box-shadow: 0 0 0 4px rgba(26,115,167,0.1);
        }

.cu-select-arrow {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}

/* Textarea */
.contact-us-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fafafa;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
}

    .contact-us-form textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 4px rgba(26,115,167,0.1);
    }

/* reCAPTCHA */
.cu-recaptcha {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.cu-recaptcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 320px;
}

.cu-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

    .cu-checkbox-label input[type="checkbox"] {
        width: 22px;
        height: 22px;
        border: 2px solid #d1d5db;
        border-radius: 4px;
        cursor: pointer;
        accent-color: var(--primary-color);
    }

.cu-recaptcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.cu-recaptcha-text {
    text-align: center;
    line-height: 1.2;
}

    .cu-recaptcha-text span {
        font-size: 0.75rem;
        color: #9ca3af;
        font-weight: 500;
    }

    .cu-recaptcha-text small {
        font-size: 0.65rem;
        color: #c4c4c4;
    }

/* Submit Button */
.cu-submit-btn {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(26,115,167,0.25);
    margin-left:auto ;
    margin-right :auto;
}

    .cu-submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 35px rgba(26,115,167,0.35);
    }

    .cu-submit-btn svg {
        transition: transform 0.3s ease;
    }

    .cu-submit-btn:hover svg {
        transform: translateX(-4px);
    }

/* Card Footer - Contact Info */
.cu-card-footer {
    padding: 1.5rem 2.5rem;
    background: #f8fafc;
    border-top: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.cu-footer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

    .cu-footer-item svg {
        width: 16px;
        height: 16px;
        color: var(--primary-color);
        flex-shrink: 0;
    }

    .cu-footer-item span {
        direction: ltr;
    }

/* Responsive */
@media (max-width: 768px) {
    .cu-form-row {
        grid-template-columns: 1fr;
    }

    .cu-card-body {
        padding: 1.5rem;
    }

    .cu-card-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .contact-us-title {
        font-size: 2rem;
    }

    .cu-recaptcha-box {
        min-width: auto;
        flex-direction: column;
        gap: 1rem;
    }

    .cu-card-footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
}
