/* Contact Page Styles - Updated to match main design */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

/* Page Header */
.page-header {
    background-color: var(--bg-light);
    padding: 80px 0 50px;
    text-align: center;
    margin-top: 30px;
    position: relative;
}

.page-title {
    font-size: 56px;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: -2px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--primary-color);
}

.breadcrumb {
    margin-top: 35px;
    font-size: 16px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

/* Contact Page Layout */
.contact-page {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

/* Alert Messages */
.alert {
    padding: 20px 25px;
    margin-bottom: 30px;
    border-left: 4px solid;
    font-size: 15px;
    position: relative;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: var(--accent-color);
    color: #991b1b;
}

.alert h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.alert ul {
    margin: 0;
    padding-right: 20px;
    list-style: arabic-indic;
}

.alert ul li {
    margin-bottom: 5px;
}

/* Contact Info Section */
.contact-info-section {
    margin-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Contact Info */
.contact-info h2 {
    font-size: 36px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.contact-info > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.info-icon i {
    font-size: 20px;
    color: var(--secondary-color);
}

.info-item:hover .info-icon {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.info-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.info-content p {
    color: var(--text-light);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

.info-content span {
    display: block;
    color: var(--text-light);
    font-size: 15px;
    margin: 5px 0;
    line-height: 1.6;
}

/* Social Contact */
.social-contact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.social-contact h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: var(--bg-light);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 18px;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    padding: 40px;
    transition: var(--transition);
}

.contact-form-wrapper:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h2 {
    font-size: 36px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.contact-form-wrapper > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 15px;
}

.contact-form .required {
    color: var(--accent-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
    background-color: var(--secondary-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Submit Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    transition: left 0.3s ease;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-primary i,
.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Store Locations */
.store-locations {
    background-color: var(--bg-light);
    padding: 60px 0;
    margin: 0 -40px;
}

.store-locations h2 {
    font-size: 42px;
    font-weight: 400;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -1px;
    position: relative;
}

.store-locations h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.location-card {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    padding: 35px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.location-card:hover::before {
    transform: scaleX(1);
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.location-card h3 {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.location-card p,
.location-card span {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.8;
    display: block;
}

.location-card i {
    color: var(--accent-color);
    margin-left: 8px;
    font-size: 14px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-grid,
.locations-grid {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .contact-page {
        padding: 40px 0;
    }
    
    .contact-info h2,
    .contact-form-wrapper h2 {
        font-size: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .store-locations {
        padding: 40px 0;
        margin: 0 -20px;
    }
    
    .store-locations h2 {
        font-size: 32px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .info-item {
        gap: 15px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .info-content h3 {
        font-size: 16px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .location-card {
        padding: 25px 20px;
    }
}