/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

a{
    text-decoration: none;
    color: black;
}
/* Animation for elements that will appear on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Container */
.contact-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* Contact Content Layout */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.invisible-div{
    /* display: none; */
    height: 100px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 992px) {

    /* .invisible-div{
        display: block;
        height: 100px;
    } */

    .contact-content {
        display: flex;
        flex-direction: row;
    }
    
    .contact-info {
        flex: 1;
    }
    
    .contact-form-container {
        flex: 1;
    }
}

/* Contact Information Cards */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--white);
    padding: 1.8rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.contact-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--secondary-color);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: rotate(360deg);
}

.contact-card h3 {
    font-family: var(--header-font);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.contact-card:hover p {
    color: var(--text-dark);
}


/* Contact Form */
.contact-form-container {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.contact-form-container:hover {
    transform: translateY(-5px);
}

.form-title {
    font-family: var(--header-font);
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: var(--extra-light);
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(246, 172, 15, 0.1);
}

button.booking-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    background-color: var(--secondary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

button.booking-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}


/* Map Section */
.map-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--extra-light);
}

.map-container {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

/* Ensure the iframe fully covers the map-placeholder */
.map-placeholder {
    background-color: #e2e8f0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
}

#form-result a {
    font-weight: bold;
    text-decoration: underline;
}

#form-result ul {
    margin-top: 8px;
}

#form-result li {
    margin-bottom: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #form-result {
        padding: 10px !important;
        font-size: 14px;
    }
}