/* Popup Modal CSS - New Design (Blue Left, White Right) */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.popup-content.new-design {
    display: flex;
    flex-direction: row;
    background: var(--color-white);
    /* Light theme */
    margin: auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 95%;
    max-width: 900px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    animation: zoomIn 0.3s ease-out;
    border: none;
    height: auto;
    max-height: 90vh;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: 0.2s;
}

.close-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* --- LEFT PANEL --- */
.popup-left {
    width: 45%;
    background: #2149AD;
    /* Blue gradient */
    color: var(--color-white);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.popup-left-content {
    position: relative;
    z-index: 2;
}

.popup-left h3 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
    color: #fff;
}

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

.popup-features li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.popup-features li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    top: -2px;
}

.popup-robot-container {
    margin-top: 30px;
    text-align: center;
}

.robot-img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: floatRobot 4s ease-in-out infinite;
}

@keyframes floatRobot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- RIGHT PANEL --- */
.popup-right {
    width: 55%;
    background: var(--color-white);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-right-header {
    margin-bottom: 25px;
    text-align: center;
}

.popup-right-header p {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.popup-right-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

/* FORM STYLES */
.popup-form .form-group {
    margin-bottom: 15px;
    position: relative;
}

.popup-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 600;
}

/* Input Fields */
.popup-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--color-text-body);
    background: var(--color-bg-secondary);
    transition: var(--transition-fast);
}

.popup-form .form-control::placeholder {
    color: var(--color-text-muted);
}

.popup-form .form-control:focus {
    border-color: var(--color-accent);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    outline: none;
}

/* Phone Group */
.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.phone-input-group .country-code {
    background: var(--color-bg-tertiary);
    padding: 12px 15px;
    color: var(--color-text-heading);
    font-weight: 600;
    border-right: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.phone-input-group input {
    border: none;
    border-radius: 0;
    flex: 1;
}

.phone-input-group input:focus {
    box-shadow: none;
}

.phone-input-group:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

/* Submit Button */
.popup-form .submit-btn {
    width: 100%;
    background: var(--gradient-primary);

    /* Bright Blue */
    color: var(--color-white);
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.popup-form .submit-btn:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Select Styling */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

select.form-control option {
    background: #ffffff;
    color: var(--text-primary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .popup-content.new-design {
        flex-direction: column;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .popup-left {
        width: 100%;
        padding: 30px;
        min-height: 200px;
    }

    .popup-left h3 {
        font-size: 1.4rem;
    }

    .popup-right {
        width: 100%;
        padding: 30px;
    }

    .robot-img {
        max-width: 120px;
    }

    .close-btn {
        color: #fff;
    }
}