:root {
    --primary: #FFC107;
    --primary-hover: #e0a800;
    --secondary: #FFFFFF;
    --tertiary: #000000;
    --neutral: #F2F2F2;
    --bg-light: #FAFAFB;
    --warning-light: #FFF8E1;
    --warning-dark: #D48806;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: #121212;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utilities */
.tracking-wide {
    letter-spacing: 0.05em;
}

.bg-warning-light {
    background-color: var(--warning-light);
}

.text-warning-dark {
    color: var(--warning-dark);
}

.desktop-wrapper {
    background-color: var(--bg-light);
}

.mobile-wrapper {
    background-color: #FFFFFF;
}
.mobile-bg-light {
    background-color: var(--bg-light);
}

/* Desktop Navbar */
.desktop-nav-link {
    transition: all 0.3s ease;
    padding-bottom: 0.5rem;
    position: relative;
    color: #6c757d !important;
}

.desktop-nav-link:hover {
    color: var(--tertiary) !important;
}

.desktop-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.desktop-nav-link:hover::after {
    width: 100%;
}

.active-link::after {
    width: 100% !important;
}

.active-link {
    color: var(--tertiary) !important;
}

/* Profile Circle Fix */
.profile-circle {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Dropdown (Desktop) */
.profile-dropdown .profile-circle {
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.profile-dropdown .profile-circle:hover,
.profile-dropdown.show .profile-circle {
    box-shadow: 0 0 0 4px var(--warning-light);
}

.profile-dropdown-menu {
    min-width: 260px;
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    animation: profile-dropdown-in 0.18s ease-out;
}

@keyframes profile-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown-header {
    padding: 0.75rem 1rem 0.5rem;
}

.profile-dropdown-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--tertiary);
}

.profile-dropdown-phone {
    font-size: 0.8rem;
    color: #6c757d;
}

.profile-dropdown-menu .dropdown-divider {
    margin: 0.4rem 0.5rem;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #343a40;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.profile-dropdown-item i {
    width: 1.25rem;
    text-align: center;
    font-size: 1.05rem;
    color: var(--warning-dark);
}

.profile-dropdown-item:hover,
.profile-dropdown-item:focus {
    background-color: var(--warning-light);
    color: var(--tertiary);
}

.profile-dropdown-item.profile-dropdown-logout {
    color: #dc3545;
}

.profile-dropdown-item.profile-dropdown-logout i {
    color: #dc3545;
}

.profile-dropdown-item.profile-dropdown-logout:hover {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

/* Mobile Toggle Stylish */
#mobileMenuBtn {
    background: transparent;
    border: none;
    outline: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border-radius: 8px;
}

#mobileMenuBtn:active {
    background: rgba(0,0,0,0.05);
}

#mobileMenuBtn i {
    font-size: 1.6rem;
    color: var(--tertiary);
}

/* Desktop Cards */
.desktop-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02) !important;
}

.desktop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    background: white;
    z-index: 1050;
    transition: left 0.3s ease-in-out;
    box-shadow: 5px 0 15px rgba(0,0,0,0.05);
}

.mobile-drawer.open {
    left: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 1045;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.drawer-overlay.open {
    visibility: visible;
    opacity: 1;
}

/* Mobile Ribbon */
.mobile-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    background-color: #D32F2F;
    color: white;
    padding: 3px 40px;
    font-size: 0.45rem;
    font-weight: 800;
    transform: rotate(45deg);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    letter-spacing: 1px;
}

/* Adjustments for custom icons and containers */
.icon-circle {
    aspect-ratio: 1;
}

.btn-warning {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    transition: background-color 0.2s ease;
}

.btn-warning:hover {
    background-color: var(--primary-hover) !important;
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
}

/* Forms & Accordions for Contact Page */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--tertiary);
    background-color: transparent;
    box-shadow: none;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.125);
}

.custom-accordion .accordion-button::after {
    background-size: 1rem;
}

/* Dynamic FAQ Active State */
.active-faq {
    background-color: var(--warning-light) !important;
    border-color: var(--primary) !important;
}

/* Mobile Bottom Nav Active */
.mobile-nav-active i, .mobile-nav-active span {
    color: var(--primary) !important;
    font-weight: 800 !important;
}

