/*
Theme Name: Insurance Theme
Author: Aditya Shivhare
Version: 1.0
*/



/* Drawer Layout */
.pb-drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999999;
    display: none;
    backdrop-filter: blur(3px);
}

.pb-drawer {
    position: fixed;
    right: -100%;
    top: 0; 
    width: 450px; 
    max-width: 100%;
    height: 100%;
    background: #fff;
    transition: right 0.4s ease-in-out;
    display: flex;
    flex-direction: column; /* Stacks Header, Content, and Footer */
    padding: 0; /* Removed padding here to handle it inside sections */
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.pb-drawer-overlay.active { display: block; }
.pb-drawer-overlay.active .pb-drawer { right: 0; }

/* Header Section */
.pb-drawer-header {
    padding: 25px 25px 10px 25px;
    flex-shrink: 0; /* Prevents header from shrinking */
}

/* Middle Content - THIS ENABLES SCROLLING */
#premiumWizard {
    flex: 1; /* Takes up all available space */
    overflow-y: auto; /* Scroll only this part */
    padding: 0 25px; /* Side padding for content */
    margin-bottom: 10px;
}

/* Step Visibility */
.step-content { display: none; }
.step-content.active { display: block; }

/* UI Elements */
.text-pink { color: #e91e63; font-weight: bold; }
.pb-main-title { font-size: 22px; font-weight: 800; color: #1a1c3d; margin-bottom: 5px; }
.pb-section-label { font-weight: 600; margin-bottom: 15px; color: #555; }

/* Grid for Members */
.pb-member-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
}

.pb-member-item {
    border: 1px solid #eee; 
    padding: 12px; 
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    cursor: pointer; 
    transition: 0.2s;
    background: #f9f9f9;
}
.pb-member-item img { width: 30px; height: 30px; margin-right: 10px; }
.pb-member-item.active { border: 2px solid #006aff; background: #f0f6ff; color: #006aff; font-weight: bold; }

/* Form Fields */
.age-group { 
    background: #f8f9fa; 
    padding: 15px; 
    border-radius: 10px; 
    margin-bottom: 15px; 
    border-left: 4px solid #006aff; 
}
.form-control { 
    width: 100%; 
    padding: 12px; 
    margin: 8px 0; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    box-sizing: border-box; 
}

/* Footer & Buttons - STAYS FIXED AT BOTTOM */
.pb-drawer-footer { 
    border-top: 1px solid #eee; 
    padding: 20px 25px; 
    background: #fff;
    flex-shrink: 0; /* Prevents footer from shrinking */
}
.btn-row { display: flex; justify-content: space-between; gap: 10px; }
.pb-continue-btn { background: #006aff; color: #fff; border: none; padding: 15px 30px; border-radius: 8px; font-weight: bold; cursor: pointer; flex: 1; }
.pb-back-btn { background: #fff; border: 1px solid #ccc; padding: 12px 20px; border-radius: 8px; cursor: pointer; }
.error-text { color: red; font-size: 12px; margin-top: 5px; display: none; }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 576px) {
    .pb-drawer {
        width: 100%;
    }
    .pb-member-grid {
        grid-template-columns: 1fr;
    }
    .pb-main-title {
        font-size: 18px;
    }
}


