/* Contact Page Design */

/* Contact Hero Section */
.contact-hero {
    height: 60vh;
    background: linear-gradient(rgba(249, 122, 0, 0.8), rgba(56, 102, 65, 0.8)),
                url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?w=1920&h=1080&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 76px;
}

.contact-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-hero .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* قسم الاتصال */
.contact-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

/* Contact Form Card */
.contact-form-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    height: 100%;
}

/* Form Header */
.form-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f97a00;
}

.form-header .section-title i {
    color: #f97a00;
    font-size: 1.8rem;
}

.form-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.form-subtitle i {
    color: #f97a00;
    font-size: 0.9rem;
}

.contact-form-card .section-title {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Form improvements */
.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #ffffff;
    width: 100%;
    display: block;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 122, 0, 0.1);
    background: #ffffff;
    outline: none;
}

.contact-form-card .form-control:hover,
.contact-form-card .form-select:hover {
    border-color: #c0c0c0;
}

.contact-form-card .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.contact-form-card .form-label i {
    color: #f97a00;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.contact-form-card .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-form-card .form-check-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.contact-form-card .form-check-label i {
    color: #f97a00;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    width: 14px;
    text-align: center;
}

.contact-form-card .btn-primary {
    background: #f97a00;
    border: 2px solid #f97a00;
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.contact-form-card .btn-primary i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.contact-form-card .btn-primary:hover {
    background: #e86a00;
    border-color: #e86a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 122, 0, 0.3);
    color: white;
}

.contact-form-card .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(249, 122, 0, 0.2);
}

/* بطاقة معلومات الاتصال */
.contact-info-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    height: fit-content;
}

.contact-info-card h3 {
    color: #f97a00;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.contact-info-card h3 i {
    color: #f97a00;
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h5 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.contact-details small {
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
    display: block;
    margin-top: 0.25rem;
}

.phone-link,
.email-link {
    color: #f97a00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-link:hover,
.email-link:hover {
    color: #e86a00;
    text-decoration: underline;
}

.phone-link:active,
.email-link:active {
    color: #d55a00;
}

/* Quick Contact Card */
.quick-contact-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.quick-contact-card h4 {
    color: #f97a00;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.quick-contact-card h4 i {
    color: #f97a00;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f97a00;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid #f97a00;
    margin-bottom: 0.5rem;
}

.quick-link:hover {
    background: #e86a00;
    border-color: #e86a00;
    color: white;
    transform: translateX(5px);
    text-decoration: none;
}

.quick-link:active {
    transform: translateX(2px);
}

.quick-contact-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.quick-contact-note small {
    color: #6c757d;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-contact-note i {
    color: #f97a00;
    font-size: 0.75rem;
}

.quick-link i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Social Media Card */
.social-media-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.social-media-card h4 {
    color: #f97a00;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.social-media-card h4 i {
    color: #f97a00;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    width: 80px;
    height: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f97a00 0%, #e86a00 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
    border-color: #f97a00;
    box-shadow: 0 8px 25px rgba(249, 122, 0, 0.3);
}

.social-link i,
.social-link span {
    position: relative;
    z-index: 1;
}

.social-link:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(249, 122, 0, 0.2);
}

.social-link i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    display: block;
}

.social-link span {
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
}

/* Special colors for each social platform */
.social-link[href*="facebook"]:hover {
    border-color: #1877f2;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.social-link[href*="instagram"]:hover {
    border-color: #e4405f;
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.3);
}

.social-link[href*="twitter"]:hover {
    border-color: #1da1f2;
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.3);
}

.social-link[href*="youtube"]:hover {
    border-color: #ff0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.social-link[href*="linkedin"]:hover {
    border-color: #0077b5;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3);
}

/* قسم الخريطة */
.map-section {
    background: var(--bg-white);
    padding: 0;
}

