/* =========================================================
HYM Investments
Contact Page Styles
========================================================= */


/* ================= HERO ================= */

.page-hero {
    height: 340px;
    background-image: url('../assets/img/about/2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay h1 {
    color: #fff;
    font-size: 46px;
    font-weight: 600;
    letter-spacing: .5px;
}



/* ================= CONTACT INFO ================= */

.contact-info-section {
    padding: 80px 0 60px;
    background: #f7f7f7;
}

.section-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 50px;
    color: var(--primary-gray);
}



/* GRID */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}



/* CONTACT CARD */

.contact-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    transition: .35s;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .08);
}



/* ICON */

.contact-card i {
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--primary-gray);
}



/* TEXT */

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--primary-gray);
}

.contact-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}



/* ================= FORM + MAP ================= */

.contact-form-section {
    padding: 80px 0;
    background: #fff;
}



/* GRID */

.form-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}



/* ================= CONTACT FORM ================= */

.contact-form h2 {
    font-size: 30px;
    margin-bottom: 12px;
    color: var(--primary-gray);
}

.contact-form p {
    margin-bottom: 28px;
    color: #666;
}



/* FORM FIELDS */

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: .25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-gray);
    box-shadow: 0 0 0 2px rgba(84, 92, 98, .15);
}



/* BUTTON */

.contact-form button {
    margin-top: 10px;
    padding: 13px 22px;
    border: none;
    border-radius: 30px;
    background: var(--primary-gray);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: .3s;
}

.contact-form button:hover {
    background: #333;
}



/* ================= GOOGLE MAP ================= */

.contact-map iframe {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}



/* ================= SCROLL ANIMATION ================= */

.contact-card,
.contact-form,
.contact-map {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp .9s ease forwards;
}

.contact-card:nth-child(2) {
    animation-delay: .15s;
}

.contact-card:nth-child(3) {
    animation-delay: .3s;
}

.contact-form {
    animation-delay: .4s;
}

.contact-map {
    animation-delay: .5s;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}



/* ================= RESPONSIVE ================= */

@media(max-width:980px) {

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-map-grid {
        grid-template-columns: 1fr;
    }

    .contact-map iframe {
        height: 350px;
    }

}



@media(max-width:640px) {

    .page-hero {
        height: 260px;
    }

    .hero-overlay h1 {
        font-size: 34px;
    }

    .section-title {
        font-size: 28px;
    }

}

/* GOOGLE FORM WRAPPER */

.google-form-wrapper {

    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

}

.google-form-wrapper iframe {

    width: 100%;
    height: 720px;
    border: none;

}



/* SUCCESS POPUP */

#form-success {

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;

}

.success-box {

    background: #fff;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);

}

.success-box i {

    font-size: 50px;
    color: #4CAF50;
    margin-bottom: 20px;

}

.success-box h3 {

    font-size: 24px;
    margin-bottom: 10px;

}

.success-box p {

    color: #666;
    margin-bottom: 25px;

}

.success-box button {

    padding: 12px 24px;
    border: none;
    background: #545c62;
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
}