/*
Theme Name: Daarzy Theme
Theme URI: https://daarzy.com
Author: Aashish Y.
Author URI: https://daarzy.com
Description: A robust, clean, and modern WordPress theme for rigs and earthmovers by daarzy.
Version: 6.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daarzy
*/

:root {
    /* Colors */
    --primary: #0EA5E9;
    /* Sky 500 */
    --primary-dark: #0284C7;
    /* Sky 600 */
    --text-main: #0F172A;
    /* Slate 900 */
    --text-muted: #64748B;
    /* Slate 500 */
    --bg-body: #FFFFFF;
    --bg-light: #F8FAFC;
    /* Slate 50 */
    --border: #E2E8F0;
    /* Slate 200 */
    --white: #FFFFFF;

    /* Spacing */
    --container: 1200px;
    --header-height: 80px;

    /* Radius */
    --radius: 12px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body.theme-earthmoving {
    --primary: #F59E0B;
    /* Amber 500 */
    --primary-dark: #D97706;
    /* Amber 600 */
}

/* Earthmoving Theme Overrides */
body.theme-earthmoving .hero-section {
    background-image: url('/wp-content/uploads/2025/12/Gemini_Generated_Image_p8zm39p8zm39p8zm-scaled.png');
}

body.theme-earthmoving .logo img,
body.theme-earthmoving .footer-logo img,
body.theme-earthmoving .custom-logo-link img {
    filter: brightness(0);
}

body.theme-earthmoving .logo,
body.theme-earthmoving .footer-logo h4 {
    color: #000000;
}

/* Earthmoving Gradient Override */
body.theme-earthmoving .hero-section::before {
    background: linear-gradient(90deg, #FFFBEB 0%, rgba(254, 243, 199, 0.95) 40%, rgba(255, 255, 255, 0.4) 100%);
    /* Amber/Yellow tint fading to transparent */
}

/* 1. Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

ul {
    list-style: none;
}

/* 2. Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

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

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.text-center {
    text-align: center;
}

/* 3. Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* 4. Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: 0.2s;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* 5. Header */
.site-header {
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1002;
    /* Above menu panel */
    background: var(--white);
    /* Ensure background covers menu slide */
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Modern Hamburger */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1003;
}

.line {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation (2 lines to X) */
.menu-open .line-1 {
    transform: translateY(4px) rotate(45deg);
}

.menu-open .line-2 {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Menu Panel (Top Slide) */
.mobile-menu-panel {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    box-shadow: var(--shadow-lg);
}

.menu-open .mobile-menu-panel {
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-link {
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link i {
    color: var(--primary);
}

/* 6. Hero Section */
.hero-section {
    padding: 80px 0;
    background: url('/wp-content/uploads/2025/12/Gemini_Generated_Image_g32n84g32n84g32n-scaled.png') no-repeat center center/cover;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #F0F9FF 0%, rgba(240, 249, 255, 0.95) 40%, rgba(255, 255, 255, 0.4) 100%);
    /* Fade from solid light blue (left) to transparent (right) for text readability */
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    /* Ensure content is above overlay */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.hero-quote-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: 30px;
    border: 1px solid var(--border);
}

.form-header h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.quote-form-grid {
    display: grid;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Custom Select Cards */
.select-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.select-card {
    cursor: pointer;
    position: relative;
}

.select-card input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.card-content {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    text-align: center;
}

.card-content i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.card-content span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Checked State */
.select-card input:checked+.card-content {
    border-color: var(--primary);
    background-color: #F0F9FF;
    color: var(--primary);
}

.select-card input:checked+.card-content i {
    color: var(--primary);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon input {
    padding-left: 40px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
}

.form-submit {
    width: 100%;
    margin-top: 10px;
}

.hero-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* 7. Footer (Corporate) */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.footer-col h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: 0.2s;
}

.social-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Trust Seals */
.trust-seals {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seal {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 8px;
}

.seal i {
    font-size: 1.25rem;
    color: #10B981;
    /* Success Green */
}

.seal span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

/* Modern Service Grid (Redesign v3: Floating Card) */
.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card-modern {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    /* Inner padding for floating look */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Subtle start */
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -4px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.service-card-modern .service-img-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    /* Visible radius */
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #f1f5f9;
}

.service-card-modern .service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-modern:hover .service-img {
    transform: scale(1.1);
}

.service-card-modern .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-modern .top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.service-card-modern h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.service-card-modern .price-badge {
    background: #ECFDF5;
    color: #059669;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-block;
}

/* Theme Variant for Earthmoving */
body.theme-earthmoving .service-card-modern .price-badge {
    background: #FFFBEB;
    color: #B45309;
}

.service-card-modern p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
    margin-top: 4px;
}

.service-card-modern .action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    color: var(--primary);
    transition: 0.2s;
    opacity: 0;
    transform: translateX(-10px);
}

.service-card-modern:hover .action-icon {
    opacity: 1;
    transform: translateX(0);
    background: var(--primary);
    color: #fff;
}

/* 2. FORCED Hero Theme Override */
.hero-section.theme-earthmoving-active::before {
    background: linear-gradient(90deg, #FFFBEB 0%, rgba(255, 251, 235, 0.95) 40%, rgba(255, 255, 255, 0.4) 100%) !important;
}

/* Revert mechanism in case JS removes it */
body:not(.theme-earthmoving) .hero-section::before {
    background: linear-gradient(90deg, #F0F9FF 0%, rgba(240, 249, 255, 0.95) 40%, rgba(255, 255, 255, 0.4) 100%);
}

/* Mobile Stack */
@media (max-width: 768px) {
    .services-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card-modern {
        padding: 12px;
    }

    .service-card-modern .service-img-wrapper {
        width: 100px;
        height: 100px;
    }

    .service-card-modern .action-icon {
        opacity: 1;
        /* Always show visual cue on mobile */
        transform: none;
        background: transparent;
        color: var(--text-muted);
    }
}

/* 8. Responsive */

/* Mobile Testimonial Carousel */
@media (max-width: 768px) {
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 24px;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-right: -20px;
        padding-right: 20px;
        scroll-behavior: smooth;
        /* Native smooth scroll */
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonials-grid .card.testimonial-card {
        flex: 0 0 85vw;
        /* STRICT WIDTH for JS Math */
        width: 85vw;
        /* Fallback */
        max-width: 350px;
        /* Cap it */
        scroll-snap-align: center;
        margin-bottom: 0;
        height: auto;
    }
}

@media (max-width: 992px) {
    .desktop-only {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        order: 1;
    }

    .hero-image-wrapper {
        order: 2;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    /* Footer Mobile Layout: Side-by-side menus */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }

    /* Brand and Trust span full width */
    .brand-col,
    .footer-col:last-child {
        grid-column: 1 / -1;
    }

    /* Company and Services share the middle row (implicit 1fr 1fr) */

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .header-cta {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Hero Mobile: Ensure Title Top, Form Bottom */
    .hero-grid {
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        order: 1;
    }

    .hero-form-wrapper {
        order: 2;
        margin-top: 20px;
    }
}

/* Logo Image Styling */
.logo img,
.footer-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 16px;
}

.custom-logo-link {
    display: block;
}

/* Enhanced Hero Quote Form */
.hero-quote-form {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    margin-top: 0;
    /* Reset margin since it's in its own column now */
    border: 1px solid var(--border);
}

.form-header h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-main);
    text-align: center;
}

.quote-form-grid {
    gap: 24px;
}

.form-control {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
    padding: 14px 16px;
    padding-left: 44px;
    /* For icon */
    font-size: 1rem;
}

.form-control:focus {
    background-color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z' fill='%2364748b'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 14px 16px;
    padding-left: 44px;
    /* Space for map icon */
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: var(--text-main);
}

.dropdown-trigger:hover {
    background-color: var(--white);
    border-color: var(--primary);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.custom-dropdown.open .dropdown-options {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.dropdown-option:hover {
    background-color: #F0F9FF;
    color: var(--primary);
}

.dropdown-option.selected {
    background-color: #F0F9FF;
    color: var(--primary);
    font-weight: 600;
}

.dropdown-option.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #F8FAFC;
}

.dropdown-option.disabled:hover {
    background-color: #F8FAFC;
    color: inherit;
}

.badge-coming-soon {
    font-size: 0.7rem;
    background: #E2E8F0;
    color: #64748B;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
    text-transform: uppercase;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select-card .card-content {
    padding: 16px;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.select-card:hover .card-content {
    border-color: var(--primary);
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.form-submit {
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.form-submit:hover {
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

/* --- New Sections Styling --- */

/* Badge Pill */
.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background-color: #F0F9FF;
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.badge-light {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    /* Removing gap for connected feel */
    margin-top: 60px;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 0 16px;
    /* No top/bottom padding */
    background: transparent;
    /* NO BOX */
    border: none;
    box-shadow: none;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
    /* No shadow */
}

.step-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    border: 2px solid #e2e8f0;
    /* Simple clean border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    z-index: 2;
    color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.step-icon i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
}

.step-time {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Connectors on Desktop */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    /* Center of icon */
    left: 12%;
    right: 12%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

/* Mobile Vertical Timeline */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        /* Breathing room */
        margin-top: 32px;
        padding-left: 0;
        position: relative;
    }

    .steps-grid::before {
        /* Vertical Line - Dashed for lighter feel */
        content: '';
        position: absolute;
        top: 28px;
        /* Start at center of first icon (56/2) */
        bottom: 28px;
        /* End at center of last icon */
        left: 27px;
        /* DEAD CENTER of 56px icon (28px - 1px width) */
        width: 2px;
        height: auto;
        background-image: linear-gradient(to bottom, #cbd5e1 50%, transparent 50%);
        background-size: 2px 12px;
        background-repeat: repeat-y;
        background-color: transparent;
        z-index: 0;
    }

    .step-card {
        display: block;
        /* Stack content naturally */
        text-align: left;
        padding: 0 0 0 80px;
        /* Fixed space for icon column */
        position: relative;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .step-icon {
        position: absolute;
        left: 0;
        top: 0;
        width: 56px;
        height: 56px;
        margin: 0;
        z-index: 2;
        background: #fff;
        border: 2px solid #e2e8f0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    .step-icon i {
        font-size: 1.4rem;
    }

    .step-card h3 {
        font-size: 1.1rem;
        margin-bottom: 4px;
        margin-top: 4px;
        /* Align roughly with icon top */
    }

    .step-time {
        font-size: 0.75rem;
        padding: 2px 8px;
        margin-bottom: 8px;
        display: inline-block;
    }

    .step-card p {
        font-size: 0.9rem;
        color: #64748b;
        line-height: 1.5;
    }

    .step-number {
        display: none;
    }
}

/* Pricing Cards */
.pricing-grid {
    max-width: 900px;
    margin: 40px auto 0;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-header {
    padding: 30px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    text-align: center;
    position: relative;
}

.featured-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.pricing-features {
    padding: 30px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 500;
}

.pricing-features li i {
    color: #10B981;
    /* Success Green */
}

.pricing-footer {
    padding: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
}

.price .unit {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 100%;
    margin-bottom: 10px;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Features Grid */
.features-grid {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #F0F9FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Partner Section */
.bg-dark {
    background-color: #0F172A;
    color: var(--white);
}

.text-white {
    color: var(--white);
}

.partner-section h2 {
    color: var(--white);
}

.partner-section p {
    color: #94A3B8;
}

.partner-benefits {
    margin: 30px 0;
}

.partner-benefits li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.partner-benefits li i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 2px;
}

.partner-benefits strong {
    color: var(--white);
    display: block;
    margin-bottom: 4px;
}

.partner-actions {
    display: flex;
    gap: 16px;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--text-main);
}

.partner-stats-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.stat-value {
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    color: #94A3B8;
}

.quick-stats {
    display: flex;
    gap: 20px;
}

.q-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.q-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.q-stat span {
    font-size: 0.8rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Adjustments for New Sections */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .partner-actions {
        flex-direction: column;
    }

    .quick-stats {
        flex-direction: column;
    }
}

/* --- Authentication & Dashboard Styles --- */

/* Auth Page */
.auth-card-container {
    max-width: 450px;
    margin: 40px auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 16px;
    background: #F8FAFC;
    border: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.auth-tab.active {
    background: var(--white);
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.auth-content {
    padding: 30px;
    display: none;
}

.auth-content.active {
    display: block;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h3 {
    margin-bottom: 8px;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
}

/* WP Login Form Overrides */
#gotorq-login-form p {
    margin-bottom: 16px;
}

#gotorq-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

#gotorq-login-form input[type="text"],
#gotorq-login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: #F8FAFC;
}

#gotorq-login-form input[type="text"]:focus,
#gotorq-login-form input[type="password"]:focus {
    background: var(--white);
    border-color: var(--primary);
    outline: none;
}

#gotorq-login-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

#gotorq-login-form input[type="submit"]:hover {
    background: var(--primary-dark);
}

.login-remember {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: block;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    min-height: 600px;
}

.dashboard-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    height: fit-content;
}

.user-profile-summary {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.user-avatar img {
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 2px solid var(--primary);
    padding: 2px;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
    width: 100%;
}

.dash-link:hover,
.dash-link.active {
    background: #F0F9FF;
    color: var(--primary);
}

.dash-link.logout {
    color: #DC2626;
    margin-top: 20px;
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding-top: 20px;
}

.dash-link.logout:hover {
    background: transparent;
    color: #991B1B;
}

.dashboard-content {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 30px;
}

.dash-pane {
    display: none;
}

.dash-pane.active {
    display: block;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2xl);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dash-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

/* Mobile Dashboard */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        margin-bottom: 20px;
    }
}

/* --- Service Listings --- */
.service-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.service-card {
    overflow: hidden;
    padding: 0;
    /* Override default card padding */
}

.service-image {
    height: 200px;
    background: #f1f5f9;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-details {
    padding: 20px;
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.service-price .unit {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.service-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Single Service --- */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.service-title-large {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.service-price-large {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
}

.service-cta-box {
    margin-top: 30px;
    background: #F0F9FF;
    border-color: var(--primary);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* --- Quote Page --- */
.quote-container {
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Dropdown */
/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

/* Reset input-with-icon styles for custom dropdown */
.input-with-icon .custom-dropdown i {
    position: static;
    transform: none;
    left: auto;
    top: auto;
}

.dropdown-trigger {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 14px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: var(--text-main);
    min-height: 50px;
}

.dropdown-trigger .trigger-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-trigger .trigger-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.dropdown-trigger .placeholder {
    color: var(--text-muted);
}

.dropdown-trigger:hover {
    background-color: var(--white);
    border-color: var(--primary);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* High z-index */
    display: none;
    overflow: hidden;
    padding: 6px;
}

.custom-dropdown.open .dropdown-options {
    display: block;
    animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-option {
    padding: 12px 12px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    border-radius: 8px;
    margin-bottom: 2px;
}

.dropdown-option:last-child {
    margin-bottom: 0;
}

.dropdown-option:hover {
    background-color: #F0F9FF;
}

.dropdown-option.selected {
    background-color: #F0F9FF;
    color: var(--primary);
    font-weight: 600;
}

.dropdown-option .option-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-option .option-icon {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.dropdown-option.selected .option-icon {
    color: var(--primary);
}

.dropdown-option .check-icon {
    color: var(--primary);
    opacity: 0;
    transition: 0.2s;
}

.dropdown-option.selected .check-icon {
    opacity: 1;
}

.dropdown-option.disabled {
    cursor: not-allowed;
    opacity: 0.7;
    background-color: transparent;
}

.dropdown-option.disabled:hover {
    background-color: #F8FAFC;
}

.badge-coming-soon {
    font-size: 0.65rem;
    background: #F1F5F9;
    color: #64748B;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid #E2E8F0;
}

.badge-available {
    font-size: 0.65rem;
    background: #DCFCE7;
    /* Green-100 */
    color: #15803D;
    /* Green-700 */
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid #BBF7D0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Quote Page Redesign --- */
/* Theme Switching */
body.theme-earthmoving {
    --primary: #F59E0B;
    /* Amber-500 */
    --primary-dark: #D97706;
}

body.theme-earthmoving .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #000;
    /* Black text for better contrast on yellow */
}

body.theme-earthmoving .btn-outline-primary {
    color: var(--primary-dark);
    border-color: var(--primary);
}

body.theme-earthmoving .btn-outline-primary:hover {
    background-color: var(--primary);
    color: #000;
}

body.theme-earthmoving .section-title i,
body.theme-earthmoving .service-option input:checked+.option-box,
body.theme-earthmoving .machine-card input:checked+.card-content {
    background-color: #FFFBEB;
    /* Amber-50 */
}

body.theme-earthmoving .range-slider::-webkit-slider-thumb {
    background: var(--primary);
}

.quote-card {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 25px !important;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--premium-blue);
    font-size: 1.2rem;
}

/* Sticky Summary */
.summary-card {
    position: sticky;
    top: 100px;
    padding: 30px;
    background: #F8FAFC;
    border: 1px solid var(--border);
}

.summary-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.breakdown-row .value {
    font-weight: 600;
    color: var(--text-main);
}

.breakdown-row.total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .quote-container-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
        order: -1;
        /* Show summary on top or handle via JS for sticky bottom */
        margin-bottom: 20px;
    }

    .mobile-only-btn {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-only-btn {
        display: none;
    }
}

/* Form Elements */
.input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.input-prefix {
    background: #F8FAFC;
    padding: 12px 16px;
    color: var(--text-muted);
    font-weight: 600;
    border-right: 1px solid var(--border);
}

.input-group .form-control {
    border: none;
    border-radius: 0;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

/* Service Type Toggle */
.service-type-toggle {
    display: flex;
    gap: 16px;
}

.service-option {
    flex: 1;
    cursor: pointer;
}

.service-option input {
    display: none;
}

.option-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    transition: 0.2s;
    font-weight: 600;
    color: var(--text-muted);
}

.service-option input:checked+.option-box {
    border-color: var(--primary);
    background: #F0F9FF;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

/* Machine Cards */
.machine-options,
.machine-grid {
    display: grid;
    gap: 12px;
}

.machine-options {
    grid-template-columns: 1fr 1fr;
}

.machine-grid {
    grid-template-columns: 1fr 1fr;
}

.machine-card {
    cursor: pointer;
}

.machine-card input {
    display: none;
}

.machine-card .card-content {
    padding: 12px 16px;
    /* Compact padding */
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    transition: 0.2s;
    display: flex;
    flex-direction: row-reverse;
    /* Horizontal layout */
    justify-content: space-between;
    align-items: center;
    text-align: right;
    gap: 12px;
    min-height: 70px;
    /* Consistent height */
}

.machine-card input:checked+.card-content {
    border-color: var(--primary);
    background: #F0F9FF;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.machine-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
}

.machine-icon {
    width: 48px;
    /* Small image */
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.machine-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.2;
}

.machine-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

/* Range Slider */
.range-slider-container {
    padding: 10px 0;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #E2E8F0;
    border-radius: 99px;
    outline: none;
    margin: 15px 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.4);
    border: 2px solid var(--white);
    transition: background 0.2s;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: -5px;
}

.slider-value {
    margin-top: 15px;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

/* --- Content Pages Styles --- */

/* 1. Utilities (Tailwind-like) */
.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-xl {
    border-radius: 12px;
}

.rounded-2xl {
    border-radius: 16px;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-primary {
    color: var(--primary);
}

.text-red-600 {
    color: #DC2626;
}

.text-red-500 {
    color: #EF4444;
}

.text-amber-800 {
    color: #92400E;
}

.bg-white {
    background-color: #ffffff;
}

.bg-primary-light {
    background-color: #F0F9FF;
}

.bg-red-50 {
    background-color: #FEF2F2;
}

.bg-amber-50 {
    background-color: #FFFBEB;
}

.bg-gray-100 {
    background-color: #F3F4F6;
}

.border-gray-200 {
    border-color: #E5E7EB;
}

.border-red-100 {
    border-color: #FEE2E2;
}

.border-amber-200 {
    border-color: #FDE68A;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-l-red-500 {
    border-left-color: #EF4444;
}

.list-disc {
    list-style-type: disc;
}

.pl-5 {
    padding-left: 1.25rem;
}

/* 2. Page Headers */
.page-header {
    padding: 60px 0;
    margin-bottom: 0;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.lead-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* 3. About Us Styles */
.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mv-card {
    background: #F8FAFC;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: 0.2s;
}

.mv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.mv-card .icon-box {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.mv-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.mv-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.founders-section {
    background: var(--white);
    border: 1px solid var(--border);
}

.stat-card {
    padding: 20px;
    transition: 0.2s;
}

.stat-card:hover {
    background: #F8FAFC;
    border-radius: 12px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-block;
}

.stat-card h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.certification-banner {
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* 4. Contact Us Styles */
.contact-card {
    padding: 40px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    width: 72px;
    height: 72px;
    background: #F0F9FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
}

.office-info h2 {
    font-size: 2rem;
}

.address-box {
    transition: 0.2s;
}

.address-box:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    background-color: #F1F5F9;
    border-radius: 16px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    border: 2px dashed #CBD5E1;
}

/* 5. FAQ Styles */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    overflow: hidden;
    transition: 0.2s;
}

.faq-item:hover {
    border-color: #CBD5E1;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
}

.faq-question i {
    font-size: 1.25rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
    background-color: #F8FAFC;
}

.faq-question:hover i {
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
    background-color: var(--white);
    opacity: 0.8;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Increased to prevent clip */
    padding-bottom: 24px;
}

.faq-item.active .faq-question {
    color: var(--primary);
    background-color: transparent;
    /* Cleaner look */
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    /* Turns plus to cross */
    color: var(--primary);
}

/* Spacing Utilities */
.mt-10 {
    margin-top: 40px;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

/* Mobile Adjustments for Quote Page */
@media (max-width: 768px) {
    .mobile-only-btn-group {
        display: none !important;
    }

    /* Configure Quote Actions for Mobile (Row Layout) */
    .quote-actions {
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin-top: 1rem;
    }

    .quote-actions .btn {
        width: 50%;
        /* Equal width */
    }

    .form-control {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        /* Prevent overflow */
    }

    /* Ensure date inputs don't overflow */
    input[type="date"] {
        appearance: none;
        -webkit-appearance: none;
        width: 100% !important;
        min-width: 0;
        max-width: 100% !important;
        box-sizing: border-box;
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-only-btn-group {
        display: none !important;
    }

    /* Configure Quote Actions for Desktop (Column Layout) */
    .quote-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 1.5rem;
    }
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

/* 6. Legal Pages Styles */
.legal-content .card {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.legal-list li {
    margin-bottom: 16px;
    position: relative;
    padding-left: 24px;
    line-height: 1.6;
}

.legal-list li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 6px;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.feature-list li i {
    margin-top: 4px;
    flex-shrink: 0;
}

.policy-section h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 700;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }

    .stat-card {
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }

    .stat-card:last-child {
        border-bottom: none;
    }

    .contact-card {
        padding: 30px 20px;
    }
}

/* --- Homepage Overhaul Styles --- */

/* Trust Bar */
.section-padding-sm {
    padding: 24px 0;
}

.trust-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    opacity: 0.8;
}

.trust-logo img {
    max-height: 50px;
    width: auto;
    margin: 0 auto;
    filter: grayscale(100%);
    transition: 0.3s;
    opacity: 0.7;
}

.trust-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Premium Live Operations UI */
.live-activity-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Left Content: Stats Cards */
.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-color: var(--primary);
}

.stat-card h4 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 4px 0;
    line-height: 1;
}

.stat-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Right Content: Premium Feed Board */
/* --- Pixel Perfect Live Ops (Reference Match) --- */

/* Left Side Styling */
.monitor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e0f2fe;
    /* Light Blue-50 */
    color: #0369a1;
    /* Sky-700 for contrast */
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dot-blue {
    width: 8px;
    height: 8px;
    background: #0ea5e9;
    /* Brand Color */
    border-radius: 50%;
}

.hero-title-lg {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.text-highlight-blue {
    color: #0ea5e9;
    /* Brand Color - Explicit */
}

/* Circular Stats */
.stats-pill-row {
    display: flex;
    gap: 24px;
}

.stat-circle {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 24px;
    /* Squircle as per image vibe */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
}

.stat-circle h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1;
}

.stat-circle p {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Action Button: Brand Color Gradient */
.btn-pill-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    /* Brand to Darker Brand */
    color: #fff;
    font-weight: 700;
    border-radius: 99px;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
    /* Shadow matches brand */
}

.btn-pill-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(14, 165, 233, 0.5);
    color: #fff;
}

/* Right Side: Live Feed List */
.live-right-panel {
    padding-left: 0;
}

.feed-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.feed-title-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.icon-box-lightning {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    /* Brand Color */
    font-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feed-main-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.feed-meta {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.live-sync-badge {
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid #dcfce7;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.pulse-green {
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
    animation: blinkLive 1s infinite alternate;
}

/* Feed List (Pills) with Smooth Entry */
.live-pill-list {
    display: flex;
    flex-direction: column;
    /* Fixed height to prevent container resizing */
    height: 380px;
    overflow: hidden;
    position: relative;
    /* Fading Edge ONLY at Bottom */
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    padding-top: 2px;
    /* Space for fade offset */
}

/* Base Feed Item (Pill) */
.feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px 12px 12px;
    background: #fff;
    border-radius: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;

    /* Animation for Smooth Layout Push */
    animation: feedItemExpand 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    transform-origin: top center;
    /* Ensure sizing doesn't break animation */
    box-sizing: border-box;
    flex-shrink: 0;
}

/* New "Expand" Animation to prevent layout shift */
@keyframes feedItemExpand {
    0% {
        max-height: 0;
        opacity: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
        transform: translateY(-10px) scale(0.95);
    }

    40% {
        opacity: 0;
        /* delayed fade in */
    }

    100% {
        max-height: 90px;
        /* Enough for content */
        opacity: 1;
        margin-bottom: 16px;
        /* Target Gap */
        padding-top: 12px;
        padding-bottom: 12px;
        border-width: 1px;
        transform: translateY(0) scale(1);
    }
}

.feed-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

/* Featured Feed Item (First one / Active) */
/* Branding Update: Using Brand Color Gradient */
.feed-item:first-child {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff !important;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.4);
}

/* Icon Wrapper */
.feed-icon {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #0ea5e9;
    flex-shrink: 0;
}

.feed-item:first-child .feed-icon {
    background: #fff;
    color: #0ea5e9;
}

/* Content Area */
.feed-content {
    flex: 1;
    padding: 0 16px;
    /* Prevent text wrap breaking layout during animation? */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-content h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 2px 0;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-content p {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-item:first-child .feed-content h5 {
    color: rgba(255, 255, 255, 0.8);
}

.feed-item:first-child .feed-content p {
    color: #fff;
}

/* Right Action (Arrow/Time) */
.feed-action-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-time {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
}

.feed-item:first-child .feed-time {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Arrow Button */
.btn-arrow-circle {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1rem;
}

.feed-item:first-child .btn-arrow-circle {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* --- Live Ops Responsive Styles --- */
@media (max-width: 991px) {
    .live-right-panel {
        padding-top: 40px;
    }

    .hero-title-lg {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    /* Stack Grid */
    .section-padding .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    /* Center Left Content */
    .live-left-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
        /* Safety padding */
    }

    .hero-title-lg {
        font-size: 2rem;
    }

    /* Stats Row */
    .stats-pill-row {
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-circle {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }

    .stat-circle h4 {
        font-size: 1.25rem;
    }

    /* Feed Adjustments */
    .live-right-panel {
        padding-left: 0;
        padding-top: 0;
        width: 100%;
        /* Ensure full width */
        overflow-x: hidden;
        /* Prevent spill */
        padding: 0 16px;
        /* Ensure content doesn't touch sides */
    }

    /* Wrap Header to prevent overflow */
    .feed-header-row {
        flex-wrap: wrap;
        gap: 16px;
    }

    .live-pill-list {
        height: 320px;
        /* Slightly shorter on mobile */
        width: 100%;
    }

    .feed-item {
        padding: 10px 12px 10px 10px;
        /* Slightly tighter padding */
    }

    .feed-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Ensure text truncates properly on small screens */
    .feed-content {
        max-width: 180px;
        /* Force constraint on very small screens */
    }
}



@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Responsive */
@media (max-width: 768px) {
    .stats-mini-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .live-status-board {
        margin-top: 32px;
    }
}





@media (max-width: 768px) {
    .live-content-left {
        text-align: center;
    }

    .live-content-left .section-title-md {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .stats-mini-grid {
        justify-content: center;
    }

    .mobile-frame {
        width: 100%;
        max-width: 300px;
    }
}

/* Horizontal Service Cards */
.pricing-card.horizontal-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s;
    height: 100%;
}

.pricing-card.horizontal-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pricing-card.horizontal-card .card-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 24px;
    gap: 24px;
    height: 100%;
}

.service-img-left {
    width: 35%;
    flex-shrink: 0;
}

.img-container {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.service-content-right {
    width: 65%;
    display: flex;
    flex-direction: column;
}

.badge-sm {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .pricing-card.horizontal-card .card-body {
        flex-direction: column;
    }

    .service-img-left,
    .service-content-right {
        width: 100%;
    }

    .img-container {
        height: 180px;
        margin-bottom: 16px;
    }
}

/* Section Title Fix */
.section-title-md {
    font-size: 1.75rem !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

/* Comparison Table */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: #E2E8F0;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-grid>div {
    background: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.comp-feature {
    justify-content: flex-start !important;
    font-weight: 600;
    text-align: left !important;
    background: #F8FAFC !important;
}

.comp-header {
    background: #F8FAFC !important;
    padding: 30px 20px !important;
}

.comp-torq,
.comp-trad {
    gap: 8px;
    font-weight: 500;
}

.comp-torq {
    background: #F0F9FF !important;
}

/* Testimonials */
.testimonial-card {
    padding: 30px;
}

.stars {
    color: #F59E0B;
    font-size: 1.1rem;
    display: flex;
    gap: 2px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E2E8F0;
}

/* Video Testimonials */
.video-card {
    position: relative;
    height: 250px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: 0.2s;
}

.video-card:hover .play-btn {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* Big CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner p {
    color: #ffffff !important;
    opacity: 1 !important;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
    font-weight: 700;
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* Header Dropdown Clean Style */
.nav-dropdown-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown-wrapper .nav-link {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s;
    z-index: 1000;
}

.nav-dropdown-wrapper:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-main);
    font-weight: 500;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: #F8FAFC;
    color: var(--primary);
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr 1fr;
    }

    .comp-header:first-child,
    .comp-feature {
        display: none !important;
    }

    .trust-logos {
        grid-template-columns: 1fr 1fr;
    }

    .live-activity-section .container>div {
        flex-direction: column;
        align-items: flex-start;
    }

    .live-updates-wrapper {
        width: 100%;
    }
}

/* Dashboard Tables & Badges */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dashboard-table th,
.dashboard-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.dashboard-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fffbeb;
    color: #d97706;
}

.status-confirmed,
.status-assigned {
    background: #eff6ff;
    color: #2563eb;
}

.status-work-ongoing {
    background: #f3e8ff;
    color: #7c3aed;
}

.status-completed {
    background: #dcfce7;
    color: #16a34a;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.cost-badge {
    font-weight: 700;
    color: #0f172a;
}

.tracker-steps {
    margin-top: 30px;
}

/* --- Single Service Page Redesign --- */

.service-hero-section {
    background: #f8fafc;
    padding: 24px 0;
    border-bottom: 1px solid #e2e8f0;
}

.service-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

.service-breadcrumb a {
    color: #64748b;
    font-weight: 500;
}

.service-breadcrumb i {
    font-size: 1.1rem;
    color: #cbd5e1;
}

.service-breadcrumb span {
    color: #0f172a;
    font-weight: 600;
}

.service-layout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    position: relative;
    padding-top: 40px;
}

/* Left Content Column */
.service-main-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.service-main-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.service-main-image:hover img {
    transform: scale(1.02);
}

.image-overlay-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.image-overlay-badge i {
    color: #2563eb;
    font-size: 1.2rem;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title-row h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.btn-share-text {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.2s;
}

.btn-share-text:hover {
    background: #eff6ff;
}

.content-prose {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

.service-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #f1f5f9;
}

.service-section:last-child {
    border-bottom: none;
}

/* Features Grid */
.service-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.feature-item .f-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #0f172a;
}

.feature-item p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Right Sidebar (Sticky) */
.service-sidebar-col {
    position: relative;
}

.sticky-card {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sticky-card .card-header {
    background: #f8fafc;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.sub-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
}

.price-tag {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-tag .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
}

.price-tag .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.price-tag .unit {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.sticky-card .card-body {
    padding: 24px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

.check-list li i {
    color: #16a34a;
    /* Green check */
    font-size: 1.2rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.micro-text {
    font-size: 0.8rem;
}

/* Mobile Header */
.service-header-mobile {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.service-header-mobile h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: #0f172a;
}

.btn-share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #0f172a;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-layout-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-sidebar-col {
        order: -1;
        /* Move booking card to top on tablet/mobile if desired, OR keep below */
        /* Actually, usually better below on mobile for SEO/Info first, but let's keep it concise */
    }

    .sticky-card {
        position: static;
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .service-layout-grid {
        display: block;
    }

    /* Ensure padding on mobile container */
    .service-page-container .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Mobile Booking Card Styling */
    .mobile-booking-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 32px;
        /* Separation from Description */
    }

    .mobile-booking-card .card-header {
        background: #f8fafc;
        padding: 16px 20px;
        border-bottom: 1px solid #f1f5f9;
        border-radius: 16px 16px 0 0;
    }

    .mobile-booking-card .card-body {
        padding: 20px;
    }

    /* Hide Desktop Elements on Mobile */
    .mobile-hidden {
        display: none !important;
    }

    .service-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .desktop-hidden {
        display: none !important;
    }
}

/* -------------------------------------------------------------------------- */
/*                                OTP Login Page                              */
/* -------------------------------------------------------------------------- */

.auth-page-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: var(--bg-light);
}

.auth-card {
    background: var(--white);
    width: 100%;
    max-width: 440px;
    padding: 48px;
    border-radius: 20px;
    /* Slightly larger than standard radius for card */
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04));
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-2px);
}

.auth-header h3 {
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Mobile Input Group */
.mobile-input-group {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
    background: var(--white);
}

.mobile-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    /* Primary color with opacity */
}

.mobile-prefix {
    background: var(--bg-light);
    padding: 14px 18px;
    font-weight: 600;
    color: var(--text-main);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    font-size: 16px;
    user-select: none;
}

.mobile-input-group input {
    border: none;
    padding: 14px 18px;
    width: 100%;
    font-size: 18px;
    font-weight: 500;
    outline: none;
    color: var(--text-main);
    background: transparent;
    font-family: inherit;
}

.mobile-input-group input::placeholder {
    color: #CBD5E1;
    /* Slate 300 */
}

/* OTP Inputs */
.otp-input-container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.otp-field {
    width: 48px;
    height: 56px;
    font-size: 24px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 700;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
    background: var(--white);
    padding: 0;
}

.otp-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

/* Buttons */
.btn-auth {
    background: var(--primary);
    color: #fff;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.btn-auth:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:disabled {
    background: #94A3B8;
    /* Slate 400 */
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    padding: 0;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-link:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    text-decoration: none;
}

/* Timer & Alerts */
.timer-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 20px;
    font-weight: 500;
}

.auth-alert {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    display: none;
    text-align: left;
    font-weight: 500;
    animation: slideUp 0.3s ease;
}

.auth-alert.error {
    background: #FEF2F2;
    /* Red 50 */
    color: #DC2626;
    /* Red 600 */
    border: 1px solid #FEE2E2;
    /* Red 200 */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    15%,
    45%,
    75% {
        transform: translateX(-4px);
    }

    30%,
    60%,
    90% {
        transform: translateX(4px);
    }
}

.shake {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }

    .otp-field {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }
}

/* -------------------------------------------------------------------------- */
/*                                Advanced Auth UI                            */
/* -------------------------------------------------------------------------- */

/* Form transitions */
.auth-step {
    transition: all 0.3s ease;
}

/* Password Input */
.password-group {
    position: relative;
    margin-bottom: 16px;
}

.password-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.password-group input:focus {
    border-color: var(--primary);
}

/* Secondary Actions */
.secondary-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 14px;
}

.secondary-actions button {
    color: var(--text-muted);
    font-weight: 500;
}

.secondary-actions button:hover {
    color: var(--primary);
}

/* Registration Fields */
.reg-field {
    margin-bottom: 12px;
}

.reg-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: #FAFAFA;
}

.reg-field input:focus {
    background: #fff;
    border-color: var(--primary);
    outline: none;
}

.auth-welcome-user {
    font-size: 18px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

/* -------------------------------------------------------------------------- */
/*                        Production Login Page Styles                        */
/* -------------------------------------------------------------------------- */

.auth-page-wrapper {
    min-height: 85vh;
    /* Slightly taller for vertical center balance */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: var(--bg-light);
}

.auth-card {
    background: var(--white);
    width: 100%;
    max-width: 460px;
    /* Slightly wider for ease */
    padding: 56px 48px;
    /* High quality padding tokens */
    border-radius: 24px;
    /* More modern roundedness */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 25px -5px rgba(0, 0, 0, 0.08);
    /* Premium shadow depth */
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
    /* For containing animations */
}

/* Header */
.auth-header {
    margin-bottom: 32px;
}

.auth-header h3 {
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
}

/* Form Groups */
.form-group {
    text-align: left;
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease-in-out;
    color: var(--text-main);
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
}

/* Mobile Check */
.mobile-input-group {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
}

.mobile-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.mobile-prefix {
    background: #F8FAFC;
    padding: 0 20px;
    font-weight: 600;
    color: var(--text-main);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    font-size: 16px;
}

.mobile-input-group input {
    border: none;
    padding: 16px;
    width: 100%;
    font-size: 18px;
    font-weight: 500;
    outline: none;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary);
}

.custom-checkbox label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.custom-checkbox a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.custom-checkbox a:hover {
    text-decoration: underline;
}


/* OTP Fields */
.otp-input-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    /* Tighter gap for cohesion */
    margin-bottom: 24px;
}

.otp-field {
    width: 100%;
    height: 60px;
    font-size: 24px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 700;
    color: var(--text-main);
    background: var(--white);
    transition: all 0.2s;
    outline: none;
    padding: 0;
}

.otp-field:focus {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

/* Primary Button */
.btn-auth {
    background: var(--primary);
    color: #fff;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3);
}

.btn-auth:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(14, 165, 233, 0.4);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:disabled {
    background: #94A3B8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Secondary Links */
.btn-link-subtle {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-link-subtle:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Feedback / Alerts */
.validation-error {
    color: #DC2626;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
    min-height: 0;
    /* Prevents layout jump if empty */
}

.auth-alert {
    margin-top: 24px;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 14px;
    display: none;
    text-align: center;
    font-weight: 500;
    animation: slideUp 0.3s ease;
}

.auth-alert.error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .auth-page-wrapper {
        padding: 20px;
        align-items: flex-start;
        /* Better for mobile keyboard */
    }

    .auth-card {
        padding: 32px 24px;
        box-shadow: none;
        /* Cleaner on mobile */
        border: none;
    }

    .otp-field {
        height: 50px;
        font-size: 20px;
    }
}

/* ==========================================================================
   RESTORED QUOTE RESULT & SUCCESS STYLES
   ========================================================================== */

/* --- QUOTE FLOW CONTAINER --- */
.quote-flow-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    padding-bottom: 60px;
}

/* --- STEP 2: ESTIMATE CARD (Blue Theme) --- */
.estimate-preview-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-top: 20px;
}

.estimate-header-blue {
    background: #1e3a8a;
    /* Deep Blue */
    color: #fff;
    padding: 32px;
}

.estimate-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.est-brand h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.est-ref {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 6px;
    text-transform: uppercase;
}

.est-amount {
    font-size: 36px;
    font-weight: 800;
    color: #fbbf24;
    /* Amber */
    line-height: 1;
}

.est-label {
    text-align: right;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.est-total-block {
    text-align: right;
}

.est-meta-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.est-meta-item strong {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    margin-bottom: 4px;
}

.est-meta-item span {
    font-size: 16px;
    font-weight: 600;
}

.estimate-body {
    padding: 40px;
    background: #f8fafc;
}

.est-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- ESTIMATE TABLES --- */
.est-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.est-table th {
    background: #f1f5f9;
    padding: 12px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.est-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

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

.row-subtotal td {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

/* --- ACTIVE / INACTIVE ROWS --- */
.tier-row.active-tier td {
    font-weight: 700;
    color: #0f172a;
    background-color: #f0f9ff;
}

.tier-row.active-tier td:last-child {
    color: #0369a1;
    /* Active Price Color */
}

.tier-row.inactive-tier td {
    color: #cbd5e1;
    text-decoration: none;
}


/* --- NOTES & INFO BOXES --- */
.est-note-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px dashed #cbd5e1;
    display: flex;
    gap: 20px;
}

.est-note-icon {
    font-size: 20px;
    color: #f59e0b;
    /* Warning/Amber color */
}

.est-var-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.var-item-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px dotted #e2e8f0;
    font-size: 13px;
    color: #475569;
}

.var-badge {
    background: #f0fdf4;
    color: #166534;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* Reference Chart Grid */
#reference-rate-chart {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

#reference-rate-chart>div {
    transition: transform 0.2s;
    background: #fff;
}


/* --- STEP 3: SUCCESS TIMELINE --- */
.success-screen-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

/* Success Header Card */
.success-card-top {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.success-icon-circle {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.success-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.success-subtitle {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 24px;
}

.booking-ref-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 12px 20px;
    display: inline-block;
}

.ref-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 4px;
}

.ref-code {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
}

/* Timeline Components */
.timeline-card {
    background: #eff6ff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #bfdbfe;
    margin-bottom: 24px;
}

.card-label-row {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1e40af;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-steps {
    position: relative;
    padding-left: 10px;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 30px;
    left: 26px;
    /* Adjust based on circle size */
    width: 2px;
    background: #cbd5e1;
}

.tl-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.tl-step:last-child {
    margin-bottom: 0;
}

.tl-circle {
    width: 34px;
    height: 34px;
    background: #fff;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    border-radius: 50%;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.tl-step.active .tl-circle {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 0 0 4px #dbeafe;
}

.tl-content {
    padding-top: 5px;
}

.tl-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.tl-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    display: block;
}

.timer-badge {
    background: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}


/* --- RESOURCES & LINKS --- */
.resource-link-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none !important;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.resource-link-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.rs-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #475569;
    margin-right: 16px;
}

.rs-icon.play-icon {
    background: #fef2f2;
    color: #ef4444;
}

.rs-info {
    flex: 1;
}

.rs-title {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.rs-meta {
    font-size: 12px;
    color: #94a3b8;
}

.btn-black-block {
    display: block;
    width: 100%;
    background: #0f172a;
    color: #fff !important;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-black-block:hover {
    background: #1e293b;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 600px) {

    .estimate-header-top,
    .est-meta-row {
        flex-direction: column;
        gap: 16px;
    }

    .est-total-block {
        text-align: left;
    }

    .est-meta-row {
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .est-var-grid {
        grid-template-columns: 1fr;
    }

    .estimate-body,
    .estimate-header-blue {
        padding: 24px;
    }
}

/* Custom Dropdowns */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown .dropdown-trigger {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease !important;
    font-size: 15px;
    color: #1e293b;
    min-height: 54px;
}

.custom-dropdown.open .dropdown-trigger,
.custom-dropdown .dropdown-trigger:hover {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.custom-dropdown .dropdown-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
}

.custom-dropdown.open .dropdown-options {
    display: block;
    animation: premiumFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes premiumFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-dropdown .dropdown-option {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    transition: all 0.2s ease;
}

.custom-dropdown .dropdown-option:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.custom-dropdown .dropdown-option.selected {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

@keyframes premiumFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Input with Prefix Fix */
.input-group {
    display: flex;
    align-items: stretch;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.2s ease;
}

.input-prefix {
    padding: 0 16px;
    background: #f1f5f9;
    border-right: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
}

.input-group .form-control {
    border: none !important;
    background: transparent !important;
    padding-left: 12px !important;
    flex: 1;
}

.input-group:focus-within {
    background: #fff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1) !important;
}

/* ==========================================================================
   FLAT / SEAMLESS QUOTE UI (USER REQUESTED UPDATE)
   ========================================================================== */

/* ==========================================================================
   PREMIUM QUOTE OVERHAUL (v2)
   ========================================================================== */

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --premium-blue: #1e40af;
    --soft-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.08);
}

.premium-overhaul {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 40px !important;
    padding: 60px !important;
    box-shadow: var(--soft-shadow) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-text {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 42px !important;
    font-weight: 900 !important;
    letter-spacing: -1.5px !important;
}

.subtitle {
    color: #64748b;
    font-size: 18px !important;
    font-weight: 500;
}

/* Premium Form Elements */
.premium-overhaul .form-group {
    margin-bottom: 30px !important;
}

.premium-overhaul .form-group label {
    font-size: 15px !important;
    color: #334155 !important;
    font-weight: 700 !important;
    display: block;
}

/* Modern Service Toggles */
.service-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #f1f5f9;
    padding: 8px;
    border-radius: 20px;
}

.service-type-toggle .service-option {
    margin: 0;
}

.service-type-toggle .option-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 14px !important;
    padding: 15px !important;
    text-align: center;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s ease;
}

.service-option input:checked+.option-box {
    background: #fff !important;
    color: var(--premium-blue) !important;
    box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.1) !important;
}

/* Machine Cards Overhaul */
.machine-options,
.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.machine-card .card-content {
    border-radius: 20px !important;
    padding: 20px !important;
    border: 2px solid #f1f5f9 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.machine-card input:checked+.card-content {
    border-color: var(--premium-blue) !important;
    background: #eff6ff !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(30, 64, 175, 0.1) !important;
}

.machine-icon {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* ==========================================================================
   STATE-OF-THE-ART QUOTE FORM v4
   ========================================================================== */

.premium-overhaul {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 32px !important;
    padding: 40px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
}

.gradient-text {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 36px !important;
    font-weight: 800 !important;
    letter-spacing: -1px;
}

.personal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

/* Smart Slider Header */
.smart-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.smart-slider-header label {
    margin-bottom: 0 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b !important;
}

.main-display-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

#display-val {
    font-size: 48px;
    font-weight: 900;
    color: #1e3a8a;
    line-height: 1;
}

#display-unit {
    font-size: 16px;
    font-weight: 800;
    color: #3b82f6;
    text-transform: uppercase;
}

/* Advanced Slider Track */
.advanced-slider-container {
    padding: 10px 0;
}

.slider-track-wrap {
    position: relative;
    height: 12px;
    background: #f1f5f9;
    border-radius: 6px;
}

.advanced-range-input {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: pointer;
    margin: 0;
}

.advanced-range-input::-webkit-slider-runnable-track {
    width: 100%;
    height: 12px;
    cursor: pointer;
    background: transparent;
    border-radius: 6px;
}

.advanced-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #fff;
    border: 6px solid #1e3a8a;
    margin-top: -6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.advanced-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* Custom Progress Bar filled via JS */
.slider-track-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress-pct, 30%);
    background: #1e3a8a;
    border-radius: 6px;
    z-index: 1;
    pointer-events: none;
}

.slider-bottom-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
}

/* Quick Select Pills */
.slider-quick-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.quick-pill {
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.quick-pill.active {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
}

/* Pricing Table */
.tier-pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.tier-pricing-table th {
    background: #f8fafc;
    padding: 12px 15px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.tier-pricing-table td {
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}

.tier-pricing-table tr:last-child td {
    border-bottom: none;
}

.tier-pricing-table tr.active-tier {
    background: #f0f9ff;
}

.tier-pricing-table tr.active-tier td {
    color: #1e3a8a;
}

.tier-pricing-table tr.is-current {
    background: #eff6ff;
    position: relative;
}

.tier-pricing-table tr.is-current td {
    font-weight: 800;
}

.status-current {
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.status-included {
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    opacity: 0.8;
}

.status-included i {
    font-size: 14px;
}

/* Scoped Premium Button */
.quote-generate-btn {
    background: #1e3a8a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    height: 64px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.quote-generate-btn:hover {
    background: #1e40af !important;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(30, 58, 138, 0.3) !important;
}

@media (max-width: 768px) {
    .premium-overhaul {
        padding: 30px 20px !important;
    }

    .personal-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .smart-slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #display-val {
        font-size: 40px;
    }
}

/* Quote Actions Bar (Step 2) */
.quote-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 15px;
}

#back-to-edit {
    color: #64748b !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    transition: all 0.2s !important;
}

#back-to-edit:hover {
    color: #1e3a8a !important;
    transform: translateX(-3px);
}

.action-group {
    display: flex;
    gap: 10px;
}

.action-group .btn {
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    transition: all 0.2s !important;
}

.action-group .download-pdf-trigger {
    border: 1.5px solid #e2e8f0 !important;
    color: #475569 !important;
    background: transparent !important;
}

.action-group .download-pdf-trigger:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

#whatsapp-share {
    background: #22c55e !important;
    color: #fff !important;
    border: none !important;
}

#whatsapp-share:hover {
    background: #16a34a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

@media (max-width: 576px) {
    .quote-actions-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-group {
        width: 100%;
        justify-content: space-between;
    }

    .action-group .btn {
        flex: 1;
        justify-content: center;
    }
}


/* Services Compact Redesign - Refined */
.services-compact-page {
    background: #fff;
    min-height: 100vh;
}

.services-header-compact {
    background: #f8fafc;
    padding: 80px 0 50px;
    border-bottom: 1px solid #e2e8f0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-left .sub-label {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #0284C7;
    margin-bottom: 8px;
    display: block;
}

.header-left .page-title {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}

.view-stats {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

#service-count {
    color: #0f172a;
    font-weight: 800;
}

/* Controls Bar */
.services-controls-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    z-index: 100;
    margin-bottom: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.controls-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-group-pills {
    display: flex;
    gap: 8px;
}

.pill-btn {
    padding: 10px 22px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-btn:hover {
    border-color: #0284C7;
    color: #0284C7;
}

.pill-btn.active {
    background: #0284C7;
    border-color: #0284C7;
    color: #fff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.view-toggle-group {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    gap: 2px;
}

.view-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.view-btn.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Base Service Item Styles */
.service-item-compact {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.service-item-compact:hover {
    border-color: #0284C7;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-8px);
}

/* Grid View Styles */
#services-container.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.view-grid .item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.view-grid .item-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.view-grid .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-item-compact:hover .item-image img {
    transform: scale(1.08);
}

.view-grid .item-details {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* List View Styles */
#services-container.view-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#services-container.view-list .item-inner {
    display: flex;
    align-items: center;
}

#services-container.view-list .item-image {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
}

#services-container.view-list .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#services-container.view-list .item-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 24px;
}

#services-container.view-list .details-top {
    flex: 0 0 250px;
}

#services-container.view-list .item-excerpt {
    margin: 0;
    padding: 0 30px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* Common Content Styles */
.item-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.item-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #0f172a;
}

.item-price .currency {
    font-size: 1rem;
    font-weight: 600;
}

.price-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
}

.price-unit {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 700;
}

.item-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.item-actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 20;
    /* Above card link (z-index: 5) */
}

