/* assets/css/style.css */

/* --- 1. Theme Variables (New: Warm & Trustworthy) --- */
:root {
    --primary-color: #1A237E;  /* Deep Navy Blue */
    --accent-color: #FF7043;   /* Warm Orange */
    --accent-color-dark: #F4511E;
    --secondary-color: #37474F; /* Dark Slate Gray for text */
    --text-light: #607D8B;
    --background-color: #FAFAFA;
    --surface-color: #FFFFFF;
    --border-color: #ECEFF1;

    /* New Typography */
    --font-family-body: 'Lato', sans-serif;
    --font-family-heading: 'Merriweather', serif;

    --border-radius: 6px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.07);
}

/* --- 2. General Reset & Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-family-body);
    background-color: var(--background-color);
    color: var(--secondary-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-family-heading); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.8rem; } h2 { font-size: 2.2rem; } h3 { font-size: 1.6rem; }

/* --- 3. Header & Navigation --- */
.main-header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.header-location { display: flex; align-items: center; cursor: pointer; padding: 8px 12px; border-radius: var(--border-radius); transition: background-color 0.3s; }
.header-location:hover { background-color: #f1f1f1; }
.header-location svg { margin-right: 8px; color: var(--primary-color); }
.header-location span { font-weight: 500; }
.header-location .pincode { font-weight: 600; color: var(--primary-color); }
.desktop-nav a { margin-left: 30px; color: var(--secondary-color); font-weight: 500; text-decoration: none; transition: color 0.3s; }
.desktop-nav a:hover { color: var(--primary-color); }

/* --- 4. Mobile Menu (FIXED) --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2002;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.slide-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background-color: var(--surface-color);
    box-shadow: var(--shadow-md);
    z-index: 2001;
    padding: 80px 30px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
.slide-menu.open { transform: translateX(0); }
.slide-menu ul { list-style: none; }
.slide-menu ul li a { display: block; padding: 15px 0; color: var(--secondary-color); font-size: 1.2rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--border-color); }
.slide-menu ul li a:hover { color: var(--primary-color); }

.menu-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-overlay.show { opacity: 1; visibility: visible; }

/* --- 5. Location Modal (No style changes needed) --- */
/* Existing modal styles are compatible */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 3000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); background: var(--surface-color); padding: 40px; border-radius: var(--border-radius); width: 90%; max-width: 450px; box-shadow: var(--shadow-md); text-align: center; z-index: 3001; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.active .modal-content { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }
.modal-content h2 { margin-bottom: 10px; } .modal-content p { color: var(--text-light); margin-bottom: 25px; } .pincode-form { display: flex; } .pincode-form input { flex-grow: 1; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--border-radius) 0 0 var(--border-radius); font-size: 1rem; text-align: center; letter-spacing: 2px; } .pincode-form input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(255, 112, 67, 0.2); } .pincode-form button { padding: 12px 25px; border: none; background-color: var(--accent-color); color: white; font-size: 1rem; font-weight: 600; cursor: pointer; border-radius: 0 var(--border-radius) var(--border-radius) 0; transition: background-color 0.3s; } .pincode-form button:hover { background-color: var(--accent-color-dark); }

/* --- 6. Hero Section --- */
.hero-section {
    padding: 80px 0;
    background-color: var(--background-color);
}
.hero-content {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}
.btn { display: inline-block; padding: 14px 32px; border-radius: var(--border-radius); border: none; font-size: 1rem; font-weight: 600; cursor: pointer; text-align: center; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background-color: var(--accent-color); color: var(--surface-color); }
.btn-primary:hover { background-color: var(--accent-color-dark); transform: translateY(-3px); box-shadow: var(--shadow-md); }


