/* Contact Page Styles */
.contact-page {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.contact-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Hero Section */
.contact-page .hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("../img/contact/ghanshyam-contact-bg.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-page .hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, white, transparent);
}

.contact-page .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.contact-page .hero-content h1 {
    font-family: 'Gilroy', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2em);
    line-height: 1.2;
    margin-bottom: clamp(15px, 3vw, 25px);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1.3);
    animation: fadeInUp 1s ease;
}

.contact-page .hero-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2em);
    line-height: 1.4;
    margin-bottom: clamp(20px, 4vw, 40px);
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-page .hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.contact-page .hero-buttons .btn-style-1,
.contact-page .hero-buttons .btn-style-outline-1 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-page .hero-buttons .btn-style-1 {
    background: linear-gradient(90deg, #004dcd 0%, #00baff 100%);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 77, 205, 0.2);
}

.contact-page .hero-buttons .btn-style-outline-1 {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.contact-page .hero-buttons .btn-style-1:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 77, 205, 0.3);
}

.contact-page .hero-buttons .btn-style-outline-1:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove old button styles */
.contact-page .hero-buttons .btn,
.contact-page .hero-buttons .btn-primary,
.contact-page .hero-buttons .btn-outline,
.contact-page .submit-btn {
    display: none;
}

/* Services Section */
.contact-page .services-section {
    padding: 80px 0;
    background: #fff;
}

.contact-page .services-section .contact-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-page .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.contact-page .section-title h2 {
    font-family: 'Gilroy', sans-serif;
    font-size: 36px;
    line-height: 44px;
    color: #001a40;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-page .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 0 auto;
    max-width: 900px;
}

.contact-page .service-card {
    background: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-page .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #004dcd 0%, #00baff 100%);
}

.contact-page .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.contact-page .service-icon {
    background: linear-gradient(90deg, #004dcd 0%, #00baff 100%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: all 0.4s ease;
}

.contact-page .service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-page .service-icon i {
    color: #fff;
    font-size: 36px;
}

.contact-page .service-card h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 28px;
    line-height: 36px;
    color: #001a40;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-page .service-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #6e7c90;
}

/* Contact Section Layout */
.contact-page .contact-section {
    padding: 80px 0;
    background: #f1f3f5;
}

.contact-page .contact-section .contact-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-page .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Contact Form Section */
.contact-page .contact-form-container {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.contact-page .contact-form-container h2 {
    font-family: 'Gilroy', sans-serif;
    font-size: 32px;
    line-height: 40px;
    color: #001a40;
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-page .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-page .form-group {
    margin-bottom: 20px;
}

.contact-page .form-group:last-of-type {
    margin-bottom: 25px;
}

.contact-page .form-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #001a40;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

.contact-page .form-group input,
.contact-page .form-group textarea,
.contact-page .form-group select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #001a40;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.contact-page .form-group input:focus,
.contact-page .form-group textarea:focus,
.contact-page .form-group select:focus {
    border-color: #004dcd;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 77, 205, 0.1);
}

.contact-page .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-page .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23001a40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
    cursor: pointer;
}

.contact-page .form-group select option {
    padding: 10px;
    font-size: 16px;
}

.contact-page .form-group input[type="tel"] {
    letter-spacing: 0.5px;
}

.contact-page .file-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-page .submit-btn {
    background: linear-gradient(90deg, #004dcd 0%, #00baff 100%);
    color: #fff;
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 77, 205, 0.2);
    width: 100%;
    justify-content: center;
}

.contact-page .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 77, 205, 0.3);
}