.map-container {
    height: auto;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-placeholder {
    text-align: center;
    color: var(--text-dark);
}

.map-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.map-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content h4 i {
    color: #f97a00;
    font-size: 1.3rem;
}

.map-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content p i {
    color: #f97a00;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.map-content .btn {
    background: #f97a00;
    border: 2px solid #f97a00;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.map-content .btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.map-content .btn:hover {
    background: #e86a00;
    border-color: #e86a00;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(249, 122, 0, 0.3);
}

.map-content .btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(249, 122, 0, 0.2);
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.stars i {
    font-size: 1.1rem;
    margin-right: 0.25rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
}

.testimonial-content p i {
    color: #f97a00;
    font-size: 0.9rem;
    margin-top: 0.1rem;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.author-info h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.author-info h6 i {
    color: #f97a00;
    font-size: 1rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.author-info span i {
    color: #f97a00;
    font-size: 0.8rem;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

.faq-section .accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
}

.faq-section .accordion-button {
    background: var(--bg-white);
    border: none;
    font-weight: 600;
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.faq-section .accordion-button i {
    color: #f97a00;
    font-size: 1rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.faq-section .accordion-button:not(.collapsed) i {
    color: white;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.faq-section .accordion-body {
    padding: 1.5rem;
    background: var(--bg-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* تأثيرات التحميل */
.contact-form-card,
.contact-info-card,
.social-media-card {
    animation: fadeInUp 0.6s ease forwards;
}

.contact-form-card {
    animation-delay: 0.1s;
}

.contact-info-card {
    animation-delay: 0.2s;
}

.social-media-card {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-form-card {
        margin-bottom: 2rem;
    }
    
    .contact-info-card {
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-item i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-form-card {
        padding: 2rem;
    }
    
    .contact-info-card,
    .social-media-card,
    .quick-contact-card {
        padding: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .social-link {
        width: 70px;
        height: 70px;
        padding: 0.75rem;
    }
    
    .social-link i {
        font-size: 1.3rem;
    }
    
    .social-link span {
        font-size: 0.7rem;
    }
    
    .quick-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .quick-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        height: 50vh;
    }
    
    .contact-hero .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-item i {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .contact-info-card,
    .social-media-card,
    .quick-contact-card {
        padding: 1.5rem;
    }
    
    .contact-form-card .section-title {
        font-size: 1.5rem;
    }
    
    .map-content i {
        font-size: 3rem;
    }
    
    .map-content h4 {
        font-size: 1.3rem;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }
    
    .social-link {
        width: 60px;
        height: 60px;
        padding: 0.5rem;
    }
    
    .social-link i {
        font-size: 1.1rem;
        margin-bottom: 0.1rem;
    }
    
    .social-link span {
        font-size: 0.65rem;
    }
    
    .quick-links {
        flex-direction: column;
    }
    
    .quick-link {
        min-width: auto;
    }
}

/* Additional effects */
.contact-form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-info-card:hover,
.social-media-card:hover,
.quick-contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Button in footer */
.footer .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.footer .btn-outline-light:hover {
    background: white;
    color: #333;
    border-color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Form improvements */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

/* Ensure all buttons are visible */
.btn {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Ensure form controls are visible */
.form-control,
.form-select {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Fix any hidden elements */
.contact-form-card *,
.contact-info-card *,
.social-media-card *,
.quick-contact-card * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Loading effects */
.btn-primary:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary:disabled:hover {
    transform: none;
    background: #6c757d;
    border-color: #6c757d;
}

/* Force visibility for all interactive elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    border: 2px solid #e0e0e0 !important;
    background: #ffffff !important;
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #f97a00 !important;
    box-shadow: 0 0 0 3px rgba(249, 122, 0, 0.1) !important;
    outline: none !important;
}

/* Additional improvements */
.contact-section {
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f97a00, transparent);
}

/* Text effects */
.text-primary {
    color: #f97a00 !important;
}

.text-primary:hover {
    color: #e86a00 !important;
    text-decoration: none;
}

/* Section title icons */
.section-title i {
    color: #f97a00;
    font-size: 1.2em;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Testimonials section icon */
.testimonials-section .section-title i {
    color: #f97a00;
    font-size: 1.1em;
}

/* FAQ section icon */
.faq-section .section-title i {
    color: #f97a00;
    font-size: 1.1em;
}

/* Override any Bootstrap or other CSS that might hide elements */
.contact-page * {
    box-sizing: border-box;
}

.contact-page .btn,
.contact-page .form-control,
.contact-page .form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Ensure proper display for all elements */
.contact-page .row > * {
    display: block;
}

.contact-page .col-lg-8,
.contact-page .col-lg-4 {
    display: block;
    width: 100%;
}

@media (min-width: 992px) {
    .contact-page .col-lg-8 {
        width: 66.666667%;
    }
    .contact-page .col-lg-4 {
        width: 33.333333%;
    }
}
