/* Variable Definitions */
:root {
    --primary-color: #e2b13c;
    --primary-dark: #cfa02b;
    --bg-color: #0a0a0a;
    --bg-secondary: #141414;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-effect: blur(10px);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* Light Mode Variables */
body.light-mode {
    --bg-color: #f4f7f6;
    --bg-secondary: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #555555;
    --card-bg: #ffffff;
    --border-color: #ddd;
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-btn:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: block;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    /* Always white text for outline buttons (usually on dark bg) */
}

.btn-outline:hover {
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    /* Default transparent at top */
    z-index: 1000;
    transition: var(--transition);
    color: #fff;
    /* Always white text at top (over dark hero) */
}

.navbar .logo,
.navbar .nav-link,
.navbar .nav-link.active,
/* Added specific target for active */
.navbar .nav-link.btn-secondary,
/* Added specific target for button */
.navbar .theme-btn {
    color: #fff;
    /* Force white text at top */
    color: #fff;
    /* Force white text at top */
}

/* Light Mode Transparent Navbar Override REMOVED - Keep Navbar White on Top */

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-color);
    /* In dark mode (default), text remains white inherited/var */
}

/* Light Mode Scrolled Navbar Override */
body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #ddd;
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .navbar.scrolled .logo,
body.light-mode .navbar.scrolled .nav-link,
body.light-mode .navbar.scrolled .theme-btn {
    color: #1a1a1a;
    /* Dark text when scrolled on light mode */
}

body.light-mode .navbar.scrolled .nav-link:hover,
body.light-mode .navbar.scrolled .nav-link.active {
    color: var(--primary-color);
}

body.light-mode .navbar.scrolled {
    /* Ensure scrolled light navbar keeps dark text (already handled above but reaffirming) */
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #ddd;
}



.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
    color: var(--text-color);
}

.nav-link.btn-secondary {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-color);
}

.nav-link.btn-secondary:hover {
    background: var(--primary-color);
    color: #000;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

/* Light Mode: Add fade transition at bottom of hero to blend with light content */
body.light-mode .hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: 2;
    pointer-events: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
    z-index: -1;
    transition: var(--transition);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #fff;
    /* Always white text on hero */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #f0f0f0 !important;
    /* Force light grey for subtitle on hero, override muted text */
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    /* OR gradient text if preferred */
    background: linear-gradient(45deg, var(--primary-color), #fff);
    background-clip: text;
    -webkit-background-clip: text;
}



.hero-btns {
    display: flex;
    gap: 1rem;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Collection Section */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.car-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.car-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.car-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.1);
}

.car-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.car-details {
    padding: 1.5rem;
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.car-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.car-specs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-card {
    display: block;
    text-align: center;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-card:hover {
    background: var(--text-color);
    color: #000;
    border-color: var(--text-color);
}

/* Services Section */
.services {
    background: var(--bg-secondary);
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-list li {
    display: flex;
    gap: 1.5rem;
}

.service-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.service-list h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.service-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.services-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.services-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: -20px;
    left: -20px;
    border: 2px solid var(--primary-color);
    z-index: -1;
    border-radius: 20px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 10px;
    color: var(--text-color);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.map-container {
    margin-top: 4rem;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 400px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) invert(1) contrast(0.8);
    /* Dark mode map effect */
    transition: var(--transition);
}

body.light-mode .map-container iframe {
    filter: none;
    /* Standard map for light mode */
    /* Or use filter: grayscale(1); for a cleaner B&W look if desired */
}

/* Floating WhatsApp Button */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wa-float:hover {
    background-color: #1fe067;
    transform: scale(1.1);
    color: white;
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.4);
}

.wa-float i {
    z-index: 2;
}

/* Pulse Animation for WA Button */
.wa-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.5;
    z-index: 1;
    animation: type-pulse 2s infinite;
}

@keyframes type-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}


/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-brand span {
    color: var(--primary-color);
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #141414;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: var(--primary-color);
    color: #000;
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    height: 80vh;
    /* Fixed height relative to viewport */
    overflow: hidden;
    /* Prevent body itself from scrolling */
}


.modal-image {
    background: #000;
    height: 100%;
    min-height: 0;
    /* Override previous min-height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-image>img {
    width: 100%;
    height: 80%;
    /* Adjust mainly for the gallery space */
    object-fit: cover;
    flex-grow: 1;
}

