/* BES visual system inspired by IBM Design Language and Carbon */

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

:root {
    --bes-primary: #0f62fe;
    --bes-primary-hover: #0353e9;
    --bes-primary-active: #002d9c;
    --bes-primary-soft: #edf5ff;
    --bes-text: #161616;
    --bes-text-secondary: #525252;
    --bes-text-muted: #6f6f6f;
    --bes-background: #ffffff;
    --bes-layer-01: #f4f4f4;
    --bes-layer-02: #ffffff;
    --bes-layer-03: #e0e0e0;
    --bes-border-subtle: #e0e0e0;
    --bes-border-strong: #8d8d8d;
    --bes-inverse: #161616;
    --bes-inverse-02: #262626;
    --bes-success: #24a148;
    --bes-warning: #f1c21b;
    --bes-danger: #da1e28;
    --bes-focus: #0f62fe;
    --bes-grid-gap: 1rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--bes-text);
    background: var(--bes-background);
    font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    color: #ffffff;
    background: var(--bes-primary);
}

a {
    color: var(--bes-primary);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--bes-primary-active);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5 {
    color: var(--bes-text);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0;
}

.fw-bold {
    font-weight: 600 !important;
}

.lead {
    font-size: clamp(1.125rem, 1rem + 0.35vw, 1.375rem);
    font-weight: 400;
    line-height: 1.45;
}

.text-muted {
    color: var(--bes-text-secondary) !important;
}

.text-primary,
.link-primary {
    color: var(--bes-primary) !important;
}

.bg-light {
    background-color: var(--bes-layer-01) !important;
}

.bg-primary {
    background-color: var(--bes-inverse) !important;
}

.container,
.container-fluid {
    --bs-gutter-x: 2rem;
}

section {
    position: relative;
}

section.py-5 {
    padding-top: clamp(3rem, 6vw, 6rem) !important;
    padding-bottom: clamp(3rem, 6vw, 6rem) !important;
}

/* Navigation */
.bes-navbar {
    min-height: 4rem;
    padding: 0;
    background: var(--bes-inverse);
    border-bottom: 1px solid #393939;
    box-shadow: none;
}

.bes-navbar .container-fluid {
    min-height: 4rem;
}

.bes-navbar .navbar-brand {
    min-height: 4rem;
    padding: 0 1rem;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.bes-navbar .navbar-brand i {
    color: var(--bes-primary);
}

.bes-navbar .navbar-brand:hover,
.bes-navbar .navbar-brand:focus {
    background: var(--bes-inverse-02);
}

.bes-navbar .navbar-brand .logo-img {
    max-height: 2.5rem;
    width: auto;
    filter: none;
}

.bes-navbar .navbar-toggler {
    min-width: 4rem;
    min-height: 4rem;
    border: 0;
    border-radius: 0;
}

.bes-navbar .navbar-toggler:focus {
    box-shadow: inset 0 0 0 2px #ffffff;
}

.bes-navbar .navbar-nav {
    align-items: stretch;
}

.bes-navbar .nav-link {
    min-height: 4rem;
    margin: 0;
    padding: 1.25rem 1rem !important;
    color: #c6c6c6 !important;
    font-size: 0.9375rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    border-left: 1px solid transparent;
    transition: background-color 120ms ease, color 120ms ease;
}

.bes-navbar .nav-link:hover,
.bes-navbar .nav-link:focus,
.bes-navbar .nav-link.active,
.bes-navbar .show > .nav-link {
    color: #ffffff !important;
    background: var(--bes-inverse-02);
}

.bes-navbar .nav-link.active {
    box-shadow: inset 0 -3px 0 var(--bes-primary);
}

.bes-navbar .nav-link::after {
    display: none;
}

.bes-navbar .dropdown-menu {
    padding: 0.5rem 0;
    margin-top: 0;
    color: var(--bes-text);
    background: #ffffff;
    border: 1px solid var(--bes-border-subtle);
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(22, 22, 22, 0.18);
}

.bes-navbar .dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--bes-text);
    font-size: 0.9375rem;
    transition: background-color 120ms ease, color 120ms ease;
}

.bes-navbar .dropdown-item:hover,
.bes-navbar .dropdown-item:focus {
    color: var(--bes-text);
    background: var(--bes-layer-01);
}

