.contact-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/head/23CS9712.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.contact-hero h1,
.contact-hero p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.intro-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.intro-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.intro-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.intro-section .highlight {
    color: #3498db;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.contact-card {
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideFromLeft 1s ease forwards;

}
.contact-card:nth-child(even) {
    transform: translateX(100%);
    animation: slideFromRight 1s ease forwards;
}

.contact-card:nth-child(1) { animation-delay: 0.2s; }
.contact-card:nth-child(2) { animation-delay: 0.4s; }
.contact-card:nth-child(3) { animation-delay: 0.6s; }
.contact-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.white-card {
    background: white;
    border: 1px solid #e1e1e1;
}

.blue-card {
    background: #00a0dc;
    color: white;
}

.blue-card .contact-info p,
.blue-card .contact-info li,
.blue-card h3 {
    color: white;
}

.orange-card {
    background: #f7b844;
    color: white;
}

.orange-card .contact-info p,
.orange-card .contact-info li,
.orange-card h3 {
    color: white;
}

.contact-card h3 {
    color: #1B3058;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ffb400;
}

.working-hours-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.working-hours-info p {
    color: #1B3058;
    font-weight: 600;
    margin-bottom: 1rem;
}

.working-hours-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.working-hours-info ul li {
    padding: 0.5rem 0;
    color: #555;
    font-size: 0.95rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-info p i {
    min-width: 25px;
    color: #1B3058;
    margin-right: 1rem;
}

.contact-info a {
    color: #1B3058;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ffb400;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #3498db;
    box-shadow: 0 8px 15px rgba(52, 152, 219, 0.2);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #3498db;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info {
    margin: 1rem 0;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    color: #555;
}

.contact-info i {
    margin-right: 1rem;
    color: #3498db;
    width: 20px;
}

.working-hours {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.working-hours h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.hours-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hours-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.map-container {
    height: 450px;
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
}

.contact-form-section {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 4rem 0;
}

.contact-form-section h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #3498db;
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #2980b9;
}

.faq-section {
    margin: 4rem 0;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.faq-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
}

.social-contact {
    text-align: center;
    margin: 4rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.social-contact h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.social-icons a {
    color: #3498db;
    font-size: 2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #2980b9;
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-container {
        padding: 2rem 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 350px;
    }

    .contact-form-section {
        padding: 2rem 1rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .faq-section {
        padding: 2rem 1rem;
    }
}