.btn-link-action-pseudo {
    flex: 1;
    height: 40px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
    pointer-events: none;
}

.service-item-compact:hover .btn-link-action-pseudo {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-view-listing {
    flex: 1;
    height: 48px;
    width: 120px;
    background: #0284C7;
    color: #fff !important;
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.service-item-compact:hover .btn-view-listing {
    background: #0369a1;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    #services-container.view-list .item-excerpt {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-header-compact {
        padding: 40px 0 30px;
    }

    .header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pill-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    /* Target mobile List View - transform into compact horizontal layout */
    #services-container.view-list .service-item-compact {
        height: auto !important;
        flex: none;
    }

    #services-container.view-list .item-inner {
        flex-direction: row;
        align-items: stretch;
        height: auto;
        min-height: 100px;
    }

    #services-container.view-list .item-image {
        width: 120px;
        height: 120px;
        flex: 0 0 120px;
        border-right: 1px solid #e2e8f0;
        border-bottom: none;
    }

    #services-container.view-list .item-details {
        flex: 1;
        padding: 16px 20px;
        gap: 6px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
    }

    #services-container.view-list .details-top {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        width: 100%;
    }

    #services-container.view-list .item-title {
        font-size: 14px;
        margin: 0;
        line-height: 1.3;
        font-weight: 800;
    }

    #services-container.view-list .item-price {
        font-size: 13px;
        margin-top: 2px;
    }

    #services-container.view-list .item-excerpt {
        display: none;
    }

    #services-container.view-list .item-actions {
        margin-top: auto;
        padding-top: 4px;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        position: relative;
        z-index: 20;
        /* Ensure button is clickable above the main card link */
    }

    #services-container.view-list .btn-view-listing {
        height: 34px;
        padding: 0 15px;
        font-size: 12px;
        border-radius: 8px;
        width: auto;
        flex: none;
    }
}

/* --- Form Utilities (Added for Quote Refinements) --- */
.input-wrapper-relative {
    position: relative;
}

.verified-input {
    background-color: #f0fff4 !important;
    border-color: #22c55e !important;
    padding-right: 90px !important;
    /* Space for badge */
}

.verified-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.detect-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: 0.2s;
}

.detect-btn:hover {
    background-color: #f0f9ff;
    color: var(--primary-dark);
}

.address-input-padded {
    padding-right: 40px !important;
}

/* --- Universal Section Typography (Standardized) --- */
/* Matches .hero-title-lg from Live Ops */
.section-header h2,
.section-title-md,
.partner-section h2,
.cta-banner h2 {
    font-size: 3rem !important;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Ensure colors are correct for context */
.section-header h2,
.section-title-md {
    color: #0f172a;
}

.partner-section h2,
.cta-banner h2 {
    color: #fff !important;
}

/* Mobile Responsive Typography */
@media (max-width: 991px) {

    .section-header h2,
    .section-title-md,
    .partner-section h2,
    .cta-banner h2 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {

    .section-header h2,
    .section-title-md,
    .partner-section h2,
    .cta-banner h2 {
        font-size: 2rem !important;
    }
}