/* Variables for Easy Theming */
:root {
    --primary-green: #2ecc71; /* Bright Green */
    --dark-bg: #1a1a1a;       /* Very Dark Background */
    --light-bg: #2d2d2d;      /* Slightly Lighter Dark Background for gradient */
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --border-color: #444444;
}

/* 1. OVERLAY & CONTAINER */
#cspu-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Ensure it's on top of everything */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#cspu-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

#cspu-popup-content {
    display: flex;
    max-width: 900px;
    width: 90%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    background: white; /* Base background for the form side */
}

/* Close Button */
#cspu-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10;
}

/* 2. LEFT COLUMN (Branding/Info Side) */
#cspu-left-column {
    flex: 1; /* Takes up 50% */
    padding: 40px;
    color: var(--text-light);
    /* Mimic the dark green gradient background */
    background: linear-gradient(145deg, var(--dark-bg) 0%, #005f00 100%); 
    position: relative;
    /* Custom pattern/texture from the image (optional, use a subtle repeating background image) */
    /* background-image: url('path/to/texture.png'); */
}

#cspu-left-column h1 {
    font-size: 2.5em;
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--text-light);
}

#cspu-left-column p {
    font-size: 1em;
    margin-bottom: 20px;
}

/* Checkmark List Styling */
#cspu-left-column ul {
    list-style: none;
    padding: 0;
}

#cspu-left-column ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1em;
}

#cspu-left-column ul li span {
    color: var(--primary-green);
    font-size: 1.2em;
    margin-right: 10px;
}

/* 3. RIGHT COLUMN (Form Side) */
#cspu-right-column {
    flex: 1; /* Takes up 50% */
    padding: 40px;
    background: #ffffff; /* White background for clean form fields */
}

#cspu-booking-form input:not([type="range"]), 
#cspu-booking-form textarea {
    width: 100%;
    padding: 10px 0;
    margin-bottom: 20px;
    border: none;
    border-bottom: 1px solid var(--border-color); /* Underline style */
    font-size: 1em;
    outline: none;
    transition: border-bottom-color 0.3s;
}

#cspu-booking-form input:focus, 
#cspu-booking-form textarea:focus {
    border-bottom-color: var(--primary-green);
}

/* Submit Button */
#cspu-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-green);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#cspu-submit-btn:hover {
    background-color: #27ae60; /* Slightly darker green */
}

/* 4. BUDGET SLIDER STYLING (The most custom part) */
.cspu-range-container {
    margin-bottom: 30px;
}

.cspu-range-container label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}

#budget-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border-color);
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    border-radius: 3px;
}

/* Thumb/Handle styling */
#budget-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    border: 3px solid #fff; /* White border to highlight it */
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

#budget-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Range Labels */
.cspu-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8em;
    color: #888;
}

.cspu-range-labels span:nth-child(2) {
    /* Position the $500 label approximately in the center */
    margin-left: -10%; 
}