
/* Contact Us Page Specific Styles - Modern Version */

/* Contact Header */
.contact-header {
    padding: 5rem 0;
    background: linear-gradient(135deg, #145f33 0%, #084824 100%);
    text-align: center;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.contact-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.1" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.3;
}

.contact-header h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.contact-header p {
    font-size: 1.2rem;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Contact Content */
.contact-content {
    padding: 6rem 0;
    background-color: var(--white);
}

.contact-wrapper {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

/* Contact Form Container */
.contact-form-container {
    flex: 3;
    min-width: 300px;
}

.contact-form-container h2 {
    font-size: 2.2rem;
    color: var(--neutral-dark);
    margin-bottom: 2rem;
    position: relative;
}

.contact-form-container h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(135deg, #145f33 0%, #084824 100%);
    border-radius: 3px;
}

.contact-form {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    color: var(--neutral-dark);
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(203, 213, 225, 0.5);
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #e8e9ea;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.15);
    background-color: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.required {
    color: #e74c3c;
    margin-right: 4px;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.7rem;
    animation: fadeIn 0.3s ease-out;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem 2.5rem;
    width: 100%;
    transition: all 0.3s ease;
    border-radius: 12px;
        background: linear-gradient(135deg, #145f33 0%, #084824 100%);
    box-shadow: 0 8px 15px rgba(132, 204, 22, 0.2);
    border: none;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(132, 204, 22, 0.3);
    background: linear-gradient(135deg, #145f33 0%, #084824 100%);

}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(-8px);
}

/* Contact Sidebar */
.contact-sidebar {
    flex: 2;
    min-width: 300px;
    background-color: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: fit-content;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.contact-sidebar:hover {
    transform: translateY(-5px);
}

.contact-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(135deg, #145f33 0%, #084824 100%);
}

.contact-sidebar h2 {
    font-size: 2.2rem;
    color: var(--neutral-dark);
    margin-bottom: 2rem;
    position: relative;
}

.contact-sidebar h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(135deg, #145f33 0%, #084824 100%);
    border-radius: 3px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.2rem;
}

.info-icon {
    min-width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #145f33 0%, #084824 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 8px 15px rgba(132, 204, 22, 0.15);
}

.info-content h3 {
    font-size: 1.2rem;
    color: var(--neutral-dark);
    margin-bottom: 0.8rem;
}

.info-content p {
    color: var(--neutral-medium);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.info-content a {
    color: var(--neutral-medium);
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.info-content a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.info-content a:hover {
    color: var(--primary-color);
}

.info-content a:hover::after {
    width: 100%;
}

.social-contact {
    margin-top: 3rem;
}

.social-contact h3 {
    font-size: 1.2rem;
    color: var(--neutral-dark);
    margin-bottom: 1.5rem;
}

.social-links {
    gap: 1rem;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background-color: #f1f5f9;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

/* Map Section */
.map-section {
    padding: 6rem 0;
    background-color: #f8fafc;
}

.map-section h2 {
    font-size: 2.2rem;
    color: var(--neutral-dark);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.map-section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 50%;
    transform: translateX(50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(135deg, #145f33 0%, #084824 100%);
    border-radius: 3px;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    line-height: 0;
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255,255,255,0), rgba(0,0,0,0.1));
    pointer-events: none;
    z-index: 1;
}

.map-container iframe {
    width: 100%;
    height: 500px;
}

/* Animation for form validation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.5s;
}

/* Form submission message */
.form-message {
    padding: 1.2rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
    display: none;
    transition: all 0.3s ease;
}

.form-message.success {
    background-color: rgba(132, 204, 22, 0.15);
    color: var(--primary-dark);
    border: 1px solid var(--primary-light);
    animation: fadeIn 0.5s ease;
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid #e74c3c;
    animation: fadeIn 0.5s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-sidebar {
        order: -1;
        width: 100%;
    }
    
    .contact-header h1 {
        font-size: 3rem;
    }
    
    .contact-form-container h2,
    .contact-sidebar h2 {
        font-size: 2rem;
    }
    
    .contact-form-container h2::after,
    .contact-sidebar h2::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .contact-form-container {
        text-align: center;
    }
    
    .form-group label {
        text-align: right;
    }
}

@media (max-width: 768px) {
    .contact-header {
        padding: 4rem 0;
    }
    
    .contact-header h1 {
        font-size: 2.5rem;
    }
    
    .contact-content,
    .map-section {
        padding: 4rem 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .info-item {
        align-items: flex-start;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .contact-header {
        padding: 3rem 0;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-content,
    .map-section {
        padding: 3rem 0;
    }
    
    .contact-form-container h2,
    .contact-sidebar h2,
    .map-section h2 {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem 1rem;
    }
    
    .info-icon {
        min-width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .info-content h3 {
        font-size: 1.1rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

/* Modern animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in {
    animation: slideInRight 0.8s ease-out forwards;
}