/* Stepper Styles */
.step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #A0A0A0; /* upcoming state */
    font-size: 0.9rem;
}
.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background-color: #EBEBEB;
    color: #A0A0A0;
}
.step-item.completed {
    color: #121212;
    font-weight: 700;
}
.step-item.completed .step-circle {
    background-color: #121212;
    color: white;
}
.step-item.active {
    color: #121212;
    font-weight: 700;
}
.step-item.active .step-circle {
    background-color: var(--primary);
    color: #121212;
}
.step-divider {
    flex-grow: 1;
    height: 2px;
    background-color: #F0F0F0;
    margin: 0 1rem;
}

/* Time Slot Pills */
.time-slot {
    border: 1px solid #E0E0E0;
    background-color: white;
    color: #333;
    cursor: pointer;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.time-slot.selected {
    background-color: #121212;
    color: white;
    border-color: #121212;
}

/* Premium Shadow Utility */
.premium-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 8px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* App Preloader */
.app-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    z-index: 9999;
    display: none; /* Controlled by JS and Media Query */
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

@media (max-width: 991px) {
    .app-preloader {
        display: flex;
    }
}

.animate-spin {
    animation: spin 1.5s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-content {
    animation: pulse 2s ease-in-out infinite;
}

/* AJAX content loading state */
.ajax-loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Homepage Promo Banner */
.home-banner {
    border-radius: 16px;
    background-color: var(--neutral);
}

.home-banner-img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.home-banner-desktop .home-banner-img {
    height: clamp(280px, 30vw, 360px);
}

.home-banner-mobile .home-banner-img {
    height: clamp(180px, 45vw, 240px);
}

.home-banner-cta {
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.home-banner-cta-desktop {
    left: 32px;
    bottom: 32px;
}

.home-banner-cta-mobile {
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

/* ===================== Premium Profile Components ===================== */

/* Generic elevated card used throughout the profile page */
.profile-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* Small status/info chips (e.g. "Verified Customer", "Coming Soon") */
.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.profile-chip-verified {
    background-color: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.profile-chip-pending {
    background-color: var(--warning-light);
    color: var(--warning-dark);
}

/* Avatar with edit badge */
.profile-avatar-wrap {
    position: relative;
    width: fit-content;
}

.profile-avatar {
    border-radius: 50%;
    overflow: hidden;
    background-color: #e9ecef;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 4px solid var(--primary);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar-lg {
    width: 110px;
    height: 110px;
}

.profile-avatar-md {
    width: 96px;
    height: 96px;
    margin: 0 auto;
}

.profile-avatar-sm {
    width: 56px;
    height: 56px;
    border-width: 2px;
}

.avatar-edit-btn {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--tertiary);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.avatar-edit-btn:hover,
.avatar-edit-btn:active {
    transform: scale(1.08);
}

/* Info tiles for account details */
.info-tile {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background-color: var(--bg-light);
    height: 100%;
}

.info-tile-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background-color: #fff;
    color: var(--warning-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    font-size: 1.05rem;
}

.info-tile-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #adb5bd;
    margin-bottom: 2px;
}

.info-tile-value {
    font-weight: 700;
    color: #212529;
    word-break: break-word;
}

/* Quick action buttons (Book Service / My Bookings / Support) */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #212529;
    padding: 14px 4px;
    border-radius: 14px;
    transition: background-color 0.2s ease;
}

.quick-action-btn:hover,
.quick-action-btn:active {
    background-color: var(--bg-light);
    color: #212529;
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background-color: var(--warning-light);
    color: var(--warning-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.quick-action-label {
    font-size: 0.72rem;
    font-weight: 700;
}

/* Tappable settings rows (e.g. Change PIN) */
.settings-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px;
    border: none;
    background: var(--bg-light);
    border-radius: 14px;
    text-align: left;
    transition: background-color 0.2s ease;
}

.settings-row:hover,
.settings-row:active {
    background-color: #eef0f1;
}

.settings-row-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background-color: #fff;
    color: var(--warning-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    font-size: 1.05rem;
}

/* Section label used inside modals (Personal Information / Address / Profile Photo) */
.modal-section-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #adb5bd;
    margin-bottom: 10px;
}

/* Modern, borderless inputs used in the profile edit/PIN forms */
.input-modern {
    background-color: var(--bg-light);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
}

.input-modern:focus {
    background-color: #fff;
}

/* ===================== Homepage: Featured Products Carousel ===================== */

.homepage-product-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    /* z-index:0 (not just position:relative) is load-bearing: it makes the
       card establish its own stacking context so the add-to-cart form's
       z-index:2 (needed to sit above the stretched-link overlay) stays
       contained inside the card instead of leaking into the page's root
       stacking context, where it tied with the sticky mobile navbar's own
       z-2 utility class and - being later in DOM order - painted over it
       on scroll. */
    z-index: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
    .homepage-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    }
}

.homepage-product-card:active {
    transform: scale(0.97);
}

.homepage-product-thumb {
    aspect-ratio: 1 / 1;
    background-color: var(--bg-light);
    position: relative;
}

.homepage-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.homepage-product-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-product-thumb.placeholder i {
    font-size: 2.5rem;
    color: #C7C7C7;
}

.homepage-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary);
    color: #000;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.homepage-product-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.homepage-product-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 2.3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.homepage-product-name a {
    color: #121212;
    text-decoration: none;
}

