/* ======================================================
   CONTACT PAGE – GOSIVA (FINAL CLEAN)
   ====================================================== */

/* Root spacing & colors */
:root {
    --primary: #0f3d2e;
    --secondary: #b91c1c;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-soft: #f9fafb;
    --border-soft: #e5e7eb;
    --radius: 12px;
}

/* ======================================================
   CONTACT SECTION
   ====================================================== */
.contact-mobile {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;

    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-mobile h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-sub {
    max-width: 620px;
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Desktop layout */
@media (min-width: 768px) {
    .contact-mobile {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .contact-mobile h1,
    .contact-sub {
        grid-column: 1 / -1;
    }
}

/* ======================================================
   CONTACT BOX
   ====================================================== */
.contact-box {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 25px;

    /* IMPORTANT: isolate iframe rendering */
    position: relative;
    overflow: hidden;
    contain: content;
}

.contact-box a.btn-primary {
    text-decoration: none;
}

/* Office info */
.info-box h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
}

.info-box h3 {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.info-box p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 6px;
}

.info-box strong {
    color: var(--text-dark);
}

/* ======================================================
   GOOGLE MAP
   ====================================================== */
.contact-box iframe {
    width: 100%;
    height: 320px;          /* FIXED HEIGHT for stable viewport */
    border: none;
    border-radius: 10px;

    display: block;         /* prevent inline iframe glitches */
    background: #e5e7eb;    /* fallback while loading */
}

/* ======================================================
   FORM ALERT (INLINE)
   ====================================================== */
.form-alert {
    grid-column: 1 / -1;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.form-alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-alert.error,
.form-alert.failed {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-alert.email {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

/* ======================================================
   CONTACT FORM
   ====================================================== */
.contact-form h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    outline: none;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

/* ======================================================
   BUTTON
   ====================================================== */
.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #0b2e22;
}

/* ======================================================
   SMALL DEVICES
   ====================================================== */
@media (max-width: 480px) {
    .contact-mobile h1 {
        font-size: 26px;
    }

    .contact-sub {
        font-size: 15px;
    }
}

/* ======================================================
   SUCCESS POPUP
   ====================================================== */
.popup-success {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 9999;

    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.popup-success.show {
    opacity: 1;
    transform: translateY(0);
}
