  /* --- CSS VARIABLES --- */
        :root {
            --primary: #4F46E5;
            --primary-dark: #4338ca;
            --text-main: #1F2937;
            --text-light: #6B7280;
            /* BLACK OPACITY */
            --bg-overlay: rgba(0, 0, 0, 0.85); 
            --white: #ffffff;
            --input-bg: #F3F4F6;
            --border: #E5E7EB;
            --radius: 20px;
        }

       


/* Background Content */
        .dummy-content {
            text-align: center;
            max-width: 600px;
        }
        .dummy-content h1 { font-size: 2.5rem; margin-bottom: 15px; color: var(--text-main); }
        .dummy-content p { font-size: 1.1rem; color: var(--text-light); }

        /* --- MODAL OVERLAY --- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--bg-overlay);
            z-index: 99999;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
            backdrop-filter: blur(4px);
            padding: 15px; 
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* --- MODAL CARD --- */
        .modal-card {
            background: var(--white);
            width: 100%;
            max-width: 950px;
            max-height: 95vh; 
            border-radius: var(--radius);
            overflow: hidden;
            display: flex;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            transform: scale(0.9);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
        }

        .modal-overlay.active .modal-card {
            transform: scale(1);
        }

        /* Close Button */
        .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255,255,255,0.4);
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 22px;
            cursor: pointer;
            z-index: 20;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.3s;
        }

        .close-btn:hover {
            background: white;
            color: var(--primary);
            transform: rotate(90deg);
        }

        /* --- LEFT SIDE (IMAGE) --- */
        .left-visual {
            flex: 0 0 42%;
            background-image: url('../img/popup-form/casa.jpg');
            background-size: cover;
            background-position: center;
            position: relative;
            display: flex;
            align-items: flex-end;
        }

        .visual-overlay {
            width: 100%;
            padding: 30px;
            background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
            color:  #fff;
        }

        .visual-overlay h2 { font-size: 2rem; line-height: 1.1; margin-bottom: 5px; color: #fff }
        .visual-overlay p { font-size: 0.95rem; opacity: 0.9; color: #fff }

        /* --- RIGHT SIDE (FORM) --- */
        .right-form {
            flex: 1;
            padding: 30px 35px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow-y: auto; 
            scrollbar-width: none; 
            -ms-overflow-style: none;  
        }
        .right-form::-webkit-scrollbar { display: none; }

        .form-header {
            margin-bottom: 15px; /* Reduced margin */
            text-align: center;
        }

        .form-header h3 { font-size: 1.5rem; color: var(--text-main); margin-bottom: 5px; }
        .form-header span { font-size: 0.85rem; color: var(--text-light); }

        /* Compact Grid Layout */
        .input-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px; /* Reduced gap to remove extra space */
        }

        .full-width { grid-column: span 2; }

        .input-group { 
            display: flex; 
            flex-direction: column; 
            margin-bottom: 0; /* No margin, rely on grid gap */
        }

        .label {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 4px; /* Tight label spacing */
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .input-field {
            padding: 10px 12px; /* Slightly smaller padding */
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.9rem;
            background-color: var(--input-bg);
            transition: 0.3s;
            outline: none;
            width: 100%;
        }

        .input-field:focus {
            border-color: var(--primary);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        /* Submit Button */
        .submit-btn {
            grid-column: span 2;
            background: #123247;
            color: white;
            border: none;
            padding: 12px; /* Reduced padding */
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            margin-top: 5px; /* Very small top margin */
            transition: 0.3s;
        }

        .submit-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

        /* Error Text */
        .error-msg {
            color: #ef4444;
            font-size: 0.7rem;
            margin-top: 2px; /* Tight error spacing */
            display: none;
        }

        /* Toast */
        .toast {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(-100px);
            background: #333;
            color: #fff;
            padding: 12px 24px;
            border-radius: 50px;
            font-size: 0.9rem;
            opacity: 0;
            transition: 0.5s;
            z-index: 100000;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }
        .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
        .toast.success { background: #10b981; }
        .toast.error { background: #ef4444; }

        /* --- RESPONSIVE MOBILE FIX --- */
        @media (max-width: 768px) {
            .modal-card {
                flex-direction: column;
                width: 95%;
                height: auto; 
                max-height: 90vh;
            }

            .left-visual {
                flex: none;
                height: 140px; 
                width: 100%;
            }

            .right-form {
                padding: 20px 15px; 
            }

            .form-header { margin-bottom: 12px; }
            .form-header h3 { font-size: 1.3rem; }

            .input-grid {
                grid-template-columns: 1fr; 
                gap: 10px; /* Tighter on mobile */
            }

            .full-width { grid-column: span 1; }
            .submit-btn { grid-column: span 1; }

            .close-btn {
                background: white;
                color: #000;
                top: 10px;
                right: 10px;
                width: 32px;
                height: 32px;
                font-size: 18px;
                border: 1px solid #ddd;
            }
        }