/* contact.css - Enhanced styles for the Contact page */

/* Contact Section - Enhanced */
.contact-section {
    height: 45rem;
    position: relative;
    margin-top: 5rem;
    overflow: hidden;
}

.split-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
}

.left-bg {
    width: 40%;
    background-color: #fff;
    position: relative;
}

.left-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -100px;
    width: 200px;
    height: 200%;
    background-color: rgba(113, 117, 120, 0.08);
    transform: rotate(15deg);
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.5;
    }
}

.right-bg {
    width: 60%;
    background-color: #717578;
    position: relative;
    overflow: hidden;
}

.right-bg::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    animation: float 15s infinite ease-in-out;
}

.right-bg::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    animation: float 10s infinite ease-in-out reverse;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.contact-container {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-image {
    width: 60%;
    max-width: 800px;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: float 6s ease-in-out infinite;
}

.contact-image:hover {
    transform: scale(1.03) translateY(-15px);
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Contact Form Section - Enhanced */
.contact-form-section {
    padding: 6rem 0;
    background-color: #f9f9f9;
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
}

.contact-form-section .container {
    position: relative;
    z-index: 1;
}

.contact-form-section .section-title {
    margin-bottom: 3rem;
    position: relative;
}

.contact-form-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #717578;
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    background-color: white;
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: #717578;
    transition: height 0.5s ease;
}

.contact-form:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.contact-form:hover::before {
    height: 100%;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    background-color: #f8f8f8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #717578;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(113, 117, 120, 0.1);
}

.form-group:focus-within label {
    color: #717578;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    padding: 1.3rem;
    background-color: #717578;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(113, 117, 120, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.submit-btn:hover {
    background-color: #5d6063;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(113, 117, 120, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(113, 117, 120, 0.3);
}

/* Contact Info Section - New */
.contact-info-section {
    padding: 5rem 0;
    background-color: #fff;
}

.contact-info-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background-color: #f9f9f9;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
}

.info-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #717578;
    color: white;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(113, 117, 120, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    transform: rotateY(180deg);
    background-color: #5d6063;
}

.info-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.info-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.info-link {
    display: inline-block;
    margin-top: 1rem;
    color: #717578;
    font-weight: 500;
    transition: all 0.3s ease;
}

.info-link:hover {
    color: #5d6063;
    text-decoration: underline;
}

/* Map Section - New */
.map-section {
    height: 400px;
    position: relative;
    filter: grayscale(0.5);
    transition: filter 0.3s ease;
}

.map-section:hover {
    filter: grayscale(0);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1.5rem 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1;
    transition: all 0.3s ease;
}

.map-overlay:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.map-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.map-address {
    font-size: 1rem;
    color: #666;
}

/* Media Queries */
@media (max-width: 992px) {
    .contact-image {
        width: 80%;
    }
    
    .contact-form {
        padding: 3rem;
    }
    
    .contact-info-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-section {
        height: 35rem;
    }
    
    .contact-image {
        width: 90%;
    }
    
    .left-bg, .right-bg {
        width: 50%;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
    
    .contact-info-container {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .map-overlay {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-section {
        height: 30rem;
    }
    
    .contact-image {
        width: 95%;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .submit-btn {
        padding: 1.1rem;
        font-size: 1.1rem;
    }
    
    .map-section {
        height: 350px;
    }
}