@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: rgba(22, 163, 74, 0.08);
    --primary-border: rgba(22, 163, 74, 0.25);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --font-family: 'Outfit', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius: 14px;
    --radius-sm: 8px;
    --nav-h: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

/* ── Navbar ─────────────────────────────────────────── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-sm);
}

nav .logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

nav .links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav .links a {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--text-muted);
    border-radius: 0;
    background: none;
    position: relative;
    transition: color 0.2s ease;
}

nav .links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.25s ease;
}

nav .links a:hover {
    color: var(--primary);
    background: none;
}

nav .links a:hover::after {
    width: 60%;
}

nav .links a.active {
    color: var(--primary);
    background: none;
    font-weight: 700;
}

nav .links a.active::after {
    width: 60%;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 210;
}

.toggle-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Navbar Responsiveness */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    nav .links {
        position: fixed;
        right: -300px;
        top: 0;
        height: 100vh;
        width: 280px;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        gap: 1rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 205;
    }

    nav .links.show {
        right: 0;
    }

    nav .links a {
        width: 100%;
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    nav .links a::after {
        display: none;
    }

    /* Toggle Animation */
    .mobile-toggle.open .toggle-bar:nth-child(1) {
        transform: rotate(45deg);
    }

    .mobile-toggle.open .toggle-bar:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .mobile-toggle.open .toggle-bar:nth-child(3) {
        transform: rotate(-45deg);
    }
}

nav .btn {
    margin-left: 0.75rem;
    padding: 0.55rem 1.4rem;
    background: var(--primary);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.93rem;
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.25);
    transition: all 0.25s;
}

nav .btn::after {
    display: none;
}

nav .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
    color: #fff !important;
}

/* ── Hero ───────────────────────────────────────────── */
.header-hero {
    position: relative;
    padding: 6rem 5% 0;
    display: flex;
    justify-content: center;
    color: #ffffff;
    min-height: 800px;
    z-index: 1;
}

.header-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(35, 34, 40, 0.95), rgba(35, 34, 40, 0.9)), url('images/cars_background.png');
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
    z-index: -1;
}

.social-strip {
    position: absolute;
    left: 4%;
    top: 45%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    z-index: 10;
}

.social-strip a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-strip a:hover {
    opacity: 1;
}

