/* Cash Studio - Book Your Stage v1.1 */
/* Balloon (hero inline) + Floating Button + Popup */

/* ======================== */
/* === HERO BALLOON CARD === */
/* ======================== */
.csb-balloon {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    max-width: 480px;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.csb-balloon.csb-balloon-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.csb-balloon-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 22px 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(7, 6, 26, 0.25);
}

.csb-balloon-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #07061a;
    margin: 0 0 2px;
}

.csb-balloon-sub {
    font-size: 12px;
    color: #908da8;
    margin: 0 0 14px;
    line-height: 1.4;
}

.csb-balloon-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.csb-balloon-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
}

.csb-bf {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.csb-bf label {
    font-size: 11px;
    font-weight: 500;
    color: #5f5c76;
}

.csb-bl-input {
    width: 100%;
    padding: 7px 8px;
    border: 1.5px solid #e8e6f0;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #07061a;
    background: rgba(250, 249, 255, 0.9);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.csb-bl-input:focus {
    border-color: #6c2fa0;
    background: #fff;
}

.csb-balloon-cta {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 10px;
    background: var(--csb-btn-bg, #6c2fa0);
    color: var(--csb-btn-color, #fff);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.csb-balloon-cta:hover {
    opacity: 0.9;
}

.csb-balloon-cta:active {
    transform: scale(0.98);
}

/* Balloon responsive */
@media (max-width: 768px) {
    .csb-balloon {
        position: relative;
        bottom: auto;
        right: auto;
        max-width: 100%;
        margin: 16px;
    }
    .csb-balloon-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .csb-balloon-row {
        grid-template-columns: 1fr;
    }
}

/* ================================ */
/* === FLOATING ACTION BUTTON === */
/* ================================ */
.csb-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 50px;
    background: var(--csb-btn-bg, #6c2fa0);
    color: var(--csb-btn-color, #fff);
    font-family: 'DM Sans', 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(108, 47, 160, 0.35);
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.csb-fab:hover {
    transform: scale(1.05);
}

.csb-fab:active {
    transform: scale(0.97);
}

.csb-fab-icon {
    flex-shrink: 0;
}

/* Hidden state - starts hidden, appears when hero scrolls away */
.csb-fab-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
}

/* Visible state */
.csb-fab-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

@media (max-width: 480px) {
    .csb-fab {
        padding: 14px;
        border-radius: 50%;
    }
    .csb-fab-text {
        display: none;
    }
}

/* ================= */
/* === OVERLAY === */
/* ================= */
.csb-overlay {
    position: fixed;
    inset: 0;
    z-index: 99995;
    background: rgba(7, 6, 26, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.csb-overlay.csb-open {
    display: flex;
}

/* =============== */
/* === POPUP === */
/* =============== */
.csb-popup {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    animation: csb-slide-up 0.25s ease;
}

@keyframes csb-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.csb-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #908da8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}

.csb-close:hover {
    background: #f5f3ff;
    color: #333;
}

.csb-popup-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #07061a;
    margin: 0 0 4px;
    text-align: center;
}

.csb-popup-subtitle {
    font-size: 13px;
    color: #908da8;
    margin: 0 0 18px;
    text-align: center;
    line-height: 1.4;
}

/* ============== */
/* === FORM === */
/* ============== */
.csb-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.csb-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.csb-field label {
    font-size: 12px;
    font-weight: 500;
    color: #5f5c76;
}

.csb-req { color: #e91e8c; }

.csb-field input,
.csb-field select,
.csb-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e8e6f0;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #07061a;
    background: #faf9ff;
    transition: border-color 0.15s;
    outline: none;
    box-sizing: border-box;
}

.csb-field input:focus,
.csb-field select:focus,
.csb-field textarea:focus {
    border-color: #6c2fa0;
    background: #fff;
}

.csb-field input.csb-error,
.csb-field select.csb-error {
    border-color: #e91e8c;
}

.csb-field textarea {
    resize: vertical;
    min-height: 48px;
}

.csb-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ================== */
/* === BUTTONS === */
/* ================== */
.csb-btn-submit {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6c2fa0, #e91e8c);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    margin-top: 4px;
}

.csb-btn-submit:hover { opacity: 0.9; }
.csb-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.csb-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
}

.csb-divider::before,
.csb-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e6f0;
}

.csb-divider span {
    font-size: 12px;
    color: #908da8;
    white-space: nowrap;
}

.csb-btn-whatsapp {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border: 1.5px solid #25d366;
    border-radius: 10px;
    background: #e8faf0;
    color: #128c3e;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.csb-btn-whatsapp:hover { background: #d0f5e0; }

.csb-note {
    font-size: 11px;
    color: #908da8;
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.4;
}

/* ================= */
/* === SUCCESS === */
/* ================= */
.csb-success {
    text-align: center;
    padding: 30px 10px;
}

.csb-success p {
    font-size: 15px;
    color: #333;
    margin: 16px 0 20px;
    line-height: 1.5;
}

.csb-btn-done {
    padding: 10px 32px;
    border: 1.5px solid #e8e6f0;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.csb-btn-done:hover { background: #f5f3ff; }

/* ==================== */
/* === RESPONSIVE === */
/* ==================== */
@media (max-width: 440px) {
    .csb-popup {
        padding: 20px 16px 18px;
        border-radius: 14px;
    }
    .csb-row {
        grid-template-columns: 1fr;
    }
}
