/* ======================= GLOBAL SAFE RESETS ======================= */

html, body {
    margin: 0;
    padding: 0;
}

main,
.main-content,
.site-main,
.content,
.content-wrapper {
    margin-bottom: 0;
    padding-bottom: 0;
}

footer,
.site-footer,
.footer {
    margin-top: 0 !important;
}

/* ======================= TOP POPUP ALERT (CENTERED) ======================= */

.contact-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;

    width: min(90%, 480px);
    padding: 16px 20px;
    border-radius: 14px;

    background: #0b1020;           /* dark navy */
    color: #ffffff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    border-left: 5px solid #22c55e; /* default green for success */

    display: flex;
    flex-direction: column;
    gap: 10px;

    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    animation: slideDownFade 0.35s ease-out forwards;
}

.contact-alert-error {
    border-left-color: #ef4444; /* red for error */
}

.contact-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-alert-title {
    font-size: 16px;
    font-weight: 600;
}

.contact-alert-body {
    font-size: 14px;
    line-height: 1.5;
}

.contact-alert-body ul {
    margin: 0;
    padding-left: 18px;
}

.contact-alert-body li {
    margin-bottom: 4px;
}

.contact-alert-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
}

.contact-alert-close:hover {
    opacity: 0.75;
}

/* Fade-out effect */
.contact-alert-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Slide-in animation */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0px);
    }
}

/* ======================= HERO ======================= */

/* Reduced padding so the cards sit closer to the heading */
.contact-hero {
    padding: 40px 0 16px;   /* was 70px 0 40px */
    text-align: center;
    margin: 0;
}

.contact-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 4px;       /* was 0; gives less gap */
}

.contact-subtitle {
    margin: 0;             /* was margin-top: 12px; */
    font-size: 16px;
    color: #555;
}

/* ======================= CONTACT GRID ======================= */

/* Reduced top padding so section begins nearer to hero */
.contact-section {
    padding: 24px 0 60px;  /* was 70px 0 */
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-info,
.contact-form,
.contact-social {
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

/* ======================= LEFT SIDE (CONTACT INFO) ======================= */

.contact-info h2 {
    font-size: 24px;
    font-weight: 700;
}

.contact-info p {
    margin: 14px 0;
    color: #555;
    font-size: 16px;
}

/* GOOGLE MAP SECTION */
.contact-map {
    margin-top: 20px;
}

.contact-map h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.map-frame-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin-bottom: 12px;
}

/* Google Maps Button */
.map-link-btn {
    display: inline-block;
    padding: 12px 22px;
    font-size: 15px;
    border-radius: 50px;
    color: #fff;
    background: #4f46e5;
    text-decoration: none;
    transition: 0.25s ease;
}

.map-link-btn:hover {
    background: #4338ca;
}

/* ======================= CENTER FORM ======================= */

.contact-form h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Poppins", sans-serif;
}

/* ======================= SUBMIT BUTTON ======================= */

.contact-btn {
    margin-top: 10px;
    width: 100%;
    padding: 14px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;

    background: #4f46e5;
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
    transition: 0.25s ease;
}

.contact-btn:hover {
    background: #4338ca;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

/* ======================= RIGHT SIDE SOCIALS ======================= */

.contact-social h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-item {
    display: block;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: 0.2s ease;
}

.social-item:hover {
    opacity: 0.9;
}

.twitter {
    background: #1DA1F2;
}

.facebook {
    background: #1877F2;
}

.instagram {
    background: #E4405F;
}

/* ======================= RESPONSIVE ======================= */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 20px 0 50px;
    }

    .contact-hero {
        padding: 32px 0 12px;
    }

    .contact-title {
        font-size: 34px;
    }
}
