:root {
    /* Modern Premium Palette */
    --primary: #181c26;
    /* Deep Navy - Structure/Headings */
    --primary-light: #1e293b;
    /* Lighter Navy - Secondary Text */
    --accent: #3b82f6;
    /* Electric Blue - CTAs/Highlights */
    --accent-hover: #2563eb;
    /* Darker Blue - Hover states */
    --bg-page: #f8fafc;
    /* Cool Light Grey - Page Background */
    --bg-surface: #ffffff;
    /* White - Cards/Panels */
    --text-main: #1e293b;
    /* Slate 800 - Body Text */
    --text-muted: #64748b;
    /* Slate 500 - Muted Text */
    --border: #e2e8f0;
    /* Slate 200 - Subtle Borders */
    --success: #10b981;
    /* Emerald - Success states */
    --danger: #ef4444;
    /* Red - Errors/Close */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Radius */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

/* Layout */
.container {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
}

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

/* Sidebar */
.sidebar {
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    padding: 32px 24px;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

/* Filters */
.filter-group {
    margin-bottom: 32px;
}

.filter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: var(--bg-page);
    border: 1px solid transparent;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    background: #e2e8f0;
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-reset {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-reset:hover {
    background: #ffe4e6;
    /* Soft red bg */
    color: var(--danger);
    border-color: var(--danger);
}

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

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), var(--shadow-sm);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* Switches */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-page);
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider-round {
    background-color: var(--success);
}

input:checked+.slider-round:before {
    transform: translateX(20px);
}

/* Main Content */
.main-content {
    padding: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.results-header h1 {
    font-size: 42px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.search-wrapper {
    position: relative;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
    background: #fff;
    outline: none;
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.results-count {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
}

/* Card Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Modern Card */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(59, 130, 246, 0.1);
}

.card-img-wrapper {
    background: linear-gradient(to bottom, #f1f5f9, #fff);
    padding: 12px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05) translateX(-5px);
}

.card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-brand {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.card-features-preview {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

.card-features-preview i {
    width: 20px;
    text-align: center;
    color: var(--primary-light);
}

.price-badge {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.price-badge-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.price-badge-amount span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.card-cta {
    font-size: 24px;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.card:hover .card-cta {
    opacity: 1;
    transform: translateX(0);
}

/* Detail Modal */
.detail-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    /* Dark Navy see-through */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s;
}

.detail-view.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-surface);
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 24px;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
    color: var(--primary);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.close-modal:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-left {
    flex: 1.2;
    background: radial-gradient(circle at center, #ffffff 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 40px;
    gap: 20px;
    height: 100%;
    overflow: hidden;
}


.modal-left::before {
    display: none;
}

.modal-left img {
    width: 100%;
    max-width: 700px;
    max-height: 40vh;
    /* Limit height */
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    z-index: 1;
    flex-shrink: 0;
    /* Don't shrink */
    transform: scale(1);
    transition: transform 0.5s;
}

.modal-left:hover img {
    transform: scale(1.05);
}

.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    padding: 0;
    overflow-y: auto;
    /* Enable scrolling for content > height */
}

/* Modal Right Content structure */
.modal-header-section {
    padding: 40px 40px 20px 40px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.modal-title {
    font-size: 32px;
    margin-bottom: 4px;
    color: var(--primary);
}

.modal-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Config Form */
.config-form {
    padding: 30px 40px;
}

.config-section {
    margin-bottom: 24px;
}

.config-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    display: block;
}

.option-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-option {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 80px;
}

.btn-option:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-option.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-option small {
    font-weight: 400;
    opacity: 0.8;
}

/* Services / Addons */
.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.addons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.addon-btn {
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.addon-btn:hover {
    border-color: var(--accent);
}

.addon-btn.active {
    background: #eff6ff;
    border-color: var(--accent);
    position: relative;
}

.addon-btn.active::after {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--accent);
}

.addon-btn b {
    color: var(--primary);
    font-size: 14px;
}

.addon-btn small {
    color: var(--text-muted);
}

/* Accordion */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}

.accordion-header {
    background: #f8fafc;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-header::after {
    content: '\f078';
    /* Chevron Down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    transition: transform 0.3s;
    color: var(--text-muted);
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 20px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.accordion-item.active .accordion-content {
    display: block;
}

.service-item,
.tech-item {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-item:last-child,
.tech-item:last-child {
    border-bottom: none;
}

/* Login Modal Styles */
.dashboard-login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.dashboard-login-box {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: modalSlideUp 0.3s ease-out;
}

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

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

.service-item b {
    color: var(--primary);
    font-weight: 500;
}

.tech-label {
    color: var(--text-muted);
}

.tech-value {
    font-weight: 600;
    color: var(--primary);
}

/* Price Box */
.price-box {
    background: var(--primary);
    color: #fff;
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-xl);
}

.price-box-label {
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.price-box-amount {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.price-details {
    text-align: right;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
}

.btn-cta {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 18px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

.btn-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.5);
}

/* Mobile Elements Defaults */
.mobile-filter-toggle {
    display: none;
}

.sidebar-header-mobile {
    display: none;
}

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

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

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

    /* Mobile Sidebar / Drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 24px;
        background: var(--bg-surface);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border);
    }

    .logo-text-mobile {
        font-size: 20px;
        font-weight: 700;
        color: var(--primary);
    }

    .close-sidebar {
        background: transparent;
        border: none;
        font-size: 24px;
        color: var(--text-muted);
        cursor: pointer;
    }

    /* Header & Main Content */
    .main-content {
        padding: 24px 20px;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }

    .results-header h1 {
        font-size: 32px;
    }

    .search-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        font-weight: 600;
        color: var(--primary);
        font-size: 14px;
        box-shadow: var(--shadow-sm);
        cursor: pointer;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Modal Mobile */
    .modal-content {
        flex-direction: column;
        height: 100%;
        width: 100%;
        border-radius: 0;
        overflow-y: auto;
    }

    .modal-left {
        flex: 0 0 auto;
        height: 250px;
        padding: 20px;
        background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    }

    .modal-left img {
        max-height: 100%;
        width: auto;
        max-width: 100%;
    }

    .modal-right {
        flex: 1;
        overflow-y: visible;
        /* Scroll handled by modal-content */
    }

    .modal-header-section {
        padding: 24px;
        position: relative;
        background: #fff;
    }

    .config-form {
        padding: 0 24px 40px 24px;
    }

    .close-modal {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 18px;
        background: rgba(255, 255, 255, 0.9);
    }

    .price-box {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

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

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

body.no-scroll {
    overflow: hidden;
}

/* Preventivo View Modal */
.preventivo-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    z-index: 1050;
    /* Higher than detail-view */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.preventivo-view.active {
    display: flex;
    opacity: 1;
}

.preventivo-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    height: 90vh;
    /* Fixed height for scrollable body */
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

.close-preventivo {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    color: var(--text-muted);
    transition: color 0.2s;
    line-height: 1;
}

.close-preventivo:hover {
    color: var(--danger);
}

.preventivo-header {
    padding: 30px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.preventivo-header h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--primary);
}

.steps-indicator {
    display: flex;
    gap: 30px;
}

.step {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    padding-bottom: 8px;
    cursor: default;
}

.step.active {
    color: var(--accent);
    font-weight: 700;
}

.step.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.preventivo-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.back-link {
    margin-top: 20px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

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

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .preventivo-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* Summary Section in Modal */
.summary-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.summary-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border);
}

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

.summary-section h4 {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-label {
    color: var(--text-muted);
    font-weight: 500;
}

.summary-value {
    font-weight: 700;
    color: var(--text-main);
    text-align: right;
}

/* Modal Buttons Styling */
.btn-reset {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-reset:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

#step2 .btn-cta {
    padding: 10px 20px;
    font-size: 14px;
    width: auto;
    /* Prevent full width */
}

/* PDF Template Styles - Formal Document Layout */
.pdf-container {
    width: 210mm;
    /* A4 width */
    min-height: 297mm;
    /* A4 height */
    padding: 20mm;
    background: #ffffff;
    font-family: 'Helvetica', 'Arial', sans-serif;
    /* Standard readable font */
    color: #333333;
    box-sizing: border-box;
    position: relative;
    font-size: 12pt;
    line-height: 1.5;
}

.pdf-header {
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.pdf-logo h1 {
    font-size: 24pt;
    font-weight: bold;
    color: #000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pdf-title {
    text-align: right;
}

.pdf-title h2 {
    font-size: 16pt;
    font-weight: bold;
    color: #000;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.pdf-title span {
    font-size: 10pt;
    color: #666;
}

/* 2-Column Layout for Data */
.pdf-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.pdf-col {
    flex: 1;
    background: #fdfdfd;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
}

.pdf-box h3 {
    font-size: 11pt;
    font-weight: bold;
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pdf-data-list p {
    margin: 4px 0;
    font-size: 10pt;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 2px;
}

.pdf-data-list p:last-child {
    border-bottom: none;
}

.pdf-data-list span {
    color: #555;
}

.pdf-data-list strong {
    color: #000;
    font-weight: 600;
}

/* Car Section */
.pdf-main-car {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    padding: 15px;
    background: #fff;
}

.pdf-main-car img {
    width: 200px;
    /* Fixed width */
    height: 140px;
    /* Fixed height container */
    object-fit: contain;
    background: #fff;
}

.pdf-car-title {
    flex: 1;
}

.pdf-car-title h1 {
    font-size: 18pt;
    font-weight: bold;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

.pdf-car-title span {
    font-size: 12pt;
    color: #555;
    display: block;
    margin-top: 5px;
}

/* Pricing Section - Table Style */
.pdf-pricing {
    margin-bottom: 40px;
}

.pdf-pricing h3 {
    font-size: 12pt;
    font-weight: bold;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.pdf-pricing-grid {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.pdf-price-item {
    display: table-cell;
    border: 1px solid #000;
    padding: 10px;
    text-align: center;
    width: 25%;
    vertical-align: middle;
}

.pdf-price-item span {
    display: block;
    font-size: 9pt;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 5px;
}

.pdf-price-item strong {
    display: block;
    font-size: 14pt;
    font-weight: bold;
    color: #000;
}

.pdf-price-item.main {
    background: #f0f0f0;
}

/* Services */
.pdf-services {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdf-service-tag {
    font-size: 9pt;
    border: 1px solid #999;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
}

.pdf-footer {
    position: absolute;
    bottom: 20mm;
    left: 20mm;
    right: 20mm;
    text-align: center;
    font-size: 9pt;
    color: #777;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

/* Horizontal Tabs */
.tabs-nav {
    display: flex;
    width: 100%;
    /* Force full width */
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    justify-content: space-between;
    /* Ensure buttons spread out */
}

.tab-btn {
    flex: 1;
    /* Each button takes equal space */
    width: 100%;
    /* Ensure it tries to fill flex item */
    text-align: center;
    /* Center text */
    padding: 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    /* Overlap border */
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    /* Prevent wrapping if names are long */
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.02);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.tabs-content {
    width: 100%;
}

.tab-pane {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
    /* Shown when active */
}

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

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

/* Update service items for tab view */
.service-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.service-item b {
    color: var(--primary);
    margin-bottom: 4px;
}

/* Tech Grid for Tech Tab */
.tech-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.tech-value {
    font-weight: 600;
    color: var(--primary);
}

/* Header Buttons */
.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Brand Logo Filters */
.brand-logo-filter {
    height: 45px;
    /* Increased height */
    width: 100%;
    /* Allow full width of the button */
    object-fit: contain;
    display: block;
}

.filter-btn.has-logo {
    padding: 8px;
    /* Reduce padding slightly to give more room to image */
    justify-content: center;
    background: #fff;
    /* Revert to white */
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
    height: 60px;
    /* Fixed height for the button */
    display: flex;
    align-items: center;
}

.filter-btn.has-logo:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.has-logo.active {
    background: #eff6ff !important;
    /* Very light blue tint */
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--accent) !important;
    /* Strong blue ring */
}

/* Ensure no override leaks */
.brand-logo-filter {
    max-height: 100% !important;
    /* Let it fill the container height minus padding */
    width: 100% !important;
    max-width: none !important;
}

/* Ensure grid layout is preserved */
#filterMarca {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

/* Fixed Scrollable Tabs */
#detailAccordion {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-height: 0;
    /* Allow shrinking for scroll */
}

.tabs-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    /* Space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.3) transparent;
}

/* Custom Scrollbar for tabs - Premium Look */
.tabs-content::-webkit-scrollbar {
    width: 4px;
    /* Thinner */
}

.tabs-content::-webkit-scrollbar-track {
    background: transparent;
    /* Invisible track */
    border-radius: 10px;
}

.tabs-content::-webkit-scrollbar-thumb {
    background-color: rgba(100, 116, 139, 0.3);
    /* Transparent slate */
    border-radius: 10px;
    transition: background-color 0.3s;
}

.tabs-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(100, 116, 139, 0.6);
    /* Darker on hover */
}