.homepage-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.homepage-price-selling {
    font-weight: 800;
    font-size: 1rem;
    color: #121212;
}

.homepage-price-original {
    font-size: 0.78rem;
    color: #9a9a9a;
    text-decoration: line-through;
}

.homepage-price-oncall {
    font-size: 0.82rem;
    color: #6c757d;
    font-weight: 600;
}

.homepage-add-to-cart-btn {
    font-size: 0.85rem;
    padding: 8px;
}

/* Desktop: 4-up track with external prev/next arrows, autoplay + infinite loop (see static/js/homepage.js) */
.homepage-carousel {
    display: flex;
    align-items: center;
    gap: 14px;
}

.homepage-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    flex: 1 1 auto;
}

.homepage-carousel-slide {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
}

.homepage-carousel-arrow {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #121212;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.homepage-carousel-arrow:hover {
    background-color: var(--primary);
}

.homepage-carousel-arrow:active {
    transform: scale(0.92);
}

/* Mobile: native touch scroll-snap, 2.2 cards visible + pagination dots */
.homepage-carousel-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.homepage-carousel-scroll::-webkit-scrollbar {
    display: none;
}

.homepage-carousel-slide-mobile {
    flex: 0 0 44%;
    scroll-snap-align: start;
}

.homepage-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.homepage-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #D9D9D9;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.homepage-carousel-dot.active {
    background-color: var(--primary);
    width: 18px;
    border-radius: 4px;
}

/* ===================== Emergency Banner (partials/emergency_banner.html) =====================
   Same horizontal layout at every breakpoint - sizes via clamp() instead
   of a stacked mobile variant, per the reference design this recreates. */

.emergency-banner {
    background-color: #FFFBF0;
    border: 1.5px solid var(--primary);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: clamp(12px, 3vw, 22px) clamp(14px, 3.5vw, 26px);
    max-width: 760px;
    margin: 0 auto;
    touch-action: pan-y;
}

.emergency-banner-top {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(8px, 2.5vw, 16px);
}

.emergency-banner-logo {
    position: relative;
    flex: 0 0 auto;
    width: clamp(46px, 14vw, 64px);
    height: clamp(46px, 14vw, 64px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.emergency-banner-logo-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.emergency-banner-247 {
    position: relative;
    z-index: 1;
    font-weight: 800;
    font-style: italic;
    color: #D62828;
    font-size: clamp(0.78rem, 3.4vw, 1.05rem);
    letter-spacing: -0.03em;
}

.emergency-banner-text {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: clamp(6px, 2vw, 14px);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.emergency-banner-heading {
    font-weight: 800;
    font-size: clamp(0.8rem, 3.2vw, 1.15rem);
    color: #121212;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emergency-banner-subtitle {
    font-size: clamp(0.64rem, 2.5vw, 0.85rem);
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emergency-banner-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(6px, 2vw, 12px);
    padding-left: clamp(6px, 2vw, 12px);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.emergency-banner-call {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.5vw, 7px);
    color: #121212;
    text-decoration: none;
    font-weight: 800;
    font-size: clamp(0.58rem, 2.3vw, 0.82rem);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    white-space: nowrap;
}

.emergency-banner-call-icon {
    flex-shrink: 0;
    width: clamp(18px, 5vw, 26px);
    height: clamp(18px, 5vw, 26px);
    border-radius: 50%;
    border: 1.5px solid #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.55rem, 2vw, 0.8rem);
}

.emergency-banner-whatsapp {
    flex-shrink: 0;
    width: clamp(30px, 8vw, 42px);
    height: clamp(30px, 8vw, 42px);
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.95rem, 3.6vw, 1.4rem);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
    transition: background-color 0.2s ease;
}

.emergency-banner-whatsapp:hover {
    background-color: #1ebe57;
    color: #fff;
}

.emergency-banner-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: clamp(10px, 3vw, 16px) 0;
}

.emergency-banner-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(2px, 1vw, 8px);
}