/* Navigation wrapper for gallery */
.gallery-wrapper {
    position: relative;
    height: 25%;
    min-height: 140px;
    /* Increased height */
    background: #0a0a0a;
}

/* Navigation Buttons */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-btn:hover {
    background: var(--primary-color);
    color: black;
}

.gallery-btn.prev {
    left: 5px;
}

.gallery-btn.next {
    right: 5px;
}

.modal-gallery {
    height: 100%;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 2.5rem;
    /* Add padding for buttons */
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
}

.modal-gallery::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.gallery-thumb {
    height: 100%;
    width: 200px;
    /* Increased width to keep aspect ratio */
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    opacity: 0.6;
    transition: var(--transition);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.modal-info {
    padding: 2rem;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Scroll ONLY the info section */
    height: 100%;
}

#modal-tag {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 1rem;
    /* Reset styles inherited from .car-tag */
    position: static;
    top: auto;
    right: auto;
    background: rgba(255, 255, 255, 0.1);
    /* Slightly different bg for modal */
    backdrop-filter: none;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.modal-desc {
    color: var(--text-muted);
    margin: 1.5rem 0;
    font-size: 1rem;
    line-height: 1.7;
}

.modal-specs-container h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-specs li {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-specs li i {
    color: var(--primary-color);
}

/* Light Mode Modal Overrides */
body.light-mode .modal-content {
    background: #ffffff;
    color: #1a1a1a;
}

/* Global Modal WA Button Style */
#modal-wa {
    margin-top: auto;
    width: 100%;
}

body.light-mode .modal-desc {
    color: #444;
}

body.light-mode .modal-specs-container h4 {
    color: #1a1a1a;
}

body.light-mode .modal-specs li {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

body.light-mode .modal-title {
    color: #000;
}


/* Responsive adjustment for Modal */
@media (max-width: 968px) {
    .modal-body {
        display: block;
        /* Stack vertically */
        max-height: 90vh;
        overflow-y: auto;
        /* Scroll the whole body (image + text) */
    }

    .modal-image {
        height: 500px;
        min-height: 500px;
        flex-shrink: 0;
    }

    .modal-info {
        padding: 2rem;
        overflow: visible;
        /* Disable internal scroll */
        height: auto;
        /* Let it grow */
    }

    /* Modal WA Button Mobile Fix */
    #modal-wa {
        white-space: nowrap;
        font-size: 0.9rem;
        /* Slightly smaller font to fit */
        padding: 0.8rem 1.5rem;
        /* Adjust padding if needed */
        width: 100%;
        /* Ensure full width button */
        justify-content: center;
        /* Center content */
        margin-top: auto;
        /* Push to bottom */
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }

    .services-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-image {
        order: -1;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 2rem;
        transition: 0.4s;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }
}


/* ==========================================================================
   KALKULATOR KREDIT MOBIL (SIMULASI PEMBIAYAAN)
   ========================================================================== */
.calculator-section {
    background: radial-gradient(circle at 50% 20%, #151d2c 0%, #0a0d14 70%);
    position: relative;
    padding: 6rem 0;
}

.calc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(226, 177, 60, 0.12);
    border: 1px solid rgba(226, 177, 60, 0.6);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.calc-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.calc-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.calc-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Toggle Tabs (Bekas vs Baru) */
.calc-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.calc-toggle-pill {
    display: inline-flex;
    background: #0f1523;
    border: 1px solid #1f2a3e;
    border-radius: 999px;
    padding: 5px;
    gap: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.calc-toggle-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 26px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.calc-toggle-btn .icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.calc-toggle-btn .btn-text {
    text-align: left;
}

.calc-toggle-btn .title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    display: block;
}

.calc-toggle-btn .rate {
    font-size: 0.72rem;
    opacity: 0.8;
    display: block;
    margin-top: 2px;
}

.calc-toggle-btn.active {
    background: linear-gradient(135deg, #e58e09 0%, #d97706 100%);
    color: #0b0f19;
    box-shadow: 0 4px 15px rgba(229, 142, 9, 0.35);
}

.calc-toggle-btn.active .icon-circle {
    background: rgba(0, 0, 0, 0.15);
    color: #0b0f19;
}

.calc-toggle-btn.active .title,
.calc-toggle-btn.active .rate {
    color: #0b0f19;
    font-weight: 800;
}

/* Card Containers */
.calc-card {
    background: #0f1523;
    border: 1px solid #1f2a3e;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.calc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.calc-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.calc-card-title i {
    color: var(--primary-color);
}

.calc-rate-badge {
    background: rgba(229, 142, 9, 0.15);
    border: 1px solid rgba(229, 142, 9, 0.4);
    color: #e58e09;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
}

.calc-card-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

/* Form Controls */
.calc-form-group {
    margin-bottom: 1.5rem;
}

.calc-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 0.6rem;
}

.calc-label span.label-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-label i {
    color: #94a3b8;
    width: 16px;
}

.calc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.calc-input-wrap .prefix,
.calc-input-wrap .suffix {
    position: absolute;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
}

.calc-input-wrap .prefix {
    left: 14px;
}

.calc-input-wrap .suffix {
    right: 14px;
}

.calc-control {
    width: 100%;
    padding: 12px 14px;
    background: #090d16;
    border: 1px solid #1e283d;
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.calc-input-wrap.has-prefix .calc-control {
    padding-left: 42px;
}

.calc-input-wrap.has-suffix .calc-control {
    padding-right: 36px;
}

.calc-control:focus {
    outline: none;
    border-color: #e58e09;
    box-shadow: 0 0 0 3px rgba(229, 142, 9, 0.15);
}

select.calc-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
    cursor: pointer;
}

/* Quick DP Percentage Buttons */
.calc-dp-percent-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #090d16;
    border: 1px solid #1e283d;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 0.8rem;
    gap: 3px;
}

.calc-percent-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.calc-percent-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.calc-percent-btn.active {
    background: #e58e09;
    color: #0b0f19;
    box-shadow: 0 2px 8px rgba(229, 142, 9, 0.3);
}

.calc-dp-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

.calc-helper-text {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* Biaya Tambahan Grid */
.calc-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* 3 Summary Cards */
.calc-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #1f2a3e;
}

.calc-summary-card {
    background: #090d16;
    border: 1px solid #1e283d;
    border-radius: 14px;
    padding: 1.25rem;
    transition: var(--transition);
}

.calc-summary-card:hover {
    border-color: rgba(229, 142, 9, 0.4);
}

.calc-summary-card .s-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.calc-summary-card .s-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.calc-summary-card .s-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.3rem;
}