/* Hero */
.hero-section {
    min-height: calc(100vh - 4rem);
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(22, 22, 22, 0.97) 0%, rgba(22, 22, 22, 0.92) 52%, rgba(15, 98, 254, 0.82) 100%),
        repeating-linear-gradient(90deg, transparent 0, transparent calc(8.333% - 1px), rgba(255,255,255,0.12) calc(8.333% - 1px), rgba(255,255,255,0.12) 8.333%),
        #161616;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: auto 0 0 auto;
    width: min(44vw, 34rem);
    height: min(44vw, 34rem);
    background:
        linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 2rem 2rem;
    opacity: 0.6;
}

.hero-section .container-fluid {
    position: relative;
    z-index: 1;
}

.hero-section h1,
.hero-section .lead,
.hero-section p {
    color: #ffffff;
}

.hero-section h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 9vw, 7.5rem);
    font-weight: 300;
    line-height: 0.98;
}

.hero-section .lead {
    max-width: 34rem;
    color: #f4f4f4;
}

.hero-section p.fs-5 {
    max-width: 40rem;
    color: #c6c6c6;
}

.hero-section .d-flex {
    flex-wrap: wrap;
}

.hero-graphic {
    position: relative;
    min-height: 28rem;
}

.hero-graphic::before,
.hero-graphic::after,
.graphic-element {
    content: '';
    position: absolute;
    border-radius: 0;
}

.hero-graphic::before {
    inset: 6rem 5rem auto auto;
    width: 17rem;
    height: 17rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-graphic::after {
    inset: 11rem auto auto 4rem;
    width: 15rem;
    height: 15rem;
    background: rgba(15, 98, 254, 0.72);
}

.graphic-element {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: none;
}

.element-1 {
    width: 8rem;
    height: 8rem;
    top: 4rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.12);
}

.element-2 {
    width: 10rem;
    height: 10rem;
    right: 14rem;
    bottom: 4rem;
}

.element-3 {
    width: 5rem;
    height: 5rem;
    right: 7rem;
    bottom: 7rem;
    background: #ffffff;
}