.emergency-banner-feature {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(5px, 2vw, 10px);
    padding: 0 clamp(2px, 1.5vw, 8px);
}

.emergency-banner-feature:not(:first-child) {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.emergency-banner-feature i,
.emergency-banner-feature-svg {
    flex-shrink: 0;
    font-size: clamp(1.05rem, 4.5vw, 1.5rem);
    width: clamp(1.05rem, 4.5vw, 1.5rem);
    height: clamp(1.05rem, 4.5vw, 1.5rem);
    color: #121212;
}

.emergency-banner-fuel-icon {
    color: #D62828;
}

.emergency-banner-feature span {
    font-size: clamp(0.56rem, 2.3vw, 0.8rem);
    font-weight: 700;
    color: #121212;
    line-height: 1.2;
}

/* ===================== Homepage: Spare Part Request CTA (partials/part_request_banner.html) =====================
   Mobile-first: stacked/centered by default (plain .d-flex.flex-column from
   Bootstrap). flex-lg-row (also a Bootstrap utility, on the element itself)
   switches to the desktop illustration/content/CTA row at the lg breakpoint -
   the two size steps below just scale the illustration up through that same
   breakpoint ladder, they don't re-layout anything. */

.part-request-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFFEFA 0%, var(--warning-light) 100%);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 40px 28px;
    transition: box-shadow 0.3s ease;
}

.part-request-cta:hover {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.1);
}

.part-request-shape {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.1;
    pointer-events: none;
}

.part-request-shape-1 {
    width: 160px;
    height: 160px;
    top: -60px;
    left: -50px;
}

.part-request-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -90px;
    right: -70px;
    opacity: 0.08;
}

.part-request-illustration {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
}

@media (min-width: 768px) {
    .part-request-illustration {
        width: 116px;
        height: 116px;
    }
}

@media (min-width: 992px) {
    .part-request-illustration {
        width: 140px;
        height: 140px;
        animation: part-request-float 4s ease-in-out infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .part-request-illustration {
        animation: none;
    }
}

@keyframes part-request-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.part-request-icon-main {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--warning-dark);
}

@media (min-width: 992px) {
    .part-request-icon-main {
        font-size: 3rem;
    }
}

.part-request-icon-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #121212;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    border: 3px solid #FFFEFA;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.part-request-content {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
}

@media (min-width: 992px) {
    .part-request-content {
        padding: 0 32px;
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        border-right: 1px solid rgba(0, 0, 0, 0.08);
    }
}

.part-request-heading {
    font-weight: 800;
    font-size: 1.25rem;
    color: #121212;
    margin-bottom: 10px;
}

@media (min-width: 992px) {
    .part-request-heading {
        font-size: 1.5rem;
    }
}

.part-request-description {
    color: #6c757d;
    font-size: 0.9rem;
    max-width: 480px;
    margin: 0 auto 18px;
    line-height: 1.55;
}

@media (min-width: 992px) {
    .part-request-description {
        margin: 0 0 16px;
    }
}

.part-request-benefits {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    padding: 0;
    margin: 0;
}

@media (min-width: 992px) {
    .part-request-benefits {
        justify-content: flex-start;
    }
}

.part-request-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #121212;
}

.part-request-benefit-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--warning-light);
    color: var(--warning-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.part-request-cta-wrap {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .part-request-cta-wrap {
        width: auto;
    }
}

.part-request-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 30px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #121212;
    background-color: var(--primary);
    border: none;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .part-request-btn {
        width: auto;
        padding: 16px 36px;
        font-size: 1rem;
    }
}

.part-request-btn:hover,
.part-request-btn:focus {
    background-color: var(--primary-hover);
    color: #121212;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(255, 193, 7, 0.45);
}

.part-request-btn:active {
    transform: translateY(-1px);
}

.part-request-btn i {
    transition: transform 0.2s ease;
}

.part-request-btn:hover i {
    transform: translateX(4px);
}

