body {
    margin: 0;
    font-family: sans-serif;
    background: #f8f9fa;
}

/* Header */
.header {
    background: linear-gradient(135deg, #6C0BA9, #a020f0);
    color: #fff;
    text-align: center;
    padding: 120px 20px 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.header h1 {
    color: white;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: none;
}

.header p {
    font-family: 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 400;
}

/* Layout */
.main-layout {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 220px !important;
    background: #fff !important;
    height: 100vh !important;
    padding: 20px !important;
    border-right: 1px solid #eee !important;
    box-shadow: 4px 0 15px rgba(129, 46, 118, 0.05) !important;
    position: sticky !important;
    top: 0 !important;
    overflow-y: auto !important;
    font-family: 'Segoe UI', sans-serif !important;
    box-sizing: border-box !important;
}

.sidebar h3 {
    color: #6C0BA9;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #ad46ec;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar li {
    margin-bottom: 10px !important;
}

.sidebar a {
    display: block !important;
    padding: 8px 15px !important;
    text-decoration: none !important;
    color: #8E2DE2 !important;
    font-family: 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all .3s ease !important;
    line-height: 1.4 !important;
}

.sidebar a:hover {
    background: linear-gradient(135deg, #6C0BA9, #8E2DE2) !important;
    color: #fff !important;
    transform: translateX(5px) !important;
}

.sidebar a.active {
    background: #6C0BA9 !important;
    color: #fff !important;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #8E2DE2;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Right Side */
.content-area {
    flex: 1;
    min-height: 100vh;
    padding: 20px 60px;
    background: #f8f9fa;
    position: relative;
}

.content-area h1 {
    background: linear-gradient(135deg, #6C0BA9, #a020f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #222;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 30px;
    font-size: 27px;
    font-weight: 600;
}

html {
    scroll-behavior: smooth;
}

.section {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 20px;
}

.stats-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 50px 0;
}

.stat-box {
    background: #fff;
    padding: 14px 10px;
    width: 150px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.stat-box h2 {
    font-size: 22px;
    margin: 0 0 4px;
}

.stat-box p {
    font-size: 13px;
    margin: 0;
}

.stat-box h2 {
    color: #6C0BA9;
}

/* POS page navbar only */
.header-area .main-nav {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(121, 189, 58, 0.1);
}

/* Menu text black */
.header-area .main-nav .nav>li> {
    color: #333 !important;
    position: relative;
    padding: 0 8px;
}

.sidebar a.active {
    background: #6C0BA9;
    color: #fff;
}

.header {
    background:
        linear-gradient(rgba(108, 11, 169, .8),
            rgba(160, 32, 240, .8)),
        url('<?php echo base_url(); ?>assets/images/pos-banner.jpg');

    background-size: cover;
    background-position: center;
}

.footer {
    background: transparent;
    color: #222;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/*pricing */
/* Pricing Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #6C0BA9;
}

input:focus+.slider {
    box-shadow: 0 0 1px #6C0BA9;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.pricing-table {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.price-card {
    background: #fff;
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, .05);
    border: 1px solid #e0e0e0;
    border-top: 4px solid transparent;

    display: flex;
    flex-direction: column;
    min-height: auto;
}

.price-card h2 {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
    text-transform: uppercase;
}

.price-card .price-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.price-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
}

.featured {
    border-top: 4px solid #6C0BA9;
    background: #fafafa;
    transform: scale(1.03);
}

.price {
    text-align: center;
    font-family: sans-serif;
    font-size: 42px;
    font-weight: bold;
    margin: 5px 0;
    color: #111;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
    flex: 1;
}

.price-card li {
    padding: 4px 0;
    font-size: 13px;
}

.price-card button {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    padding: 10px 30px;
    border: 1px solid #6C0BA9;
    background: transparent;
    color: #6C0BA9;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.price-card button:hover {
    background: #6C0BA9;
    color: #fff;
}

.featured button {
    background: #6C0BA9;
    color: #fff;
}

.dropdown-toggle::after {
    display: none !important;
}

/* ===== Dashboard Feature Cards ===== */

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 35px auto;
}

/* User Benefits – 4 cards in one row */
.user-benefits-section .tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 750px;
    gap: 20px;
}

.feature-tile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    background: #fff;
    padding: 18px 22px;

    border-radius: 18px;
    border: 1px solid #ececec;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);

    transition: .35s ease;
    cursor: pointer;
}

.feature-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(108, 11, 169, .18);
    border-color: #6C0BA9;
}

.feature-tile .icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f4ebff;
    border-radius: 12px;

    font-size: 22px;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-tile h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.feature-tile p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #666;
    line-height: 18px;
}


.feature-tile:hover::after {
    transform: translateX(6px);
}

/*======dropdown===*/

.dropdown{
    position:relative;
}

.dropdown>a{
    display:block;
    padding:0 8px;
    line-height:70px;
    text-decoration:none;
}

.dropdown-menu{
    display:none;
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    width:260px;
    background:#fff;
    border-radius:16px;
    padding:12px 0;
    margin-top:08px;
    box-shadow:0 12px 30px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    z-index:9999;
    max-height: 300px;   
    overflow-y: auto;     
    overflow-x: hidden;     
}
.dropdown-menu::before{
    content:"";
    position:absolute;
    top:-8px;
    left:50%;
    transform:translateX(-50%) rotate(45deg);
    width:16px;
    height:16px;
    background:#fff;
    z-index: 10000; 
}
.dropdown:hover .dropdown-menu{
    display:block;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}
.dropdown-menu li{
    list-style:none;
    margin:0;
    padding:0 12px;
}
.dropdown-menu li a{
    display:flex;           
    align-items: center;    
    text-align:left;
    justify-content: left;
    height: 48px;
    padding:0;
    padding-left: 30px;
    margin:5px 0;
    color:#333 !important;
    font-size:16px;
    font-weight:500;
    border-radius:10px;
    text-decoration:none;
    transition:all .3s ease;
    box-sizing: border-box;
}
.dropdown-menu li a:hover,
.dropdown-menu li a.active{
    background:linear-gradient(135deg,#6c0ba9,#8E2DE2);
    color:#fff !important;
}
.header-area .main-nav .nav > li > a{
    transition:0.3s;
}
.header-area .main-nav .nav > li > a:hover{
    color:#6C0BA9 !important;
}
.dropdown-menu::-webkit-scrollbar {
    width: 6px; /* Slim scrollbar */
}
.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background: #020202; 
    border-radius: 10px;
}
.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #7f2ed1; 
}
/* Simple Menu Hover */

