/* ===== Auto Popup Counselling Form ===== */

/* Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

/* Popup Container */
.popup-container {
    background: linear-gradient(135deg, #E8D6FF 0%, #F0E6FF 100%);
    border-radius: 24px;
    max-width: 820px;
    width: 90%;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 42% 58%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease forwards;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #333;
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    line-height: 1;
}

.popup-close:hover {
    background: #6C4DE6;
}

/* Left Panel */
.popup-left {
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-left .popup-logo img {
    width: 150px;
    margin-bottom: 20px;
}

.popup-left h2 {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.2;
}

.popup-left h2 span {
    color: #6C4DE6;
}

.popup-left p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.popup-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-highlights li {
    font-size: 13px;
    color: #444;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-highlights li::before {
    content: '✓';
    color: #6C4DE6;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

/* Right Panel - Form */
.popup-right {
    padding: 30px 24px;
    display: flex;
    align-items: center;
}

.popup-form-card {
    background: white;
    padding: 28px 24px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.popup-form-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
}

.popup-form-card .form-sub {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-bottom: 18px;
}

.popup-form-card input,
.popup-form-card select,
.popup-form-card textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #6C4DE6;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.popup-form-card input::placeholder,
.popup-form-card textarea::placeholder {
    color: #aaa;
}

.popup-form-card input:focus,
.popup-form-card select:focus,
.popup-form-card textarea:focus {
    outline: none;
    border-color: #5a3cc4;
    box-shadow: 0 0 0 3px rgba(108, 77, 230, 0.12);
}

.popup-form-card textarea {
    resize: none;
    height: 60px;
}

.popup-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.popup-form-row input,
.popup-form-row select {
    margin-bottom: 10px;
}

.popup-checkbox-label {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    font-size: 11px;
    color: #777;
    line-height: 1.4;
    align-items: flex-start;
}

.popup-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 2px 0 0 0;
    flex-shrink: 0;
}

.popup-submit-btn {
    width: 100%;
    padding: 12px;
    background: #6C4DE6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-family: 'Poppins', sans-serif;
}

.popup-submit-btn:hover {
    background: #5a3cc4;
    transform: translateY(-1px);
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 768px) {
    .popup-container {
        grid-template-columns: 1fr;
        max-width: 420px;
        width: 92%;
        max-height: 85vh;
        overflow-y: auto;
    }

    .popup-left {
        padding: 24px 24px 16px;
        text-align: center;
        align-items: center;
    }

    .popup-left .popup-logo img {
        width: 120px;
        margin-bottom: 12px;
    }

    .popup-left h2 {
        font-size: 20px;
    }

    .popup-left p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .popup-highlights {
        display: none;
    }

    .popup-right {
        padding: 0 20px 24px;
    }

    .popup-form-card {
        padding: 22px 18px;
    }

    .popup-form-card h3 {
        font-size: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .popup-container {
        width: 94%;
        border-radius: 18px;
        max-height: 88vh;
    }

    .popup-left {
        padding: 20px 18px 12px;
    }

    .popup-left .popup-logo img {
        width: 100px;
    }

    .popup-left h2 {
        font-size: 17px;
    }

    .popup-left p {
        font-size: 12px;
    }

    .popup-right {
        padding: 0 14px 20px;
    }

    .popup-form-card {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .popup-form-card input,
    .popup-form-card select,
    .popup-form-card textarea {
        padding: 9px 12px;
        font-size: 12px;
        margin-bottom: 8px;
    }

    .popup-form-row {
        grid-template-columns: 1fr;
    }

    .popup-submit-btn {
        font-size: 14px;
        padding: 10px;
    }

    .popup-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
}