/* --- 7. Dashboard & Listings --- */
.dashboard { padding: 60px 0; }
.dashboard h2 { text-align: center; margin-bottom: 50px; }
.tabs { display: flex; justify-content: center; border-bottom: 1px solid var(--border-color); margin-bottom: 40px; }
.tab-link { background: none; border: none; padding: 15px 30px; cursor: pointer; font-size: 1.1rem; font-weight: 500; color: var(--text-light); position: relative; transition: color 0.3s; } .tab-link:hover { color: var(--primary-color); }
.tab-link::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background-color: var(--primary-color); transform: scaleX(0); transition: transform 0.3s ease; } .tab-link.active { color: var(--primary-color); }
.tab-link.active::after { transform: scaleX(1); }
.tab-content { display: none; } .tab-content.active { display: block; }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.provider-card { background: var(--surface-color); border-radius: var(--border-radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; color: var(--secondary-color); display: flex; flex-direction: column; border: 1px solid var(--border-color); }
.provider-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-image-wrapper { width: 100%; height: 200px; overflow: hidden; }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.provider-card:hover .card-image-wrapper img { transform: scale(1.05); }
.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h4 { font-family: var(--font-family-body); font-weight:600; font-size:1.2rem; margin-bottom: 5px; }
.card-content p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; flex-grow: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.rating { font-weight: 600; color: #FFA000; }

/* --- 8. Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 60px 0 20px;
    margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 40px; }
.footer-column h4 { font-family:var(--font-family-body); font-weight:600; color: var(--surface-color); margin-bottom: 20px; font-size: 1.1rem; }
.footer-column ul { list-style: none; } .footer-column ul li a { color: #ccc; text-decoration: none; display: block; margin-bottom: 10px; transition: color 0.3s; }
.footer-column ul li a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #444; font-size: 0.9rem; }

/* --- 9. Mobile Responsiveness --- */
@media (max-width: 992px) {
    .header-location, .desktop-nav { display: none; }
    .hamburger { display: flex; }
}
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 2.8rem; }
}

/* assets/css/style.css */

/* --- ADDITIONS & MODIFICATIONS FOR NEW THEME --- */

/* --- 6. Hero Section (New Split Layout) --- */
.hero-section {
    display: flex;
    align-items: center;
    background-color: var(--background-color);
    padding: 60px 0;
    min-height: 80vh;
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-left {
    flex: 1 1 55%;
}

.hero-right {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-right img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.hero-left h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.hero-left p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 500px;
}

/* Hero Search Bar */
.hero-search-container {
    background: var(--surface-color);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    max-width: 550px;
}

.search-tabs {
    display: flex;
    margin-bottom: 15px;
}

.search-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background: #f0f0f0;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.search-tab:first-child { border-radius: var(--border-radius) 0 0 var(--border-radius); }
.search-tab:last-child { border-radius: 0 var(--border-radius) var(--border-radius) 0; }

.search-tab.active {
    background: var(--surface-color);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.search-form {
    display: flex;
    gap: 10px;
}
.search-form .input-group {
    flex-grow: 1;
}

.search-form input[type="text"] {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-form .btn-primary {
    padding: 14px 25px;
}


/* --- 9. Mobile Responsiveness (CORRECTED) --- */
@media (max-width: 992px) {
    /* --- FIX: Show location in mobile header --- */
    .header-location {
        display: flex; /* Ensure it's visible */
        order: -1; /* Move it to the left of the logo if needed, or adjust spacing */
        margin-right: auto; /* Push logo and hamburger to the right */
        margin-left: -10px; /* Adjust spacing */
        padding: 6px 8px;
        border: 1px solid var(--border-color);
    }
    .header-location span {
        font-size: 0.9rem;
    }
    .header-location .pincode + span {
       display: none; /* Hide the "Select Location" text to save space */
    }
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    .logo {
        position: absolute; /* Center the logo */
        left: 50%;
        transform: translateX(-50%);
    }

    /* --- FIX: Optimize hero section for mobile --- */
    .hero-section {
        padding: 40px 0;
    }
    .hero-split {
        flex-direction: column;
        text-align: center;
    }
    .hero-left {
        order: 2; /* Text comes after image */
    }
    .hero-right {
        order: 1;
        margin-bottom: 40px;
        width: 100%;
    }
    .hero-right img {
        max-width: 300px; /* Control image size on mobile */
        margin: 0 auto;
    }
    .hero-left h1 {
        font-size: 2.5rem; /* Reduce heading size */
    }
    .hero-left p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }
    .hero-search-container {
        margin: 0 auto;
        width: 100%; /* Make search bar full width */
    }
}
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Two columns on desktop */
    gap: 40px;
}

/* --- FIX: Make Checkout Page Mobile-Optimized --- */
@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr; /* A single column on mobile */
    }
}
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Two columns on desktop */
    gap: 40px;
    margin-top: 20px;
}

