/* ==================================================
   CONTACT US SECTION - IMPROVED
================================================== */

/* --- Default Desktop / Large Screen Styles --- */
.contact_us-section {
    background-color: #0f2b66; /* Darker blue for more depth */
    background-position: center;
    background-repeat: repeat-y;
    padding: 5rem 3rem; /* More padding for spaciousness */
    color: #f0f4ff; /* Softer white for less contrast */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.02em;
}

.contact_us-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.5rem; /* Slightly more spacing */
}

/* Header */
.contact-header {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin: -30px 0 3rem 0;
    color: #f0f4ff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Row: Text + Map */
.contact_row {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Text Column */
.contact_text {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 1rem;
}

.contact_text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: #f0f4ff;
    text-shadow: 1.5px 1.5px 4px rgba(0,0,0,0.85);
    font-weight: 700;
}

.contact_text p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #e5e9f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.75);
    transition: color 0.3s ease;
}

.contact_text p:hover {
    color: #ffd700; /* gold highlight on hover */
}

.contact_text i {
    margin-right: 10px;
    color: #f0f4ff;
    font-size: 1.3rem;
    vertical-align: middle;
    transition: color 0.3s ease;
}

.contact_text i:hover {
    color: #ffcc00; /* brighter gold on icon hover */
}

/* Map Column */
.contact_map {
    flex: 1;
    min-width: 320px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact_map:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.contact_map iframe {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 16px;
}

/* Area Filter */
.area-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.area-filter label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f0f4ff;
    text-shadow: 1.5px 1.5px 3px rgba(0,0,0,0.85);
}

.area-filter select {
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    background-color: #0050ff;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 80, 255, 0.6);
    transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 280px;
    opacity: 0.95;
}

.area-filter select:hover {
    background-color: #003bb5;
    transform: translateY(-2px);
    opacity: 1;
    box-shadow: 0 0 14px rgba(0, 59, 181, 0.8);
}

.area-filter select:focus {
    outline: none;
    box-shadow: 0 0 12px rgba(0, 90, 255, 0.9);
}

/* Socials Section */
.contact-socials {
    text-align: center;
    margin-top: 2rem;
}

.contact-socials h2 {
    color: #f0f4ff;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    font-size: 2.5rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.6));
}

.social-link.facebook { color: #1877f2; }
.social-link.instagram { color: #e4405f; }
.social-link.viber { color: #665cac; }

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    filter: brightness(1.3) drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
}

/* Message Button */
.message-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.message-btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0050ff, #002f9c);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 80, 255, 0.5);
    transition: background 0.4s ease, transform 0.25s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.message-btn:hover {
    background: linear-gradient(135deg, #003bb5, #001f6f);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 59, 181, 0.7);
}

/* Hide popup and overlay initially */
#contactPopup,
#contactOverlay {
    display: none; /* Hidden by default */
}

/* Overlay and Popup */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: block; 
    z-index: 999;
    backdrop-filter: blur(4px);
}

.contact-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 380px;
    max-width: calc(100vw - 24px);
    
    /* REMOVED SCROLL: Hidden overflow ensures no scrollbars appear */
    overflow: hidden; 
    
    background: #fff;
    padding: 24px 26px; /* Slightly reduced padding */
    border-radius: 16px;
    display: block; 
    z-index: 1000;
    box-shadow: 0 25px 55px rgba(0,0,0,0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

/* Arrow hidden to keep layout clean */
.contact-popup::before {
    display: none; 
}

.contact-popup h3 {
    margin: 0 0 16px 0; /* Reduced margin */
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #133880;
}

.contact-popup input,
.contact-popup select,
.contact-popup textarea {
    width: 100%;
    margin-bottom: 12px; /* Reduced margin to save space */
    padding: 12px 16px;   /* Slightly tighter padding */
    font-size: 15px;
    border-radius: 10px;
    border: 1.5px solid #ccc;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.contact-popup textarea {
    resize: none; /* Prevents user from creating a scrollbar by resizing */
    height: 100px; /* Fixed height */
}

.contact-popup input:focus,
.contact-popup select:focus,
.contact-popup textarea:focus {
    border-color: #0050ff;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 80, 255, 0.6);
}

.contact-popup .submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    background: #0050ff;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 80, 255, 0.6);
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-popup .submit-btn:hover {
    background: #003bb5;
    transform: translateY(-2px);
}

.contact-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    line-height: 1;
    z-index: 1001;
}

.contact-close:hover {
    color: #0050ff;
}

/* --- Mobile / Responsive Styles --- */
@media (max-width: 768px) {

    /* Section */
    .contact_us-section {
        background-image: url('../images/Intro.png'); /* relative to CSS file */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: #f0f4ff;
        padding: 3rem 1.5rem 4rem 1.5rem; /* top, right, bottom, left */
        box-sizing: border-box; /* ensure padding included in width */
    }

    /* Container */
    .contact_us-content {
        gap: 2.5rem;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 0.5rem; /* inner spacing */
    }

    /* Row: text + map */
    .contact_row {
        flex-direction: column;
        gap: 2rem;
        margin: 0 auto;
        width: 100%;
    }

    /* Text + Map Columns */
    .contact_text,
    .contact_map {
        min-width: 100%;
        align-items: center;
        padding: 0 0.5rem; /* prevent content from touching edges */
        box-sizing: border-box;
    }

    /* Text headers and paragraphs */
    .contact_text h2 {
        font-size: 1.8rem;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }

    .contact_text p {
        font-size: 1.05rem;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }

    .contact_text i {
        margin-right: 6px;
        font-size: 1.2rem;
    }

    /* Section Header */
    .contact-header {
        font-size: 2.4rem;
        text-align: center;
        margin: 0 0 2rem 0;
    }

    /* Area Filter */
    .area-filter {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        width: 100%;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }

    .area-filter select {
        width: 70%;
        max-width: 250px;
        font-size: 1rem;
        padding: 8px 14px;
        border-radius: 10px;
    }

    /* Socials */
    .social-icons {
        gap: 1.5rem;
    }

    .social-link {
        font-size: 2.2rem;
    }

    .contact-socials {
        margin-top: 1.5rem; /* reset negative margin from desktop */
        padding: 0 0.5rem;
    }

    .contact-socials h2 {
        color: #0f2b66;
        text-align: center;
    }

    /* Hide popup and overlay initially */
    #contactPopup,
    #contactOverlay {
        display: none; /* Hidden by default */
    }

    /* Contact Popup */
    .contact-popup {
        top: 50%; /* vertical center */
        left: 50%; /* horizontal center */
        transform: translate(-50%, -50%); 
        width: 95%;
        max-width: 420px;
        border-radius: 18px;
        padding: 20px 18px 16px;
        overflow: hidden;
        box-shadow: 0 18px 48px rgba(0,0,0,0.35);
        display: block;
    }

    .contact-popup h3 {
        font-size: 19px;
        margin-bottom: 12px;
        text-align: center;
    }

    .contact-popup input,
    .contact-popup select,
    .contact-popup textarea {
        margin-bottom: 8px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .contact-popup textarea {
        height: 80px;
    }

    .contact-popup .submit-btn {
        margin-top: 8px;
        padding: 12px;
        font-size: 15px;
    }

    .contact-close {
        top: 10px;
        right: 14px;
        font-size: 24px;
    }

    /* SlideUp animation */
    @keyframes slideUp {
        from { transform: translate(-50%, 100%); opacity: 0; }
        to { transform: translate(-50%, -50%); opacity: 1; }
    }
}

