/* Side Form Styles */

/* Base Layout for Desktop */
@media (min-width: 992px) {
    .side-form-overlay {
        display: none;
    }

    .mobile-bottom-cta {
        display: none !important;
    }

    .side-form-container {
        position: fixed;
        top: 0;
        bottom: 0;
        width: 30%;
        background: #fff;
        z-index: 10001;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.4s ease;
        display: flex;
        flex-direction: column;
        border-right: 1px solid #eee;
        /* For left sidebar */
        border-left: 1px solid #eee;
        /* For right sidebar */
    }

    /* Right Sidebar Position */
    body.side-form-right .side-form-container {
        right: 0;
        left: auto;
        transform: translateX(0);
        /* Default Open */
    }

    body.side-form-right .side-form-container.closed {
        transform: translateX(100%);
    }

    /* Left Sidebar Position */
    body.side-form-left .side-form-container {
        left: 0;
        right: auto;
        transform: translateX(0);
        /* Default Open */
    }

    body.side-form-left .side-form-container.closed {
        transform: translateX(-100%);
    }

    /* Close Button inside Sidebar */
    .side-form-close-btn {
        position: absolute;
        top: 1rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        background: #f1f5f9;
        color: #333;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        z-index: 10;
    }

    body.side-form-right .side-form-close-btn {
        left: 1rem;
        /* On the inner side */
    }

    body.side-form-left .side-form-close-btn {
        right: 1rem;
        /* On the inner side */
    }

    .side-form-close-btn:hover {
        background: #e2e8f0;
        color: #000;
    }

    /* Sticky Buttons Adjustment */
    /* When Right Sidebar is Present */
    body.side-form-right .sticky-buttons {
        right: auto;
        left: 20px;
        align-items: flex-start;
        /* Align text to left or similar */
    }

    body.side-form-right .sticky-cta-btn,
    body.side-form-right .sticky-whatsapp-btn {
        flex-direction: row-reverse;
        /* Icons on left, text on right is default. Maybe flip? */
        /* Default is row. Left 20px means it sticks to left. */
        /* Let's keep direction but ensure spacing is correct */
    }

    /* When Left Sidebar is Present */
    body.side-form-left .sticky-buttons {
        left: auto;
        right: 20px;
        align-items: flex-end;
    }

    /* Toggle Button (To reopen if closed) */
    .side-form-toggle-btn {
        position: fixed;
        bottom: 50%;
        transform: translateY(50%);
        background: var(--primary-color, #1a202c);
        color: #fff;
        padding: 1rem 0.5rem;
        cursor: pointer;
        z-index: 999;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        border-radius: 0 8px 8px 0;
        display: none;
        /* Hidden when open */
    }

    body.side-form-right .side-form-container.closed~.side-form-toggle-btn {
        display: block;
        right: 0;
        border-radius: 8px 0 0 8px;
        /* Rounded left */
    }

    body.side-form-left .side-form-container.closed~.side-form-toggle-btn {
        display: block;
        left: 0;
        border-radius: 0 8px 8px 0;
        /* Rounded right */
    }

    .side-form-content {
        padding: 1rem;
        /* Further reduced from 1.5rem */
        padding-top: 2rem;
        overflow-y: auto;
        height: 100%;
        width: 100%;
    }


}

/* Mobile Layout */
@media (max-width: 991px) {
    .side-form-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 10000;
        /* Higher than sticky button (9999) */
        transform: translateY(100%);
        /* Start hidden at bottom */
        transition: transform 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
    }

    .side-form-container.mobile-open {
        transform: translateY(0);
    }

    body.modal-open {
        overflow: hidden;
        /* Prevent body scroll when modal is open */
    }

    .side-form-close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        background: #f0f0f0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .side-form-content {
        padding: 2rem 1rem;
        overflow-y: auto;
        flex: 1;
    }

    /* Sticky Bottom Button for Mobile */
    /* Sticky Bottom Button for Mobile */
    .mobile-bottom-cta {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        /* Not full width */
        background: #c9a473;
        /* Match Gold button color */
        color: #fff;
        text-align: center;
        padding: 1rem;
        z-index: 9999;
        cursor: pointer;
        font-weight: 700;
        font-size: 1rem;
        text-transform: uppercase;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        display: flex;
        justify-content: center;
        align-items: center;
        letter-spacing: 1px;
        border-radius: 8px;
        /* Rounded corners */
        transition: transform 0.3s;
    }

    .mobile-bottom-cta:active {
        transform: scale(0.98);
    }

    /* Hide desktop toggle btn on mobile */
    .side-form-toggle-btn {
        display: none !important;
    }

    /* Sticky side buttons logic on mobile */
    .sticky-buttons {
        display: none !important;
        /* Hide sticky buttons on mobile for these layouts as per request */
    }
}

/* Global Hidden class for desktop trigger via JS helper if needed */
.hidden {
    display: none !important;
}

/* =========================================
   Global Sidebar Form Styles (Mobile & Desktop)
   Moved out of media query to ensure consistency
   ========================================= */

/* Force override global .lead-form padding */
.sidebar-form-style.lead-form {
    padding: 0 !important;
    background: transparent;
}

.sidebar-form-style .form-content-wrapper {
    padding: 0 0.5rem;
}

.sidebar-form-style .form-group {
    margin-bottom: 0.8rem;
    /* Tighter spacing */
}

.sidebar-form-style .form-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #0b1120;
}

.sidebar-form-style .input-wrapper {
    margin-bottom: 0;
}

.sidebar-form-style input,
.sidebar-form-style textarea {
    padding: 0.6rem 0.8rem !important;
    /* Force tighter padding */
    padding-left: 2.5rem !important;
    /* Space for icon */
    font-size: 0.9rem;
    height: 45px !important;
    /* Fixed height for consistency */
    min-height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.sidebar-form-style textarea {
    padding-top: 0.6rem !important;
    height: auto !important;
    min-height: 100px;
}

/* Icon positioning adjustment for smaller inputs */
.sidebar-form-style .input-wrapper i {
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    left: 0.8rem;
    position: absolute;
    color: #64748b;
    z-index: 2;
}

.sidebar-form-style .input-wrapper textarea~i {
    top: 1rem !important;
    /* Top align for textarea icon */
    transform: none !important;
}

/* Fix Phone Input Padding in sidebar */
.sidebar-form-style input#side-phone {
    padding-left: 50px !important;
    /* Separate dial code space */
}

/* Checkbox Styling Fix */
.sidebar-form-style .kvkk-box {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar-form-style .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1.3;
    color: #64748b;
}

.sidebar-form-style .checkbox-label input {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.sidebar-form-style .checkmark {
    height: 18px;
    width: 18px;
    min-width: 18px;
    /* Prevent shrinking */
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    position: relative;
    display: inline-block;
    transition: 0.2s;
}

.sidebar-form-style .checkbox-label:hover .checkmark {
    background-color: #e2e8f0;
}

.sidebar-form-style .checkbox-label input:checked~.checkmark {
    background-color: var(--primary-color, #c9a473);
    border-color: var(--primary-color, #c9a473);
}

.sidebar-form-style .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sidebar-form-style .checkbox-label input:checked~.checkmark:after {
    display: block;
}

.sidebar-form-style .form-footer {
    margin-top: 0.5rem;
}

.sidebar-form-style .submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: #c9a473 !important;
    /* Force color */
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-form-style .submit-btn:hover {
    background-color: #b89362 !important;
    transform: translateY(-2px);
}

```