/* --- FIX: Make Cart Page Mobile-Optimized --- */
@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr; /* A single column on mobile */
    }
}
.booking-options { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.btn-schedule, .btn-buy-package { display: block; text-align: center; padding: 10px; border-radius: 5px; text-decoration: none; font-weight: 600; }
.btn-schedule { background-color: #f1f1f1; color: var(--secondary-color); border: 1px solid var(--border-color); }
.btn-buy-package { background-color: var(--primary-color); color: white; }

/* --- New Profile Page Layout --- */
.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr; /* Sidebar and main content */
    gap: 40px;
}

.provider-info-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: sticky; /* Make it stick on scroll */
    top: 100px; /* Position below the main header */
    align-self: start; /* Prevent it from stretching */
}

.provider-info-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.provider-info-content {
    padding: 20px;
}
.provider-info-content h1 { font-size: 1.8rem; margin: 0; }
.provider-info-content .provider-specialty { font-size: 1rem; color: var(--text-light); margin-top: 5px; }
.provider-info-content hr { border: 0; border-top: 1px solid var(--border-color); margin: 15px 0; }
.provider-info-content .provider-description { font-size: 0.9rem; line-height: 1.6; }


/* New Offering Card Styles */
.offerings-list h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.offering-card-new {
    display: flex;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.offering-card-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}
.offering-card-body {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    gap: 20px;
}
.offering-card-main h4 { font-family: var(--font-family-body); font-weight: 600; font-size: 1.3rem; margin: 0 0 10px; }
.offering-card-main .offering-description { font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; }
.offering-card-main .specs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; }
.spec-tag { background-color: #ECEFF1; color: #37474F; padding: 5px 10px; border-radius: 20px; }

.offering-card-action {
    text-align: right;
    flex-shrink: 0;
    width: 150px;
}
.offering-card-action .price { font-size: 1.6rem; font-weight: 700; color: var(--primary-color); margin-bottom: 15px; }

.info-notice {
    background: #fff3cd; color: #856404; padding: 15px; border-radius: 5px;
}

/* Mobile Responsiveness for Profile Page */
@media (max-width: 992px) {
    .profile-layout {
        grid-template-columns: 1fr; /* Stack into a single column */
    }
    .provider-info-card {
        position: static; /* Un-stick the sidebar */
    }
    .offering-card-body {
        flex-direction: column;
    }
    .offering-card-action {
        text-align: left;
        width: 100%;
        margin-top: 15px;
    }
}
.box-contents { margin-top: 15px; font-size: 0.9rem; color: var(--text-light); }
.box-contents-highlight {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #F7F9FA; /* Light, clean background */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.box-contents-highlight strong {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 600;
}

.box-contents-highlight ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.box-contents-highlight li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 5px;
    color: var(--text-light);
}

