/**
 * VHANDY CONTACT POPUP — Extracted CSS
 * Loaded async since popup appears after 3s delay
 */

/* ===== CONTACT POPUP ===== */
.contact-popup-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}
.contact-popup-overlay.show { opacity: 1; visibility: visible; }
.contact-popup {
    background: #fff;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 820px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    transform: scale(0.85) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.contact-popup-overlay.show .contact-popup { transform: scale(1) translateY(0); }

/* Close */
.popup-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,0.08); border: none;
    font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #666; z-index: 10;
    transition: all 0.2s;
}
.popup-close:hover { background: rgba(220,53,69,0.1); color: #dc3545; transform: rotate(90deg); }

/* Left panel */
.popup-left {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 50%, #52b788 100%);
    padding: 40px 30px;
    color: #fff;
    display: flex; flex-direction: column; justify-content: center;
}
.popup-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 22px; font-weight: 700;
    margin-bottom: 20px;
}
.popup-brand i { font-size: 24px; opacity: 0.9; }
.popup-left h2 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 26px; line-height: 1.3;
    margin-bottom: 12px;
}
.popup-left p { font-size: 14px; opacity: 0.85; line-height: 1.6; margin-bottom: 24px; }
.popup-features { margin-bottom: 30px; }
.pf-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; margin-bottom: 10px;
    opacity: 0.9;
}
.pf-item i { color: #a7f3d0; font-size: 16px; }
.popup-social { display: flex; gap: 12px; }
.popup-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    transition: all 0.2s;
}
.popup-social a:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }

/* Right panel */
.popup-right { padding: 35px 30px; position: relative; }
.popup-form-group { margin-bottom: 16px; }
.popup-form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: #444; margin-bottom: 6px;
}
.popup-form-group label i { color: var(--green, #6B9B7D); margin-right: 6px; font-size: 12px; }
.popup-form-group label span { color: #dc3545; }
.popup-form-group input, .popup-form-group textarea {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid #e0e4e8; border-radius: 10px;
    font-size: 14px; font-family: inherit;
    outline: none; transition: border-color 0.2s;
    background: #fafbfc;
}
.popup-form-group input:focus, .popup-form-group textarea:focus {
    border-color: var(--green, #6B9B7D);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(107,155,125,0.1);
}
.popup-form-group textarea { resize: none; }
.popup-submit {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, #2d6a4f, #40916c);
    color: #fff; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.popup-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,106,79,0.35); }
.popup-submit:active { transform: translateY(0); }
.popup-submit.loading { opacity: 0.7; pointer-events: none; }

/* Success */
.popup-success {
    text-align: center;
    position: absolute; inset: 0;
    background: #fff;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 30px;
    border-radius: 0 20px 20px 0;
}
.ps-icon { width: 70px; height: 70px; border-radius: 50%; background: #d4edda; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ps-icon i { font-size: 32px; color: #28a745; }
.popup-success h3 { font-size: 22px; margin-bottom: 8px; color: #333; }
.popup-success p { font-size: 14px; color: #666; }

/* Responsive */
@media (max-width: 768px) {
    .contact-popup {
        grid-template-columns: 1fr;
        max-width: 420px;
        max-height: 92vh;
        overflow-y: auto;
        border-radius: 18px;
    }
    .popup-left {
        padding: 20px 24px 16px;
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }
    .popup-left h2 { font-size: 17px; margin-bottom: 4px; }
    .popup-left p  { font-size: 12px; margin-bottom: 0; opacity: 0.85; }
    .popup-brand { margin-bottom: 0 !important; }
    .popup-brand img { height: 44px !important; }
    .popup-features, .popup-social { display: none; }
    .popup-right { padding: 20px 24px 28px; }
    .popup-form-group { margin-bottom: 12px; }
    .popup-form-group label {
        font-size: 12.5px; font-weight: 700; color: #333;
        margin-bottom: 5px; display: flex; align-items: center; gap: 5px;
    }
    .popup-form-group input,
    .popup-form-group textarea {
        font-size: 16px; /* prevent iOS zoom */
        padding: 10px 13px;
    }
    .popup-form-group textarea { rows: 2; }
    .popup-submit { padding: 12px; font-size: 14px; }
}
@media (max-width: 480px) {
    .contact-popup-overlay { padding: 10px; }
    .contact-popup {
        max-width: 100%; border-radius: 16px; max-height: 95vh;
    }
    .popup-left { padding: 14px 18px; }
    .popup-left p { display: none; }
    .popup-right { padding: 16px 18px 22px; }
}