.follow-text {
    color: #fff;
    font-size: 0.9rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-top: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.vertical-line {
    width: 1px;
    height: 50px;
    background: #fff;
    opacity: 0.5;
    margin-top: 0.5rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fff;
    max-width: 800px;
}

.hero-content p {
    font-size: 1.15rem;
    color: #d1d5db;
    max-width: 650px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions-ref {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-ref {
    background: #ffffff;
    color: #000;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-ref:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-ref svg {
    margin-left: 0.2rem;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 850px;
    display: flex;
    justify-content: center;
    margin-top: -1rem;
    z-index: 2;
}

.hero-car {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.btn-primary {
    padding: 0.9rem 2.2rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-family);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(22, 163, 74, 0.3);
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(22, 163, 74, 0.4);
}

.btn-secondary {
    padding: 0.9rem 2.2rem;
    background: #fff;
    color: var(--text-main);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-family);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.hero-stat .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.hero-stat .stat-label {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ── Section Styles ──────────────────────────────────── */
.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    padding: 0.28rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.9rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.7rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── About Section ──────────────────────────────────── */
.about-section {
    padding: 7rem 5%;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Images Side */
.about-images {
    position: relative;
    width: 100%;
    height: 600px;
}

.main-image {
    width: 75%;
    height: 85%;
    border-radius: 12px;
    overflow: hidden;
    margin-left: 10%;
    background: #ddd;
}

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

.floating-card.top-left {
    position: absolute;
    top: -20px;
    left: 0;
    background: #fff;
    padding: 1.2rem 1.8rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.15);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    z-index: 3;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.card-icon.black-bg {
    width: 50px;
    height: 50px;
    background: #111;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #111;
}

.card-content .rating {
    font-size: 0.95rem;
    color: #444;
}

.card-content .star {
    color: #d6001c;
    font-size: 1.1rem;
}

.card-content .reviews {
    color: #777;
}

.floating-image.bottom-right {
    position: absolute;
    right: 0;
    bottom: 40px;
    width: 45%;
    height: 50%;
    border-radius: 16px;
    overflow: hidden;
    border: 10px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
    background: #ccc;
}

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

.experience-box {
    position: absolute;
    bottom: -10px;
    left: 5%;
    background: #d6001c;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
    z-index: 3;
    color: #fff;
}

.experience-box .years {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.experience-box .exp-text {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Content Side */
.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: #111;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.about-features-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.features-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item .check-icon {
    width: 22px;
    height: 22px;
    background: #d6001c;
    color: #fff;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.feature-item span {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

.emergency-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.12);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(220, 38, 38, 0.08);
    min-width: 240px;
}

.phone-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #d6001c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.emergency-text h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.5rem;
}

.emergency-text p {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    margin: 0;
}

.btn-black {
    background: #050505;
    color: #fff;
    padding: 1rem 2.2rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    align-self: flex-start;
    transition: all 0.3s;
}

.btn-black:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-images {
        height: 500px;
        margin-bottom: 3rem;
    }

    .about-features-container {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ── Services Section ────────────────────────────────── */
.features-section {
    padding: 5.5rem 5%;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.2rem 2rem;
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 2px solid var(--primary-border);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-weight: 800;
}

.feature-desc {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* ── Why Choose Us ───────────────────────────────────── */
.why-us-section {
    padding: 5.5rem 5%;
    background: var(--bg-color);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
}

.why-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-border);
}

.why-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 12px;
}

.why-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.why-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Testimonials ────────────────────────────────────── */
.testimonials-section {
    padding: 5.5rem 5%;
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
}

.testimonial-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.97rem;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.testimonial-sub {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ── CTA Strip ───────────────────────────────────────── */
.cta-strip {
    background: linear-gradient(135deg, var(--primary) 0%, #15803d 50%, #0284c7 100%);
    padding: 4.5rem 5%;
    text-align: center;
    color: #fff;
}

.cta-strip h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.cta-strip p {
    font-size: 1.05rem;
    opacity: 0.88;
    margin-bottom: 2rem;
}

.btn-white {
    padding: 0.9rem 2.2rem;
    background: #fff;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-family);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.2);
}

/* ── Footer ──────────────────────────────────────────── */
footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 5% 2rem;
    margin-top: auto;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 2.5rem;
}

.footer-brand .logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-brand p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.55rem;
}

.footer-col ul li a {
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ── Glass Container ─────────────────────────────────── */
.glass-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    width: 100%;
}

/* ── Form Styles ─────────────────────────────────────── */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 900px) {
    .form-layout {
        grid-template-columns: 1fr;
    }

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

    .header-hero h1 {
        font-size: 2.5rem;
    }

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

.form-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-section-label:first-child {
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.82rem 1.1rem;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.97rem;
    transition: all 0.2s;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

/* ── Dynamic Sub-Options ─────────────────────────────── */
.dynamic-options {
    background: #f8fafc;
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 1.4rem;
    margin-top: 0.8rem;
    display: none;
}

.dynamic-options.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

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

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

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-color);
}

.option-row:last-child {
    border-bottom: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    color: var(--text-main);
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.price-input-container {
    display: none;
    align-items: center;
    gap: 0.4rem;
}

.price-input-container.visible {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.price-input-container span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.price-input-container input {
    width: 110px;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    background: #fff;
    border: 1.5px solid var(--border-color);
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-family);
    text-align: right;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.price-input-container input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ── Bill Summary Panel ──────────────────────────────── */
.bill-summary {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    border: 1.5px solid var(--border-color);
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    box-shadow: var(--shadow);
}

.bill-summary h3 {
    margin-bottom: 1.3rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bill-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.7rem;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.bill-item-name {
    flex: 1;
}

.bill-item-price {
    font-weight: 700;
    color: var(--text-main);
}

.bill-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.3rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

/* ── Submit Button ───────────────────────────────────── */
.submit-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}

/* ── Generic .btn (fallback) ─────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
}

/* ── Table Design ────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    background: var(--bg-color);
}

th:first-child {
    border-radius: 8px 0 0 8px;
}

th:last-child {
    border-radius: 0 8px 8px 0;
}

tbody tr {
    transition: background 0.2s;
}

tbody tr:hover {
    background: #f8fffe;
}

.badge {
    padding: 0.28rem 0.75rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.price-pill {
    font-weight: 800;
    color: var(--text-main);
}

/* ── Alert Messages ──────────────────────────────────── */
.alert-success {
    padding: 1rem 1.2rem;
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.25);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    padding: 1rem 1.2rem;
    background: rgba(220, 38, 38, 0.06);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Action Buttons in Table ─────────────────────────── */
.action-btn {
    padding: 0.38rem 0.9rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.action-btn.view {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.action-btn.view:hover {
    background: var(--primary);
    color: #fff;
}

.action-btn.edit {
    background: rgba(14, 165, 233, 0.08);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.25);
    margin-left: 0.4rem;
}

.action-btn.edit:hover {
    background: #0284c7;
    color: #fff;
}

.action-btn.delete {
    background: rgba(220, 38, 38, 0.06);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
    margin-left: 0.4rem;
}

.action-btn.delete:hover {
    background: #dc2626;
    color: #fff;
}

/* ── Modal ───────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    width: 100%;
    max-width: 520px;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Edit modal specific */
.edit-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.edit-item-row:last-of-type {
    border-bottom: none;
}

.edit-item-name {
    flex: 1;
    font-size: 0.93rem;
    color: var(--text-main);
    font-weight: 500;
}

.edit-price-input {
    width: 110px;
    padding: 0.42rem 0.65rem;
    border-radius: 6px;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-family);
    text-align: right;
    font-size: 0.93rem;
    transition: border-color 0.2s;
}

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

.edit-remove-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
    padding: 0.1rem;
}

.edit-remove-btn:hover {
    color: #dc2626;
}

.edit-total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary-border);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
}

.edit-save-btn {
    width: 100%;
    margin-top: 1.2rem;
    padding: 0.9rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.25s;
}

.edit-save-btn:hover {
    background: var(--primary-dark);
}

/* Autocomplete Dropdown Custom Styling */
.autocomplete-wrapper {
    position: relative;
    display: flex;
    flex: 2;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    transition: background 0.2s;
    text-align: left;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}