/* Buttons */
.btn {
    min-height: 3rem;
    padding: 0.8125rem 1rem;
    border-radius: 0;
    border-width: 1px;
    font-weight: 400;
    line-height: 1.125;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.btn-lg {
    min-height: 3.5rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

.btn-sm {
    min-height: 2.5rem;
    padding: 0.625rem 0.875rem;
}

.btn-primary {
    color: #ffffff;
    background: var(--bes-primary);
    border-color: var(--bes-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #ffffff;
    background: var(--bes-primary-hover);
    border-color: var(--bes-primary-hover);
}

.btn-primary:active {
    background: var(--bes-primary-active) !important;
    border-color: var(--bes-primary-active) !important;
}

.btn-outline-primary {
    color: var(--bes-primary);
    background: transparent;
    border-color: var(--bes-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #ffffff;
    background: var(--bes-primary);
    border-color: var(--bes-primary);
}

.btn-light {
    color: var(--bes-text);
    background: #ffffff;
    border-color: #ffffff;
}

.btn-light:hover,
.btn-light:focus {
    color: var(--bes-text);
    background: var(--bes-layer-03);
    border-color: var(--bes-layer-03);
}

.btn-outline-light {
    color: #ffffff;
    background: transparent;
    border-color: #ffffff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: var(--bes-text);
    background: #ffffff;
    border-color: #ffffff;
}

.btn:hover {
    transform: none;
    box-shadow: none;
}

/* Cards and content blocks */
.card,
.cert-card,
.pillar-card,
.benefit-item {
    color: var(--bes-text);
    background: var(--bes-layer-02);
    border: 1px solid var(--bes-border-subtle) !important;
    border-radius: 0;
    box-shadow: none !important;
    overflow: hidden;
    transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.card:hover,
.card-feature:hover,
.cert-card:hover,
.pillar-card:hover,
.benefit-item:hover {
    border-color: var(--bes-border-strong) !important;
    transform: none;
    box-shadow: none !important;
}

.card-body {
    padding: 1.5rem;
}

.card-title,
.card h5,
.cert-body h5,
.pillar-card h5,
.benefit-item h5 {
    color: var(--bes-text);
}

.card-feature {
    min-height: 100%;
}

.card-feature .card-body,
.benefit-item {
    text-align: left !important;
}

.card-feature i,
.benefit-item i,
.card i,
.cert-body i {
    color: var(--bes-primary) !important;
}

.card-feature:hover i,
.benefit-item:hover i {
    transform: none;
}

.cert-card {
    height: 100%;
}

.cert-header {
    padding: 1rem 1.25rem;
    background: var(--bes-inverse) !important;
    border-bottom: 1px solid #393939;
}

.cert-header h6 {
    color: #ffffff;
}

.cert-body {
    padding: 1.5rem;
}

.cert-body ul li {
    padding: 0.5rem 0;
    color: var(--bes-text-secondary);
    border-bottom: 1px solid var(--bes-layer-01);
}

.cert-body ul li:last-child {
    border-bottom: 0;
}

.cert-kicker {
    color: var(--bes-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
}

.cert-detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cert-detail-list li {
    padding: 0.875rem 0;
    color: var(--bes-text-secondary);
    border-bottom: 1px solid var(--bes-border-subtle);
}

.cert-detail-list li:last-child {
    border-bottom: 0;
}

.cert-detail-list strong {
    color: var(--bes-text);
}

.cert-metric {
    display: grid;
    gap: 0.25rem;
    padding: 1.25rem;
    background: var(--bes-layer-01);
    border-left: 4px solid var(--bes-primary);
}

.cert-metric span {
    color: var(--bes-text-secondary);
    font-size: 0.875rem;
}

.cert-metric strong {
    color: var(--bes-text);
    font-size: 1.25rem;
    font-weight: 600;
}

.pillar-card {
    padding: 1.5rem;
    background: var(--bes-layer-01);
}

.pillar-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 0 1.5rem;
    color: #ffffff;
    background: var(--bes-primary);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.benefit-item {
    padding: 1.5rem;
}

/* CTA and page headers */
.cta-section,
section.bg-primary {
    color: #ffffff;
    background:
        linear-gradient(90deg, var(--bes-inverse) 0%, var(--bes-inverse) 72%, var(--bes-primary) 72%, var(--bes-primary) 100%) !important;
    border-radius: 0;
    margin: 0;
}

.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section p,
section.bg-primary h1,
section.bg-primary h2,
section.bg-primary h3,
section.bg-primary p {
    color: #ffffff;
}

.cta-section p,
section.bg-primary .lead {
    color: #c6c6c6;
    opacity: 1 !important;
}

/* Tables */
.table {
    margin-bottom: 0;
    color: var(--bes-text);
    border-color: var(--bes-border-subtle);
}

.table thead {
    background: var(--bes-inverse);
}

.table thead th {
    padding: 1rem;
    color: #ffffff;
    font-weight: 600;
    border: 0;
}

.table tbody tr {
    border-bottom: 1px solid var(--bes-border-subtle);
    transition: background-color 120ms ease;
}

.table tbody tr:hover {
    background-color: var(--bes-layer-01);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Badges */
.badge {
    padding: 0.375rem 0.75rem;
    color: var(--bes-text);
    background: var(--bes-layer-03);
    border-radius: 0;
    font-weight: 400;
}

.badge.bg-primary {
    color: #ffffff;
    background-color: var(--bes-primary) !important;
}

.badge.bg-info {
    color: #ffffff;
    background-color: #4589ff !important;
}

.badge.bg-success {
    background-color: var(--bes-success) !important;
}

.badge.bg-warning {
    color: var(--bes-text) !important;
    background-color: var(--bes-warning) !important;
}

.badge.bg-danger {
    background-color: var(--bes-danger) !important;
}

/* Forms */
.form-control,
.form-select {
    min-height: 3rem;
    color: var(--bes-text);
    background-color: var(--bes-layer-01);
    border: 0;
    border-bottom: 1px solid var(--bes-border-strong);
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.form-control:hover,
.form-select:hover {
    background-color: #e8e8e8;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bes-layer-01);
    border-color: var(--bes-primary);
    box-shadow: inset 0 -2px 0 var(--bes-primary);
}

textarea.form-control {
    min-height: 8rem;
}

.form-label {
    margin-bottom: 0.5rem;
    color: var(--bes-text);
    font-size: 0.875rem;
    font-weight: 600;
}

.invalid-feedback {
    color: var(--bes-danger);
}

/* Bootstrap utilities and legacy page overrides */
.rounded,
.rounded-1,
.rounded-2,
.rounded-3,
.rounded-4,
.rounded-5 {
    border-radius: 0 !important;
}

.shadow,
.shadow-sm,
.shadow-lg {
    box-shadow: none !important;
}

.bg-gradient,
.card-header[style*="linear-gradient"] {
    background: var(--bes-inverse) !important;
}

.card[style*="linear-gradient"] {
    background: var(--bes-primary-soft) !important;
}

.text-warning {
    color: #b28600 !important;
}

.accordion-item {
    color: var(--bes-text);
    background: var(--bes-layer-02);
    border: 1px solid var(--bes-border-subtle) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.accordion-button {
    color: var(--bes-text);
    background: var(--bes-layer-01);
    border-radius: 0 !important;
    box-shadow: none !important;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    color: var(--bes-text);
    background: var(--bes-primary-soft);
    box-shadow: inset 3px 0 0 var(--bes-primary) !important;
}

.accordion-button:focus {
    border-color: var(--bes-primary);
    box-shadow: inset 0 0 0 2px var(--bes-primary) !important;
}

/* Footer */
.footer {
    color: #c6c6c6;
    background: var(--bes-inverse);
    border-top: 1px solid #393939;
    margin-top: auto;
}

.footer h5,
.footer h6 {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0;
}

.footer h6 {
    font-size: 0.875rem;
    text-transform: none;
}

.footer p,
.footer .text-muted {
    color: #c6c6c6 !important;
}

.footer a,
.footer a.text-muted {
    color: #c6c6c6 !important;
    font-weight: 400;
    text-decoration: none !important;
}

.footer a:hover,
.footer a:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
    transform: none;
}

.footer .social-links {
    display: flex;
    gap: 0;
    margin-top: 1rem;
}

.footer .social-links a {
    width: 3rem;
    height: 3rem;
    color: #ffffff !important;
    background: #262626;
    border: 1px solid #393939;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.footer hr {
    border-color: #393939;
    opacity: 1;
}

/* Motion and focus */
.animate-in {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible {
    outline: 2px solid var(--bes-focus);
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 0.75rem;
}

::-webkit-scrollbar-track {
    background: var(--bes-layer-01);
}

::-webkit-scrollbar-thumb {
    background: var(--bes-border-strong);
    border: 2px solid var(--bes-layer-01);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bes-text-secondary);
}

/* Responsive */
@media (max-width: 991.98px) {
    .bes-navbar .navbar-nav {
        border-top: 1px solid #393939;
    }

    .bes-navbar .nav-link {
        min-height: 3rem;
        padding: 0.875rem 1rem !important;
    }

    .bes-navbar .dropdown-menu {
        border: 0;
        box-shadow: none;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-section .row {
        min-height: auto !important;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .hero-graphic {
        min-height: 18rem;
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .container,
    .container-fluid {
        --bs-gutter-x: 1.5rem;
    }

    section.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .hero-section h1 {
        font-size: clamp(2.75rem, 16vw, 4.25rem);
    }

    .hero-section .lead {
        font-size: 1.125rem;
    }

    .hero-graphic {
        display: none;
    }

    .display-4,
    .display-5 {
        font-size: 2.25rem;
    }

    .card-body,
    .cert-body,
    .pillar-card,
    .benefit-item {
        padding: 1.25rem;
    }

    .cta-section,
    section.bg-primary {
        background: var(--bes-inverse) !important;
    }

    .cta-section .row,
    .cta-section .col-lg-4 {
        text-align: left !important;
    }

    .cta-section .col-lg-4 {
        margin-top: 1.5rem;
    }

    .footer h5,
    .footer h6 {
        margin-top: 1.5rem;
    }

    .footer p.text-md-end {
        text-align: left !important;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .btn {
        width: 100%;
    }

    .table {
        font-size: 0.875rem;
    }

    .table tbody td,
    .table thead th {
        padding: 0.75rem;
    }
}

/* --- IBM Carbon Rating & Estimator Styles --- */

/* Carbon-style status tags */
.bx-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.9375rem;
    text-transform: capitalize;
    border: none;
    letter-spacing: 0.16px;
}

.bx-tag--red {
    background-color: #ffd7d9;
    color: #da1e28;
}

.bx-tag--purple {
    background-color: #e8daff;
    color: #8a3ffc;
}

/* --- WhatsApp Chatbot Styles --- */

.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    color: white;
    font-size: 28px;
}

.whatsapp-button:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.whatsapp-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.whatsapp-modal-content {
    background-color: #fefefe;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.whatsapp-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.whatsapp-modal-header i {
    color: #25d366;
    font-size: 28px;
    margin-right: 1rem;
}

.whatsapp-modal-header h3 {
    margin: 0;
    color: var(--bes-text);
    font-size: 1.5rem;
}

.whatsapp-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: -2rem -2rem 0 0;
}

.whatsapp-close:hover,
.whatsapp-close:focus {
    color: black;
}

.whatsapp-form-group {
    margin-bottom: 1.5rem;
}

.whatsapp-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--bes-text);
}

.whatsapp-form-group input,
.whatsapp-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.whatsapp-form-group input:focus,
.whatsapp-form-group textarea:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

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

.whatsapp-submit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.whatsapp-submit-btn:hover {
    background-color: #20ba5a;
}

.whatsapp-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 1rem;
        right: 1rem;
        width: 55px;
        height: 55px;
    }

    .whatsapp-modal-content {
        margin: 1rem;
    }
}
}

.bx-tag--cyan {
    background-color: #c8f0fa;
    color: #005d5d;
}

.bx-tag--blue {
    background-color: #d0e1fd;
    color: #0043ce;
}

.bx-tag--green {
    background-color: #def8e9;
    color: #198038;
}

/* Carbon Table Customizations */
.carbon-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 0;
}

.carbon-table th {
    background-color: var(--bes-layer-01) !important;
    color: var(--bes-text) !important;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--bes-border-strong) !important;
}

.carbon-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--bes-border-subtle);
    cursor: pointer;
    font-size: 0.9375rem;
}

