.cpb-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    max-width: 1200px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

.cpb-preview-pane {
    position: sticky;
    top: 30px;
    align-self: start;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.cpb-env-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.cpb-env-toggle button {
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.cpb-env-toggle button.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

#cpb-pool-svg {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    background: #4ade80;
}

#cpb-night-overlay {
    transition: opacity 0.4s ease;
}

.cpb-price-banner {
    margin-top: 14px;
    padding: 16px 20px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
}

.cpb-price-banner strong {
    font-size: 1.5rem;
    color: #38bdf8;
}

.cpb-controls-pane h3 {
    margin: 22px 0 10px;
    font-size: 1.05rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
}

.cpb-controls-pane h3:first-child {
    margin-top: 0;
}

.cpb-radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cpb-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
    background: #fff;
}

.cpb-card:has(input:checked) {
    border-color: #0284c7;
    background: #f0f9ff;
}

.cpb-card input {
    display: none;
}

.cpb-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
}

.cpb-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpb-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
}

.cpb-check-row input {
    margin-right: 10px;
    transform: scale(1.2);
}

.cpb-check-row span {
    flex-grow: 1;
}

.cpb-lead-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpb-lead-fields input,
.cpb-lead-fields textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}

#cpb-submit-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}

#cpb-submit-btn:hover {
    background: #0369a1;
}

#cpb-form-feedback {
    margin-top: 12px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .cpb-container {
        grid-template-columns: 1fr;
    }
    .cpb-preview-pane {
        position: static;
    }
}
#cpb-night-overlay {
    transition: opacity 0.4s ease;
}

#cpb-led-lights {
    mix-blend-mode: screen;
    pointer-events: none;
}
#cpb-caustic-layer {
    mix-blend-mode: overlay;
}

@keyframes cpbRippleExpand {
    0% {
        r: 8px;
        opacity: 0.75;
        stroke-width: 2px;
    }
    100% {
        r: 95px;
        opacity: 0;
        stroke-width: 0.5px;
    }
}

.cpb-ring {
    animation: cpbRippleExpand 3.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.cpb-ring.r2 {
    animation-delay: 1.2s;
}

.cpb-ring.r3 {
    animation-delay: 2.4s;
}