/* Contact Info Section */
.contact-page .contact-info {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.contact-page .info-card h2 {
    font-family: 'Gilroy', sans-serif;
    font-size: 32px;
    line-height: 40px;
    color: #001a40;
    margin-bottom: 30px;
    font-weight: 700;
}

.contact-page .info-items {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-page .info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-page .info-icon {
    background: linear-gradient(90deg, #004dcd 0%, #00baff 100%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-page .info-icon i {
    color: #fff;
    font-size: 20px;
}

.contact-page .info-content h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    line-height: 28px;
    color: #001a40;
    margin-bottom: 5px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-page .info-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #6e7c90;
    transition: color 0.3s ease;
}

.contact-page .info-item:hover .info-content h3 {
    color: #004dcd;
}

.contact-page .info-item:hover .info-content p {
    color: #001a40;
}

.contact-page .social-links {
    margin-top: 40px;
}

.contact-page .social-links h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 24px;
    line-height: 32px;
    color: #001a40;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-page .social-icons {
    display: flex;
    gap: 15px;
}

.contact-page .social-icons a {
    border-radius: 100px;
    transition: 0.3s;
    border: 1px solid #bed9ff;
    color: #7e8ca2;
    position: relative;
    display: block;
    font-size: 14px;
    text-align: center;
    line-height: 60px;
    height: 60px;
    width: 60px;
    background: #fff;
}

.contact-page .social-icons a:hover {
    border-color: transparent;
    color: #ffffff;
    width: auto;
    padding: 0 40px;
    background-image: linear-gradient(90deg, #2641a6 0%, #d42c33 100%);
    box-shadow: 0px 10px 20px 0px rgba(59, 132, 241, 0.3);
}

.contact-page .social-icons a .text {
    position: absolute;
    letter-spacing: 0;
    left: 0;
    opacity: 0;
}

.contact-page .social-icons a:hover .text {
    position: relative;
    margin-left: 6px;
    opacity: 1;
}

/* Contact Action Buttons */
.contact-page .contact-action-buttons {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-page .action-buttons-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-page .contact-action-buttons .btn-style-1 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #004dcd 0%, #d62b34 100%);
    color: #fff;
    border: none;
    box-shadow: 0px 10px 20px 0px rgba(59, 132, 241, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
}

.contact-page .contact-action-buttons .btn-style-1:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0px 15px 30px 0px rgba(59, 132, 241, 0.4);
}

.contact-page .contact-action-buttons .btn-style-1 i {
    font-size: 16px;
}

/* Map Section */
.contact-page .map-section {
    width: 100%;
    margin-top: 80px;
}

.contact-page .map-container {
    height: 500px;
    width: 100%;
    overflow: hidden;
}

.contact-page .map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .contact-container {
        max-width: 960px;
    }
    
    .contact-page .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .contact-container {
        max-width: 720px;
    }
    
    .contact-page .services-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .contact-page .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-page .hero-content h1 {
        font-size: 36px;
        line-height: 44px;
    }

    .contact-page .hero-content p {
        font-size: 16px;
        line-height: 24px;
    }

    .contact-page .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .contact-page .hero-buttons .btn-style-1,
    .contact-page .hero-buttons .btn-style-outline-1 {
        width: 100%;
        justify-content: center;
    }

    .contact-page .service-card {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        max-width: 540px;
    }
    
    .contact-page .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-page .hero-section {
        min-height: 400px;
        padding: 60px 0;
    }

    .contact-page .contact-form-container,
    .contact-page .contact-info {
        padding: 25px;
    }

    .contact-page .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-page .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .contact-page .social-icons {
        justify-content: center;
    }

    .contact-page .action-buttons-grid {
        flex-direction: column;
        gap: 15px;
    }

    .contact-page .contact-action-buttons .btn-style-1 {
        width: 100%;
        justify-content: center;
    }

    .contact-page .map-container {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .contact-container {
        padding: 0 15px;
    }

    .contact-page .hero-content h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .contact-page .hero-content p {
        font-size: 14px;
        line-height: 22px;
    }

    .contact-page .section-title h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .contact-page .service-card {
        padding: 30px 20px;
    }

    .contact-page .service-icon {
        width: 70px;
        height: 70px;
    }

    .contact-page .service-icon i {
        font-size: 28px;
    }

    .contact-page .service-card h3 {
        font-size: 24px;
        line-height: 32px;
    }

    .contact-page .service-card p {
        font-size: 15px;
        line-height: 26px;
    }

    .contact-page .contact-form-container h2,
    .contact-page .info-card h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .contact-page .form-group label {
        font-size: 14px;
    }

    .contact-page .form-group input,
    .contact-page .form-group textarea,
    .contact-page .form-group select {
        font-size: 14px;
        padding: 10px 15px;
    }

    .contact-page .map-container {
        height: 300px;
    }

    .contact-page .social-icons a {
        height: 50px;
        width: 50px;
        line-height: 50px;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .contact-page .hero-section {
        padding: 60px 0;
    }

    .contact-page .services-section,
    .contact-page .contact-section {
        padding: 40px 0;
    }

    .contact-page .info-content h3 {
        font-size: 18px;
        line-height: 26px;
    }

    .contact-page .info-content p {
        font-size: 14px;
        line-height: 22px;
    }

    .contact-page .social-links h3 {
        font-size: 20px;
        line-height: 28px;
    }
}
 
.contact-page .contact-form-container form .btn-style-1 {
    border: none !important;
    width: 100%;
    justify-content: center;
}

.contact-page .alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    animation: slideIn 0.3s ease;
}

.contact-page .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-page .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-page .btn-style-1:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-page .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}