.carbon-table tbody tr {
    transition: background-color 150ms ease;
    border-left: 4px solid transparent;
}

.carbon-table tbody tr:hover {
    background-color: var(--bes-primary-soft);
}

.carbon-table tbody tr.active-row {
    background-color: #e8f0fe;
    border-left: 4px solid var(--bes-primary);
}

.carbon-table tbody tr.active-row td {
    font-weight: 500;
}

/* Estimator Card */
.estimator-card {
    background: var(--bes-layer-02);
    border: 1px solid var(--bes-border-subtle);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border-radius: 0; /* Sharp corners for clean IBM layout */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.estimator-card:hover {
    border-color: var(--bes-border-strong);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Estimator Slider styling */
.bes-slider-container {
    margin: 1.5rem 0 2rem 0;
    position: relative;
}

.bes-slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--bes-text-secondary);
    margin-top: 0.5rem;
    padding: 0 2px;
}

.bes-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--bes-layer-03);
    outline: none;
    margin: 0;
    transition: background 0.2s;
}

.bes-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bes-primary);
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.1s ease;
    border: 2px solid var(--bes-layer-02);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.bes-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background-color: var(--bes-primary-hover);
}

.bes-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid var(--bes-layer-02);
    border-radius: 50%;
    background: var(--bes-primary);
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.1s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.bes-slider::-moz-range-thumb:hover {
    transform: scale(1.25);
    background-color: var(--bes-primary-hover);
}

/* Dynamic Details Container */
.estimator-detail {
    border-top: 1px solid var(--bes-border-subtle);
    padding-top: 1.5rem;
}

.estimator-score-display {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    color: var(--bes-primary);
    font-variant-numeric: tabular-nums;
}

.estimator-list {
    margin-top: 1.25rem;
    padding-left: 0;
    list-style: none;
}

.estimator-list li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    color: var(--bes-text-secondary);
    border-bottom: 1px dashed var(--bes-layer-01);
}

.estimator-list li:last-child {
    border-bottom: none;
}

.estimator-list li i {
    margin-right: 0.75rem;
    margin-top: 0.15rem;
    font-size: 1rem;
}

/* Dynamic Progress Bar */
.estimator-progress-wrapper {
    height: 6px;
    background-color: var(--bes-layer-01);
    margin: 1.5rem 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.estimator-progress-bar {
    height: 100%;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

