﻿/* =============================================
   DCA.DCAWebSite.Site/wwwroot/css/contactus.css
   Contact Us Page Styles
   ============================================= */

/* ===== Contact Form Section ===== */
.contact-form-section {
    padding: 0 0 80px 0;
    background: #f8f9fa;
}

    .contact-form-section .container {
         
    }

    .contact-form-section .section-header {
        text-align: center;
        margin-bottom: 50px;
        margin-top: 0;
        /*padding-bottom: 20px;*/
        border-bottom: 3px solid #e8e1d8;
    }

        .contact-form-section .section-header h2 {
            font-size: 2.5rem;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 15px;
        }

.contact-form {
    background: #e8e1d8 !important;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.form-control {
    background: #efedeb !important;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

        .contact-form .form-row:has(.form-group:nth-child(2)) {
            grid-template-columns: 1fr 1fr;
        }

    .contact-form .form-group {
        display: flex;
        flex-direction: column;
    }

    .contact-form label {
        font-size: 1rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 10px;
    }

    .contact-form .form-control {
        padding: 15px 20px;
        font-size: 1rem;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-family: inherit;
    }

        .contact-form .form-control:focus {
            outline: none;
            border-color: #c41e3a;
            box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
        }

    .contact-form textarea.form-control {
        resize: vertical;
        min-height: 150px;
    }

    .contact-form .validation-message {
        color: #dc3545;
        font-size: 0.875rem;
        margin-top: 5px;
    }

    .contact-form .alert {
        padding: 15px 20px;
        border-radius: 8px;
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .contact-form .alert-success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .contact-form .alert-danger {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .contact-form .alert i {
        font-size: 1.25rem;
    }

    .contact-form .form-actions {
        margin-top: 35px;
        text-align: center;
    }

    .contact-form .btn-primary {
        padding: 15px 50px;
        font-size: 1.1rem;
        font-weight: 600;
        background: #c41e3a;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

        .contact-form .btn-primary:hover:not(:disabled) {
            background: #a01729;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
        }

        .contact-form .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

    .contact-form .spinner-border {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }

/* ===== Contact Channels Section ===== */
.contact-channels-section {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

    .contact-channels-section .overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
       /* background: rgba(0, 0, 0, 0.75);*/
    }

    .contact-channels-section .container {
        position: relative;
        z-index: 2;
    }

    .contact-channels-section .section-header {
        text-align: center;
        margin-bottom: 60px;
        
    }

        .contact-channels-section .section-header h2 {
            font-size: 2.5rem;
            font-weight: 700;
            color: #000000;
            margin-bottom: 15px;
        }

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 30px;
    max-width: 1320px;
    margin: 0 auto;
}

.channel-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

    .channel-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        background: #ffffff;
    }

.channel-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    /*background: linear-gradient(135deg, #c41e3a 0%, #8b1528 100%);*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.channel-card:hover .channel-icon {
    transform: scale(1.1) rotate(5deg);
}

.channel-icon i {
    font-size: 2.5rem;
    color: rgba(196, 30, 58, 1);
}

.channel-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.channel-value {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* ===== Contact Location Section ===== */
.contact-location-section {
    padding: 20px 0;
    background: #f8f9fa;
}

.location-wrapper {
    display: grid;
   /* grid-template-columns: 1fr 1fr;*/
    /*gap: 50px;*/
    align-items: center;
}

.location-map {
    width: 100%;
   /* height: 500px;*/
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

    .map-placeholder i {
        font-size: 4rem;
        color: #c41e3a;
    }

    .map-placeholder p {
        font-size: 1.2rem;
        color: #666;
        font-weight: 600;
    }

.location-info .section-header {
    margin-bottom: 40px;
}

    .location-info .section-header h2 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #1a1a1a;
    }

.locations-list {
    display: flex;
    
    gap: 30px;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #ffffff;
    width: -webkit-fill-available;
    width: stretch;
}

    .location-item:hover {
        background: #ffffff;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        transform: translateX(5px);
    }

.location-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, #e8e1d8 0%, #e8e1d8 100%);
    border-radius: 50%; /* Changed from 12px to 50% for circular shape */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .location-icon i {
        font-size: 1.8rem;
        color: #ffffff;
    }

.location-details h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.location-details p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* ===== FAQ Section ===== */
.contact-faq-section {
    padding: 20px 0 120px 0;
    background: #f8f9fa;
}

    .contact-faq-section .section-header {
        text-align: center;
        margin-bottom: 50px;
    }

        .contact-faq-section .section-header h2 {
            
            color: #1a1a1a;
        }

.faq-list {
   /* max-width: 900px;*/
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .faq-item:hover {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .faq-question:hover {
        background: #e8e1d8 !important;
    }

.faq-item.expanded .faq-question {
    background: #c41e3a;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    transition: color 0.3s ease;
}

.faq-item.expanded .faq-question h3 {
    color: #ffffff;
}

.faq-question i {
    font-size: 1.2rem;
    color: #c41e3a;
    transition: all 0.3s ease;
}

.faq-item.expanded .faq-question i {
    color: #ffffff;
    transform: rotate(180deg);
}

.faq-answer {
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 2px solid #e0e0e0;
    animation: fadeIn 0.3s ease;
}

    .faq-answer p {
        font-size: 1rem;
        color: #555;
        line-height: 1.8;
        margin: 0;
    }

/* ===== Loading State ===== */
.loading {
    text-align: center;
    padding: 50px 20px;
    font-size: 1.2rem;
    color: #666;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .location-wrapper {
        grid-template-columns: 1fr;
    }

    .location-map {
        height: 400px;
    }

    .channels-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 30px 20px;
    }

        .contact-form .form-row:has(.form-group:nth-child(2)) {
            grid-template-columns: 1fr;
        }

    .contact-channels-section .section-header h2,
    .contact-location-section .section-header h2,
    .contact-faq-section .section-header h2,
    .contact-form-section .section-header h2 {
        font-size: 2rem;
    }

    .channels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .location-item {
        flex-direction: column;
        text-align: center;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-answer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contact-form-section,
    .contact-channels-section,
    .contact-location-section,
    .contact-faq-section {
        padding: 50px 0;
    }

    .contact-form .btn-primary {
        width: 100%;
        padding: 15px 30px;
    }

    .channel-card {
        padding: 30px 20px;
    }
}



/* =============================================
   DCA.DCAWebSite.Site/wwwroot/css/arabic.css
   Add these styles to your existing arabic.css
   Arabic RTL Support for Contact Us Page
   ============================================= */

/* RTL Direction for Arabic */
[lang="ar"] .contact-us-page,
[dir="rtl"] .contact-us-page {
    direction: rtl;
}

/* ===== Contact Form Arabic Styles ===== */
[lang="ar"] .contact-form,
[dir="rtl"] .contact-form {
    text-align: right;
}

    [lang="ar"] .contact-form .form-control,
    [dir="rtl"] .contact-form .form-control {
        text-align: right;
        direction: rtl;
    }

    [lang="ar"] .contact-form .alert,
    [dir="rtl"] .contact-form .alert {
       direction: rtl;
    }

    [lang="ar"] .contact-form .btn-primary,
    [dir="rtl"] .contact-form .btn-primary {
       direction: rtl;
    }

/* ===== Contact Channels Arabic Styles ===== */
[lang="ar"] .channels-grid,
[dir="rtl"] .channels-grid {
    direction: rtl;
}

[lang="ar"] .channel-card,
[dir="rtl"] .channel-card {
    text-align: center; /* Keep centered for Arabic */
}

/* ===== Contact Location Arabic Styles ===== */
[lang="ar"] .location-wrapper,
[dir="rtl"] .location-wrapper {
    direction: rtl;
}

[lang="ar"] .location-item,
[dir="rtl"] .location-item {
    direction: rtl;
    text-align: right;
    flex-direction: row-reverse;
}

    [lang="ar"] .location-item:hover,
    [dir="rtl"] .location-item:hover {
        transform: translateX(-5px); /* Reverse hover effect */
    }

[lang="ar"] .location-details,
[dir="rtl"] .location-details {
    text-align: right;
}

/* ===== FAQ Arabic Styles ===== */
[lang="ar"] .faq-list,
[dir="rtl"] .faq-list {
    direction: rtl;
}

[lang="ar"] .faq-question,
[dir="rtl"] .faq-question {
   direction: rtl;
    text-align: right;
}

[lang="ar"] .faq-answer,
[dir="rtl"] .faq-answer {
    text-align: right;
}

/* ===== Arabic Font Improvements ===== */
[lang="ar"] .contact-form-section h2,
[lang="ar"] .contact-channels-section h2,
[lang="ar"] .contact-location-section h2,
[lang="ar"] .contact-faq-section h2,
[dir="rtl"] .contact-form-section h2,
[dir="rtl"] .contact-channels-section h2,
[dir="rtl"] .contact-location-section h2,
[dir="rtl"] .contact-faq-section h2 {
    font-family: 'JF Flat Regular', Arial, sans-serif;
    font-weight: 700;
}

[lang="ar"] .contact-form label,
[lang="ar"] .channel-name,
[lang="ar"] .location-details h3,
[lang="ar"] .faq-question h3,
[dir="rtl"] .contact-form label,
[dir="rtl"] .channel-name,
[dir="rtl"] .location-details h3,
[dir="rtl"] .faq-question h3 {
    font-family: 'JF Flat Regular', Arial, sans-serif;
    font-weight: 600;
}

[lang="ar"] .contact-form .form-control,
[lang="ar"] .channel-value,
[lang="ar"] .location-details p,
[lang="ar"] .faq-answer p,
[dir="rtl"] .contact-form .form-control,
[dir="rtl"] .channel-value,
[dir="rtl"] .location-details p,
[dir="rtl"] .faq-answer p {
    font-family: 'JF Flat Regular', Arial, sans-serif;
}

/* ===== Responsive Arabic Adjustments ===== */
@media (max-width: 768px) {
    [lang="ar"] .location-item,
    [dir="rtl"] .location-item {
        flex-direction: column;
        text-align: center;
    }
}
.channel-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.channel-card:hover .channel-icon img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
/* =============================================
   Contact Form Section Styles
   Add this to your contact form CSS file
   ============================================= */

 

    .contact-form-section .section-header h2 {
        font-size: 28px;
        font-weight: 600;
        color: #333;
        margin-bottom: 30px;
    }

.contact-form {
    max-width: 1320px;
    margin: 0 auto;
}

    .contact-form .form-row {
        display: flex;
        gap: 40px;
        flex-wrap: wrap;
    }

    .contact-form .form-column {
        flex: 1;
        min-width: 300px;
    }

    .contact-form .form-column-left {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact-form .form-column-right {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact-form .form-group {
        margin-bottom: 0;
    }

        .contact-form .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }

    .contact-form .form-control {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        color: #666;
        background-color: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        transition: border-color 0.2s ease;
    }

        .contact-form .form-control:focus {
            outline: none;
            border-color: #c41230;
            box-shadow: 0 0 0 2px rgba(196, 18, 48, 0.1);
        }

        .contact-form .form-control::placeholder {
            color: #999;
        }

    .contact-form .form-select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c41230' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        padding-right: 40px;
        cursor: pointer;
    }

    .contact-form textarea.form-control {
        resize: vertical;
        min-height: 150px;
    }

    .contact-form .form-actions {
        margin-top: 30px;
        text-align: center;
    }

    .contact-form .btn-send {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 32px;
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        background-color: #c41230;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

        .contact-form .btn-send:hover {
            background-color: #a00f28;
            transform: translateY(-1px);
        }

        .contact-form .btn-send:disabled {
            background-color: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        .contact-form .btn-send i {
            font-size: 12px;
        }

    /* Validation Messages */
    .contact-form .validation-message {
        color: #c41230;
        font-size: 12px;
        margin-top: 4px;
    }

/* Alert Messages */
.contact-form-section .alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.contact-form-section .alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.contact-form-section .alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.contact-form-section .alert i {
    font-size: 20px;
}

.contact-form-section .alert p {
    margin: 0;
}

/* Spinner */
.contact-form .spinner-border-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* RTL Support */
[dir="rtl"] .contact-form .form-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-form .form-select {
    background-position: left 16px center;
    padding-right: 16px;
    padding-left: 40px;
}

[dir="rtl"] .contact-form .btn-send i {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form .form-column {
        min-width: 100%;
    }

    .contact-form-section {
        padding: 40px 0;
    }
}