/* --- 1. Layout & Grid --- */
.contact-main {
    padding: 100px 0;
    background-color: #fff;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 20px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

/* --- Contact Hero Image --- */
.contact-hero-image {
    width: 100%;
    max-width: 500px; 
    margin: 0 auto 20px auto;
    border-radius: 0; /* Set to 0 if you want sharp corners, or keep 20px for rounded */
    overflow: hidden;
    border: none;      /* Explicitly remove any borders */
    box-shadow: none;  /* Removed the shadow for a flat, clean look */
}

.contact-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border: none;      /* Ensures the image itself has no border */
}

/* Ensure it works with your existing reveal animation */
.contact-hero-image.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-hero-image.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-hero-image {
        margin-bottom: 30px;
        border-radius: 12px; /* Smaller radius for mobile */
    }
}

/* --- 2. Form Styling (Synced with Product Page) --- */
.swas-form-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #d70707;
    outline: none;
    box-shadow: 0 0 0 3px rgba(215, 7, 7, 0.1);
}

/* --- 3. PDPA & Buttons --- */
.pdpa-group {
    margin: 25px 0;
}

.pdpa-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    text-align: left;
}

.pdpa-container input {
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px;
    accent-color: #d70707;
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover:not(:disabled) {
    background-color: #d70707;
    transform: translateY(-2px);
}

.disabled-btn {
    background-color: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* --- 4. Info Cards & Map --- */
.info-card {
    margin-bottom: 40px;
}

.info-card h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #d70707;
    font-weight: 700;
}

.info-card p {
    font-size: 17px;
    line-height: 1.6;
    color: #444;
}

.map-box {
    background: #f8f8f8;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
}

/* --- 5. Success Popup (Synced) --- */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

/* Reuse checkmark animations from product page */
.success-icon { width: 80px; height: 80px; margin: 0 auto 20px; }
.checkmark-circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 2; stroke: #d70707; fill: none; animation: stroke 0.6s forwards; }
.checkmark-check { stroke-dasharray: 48; stroke-dashoffset: 48; stroke: #d70707; stroke-width: 3; fill: none; animation: stroke 0.3s 0.8s forwards; }

@keyframes stroke { 100% { stroke-dashoffset: 0; } }

/* --- 6. Mobile Responsive --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .section-header h2 { font-size: 28px; }
    .contact-main { padding: 60px 0; }
    .contact-container { padding: 0 20px; }

}

/* Ensure the header and its children stay on top of all contact page content */
header {
    z-index: 1000 !important;
    position: relative;
}

#navbar {
    z-index: 999 !important;
}

/* If your style.css uses 'display: none' for the mobile menu, 
   ensure the 'show' class is powerful enough to override it */
#navbar.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}