.box-contents-highlight li::before {
    content: '✓'; /* Checkmark icon */
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}
/* --- Special Tag Colors --- */
/* Dietary Preferences */
.spec-tag--veg { background-color: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.spec-tag--nonveg { background-color: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }
.spec-tag--egg { background-color: #FFFDE7; color: #F9A825; border: 1px solid #FFF59D; }

/* Meal Types */
.spec-tag--breakfast { background-color: #FFF3E0; color: #EF6C00; border: 1px solid #FFCC80; }
.spec-tag--lunch { background-color: #E3F2FD; color: #1565C0; border: 1px solid #90CAF9; }
.spec-tag--snack { background-color: #F3E5F5; color: #6A1B9A; border: 1px solid #CE93D8; }
.spec-tag--dinner { background-color: #E8EAF6; color: #283593; border: 1px solid #9FA8DA; }

/* --- Delivery Timing --- */
.delivery-timing {
    margin-top: 15px;
    font-size: 0.9rem;
    padding: 8px 12px;
    background-color: #F7F9FA;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
}
.delivery-timing strong {
    color: var(--secondary-color);
}
/* --- New, Improved Offering Card Styles --- */
.offering-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}
.offering-card:hover {
    box-shadow: var(--shadow-md);
}

.offering-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.offering-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.offering-card-details {
    flex-grow: 1;
}

.offering-card-details h4 {
    font-family: var(--font-family-body);
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0 0 10px;
}
.offering-card-details .specs {
    margin-top: 15px;
    margin-bottom: 15px;
}

.offering-card-action {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.offering-card-action .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.action-buttons .btn-primary, .action-buttons .btn-secondary {
    padding: 8px 16px;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 5px;
    font-weight: 600;
}
.btn-secondary {
    background-color: #f1f1f1;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}
/* --- New My Account Page Styles --- */
.notice {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    background: #d4edda;
    color: #155724;
}

.tab-content {
    display: none;
    margin-top: 20px;
}
.tab-content.active {
    display: block;
}
.empty-notice {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.account-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}
.account-card .card-main {
    flex-grow: 1;
}
.account-card h4 {
    font-family: var(--font-family-body);
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0 0 5px;
}
.account-card p {
    margin: 0 0 10px;
    color: var(--text-light);
}
.card-details {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 15px;
}
.card-details span strong {
    color: var(--secondary-color);
}

.btn-manage {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Status Colors */
.status-active, .status-Scheduled { font-weight: bold; color: #2E7D32; }
.status-paused { font-weight: bold; color: #EF6C00; }
.status-expired, .status-cancelled { font-weight: bold; color: #C62828; }

/* Progress Bar for Packages */
.progress-bar-container {
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 10px;
    width: 100%;
    max-width: 300px;
    overflow: hidden;
    margin-top: 5px;
}
.progress-bar-fill {
    background-color: var(--primary-color);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}
/* --- FIX: Make My Account Page Mobile-Optimized --- */
@media (max-width: 768px) {
    /* Allows the tabs to scroll horizontally if they don't fit */
    .dashboard .tabs {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Makes the cards stack vertically on mobile */
    .account-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Makes the details inside the card stack */
    .card-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Makes the 'Manage' button full-width for a cleaner look */
    .btn-manage {
        width: 100%;
        text-align: center;
    }
}
.wallet-overview { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 15px 20px; border-radius: 8px; margin: 20px 0; }
.wallet-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.balance-card, .add-money-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.balance-card p { font-size: 2.5rem; font-weight: bold; color: var(--primary-color); }

/* --- New Wallet Page Styles --- */
.wallet-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.wallet-balance span {
    font-size: 1.1rem;
    color: var(--text-light);
}
.wallet-balance h2 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin: 10px 0 0 0;
}
.wallet-action h4 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}
.add-money-form {
    display: flex;
    gap: 10px;
}
.add-money-form input {
    flex-grow: 1;
}
.transaction-history {
    margin-top: 40px;
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}
.transaction-history table {
    margin-top: 20px;
}
.transaction-history td.amount-credit {
    color: #2E7D32; /* Green */
    font-weight: bold;
}
.transaction-history td.amount-debit {
    color: #C62828; /* Red */
    font-weight: bold;
}

/* Mobile Responsiveness for Wallet */
@media (max-width: 768px) {
    .wallet-card {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .wallet-balance {
        text-align: center;
        margin-bottom: 20px;
    }
    .add-money-form {
        flex-direction: column;
    }
}
/* --- New Checkout Page Styles --- */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.checkout-steps .step {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-light);
}
.checkout-steps .step.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.checkout-card {
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.checkout-card h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.summary-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}
.summary-item .item-details {
    flex-grow: 1;
}
.summary-item .item-details span { font-weight: 600; }
.summary-item .item-details small { color: var(--text-light); display: block; }
.summary-item .item-price { font-weight: 600; }

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 1.2rem;
}

/* Mobile Responsiveness for Checkout */
@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    .checkout-summary {
        order: -1; /* Move summary to the top on mobile */
    }
}/* --- Global Form Styles --- */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family-body);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.2);
}
.form-control[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}
.notifications-section {
    margin: 30px 0;
}
.notifications-section h4 {
    margin-bottom: 10px;
}
/* --- Fix for Summary Card Images --- */
.offering-summary-card { 
    display: flex; 
    gap: 20px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 20px; 
    margin-bottom: 20px; 
}
.offering-summary-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.offering-summary-card h3 { 
    margin-top: 0; 
}
.offering-summary-card .price { 
    font-size: 1.2rem; 
    color: var(--primary-color); 
}
/* --- Styles for Summary Cards --- */
.offering-summary-card { 
    display: flex; 
    gap: 20px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 20px; 
    margin-bottom: 20px; 
}
.offering-summary-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.offering-summary-card h3 { 
    margin-top: 0; 
}
.offering-summary-card .price { 
    font-size: 1.2rem; 
    color: var(--primary-color); 
}
.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 1.2rem;
}
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.wallet-overview, .profile-overview { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 15px 20px; border-radius: 8px; border: 1px solid var(--border-color); }
.stat-box { 
    background: white; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: var(--shadow-sm); 
    text-align: center; 
    border: 1px solid var(--border-color);
}
.stat-box h4 { 
    margin: 0; 
    color: var(--text-light); 
    font-family: var(--font-family-body);
    font-weight: 600;
}
.stat-box .stat-number { 
    font-size: 2.5rem; 
    font-weight: bold; 
    margin: 10px 0 0; 
    color: var(--primary-color); 
}
.provider-actions { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
}
.action-card { 
    background: white; 
    padding: 25px; 
    border-radius: 8px; 
    box-shadow: var(--shadow-sm); 
    border: 1px solid var(--border-color);
    text-decoration: none; 
    color: var(--secondary-color); 
    transition: transform 0.2s, box-shadow 0.2s; 
}
.action-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-md); 
}
.action-card h4 { 
    margin: 0 0 10px; 
    font-size: 1.3rem;
}
.action-card p { 
    margin: 0; 
    color: var(--text-light); 
    font-size: 0.9rem;
}
/* --- Provider Subscriptions Page Styles --- */
.filter-bar {
    margin-top: 20px;
    padding: 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}
.filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
}
.filter-form input, .filter-form select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}
.filter-form input {
    flex-grow: 1;
}
.filter-form button {
    padding: 10px 20px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
}