.header-area .main-nav .nav>li>a {
    transition: 0.3s;
}

.header-area .main-nav .nav>li>a:hover {
    color: #6C0BA9 !important;
}

.header-area .main-nav .nav>li>a.active {
    color: #6C0BA9 !important;
}

.feature-tile {
    transition: all .35s ease;
}

.feature-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 11, 169, .20);
}

.feature-tile:hover .icon {
    transform: scale(1.15);
}

.feature-tile .icon {
    transition: .35s;
}

.feature-tile {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp .8s ease forwards;
}

.feature-tile:nth-child(1) {
    animation-delay: .1s;
}

.feature-tile:nth-child(2) {
    animation-delay: .2s;
}

.feature-tile:nth-child(3) {
    animation-delay: .3s;
}

.feature-tile:nth-child(4) {
    animation-delay: .4s;
}

.feature-tile:nth-child(5) {
    animation-delay: .5s;
}

.feature-tile:nth-child(6) {
    animation-delay: .6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    animation: slideDown 1s ease;
}

.header p {
    animation: fadeIn 1.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

button {
    transition: .3s;
}

button:hover {
    transform: scale(1.05);
}

.sidebar a {
    transition: .3s;
}

.sidebar a:hover {
    padding-left: 25px;
}

/* ================= SCROLL ANIMATION ================= */

.feature-tile,
.price-card,
.stat-box {
    opacity: 0;
    transform: translateY(50px);
    transition: all .8s ease;
}

.feature-tile.show,
.price-card.show,
.stat-box.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================= BACK TO TOP ================= */

#topBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: #6C0BA9;
    color: #fff;

    font-size: 22px;
    font-weight: bold;

    cursor: pointer;

    display: none;

    box-shadow: 0 8px 20px rgba(108, 11, 169, .35);

    transition: all .3s ease;

    z-index: 9999;
}

