/* Modal Overlay - Final Optimized Version */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 12, 16, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #1f2833;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(102, 252, 241, 0.1);
}

/* Updated Budget Range Styles */
#budgetRange {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #66fcf1 var(--fill-percent), #1f2833 var(--fill-percent));
    border-radius: 3px;
    margin: 15px 0;
    -webkit-appearance: none;
}

#budgetRange::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    background: transparent;
}

#budgetRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #66fcf1;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
    position: relative;
    z-index: 2;
}

/* ... (rest of the CSS remains the same) ... */

.modal-close {
    position: absolute;
    top: 0px; right: 0px;
    background: rgba(102, 252, 241, 0.1);
    border: 2px solid #66fcf1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #66fcf1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #66fcf1;
    color: #0b0c10;
    transform: rotate(90deg);
}

/* Enhanced Left Section */
.modal-left {
    background: linear-gradient(135deg, rgba(102, 252, 241, 0.9) 0%, rgba(69, 162, 158, 0.9) 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255,255,255,0.2), 
        transparent);
    transform: rotate(45deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { transform: rotate(45deg) translate(-100%, -100%); }
    100% { transform: rotate(45deg) translate(100%, 100%); }
}

.hello-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.modal-left h2 {
    font-size: 2.2rem;
    margin: 20px 0;
    color: #0b0c10;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.modal-left p {
    color: rgba(11, 12, 16, 0.8);
    margin-bottom: 30px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.modal-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.modal-left ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    color: #0b0c10;
    font-weight: 500;
}

.modal-left ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.2rem;
    color: #0b0c10;
}

/* Right Section */
.modal-right {
    padding: 40px;
    background: #0b0c10;
    display: flex;
    flex-direction: column;
}

.modal-right form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-right input[type="text"],
.modal-right input[type="email"],
.modal-right input[type="tel"],
.modal-right textarea {
    padding: 14px 20px;
    background: #1f2833;
    border: 2px solid rgba(102, 252, 241, 0.1);
    border-radius: 8px;
    color: #c5c6c7;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-right input:focus,
.modal-right textarea:focus {
    border-color: #66fcf1;
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.2);
    outline: none;
}

.modal-right label {
    font-weight: 600;
    color: #66fcf1;
    margin-top: 15px;
}

#budgetRange {
    width: 100%;
    height: 6px;
    background: #1f2833;
    border-radius: 3px;
    margin: 15px 0;
    -webkit-appearance: none;
}

#budgetRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #66fcf1;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

.manual-budget {
    display: flex;
    gap: 10px;
    align-items: center;
}

.manual-budget input {
    flex: 1;
    padding: 12px;
    background: #1f2833;
    border: 2px solid rgba(102, 252, 241, 0.1);
    border-radius: 8px;
    color: #c5c6c7;
    font-size: 1rem;
}

.manual-budget span {
    color: #66fcf1;
    font-weight: 600;
}

.btn-get-in-touch {
    background: linear-gradient(135deg, #66fcf1 0%, #45a29e 100%);
    color: #0b0c10;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-get-in-touch:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 252, 241, 0.3);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .modal-box {
        grid-template-columns: 1fr;
        max-width: 95%;
        border-radius: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-left {
        padding: 25px !important;
        text-align: center;
        background: linear-gradient(135deg, #66fcf1 0%, #45a29e 100%);
    }

    .hello-icon {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
        display: none;
    }

    .modal-left h2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }

    .modal-left p {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }

    .modal-left ul {
        display: none;
    }

    .modal-right {
        padding: 25px !important;
    }

    .modal-right form {
        gap: 15px;
    }

    .modal-right input[type="text"],
    .modal-right input[type="email"],
    .modal-right input[type="tel"],
    .modal-right textarea {
        padding: 12px;
        font-size: 0.9rem;
    }

    .btn-get-in-touch {
        padding: 12px !important;
        font-size: 1rem !important;
    }

    .manual-budget input {
        padding: 10px !important;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .modal-box {
        max-height: 95vh;
    }
    
    .modal-left h2 {
        font-size: 1.3rem !important;
    }
    
    .modal-right {
        padding: 20px !important;
    }
    
    input, textarea {
        font-size: 0.85rem !important;
    }
    
    .btn-get-in-touch {
        font-size: 0.9rem !important;
    }
    
    .modal-left::before {
        animation-duration: 8s;
    }
}