/* implementation-popup.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --pop-primary: #0052cc;
    --pop-secondary: #f4f7ff;
    --pop-text-dark: #1e293b;
    --pop-text-muted: #64748b;
    --pop-white: #ffffff;
    --pop-border: #e2e8f0;
    --pop-radius: 20px;
    --pop-transition: all 0.3s ease;
}

.imp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.imp-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.imp-popup-container {
    background: var(--pop-white);
    width: 900px;
    max-width: 95%;
    border-radius: var(--pop-radius);
    overflow: hidden;
    display: flex;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    font-family: 'Outfit', sans-serif;
}

.imp-popup-overlay.active .imp-popup-container {
    transform: scale(1);
}

.imp-popup-left {
    flex: 1.1;
    padding: 40px;
    background: var(--pop-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.imp-popup-right {
    flex: 0.9;
    padding: 40px;
    background: var(--pop-primary);
    color: var(--pop-white);
    position: relative;
}

/* Close Button */
.imp-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pop-transition);
    z-index: 10;
}

.imp-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Left Side Content */
.imp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pop-secondary);
    color: var(--pop-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.imp-popup-left h2 {
    font-size: 32px;
    color: var(--pop-text-dark);
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
}

.imp-popup-left h2 span {
    color: var(--pop-primary);
}

.imp-popup-left p.imp-desc {
    color: var(--pop-text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.imp-feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.imp-feature-item {
    display: flex;
    gap: 15px;
}

.imp-feature-icon {
    width: 44px;
    height: 44px;
    background: var(--pop-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pop-primary);
    flex-shrink: 0;
}

.imp-feature-text h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: var(--pop-text-dark);
    font-weight: 600;
}

.imp-feature-text p {
    margin: 0;
    font-size: 13px;
    color: var(--pop-text-muted);
    line-height: 1.4;
}

/* Social Proof */
.imp-social-proof {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--pop-border);
}

.imp-avatars {
    display: flex;
    margin-left: 10px;
}

.imp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    object-fit: cover;
}

.imp-rating-info {
    display: flex;
    flex-direction: column;
}

.imp-stars {
    color: #ffb800;
    font-size: 14px;
    display: flex;
    gap: 2px;
    align-items: center;
}

.imp-rating-text {
    font-size: 12px;
    color: var(--pop-text-muted);
    font-weight: 500;
}

.imp-rating-text strong {
    color: var(--pop-text-dark);
}

/* Right Side Content */
.imp-popup-right h3 {
    color: #f4f7ff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    font-weight: bold;
}

.imp-popup-right p.imp-sub {
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #f4f7ff;
}

/* Form Styles */
.imp-form-group {
    margin-bottom: 15px;
}

.imp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.imp-input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.imp-input-wrapper i,
.imp-input-wrapper svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pop-text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 2;
    margin: 0;
    /* Reset any global margins */
}

.imp-input-wrapper input,
.imp-input-wrapper select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: var(--pop-white);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    color: var(--pop-text-dark);
    outline: none;
    transition: var(--pop-transition);
}

.imp-input-wrapper input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Phone Field Specific */
.imp-phone-group {
    display: flex;
    gap: 10px;
}

.imp-country-select {
    width: 90px !important;
    padding-left: 12px !important;
    cursor: pointer;
}

/* Submit Button */
.imp-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--pop-secondary);
    color: var(--pop-primary);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    transition: var(--pop-transition);
}

.imp-submit-btn:hover {
    background: var(--pop-white);
    transform: translateY(-2px);
}

.imp-privacy {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .imp-popup-container {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .imp-popup-left {
        display: none;
        /* Hide left side on mobile to save space, or show condensed */
    }

    .imp-popup-right {
        padding: 30px 20px;
    }
}