/* Tenor Comparison Table */
.calc-table-scroll {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid #1e283d;
    background: #090d16;
}

.calc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 760px;
}

.calc-table th {
    background: #0c121e;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #1e283d;
}

.calc-table td {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid #151d2d;
    font-size: 0.88rem;
    color: #cbd5e1;
    vertical-align: middle;
}

.calc-table tbody tr:last-child td {
    border-bottom: none;
}

.calc-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.calc-tenor-badge {
    font-weight: 700;
    color: #ffffff;
}

.calc-tenor-sub {
    font-size: 0.75rem;
    color: #64748b;
}

.calc-installment-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #e58e09;
}

.calc-installment-unit {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.calc-btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #10b981;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.calc-btn-apply:hover {
    background: #059669;
    transform: scale(1.04);
}

/* Disclaimer Note */
.calc-disclaimer {
    background: rgba(229, 142, 9, 0.08);
    border: 1px solid rgba(229, 142, 9, 0.25);
    border-radius: 10px;
    padding: 0.85rem 1.2rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #e58e09;
}

/* Consultation Bottom Banner */
.calc-consult-banner {
    background: #090d16;
    border: 1px solid #1e283d;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-top: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.calc-consult-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calc-consult-content i {
    font-size: 1.8rem;
    color: #94a3b8;
}

.calc-consult-content h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.calc-consult-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.calc-btn-consult {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e58e09 0%, #d97706 100%);
    color: #0b0f19;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(229, 142, 9, 0.3);
    transition: all 0.3s ease;
}

.calc-btn-consult:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 142, 9, 0.4);
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calc-header h2 {
        font-size: 1.8rem;
    }
    .calc-toggle-btn {
        padding: 8px 16px;
    }
    .calc-toggle-btn .title {
        font-size: 0.85rem;
    }
    .calc-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .calc-two-col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .calc-consult-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .calc-btn-consult {
        width: 100%;
        justify-content: center;
    }
}
