/* --- 1. Base Styles & Scroll Behavior --- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #121212;
    color: white;
    font-family: sans-serif;
    margin: 0;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* --- 2. Navigation Bar --- */
.navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 80px;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-item:hover {
    color: white;
}

.request-btn {
    background-color: #9d66e5;
    color: white;
    padding: 0.625rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(157, 102, 229, 0.3);
    transition: all 0.2s;
}

/* --- 3. Main Layout (Flexbox Outward Lean) --- */
.layout-grid {
    display: flex;
    flex-direction: column;
    /* Mobile stack */
    width: 100%;
}

@media (min-width: 1280px) {
    .layout-grid {
        flex-direction: row;
        /* Desktop horizontal */
        justify-content: center;
    }
}

.sidebar-left {
    display: none;
    /* Hide on mobile */
    flex: 1;
    /* Grows to push content center */
    padding: 1rem;
    justify-content: flex-start;
    /* Sticks ad to left edge */
}

.main-content {
    width: 100%;
    max-width: 850px;
    /* Locked center width */
    flex-shrink: 0;
    padding: 3rem 1.5rem;
    text-align: center;
}

.sidebar-right {
    display: none;
    /* Hide on mobile */
    flex: 1;
    /* Grows to push content center */
    padding: 1rem;
    justify-content: flex-end;
    /* Sticks ad to right edge */
}

@media (min-width: 1280px) {

    .sidebar-left,
    .sidebar-right {
        display: flex;
    }
}

.sticky-element {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* --- 4. Ad Banners (STRICT 160px) --- */
.ad-banner,
.ad-banner-small {
    background-color: #d1d1d1;
    /* Light grey like your image */
    width: 160px;
    /* Fixed width as requested */
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
}

.footer-ad-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-billboard {
    width: 100%;
    max-width: 970px;
    height: 250px;
}

/* --- 5. Calculator UI Components --- */
.calc-container {
    max-width: 700px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 2rem;
    text-decoration: underline;
    text-underline-offset: 12px;
}

.calc-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: left;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.input-field {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.75rem;
    padding: 1rem;
    color: white;
    font-size: 1rem;
}

.info-section {
    text-align: left;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    border-left: 4px solid #9d66e5;
    margin-top: 4rem;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-text {
    color: #9ca3af;
    line-height: 1.6;
}

/* --- 6. Footer --- */
.site-footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}