/* Import fonts to match theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Root Variables - Matching the main theme */
:root {
    --primary-color: #61197C;
    --primary-dark: #471160;
    --secondary-color: #5C5C5C;
    --warning-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --whatsapp-color: #25D366;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
}

@font-face {
    font-family: 'WSans';
    src: url('../fonts/WSansNew-Bold.woff') format('woff'), url('../fonts/wsans/WSansNew-Bold.woff.ttf') format('truetype');
    font-weight: bolder;
    font-style: normal;
}


/* Arabic Primary Font - Cairo Rakkas (Elegant Arabic with distinctive character) */

@font-face {
    font-family: 'Cairo';
    src: url('https://fonts.gstatic.com/s/cairo/v28/SLXgc1nY6HkvangtZmpQdkhzfH5lkSs2SgRjCAGMQ1z0hOA-a1biLD-H.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}

/* Global Styles */
body {
 /*   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;*/
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
}

/* Hero Section */
/*.hero-section {
    background: var(--primary-gradient);
    padding: var(--section-padding);
    color: var(--white);
    text-align: center;
}*/

/* Hero Section */
.hero-section {
    background: url('../images/heropic.jpg'); /* Replace with your actual PNG path */
    padding: 80px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="faq-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23faq-grain)"/></svg>');
        z-index: 0;
    }

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'WSans', sans-serif;
    color: ghostwhite !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

[dir="rtl"] .hero-title {
    font-family: 'Cairo';
}

.hero-subtitle {
    font-family: sans-serif;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

[dir="rtl"] .hero-subtitle {
    font-family: 'Cairo';
}

/* CTA Section - FAQ Quick Links using cta-section style */
.cta-section {
    background: var(--primary-gradient);
    padding: var(--section-padding);
    color: var(--white);
    text-align: center;
}

    .cta-section h2 {
        color: ghostwhite !important;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .cta-section p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        opacity: 0.9;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

.cta-buttons {
    margin-top: 2rem;
}

    .cta-buttons .btn {
        padding: 1rem 2rem;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
        margin: 0.5rem;
    }

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Contact Methods Grid */
.contact-method-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

    .contact-method-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        border-radius: 16px 16px 0 0;
        transition: all var(--transition-normal);
    }

    .contact-method-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--card-shadow-hover);
    }

.phone-card::before {
    background: linear-gradient(135deg, var(--success-color) 0%, #20a744 100%);
}

.whatsapp-card::before {
    background: linear-gradient(135deg, var(--whatsapp-color) 0%, #128c7e 100%);
}

.chat-card::before {
    background: linear-gradient(135deg, var(--info-color) 0%, #138496 100%);
}

.phone-card:hover {
    border-color: var(--success-color);
}

.whatsapp-card:hover {
    border-color: var(--whatsapp-color);
}

.chat-card:hover {
    border-color: var(--info-color);
}

.method-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.phone-card .method-icon {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.whatsapp-card .method-icon {
    background: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp-color);
}

.chat-card .method-icon {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
}

.contact-method-card:hover .method-icon {
    transform: scale(1.1);
}

.method-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.method-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.method-details {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    color: var(--gray-700);
}

    .detail-item i {
        font-size: var(--font-size-base);
        width: 20px;
        text-align: center;
    }

.method-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-normal);
    border: none;
    font-size: var(--font-size-base);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--white);
}

    .btn-whatsapp:hover {
        background-color: #128c7e;
        color: var(--white);
        transform: translateY(-2px);
    }

/* Quick Contact Form */
.quick-contact-form {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-200);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .form-header h2 {
        color: var(--primary-color);
        font-size: var(--font-size-2xl);
        font-weight: 600;
        margin-bottom: 0.75rem;
    }

    .form-header p {
        color: var(--gray-600);
        margin: 0;
    }

.form-floating {
    position: relative;
}

    .form-floating > .form-control:focus,
    .form-floating > .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(97, 25, 124, 0.25);
    }

    .form-floating > label {
        color: var(--gray-600);
    }

    .form-floating > .form-control:focus ~ label,
    .form-floating > .form-control:not(:placeholder-shown) ~ label,
    .form-floating > .form-select ~ label {
        color: var(--primary-color);
    }

.message-textarea {
    min-height: 120px !important;
    resize: vertical;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}


[dir="rtl"] .form-check .form-check-input {
    float: right;
    margin-left: 1.5em;
}

.form-check-label {
    color: var(--gray-700);
    font-size: var(--font-size-sm);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

    .form-actions .btn {
        padding: 0.875rem 2rem;
        font-weight: 500;
        border-radius: 8px;
        transition: all var(--transition-normal);
    }

/* Form Validation Styles */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.5-.4 1.4-1.08L6.7 2.9l.4-.3-.8-.8L4.8 3.3l-.9.7-1.1-.8L1.5 4.2z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* Email Modal */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}
.chat-button-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.chat-btn-with-label {
    width: 100%;
}

.ai-assistant-label {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #886cc2;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 6px rgba(136, 108, 194, 0.3);
    border: 2px solid white;
    z-index: 10;
    animation: aiPulse 2s infinite;
}

    .ai-assistant-label i {
        font-size: 11px;
    }

@keyframes aiPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(136, 108, 194, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 3px 8px rgba(136, 108, 194, 0.5);
    }
}

/* Alternative subtle glow effect */
.ai-assistant-label::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #886cc2;
    border-radius: 14px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-assistant-label {
        top: -6px;
        right: -6px;
        padding: 2px 6px;
        font-size: 9px;
    }

        .ai-assistant-label i {
            font-size: 10px;
        }
}
.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.email-templates {
    margin-bottom: 2rem;
}

    .email-templates h6 {
        color: var(--gray-700);
        font-weight: 600;
        margin-bottom: 1rem;
    }

.template-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .template-buttons .btn {
        font-size: var(--font-size-sm);
        padding: 0.5rem 1rem;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .hero-subtitle,
    .cta-section p {
        font-size: 1rem;
    }

    .contact-method-card {
        margin-bottom: 1.5rem;
    }

    .quick-contact-form {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

        .form-actions .btn {
            width: 100%;
        }

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

}
