﻿.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

    .fade-in.show {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(5%, 5%);
    }

    100% {
        transform: translate(0, 0);
    }
}

.mesh-blob {
    animation: float 15s ease-in-out infinite;
}

#homeWrapper {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
}

#home {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
}

.faq-content {
    transition: opacity 0.25s ease;
}

    .faq-content.hidden {
        opacity: 0;
    }

    .faq-content:not(.hidden) {
        opacity: 1;
    }

.faq-item {
    cursor: pointer !important;
}
/* ===== Overlay (frosted glass) ===== */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 999;
}

    .contact-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

/* ===== Main Drawer ===== */
.contact-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
    height: 85vh;
    background: white;
    border-radius: 24px 24px 0 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
}

    .contact-panel.active {
        bottom: 0;
        transform: translateY(0);
    }

/* ===== Layout ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    height: 100%;
}

/* ===== LEFT SIDE ===== */
.contact-left {
    padding: 40px;
    overflow-y: auto;
    position: relative;
}

/* ===== HEADER ===== */
.contact-header {
    margin-top: 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

    .contact-header h2 {
        font-size: 28px;
        font-weight: 800;
        color: #0f172a;
    }

.close-btn {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px; 

    z-index: 9999; /* IMPORTANT: ensures clickable */
}

.contact-subtext {
    margin-top: 10px;
    color: #64748b;
    margin-bottom: 24px;
}

/* ===== FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .contact-form input,
    .contact-form textarea {
        padding: 14px 16px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        font-size: 15px;
        outline: none;
        position: relative;
        z-index: 1;
    }

        .contact-form input:focus,
        .contact-form textarea:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
        }

    .contact-form button {
        margin-top: 10px;
        padding: 14px;
        border-radius: 12px;
        background: #1e40af;
        color: white;
        font-weight: 700;
        border: none;
        cursor: pointer;
    }

/* ===== RIGHT SIDE ===== */
.contact-right {
    background: #f8fafc;
    padding: 40px;
    border-left: 1px solid #e2e8f0;
}

    .contact-right h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .contact-right ul {
        list-style: none;
        padding: 0;
        margin-bottom: 24px;
    }

    .contact-right li {
        margin-bottom: 10px;
        color: #334155;
    }

.whatsapp-container {
    text-align: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    padding: 12px 16px;
    border-radius: 12px;
    background: #25D366;
    color: white;
    font-weight: 700;
    text-decoration: none;
}

a.whatsapp-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

    .whatsapp-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
    }
.contact-box {
    background: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 2000;
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

.modal-box {
    background: white;
    padding: 32px;
    border-radius: 18px;
    text-align: center;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transform: translateY(10px);
    transition: transform 0.25s ease;
}

    .modal-box p {
        font-size: 15px;
        color: #334155;
        line-height: 1.5;
    }

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.success-ok-btn {
    margin-top: 18px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    transition: all 0.25s ease;
    width: 100%;
    font-size: 15px;
}

    .success-ok-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35);
    }

    .success-ok-btn:active {
        transform: translateY(0px) scale(0.98);
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
    }

.icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

/* ✅ Success (green check) */
.icon-success {
    background-color: #e6f9f0;
    color: #16a34a; /* green */
}

/* ❌ Error (red cross) */
.icon-error {
    background-color: #fdecea;
    color: #dc2626; /* red */
}

.form-group {
    position: relative;
    margin-bottom: 22px;
}

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 16px 14px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        font-size: 15px;
        outline: none;
        background: white;
        transition: all 0.2s ease;
    }

        /* focus */
        .form-group input:focus,
        .form-group textarea:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
        }

    /* floating label */
    .form-group label {
        position: absolute;
        left: 14px;
        top: 14px;
        color: #64748b;
        font-size: 14px;
        pointer-events: none;
        background: white;
        padding: 0 6px;
        transition: all 0.2s ease;
    }

    /* float when typing */
    .form-group input:focus + label,
    .form-group input:not(:focus):valid + label,
    .form-group textarea:focus + label,
    .form-group textarea:not(:focus):valid + label {
        top: -10px;
        font-size: 14px; /* 🔥 bigger floating label */
        color: #2563eb;
    }
    /* error state */
    .form-group.error input,
    .form-group.error textarea {
        border-color: #dc2626;
    }

    .form-group.error label {
        color: #dc2626;
    }

/* error text */
.error-msg {
    font-size: 12px;
    color: #dc2626;
    margin-top: 6px;
    display: block;
}

/* success state (optional nice touch) */
.form-group.success input,
.form-group.success textarea {
    border-color: #16a34a;
}

.form-group {
    position: relative;
}

    .form-group label {
        position: absolute;
        left: 14px;
        top: 14px;
        z-index: 2; /* 🔥 THIS FIXES IT */
        background: white; /* ensures it covers input border */
        padding: 0 6px;
        font-size: 15px; /* 🔥 increase here */
        font-weight: 500; /* optional: makes it clearer */
        color: #475569; /* slightly stronger than before */
    }

    /* ensure input is below label */
    .form-group input,
    .form-group textarea {
        position: relative;
        z-index: 1;
    }

/* ===== WhatsApp Mobile ===== */
.whatsapp-mobile {
    margin-top: 20px;
    text-align: center;
}

.divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
}

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e2e8f0;
    }

    .divider span {
        margin: 0 10px;
        font-size: 12px;
        color: #64748b;
        text-transform: uppercase;
    }

.whatsapp-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.whatsapp-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: #25D366;
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

    .whatsapp-btn:hover {
        transform: scale(1.02);
    }
.whatsapp-mobile {
    display: none;
}

@media (max-width: 768px) {
    .whatsapp-mobile {
        display: block;
    }
}
@media (max-width: 768px) {
    .contact-panel {
        margin-top: 20px;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        /* IMPORTANT: isolate transform system */
        transform: translateY(100%);
    }

        .contact-panel.active {
            transform: translateY(0);
        }

    .contact-grid {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .contact-left {
        flex: 1;
        overflow-y: auto;
        padding: 24px;
    }

    .contact-right {
        display: none;
    }
}