.subscription-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}
.sub-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.sub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}
.sub-card-header h4 {
    margin: 0;
    font-size: 1.2rem;
}
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.sub-card-body {
    padding: 20px;
    flex-grow: 1;
}
.sub-card-body p {
    margin: 0 0 10px;
}
.sub-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f9f9f9;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}
/* --- Provider Dashboard Table Styles --- */
.provider-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensures border-radius is respected by table rows */
}

.provider-table th, .provider-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.provider-table thead {
    background-color: #f9fafb;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.provider-table tbody tr:last-child td {
    border-bottom: none;
}

.provider-table tbody tr:hover {
    background-color: #f5f5f5;
}
/* --- My Account Page Enhancements --- */
.status-Completed { 
    font-weight: bold;
    color: #2E7D32; 
}
.status-Pending { 
    font-weight: bold;
    color: #EF6C00; 
}

/* Wallet Transaction Table Colors */
.provider-table td.amount-credit {
    color: #2E7D32; /* Green */
    font-weight: bold;
    font-size: 1.1rem;
}
.provider-table td.amount-debit {
    color: #C62828; /* Red */
    font-weight: bold;
    font-size: 1.1rem;
}
/* --- Star Rating Styles --- */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label { font-size: 2rem; color: #ddd; cursor: pointer; transition: color 0.2s; }
.star-rating input:checked ~ label, .star-rating:not(:checked) > label:hover, .star-rating:not(:checked) > label:hover ~ label { color: #FFC107; }

/* Read-only star display */
.provider-rating-summary { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.stars { display: inline-block; font-size: 1.2rem; position: relative; color: #ddd; }
.stars::before { content: '★★★★★'; color: #FFC107; position: absolute; top: 0; left: 0; white-space: nowrap; overflow: hidden; width: calc(var(--rating, 0) / 5 * 100%); }
.rating-value { font-weight: bold; font-size: 1.1rem; }
.review-count { font-size: 0.9rem; color: var(--text-light); }

/* Review List Styles */
.reviews-section { margin-top: 40px; }
.reviews-section h3 { padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.review-card { padding: 20px 0; border-bottom: 1px solid var(--border-color); }
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-card p { margin: 0 0 10px; color: var(--secondary-color); }
.review-card small { color: var(--text-light); }
.status-toggle-card { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-radius: 8px; margin: 20px 0; }
.status-toggle-card.status-online { background: #E8F5E9; border: 1px solid #A5D6A7; }
.status-toggle-card.status-offline { background: #FFEBEE; border: 1px solid #EF9A9A; }
.status-toggle-card strong { font-size: 1.5rem; display: block; }
.status-online strong { color: #2E7D32; }
.status-offline strong { color: #C62828; }
.btn-toggle { padding: 10px 20px; font-weight: 600; border-radius: 5px; border: 2px solid; cursor: pointer; }
.status-online .btn-toggle { background: #C62828; color: white; border-color: #C62828; }
.status-offline .btn-toggle { background: #2E7D32; color: white; border-color: #2E7D32; }
.booking-type-selector { display: flex; margin-top: 20px; }
.booking-type-option { flex: 1; text-align: center; padding: 15px; border: 1px solid var(--border-color); background: #f9f9f9; cursor: pointer; }
.booking-type-option.active { background: var(--surface-color); border-bottom: 1px solid var(--surface-color); }
.booking-form-container { display: none; background: var(--surface-color); border: 1px solid var(--border-color); border-top: none; padding: 30px; }
.booking-form-container.active { display: block; }



/* --- New Modern Provider Card Styles --- */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.provider-card-v2 {
    background: var(--surface-color);
    border-radius: 12px; /* Softer corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.provider-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.provider-card-v2 .card-image-wrapper {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.provider-card-v2 .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.provider-card-v2:hover .card-image-wrapper img {
    transform: scale(1.08);
}

.provider-card-v2 .card-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.provider-card-v2 .card-content {
    padding: 20px;
    flex-grow: 1;
}

.provider-card-v2 .card-content h4 {
    margin: 0 0 5px;
    font-family: var(--font-family-heading);
    font-size: 1.3rem;
}

.provider-card-v2 .card-content p {
    margin: 0 0 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Colorful Tags */
.quick-tag.tag-veg { background-color: #E8F5E9; color: #2E7D32; }
.quick-tag.tag-lunch { background-color: #E3F2FD; color: #1565C0; }
.quick-tag.tag-service { background-color: #F3E5F5; color: #6A1B9A; }

/* --- New Modern Offering Card Styles (for profile.php) --- */
.offerings-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.offering-card-v2 {
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    text-decoration: none;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offering-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.offering-card-v2 .card-image-wrapper {
    width: 100%;
    height: 160px; /* Slightly shorter for offerings */
    position: relative;
    overflow: hidden;
}

.offering-card-v2 .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offering-type-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Specific badge colors for different offering types */
.offering-type-badge.type-subscription { background: linear-gradient(45deg, #673AB7, #9C27B0); } /* Deep Purple */
.offering-type-badge.type-package { background: linear-gradient(45deg, #FF9800, #FF5722); }    /* Deep Orange */
.offering-type-badge.type-onetime, .offering-type-badge.type-service { background: linear-gradient(45deg, #4CAF50, #8BC34A); } /* Green */


.offering-card-v2 .card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes footer to bottom */
}

.offering-card-v2 .card-content h4 {
    margin: 0 0 5px;
    font-family: var(--font-family-heading);
    font-size: 1.15rem;
    line-height: 1.4;
}

.offering-card-v2 .card-content p {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-grow: 1; /* Allows description to take available space */
}

.offering-card-v2 .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px; /* Space above footer */
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.offering-card-v2 .card-footer .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.offering-card-v2 .card-footer .package-credits {
    background-color: #E0F7FA;
    color: #00838F;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- New Profile Page Sidebar and Visiting Card Styles --- */
.provider-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
    align-self: start;
}

/* New Profile Card */
.profile-card {
    text-align: center;
}
.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid var(--surface-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.profile-name {
    font-size: 1.8rem;
    margin: 0;
}
.profile-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-top: 15px;
}


/* Updated Digital Card */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.card-header-flex h3 { margin: 0; }
.download-buttons { display: flex; gap: 10px; }
.download-button { background: #f1f1f1; border: 1px solid var(--border-color); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; color: var(--secondary-color); transition: background-color 0.2s; }
.download-button:hover { background-color: #e0e0e0; }

/* Flipping Card Styles */
.card-container { perspective: 1000px; }
.visiting-card { width: 100%; height: 180px; position: relative; transform-style: preserve-3d; transition: transform 0.8s; cursor: pointer; }
.card-container:hover .visiting-card { transform: rotateY(180deg); }
.card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; padding: 20px; }

/* Card Front */
.card-front {
    background: linear-gradient(45deg, var(--primary-color), #303F9F);
    color: white;
}
.card-front-content h4 { font-size: 1.5rem; margin: 0; }
.powered-by { font-size: 0.8rem; text-align: left; margin-top: 5px; opacity: 0.9; }
.powered-by .logo-text { font-weight: bold; }

/* Card Back */
.card-back {
    background: #fdfdfd;
    color: var(--secondary-color);
    transform: rotateY(180deg);
}
.card-back-details { font-size: 0.9rem; line-height: 1.5; color: var(--text-light); }

.qr-code-container { background: white; padding: 5px; border-radius: 4px; display: flex; }
.qr-code-container canvas { display: block; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .provider-info-sidebar {
        position: static;
        order: -1; /* Move sidebar to top on mobile */
    }
}

/* --- Flipping Card Styles -- VERTICAL UPDATE --- */
.card-container {
    perspective: 1500px;
    height: 340px; /* Set a taller container height */
    max-width: 220px; /* Set a standard vertical card width */
    margin: 0 auto;
}
.visiting-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
}
.card-container:hover .visiting-card {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hides the back of the card when facing away */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column; /* Main change to vertical */
    justify-content: space-between; /* Space out top and bottom content */
    padding: 25px 20px;
}

/* Card Front */
.card-front {
    background: linear-gradient(160deg, var(--primary-color), #303F9F);
    color: white;
    align-items: center; /* Center content horizontally */
    text-align: center;
}
.card-front-top h4 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}
.card-front .powered-by {
    font-size: 0.8rem;
    opacity: 0.9;
}
.card-front .powered-by .logo-text {
    font-weight: bold;
}

/* Card Back */
.card-back {
    background: #fdfdfd;
    color: var(--secondary-color);
    transform: rotateY(180deg); /* Pre-rotated */
    align-items: center;
    text-align: center;
}
.card-back-details h4 {
    font-size: 1.2rem;
    margin:0 0 10px;
}
.card-back-details p {
    font-size: 0.9rem;
    margin: 2px 0;
    color: var(--text-light);
}

.qr-code-container {
    background: white;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
}
.qr-code-container canvas {
    display: block;
}
.visiting-card.capture-back {
    transform: rotateY(180deg); /* Force the card to be flipped */
}
.visiting-card.capture-back .card-back {
    box-shadow: none; /* Remove shadow from the back during capture */
}
.download-button {
    gap: 5px; /* Add space between icon and text */
}