#topBtn:hover {
    background: #8E2DE2;
    transform: translateY(-4px);
}

/* ================= CTA SECTION ================= */

.cta-section {
    margin: 80px auto;
    max-width: 1100px;
    padding: 60px 40px;
    text-align: center;

    background: linear-gradient(135deg, #6C0BA9, #8E2DE2);
    color: #fff;

    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(108, 11, 169, .25);
}

.cta-section h2 {
    font-size: 38px;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-section p {
    font-size: 18px;
    opacity: .95;
    margin-bottom: 40px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

.ub-card {
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
    transition: all .3s ease;
}

.ub-card:hover {
    box-shadow: 0 10px 20px rgba(108, 11, 169, .1);
    border-color: #8E2DE2;
    transform: translateY(-4px);
}

.ub-number {
    width: 40px;
    height: 40px;
    font-size: 15px;
}

.ub-content h4 {
    font-size: 14px;
    line-height: 1.3;
}

.ub-card:hover {
    border-color: #8E2DE2;
    box-shadow: 0 10px 25px rgba(108, 11, 169, .1);
}

.ub-number {
    width: 50px;
    height: 50px;
    background: #8E2DE2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.ub-content h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.ub-content p {
    margin: 0;
    font-size: 14px;
    color: #777;
    line-height: 1.5;
}

.cta-btn {
    background: #fff;
    color: #6C0BA9;
    border: none;
    padding: 15px 35px;
    border-radius: 35px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.cta-btn:hover {
    transform: translateY(-4px);
}



/* =======================================================
   POS UPDATED TABLET & LAPTOP RESPONSIVE (max-width:991px)
   ======================================================= */
@media only screen and (max-width:991px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .header {
        padding: 90px 15px 40px;
    }

    .header h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .header p {
        font-size: 15px;
    }

    /* Main layout breakdown columns style layout */
    .main-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* Sidebar fluid row navigation slider conversion */
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        padding: 15px;
        margin-bottom: 20px;
        border-right: none;
        border-bottom: 1px solid #eee;
        box-shadow: none;
        box-sizing: border-box;
    }

    .sidebar h3 {
        text-align: center;
        margin-bottom: 15px;
        font-size: 18px;
    }

    /* Horizontal list slider structure logic toggle */
    .sidebar ul {
        display: flex;
        grid-template-columns: none;
        /* Removed grid for cleaner carousel */
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 8px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar li {
        margin: 0;
    }

    .sidebar a {
        display: inline-block;
        width: auto;
        padding: 8px 14px;
        font-size: 12px;
    }

    .content-area {
        width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
    }

    .tiles-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .feature-tile {
        padding: 18px;
    }

    .feature-tile .icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .feature-tile h3 {
        font-size: 18px;
    }

    .feature-tile p {
        font-size: 13px;
    }

    .feature-tile::after {
        display: none;
    }

    .pricing-table {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .price-card {
        width: 100%;
        max-width: 350px;
        min-height: auto;
    }

    .stats-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-box {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    /* CTA Section dynamic tracking */
    .cta-section {
        padding: 40px 20px;
        margin: 40px auto;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .benefits {
        grid-template-columns: 1fr;
        /* Stack elements vertical */
        gap: 12px;
    }
}

/* =======================================================
   POS UPDATED SMALL PHONE RESPONSIVE (max-width:576px)
   ======================================================= */
@media only screen and (max-width:576px) {
    .header {
        padding: 80px 10px 30px;
    }

    .header h1 {
        font-size: 24px;
    }

    .header p {
        font-size: 14px;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .price-card {
        max-width: 100%;
    }

    .content-area {
        padding: 15px;
    }

    .feature-tile {
        padding: 15px;
    }
}



.custom-demo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 40px 0;
}


.cta-mini-tag {
    font-size: 12px;
    font-weight: 700;
    color: #8E2DE2;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #f4ebff;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: #8E2DE2;
}


.premium-oval-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #8E2DE2;
    color: #ffffff;

    padding: 15px 42px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;

    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(91, 6, 148, 0.15);

    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}


.premium-oval-btn:hover {
    transform: translateY(-4px);
    background: #8E2DE2;


    color: #ffffff;

    box-shadow: #8E2DE2;
}


.premium-oval-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s ease;
}

.premium-oval-btn:hover::after {
    left: 125%;
}

/* Click Effect */
.premium-oval-btn:active {
    transform: translateY(-1px);
    box-shadow: #8E2DE2;
}

/* =======================================================
   UNIVERSAL SMARTPHONE RESPONSIVE OVERRIDES (Max-Width: 767px)
   ======================================================= */
@media only screen and (max-width: 767px) {
    
    /* 1. Reset Global Layout & Fix Horizontal Scrolling */
    html, body {
        width: 100% !important;
        overflow-x: hidden !important;
        margin: 0;
        padding: 0;
    }

    .main-layout {
        display: block !important; /* Disables flex side-by-side positioning */
        width: 100% !important;
    }

    /* 2. Strip Sticky Heights from Sidebar & Create a Mobile Nav bar */
    .sidebar {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important; /* Fixes the 100vh page-breaking bug on mobile */
        min-height: auto !important;
        padding: 12px !important;
        border-right: none !important;
        border-bottom: 1px solid #eee !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
        box-sizing: border-box !important;
    }

    .sidebar h3 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
        text-align: center;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    /* Smooth Touch-Swipe Horizontal Menu for Quick Navigation */
    .sidebar ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 6px !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 4px 2px 8px 2px !important;
        -webkit-overflow-scrolling: touch !important; /* Smooth iOS momentum scrolling */
    }

    .sidebar li {
        display: inline-block !important;
        margin-bottom: 0 !important;
        flex: 0 0 auto !important;
    }

    .sidebar a {
        padding: 8px 12px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }
    
    .sidebar a:hover {
        padding-left: 12px !important; /* Disables web-desktop slide-padding shift */
        transform: none !important;
    }

    /* 3. Content Area Adjustments */
    .content-area {
        width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }

    .content-area h1 {
        font-size: 20px !important;
        text-align: center;
        margin-bottom: 20px !important;
    }

    /* 4. Force Every Multi-Column Layout to a Clean Single Column Row */
    .tiles-grid,
    .user-benefits-section .tiles-grid,
    .benefits,
    .pricing-table,
    .stats-section {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important; /* Fallback for grids */
        gap: 12px !important;
        width: 100% !important;
    }

    /* 5. Fluid Card Sizing (Adapts flawlessly from 320px to 480px width) */
    .feature-tile,
    .price-card,
    .stat-box,
    .ub-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; /* Prevents overflow-clip */
        box-sizing: border-box !important;
        margin: 0 0 4px 0 !important;
    }

    /* 6. Fix Layout Breaking Animations on Mobile */
    .feature-tile {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important; /* Disables desktop delay transitions that leave screen blank */
    }

    /* 7. CTA & Button Scaling for Touch Screens */
    .cta-section {
        padding: 30px 15px !important;
        margin: 20px 0 !important;
        border-radius: 12px !important;
    }

    .cta-section h2 {
        font-size: 22px !important;
    }

    .cta-section p {
        font-size: 14px !important;
    }

    .custom-demo-container {
        width: 100% !important;
        padding: 0 !important;
    }

    .premium-oval-btn {
        display: flex !important;
        width: 100% !important; /* Full-width dynamic sizing */
        padding: 14px 20px !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
        justify-content: center;
    }
}
/* ============================================================
   BOOK FOR DEMO MODAL — Premium Floating-Label Design
   ============================================================ */

/* Backdrop animation */
.demo-modal-wrap .modal-backdrop,
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Dialog sizing — fits all content without scroll */
.demo-modal-dialog {
    max-width: 560px !important;
    width: 95% !important;
    margin: auto !important;
}

/* Card shell */
.demo-modal-content {
    border: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 30px 80px rgba(108, 11, 169, 0.30) !important;
    animation: demoModalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes demoModalPop {
    from { opacity: 0; transform: scale(0.88) translateY(30px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---- Header ---- */
.demo-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #6C0BA9, #a020f0);
    padding: 20px 22px;
    position: relative;
}

.demo-modal-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.demo-modal-title {
    margin: 0 0 3px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.demo-modal-subtitle {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.82);
    line-height: 1.4;
}

.demo-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.demo-close-btn:hover {
    background: rgba(255,255,255,0.35);
    transform: none;
}

/* ---- Body ---- */
.demo-modal-body {
    padding: 22px 22px 18px;
    background: #fff;
}

/* Two-column row */
.demo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---- Floating Label Field ---- */
.demo-field-wrap {
    position: relative;
    margin-bottom: 16px;
}

.demo-input {
    width: 100%;
    border: 1.8px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 36px 14px 14px;   /* regular padding */
    font-size: 14px;
    font-family: 'Segoe UI', sans-serif;
    color: #222;
    background: transparent;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.demo-textarea {
    resize: none;
    min-height: 80px;
    line-height: 1.4;
    padding-top: 14px;
}

.demo-input:focus {
    border-color: #8E2DE2;
    box-shadow: 0 0 0 3px rgba(142, 45, 226, 0.12);
}

/* Floating label */
.demo-label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 13px;
    color: #aaa;
    pointer-events: none;
    transition: all 0.2s ease;
    font-family: 'Segoe UI', sans-serif;
    background: #fff;
    padding: 0 4px;
    line-height: 1;
}

/* Textarea label anchors to top, not center */
.demo-field-wrap:has(.demo-textarea) .demo-label {
    top: 24px;
}

/* Label floats up when input has value OR is focused */
.demo-input:not(:placeholder-shown) ~ .demo-label,
.demo-input:focus ~ .demo-label {
    top: 0;
    font-size: 11px;
    color: #8E2DE2;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* textarea label stays at top when active */
.demo-field-wrap:has(.demo-textarea) .demo-input:not(:placeholder-shown) ~ .demo-label,
.demo-field-wrap:has(.demo-textarea) .demo-input:focus ~ .demo-label {
    top: 0;
}

/* Icon inside field */
.demo-field-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
    line-height: 1;
}

.demo-field-icon--textarea {
    top: 14px;
    transform: none;
}

/* ---- Captcha Row ---- */
.demo-captcha-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.demo-captcha-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f4ebff, #ece0ff);
    border-radius: 10px;
    padding: 10px 14px;
    border: 1.8px solid #d5b3f5;
}

.demo-captcha-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 5px;
    color: #4d0877;
    font-family: 'Courier New', monospace;
    user-select: none;
    min-width: 90px;
    text-align: center;
}

.demo-captcha-refresh {
    background: none;
    border: none;
    color: #8E2DE2;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.3s;
}

.demo-captcha-refresh:hover {
    transform: rotate(180deg) scale(1.2);
}

.demo-captcha-input-wrap {
    margin-bottom: 0;
}

/* ---- Submit Button ---- */
.demo-submit-btn {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #6C0BA9, #a020f0);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(108, 11, 169, 0.30);
    position: relative;
    overflow: hidden;
}

.demo-submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.demo-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(108, 11, 169, 0.40);
}

.demo-submit-btn:hover::after {
    left: 120%;
}

.demo-submit-btn:active {
    transform: translateY(0);
}

.demo-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ---- Responsive ---- */
@media (max-width: 540px) {
    .demo-form-row {
        grid-template-columns: 1fr;
    }
    .demo-captcha-row {
        grid-template-columns: 1fr;
    }
    .demo-modal-body {
        padding: 16px;
    }
}
