/* ==========================================================================
   SRK HONDA – GLOBAL PREMIUM THEME
   Path: /home/_admin/assets/css/app.css
   Used by: public pages + admin
   ========================================================================== */

/* ---------- BASE ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0a0a0a;
    background-color: #f5f5f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- THEME TOKENS ---------- */

:root {
    --red: #d50000;
    --red-soft: #ffebee;
    --red-dark: #a50000;
    --gold: #d4af37;

    --honda-red: #e4002b;

    --dark: #0a0a0a;
    --gray-900: #0a0a0a;
    --gray-800: #1a1a1a;
    --gray-700: #2e2e2e;
    --gray-600: #424242;
    --gray-500: #616161;
    --gray-400: #9e9e9e;
    --gray-300: #bdbdbd;
    --gray-200: #e0e0e0;
    --gray-100: #f5f5f5;
    --gray-50:  #fafafa;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-pill: 999px;

    --shadow-soft: 0 12px 36px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-strong: 0 20px 50px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.5);

    --maxw: 1280px;
}

/* ---------- UTILITIES ---------- */

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-muted {
    color: var(--gray-500);
    font-size: 0.85rem;
    opacity: 0.85;
}

.text-link {
    color: var(--red);
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.error {
    color: var(--red-dark);
    font-weight: 500;
}

/* ---------- TOP BAR + HEADER ---------- */

.top-bar {
    height: 8px;
    width: 100%;
    background: linear-gradient(90deg, var(--red), var(--gold));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(200%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 0.75rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
}

.site-header .nav-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* ---------- BRAND ---------- */

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.brand img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand span {
    background: linear-gradient(45deg, var(--red), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- NAV PILLS (DESKTOP) ---------- */

.nav-pills {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease;
}

.nav-pills:hover {
    box-shadow: var(--shadow-strong);
}

.nav-item {
    position: relative;
}

.nav-pills a,
.nav-pills button {
    all: unset;
    cursor: pointer;
    padding: 0.7rem 1.3rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    color: var(--dark);
    white-space: nowrap;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease;
}

.nav-pills a:hover,
.nav-pills button:hover {
    background: var(--red-soft);
    color: var(--red);
    transform: scale(1.05);
}

.nav-pills a.primary {
    background: linear-gradient(45deg, var(--red), var(--red-dark));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(213,0,0,0.3);
}

.nav-pills a.primary:hover {
    background: linear-gradient(45deg, var(--red-dark), var(--red));
    transform: translateY(-2px);
}

/* ---------- DROPDOWN MENUS ---------- */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: auto !important;
    width: max-content;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-strong);
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    border: 1px solid rgba(0,0,0,0.03);
    display: none;
    z-index: 999;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-menu a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    color: var(--dark);
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--red-soft);
    color: var(--red);
    font-weight: 600;
    padding-left: 1.8rem;
}

.nav-item.open .dropdown-menu {
    display: block;
}

/* ---------- MOBILE NAV TOGGLE ---------- */

.mobile-toggle {
    display: none;
    background: linear-gradient(45deg, var(--red), var(--red-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(213,0,0,0.2);
}

/* ---------- HERO SECTION ---------- */

.hero {
    background: radial-gradient(circle at top left, #ffffff, #f0f0f0 50%, #e0e0e0 100%);
    padding: 3rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(213,0,0,0.05), rgba(212,175,55,0.05));
    pointer-events: none;
}

/* Outer wrapper: banner + cards stacked vertically */
.hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Banner image – full width */
.hero-visual {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    position: relative;
    background: transparent;
}

.hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-visual-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-visual-picture img {
    display: block;
    width: 100%;
    height: auto;
}

/* Row with enquiry + EMI cards */
.hero-stack {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); /* enquiry wider */
    gap: 1.5rem;
    align-items: flex-start;
}

/* On tablets/phones, stack the two cards */
@media (max-width: 900px) {
    .hero-stack {
        grid-template-columns: 1fr;
    }
}

/* ---------- CARD ---------- */

.card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    padding: 1.6rem 1.8rem 1.7rem;
    border: 1px solid rgba(255,255,255,0.5);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 24px 60px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
    transform: translateY(-4px);
}

.card-title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-900);
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.card-subtitle {
    margin: 0 0 1.2rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ---------- FORMS ---------- */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1rem 1.2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(213,0,0,0.1);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ---------- BUTTONS ---------- */

.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border-radius: var(--radius-pill);
    border: none;
    background: linear-gradient(45deg, var(--red), var(--red-dark));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
    box-shadow: 0 4px 12px rgba(213,0,0,0.2);
}

.btn:hover,
button.btn:hover {
    background: linear-gradient(45deg, var(--red-dark), var(--red));
    box-shadow: 0 10px 24px rgba(213,0,0,0.4);
    transform: translateY(-2px);
}

.btn.secondary {
    background: linear-gradient(45deg, #fff, #f8f9fa);
    color: var(--red);
    border: 1px solid var(--red);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn.secondary:hover {
    background: var(--red-soft);
    box-shadow: 0 10px 24px rgba(213,0,0,0.15);
}

/* Small pill buttons */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.85rem;
    padding: 0.3rem 0.9rem;
    cursor: pointer;
    background: var(--gray-100);
    color: var(--gray-800);
    transition: transform 0.2s ease;
}

.btn-pill:hover {
    transform: scale(1.05);
}

.btn-pill.btn-contact {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.btn-pill.btn-delete {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.btn-pill[disabled] {
    opacity: 0.45;
    cursor: default;
}

/* ---------- STATUS PILLS ---------- */

.pill-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pill-new {
    background: linear-gradient(45deg, #fef3c7, #fde68a);
    color: #92400e;
}

.pill-contacted {
    background: linear-gradient(45deg, #dcfce7, #bbf7d0);
    color: #166534;
}

/* ---------- GENERIC ADMIN TABLES ---------- */

.table-shell {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.table-admin {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.table-admin thead {
    background: linear-gradient(90deg, var(--gray-50), var(--gray-100));
}

.table-admin th,
.table-admin td {
    padding: 0.65rem 0.55rem;
    border-bottom: 1px solid var(--gray-100);
    text-align: left;
    vertical-align: top;
}

.table-admin th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    white-space: nowrap;
}

.sort-link {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sort-link:hover {
    color: var(--red);
}

.table-admin .checkbox-col,
.table-admin .row-check,
#checkAllRows {
    text-align: center;
}

/* ---------- ENQUIRIES & JOIN US TABLES ---------- */

table.enquiries,
table.applications {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

table.enquiries thead,
table.applications thead {
    background: linear-gradient(90deg, var(--gray-50), var(--gray-100));
}

table.enquiries th,
table.enquiries td,
table.applications th,
table.applications td {
    padding: 0.65rem 0.55rem;
    border-bottom: 1px solid var(--gray-100);
    text-align: left;
    vertical-align: top;
}

table.enquiries th,
table.applications th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    white-space: nowrap;
}

table.enquiries td.message,
table.enquiries td.remarks,
table.applications td.experience,
table.applications td.remarks {
    max-width: 220px;
}

/* ---------- LOCATIONS TABLE ---------- */

.locations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.locations-table thead {
    background: linear-gradient(90deg, var(--gray-50), var(--gray-100));
}

.locations-table th,
.locations-table td {
    padding: 0.6rem 0.55rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.locations-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    white-space: nowrap;
}

.locations-table .drag-cell {
    width: 32px;
    text-align: center;
    cursor: grab;
    color: var(--gray-400);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.locations-table .drag-cell:hover {
    color: var(--red);
}

.locations-table tbody tr.dragging {
    opacity: 0.6;
    background: #fff5f5;
    box-shadow: 0 4px 12px rgba(213,0,0,0.2);
}

.locations-table .checkbox-col input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* ---------- REMARKS MODAL (generic) ---------- */

#remarksModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

#remarksModal.show {
    display: flex;
}

#remarksModal-inner,
#remarksModal .modal-panel {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 1.6rem 1.8rem 1.4rem;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    width: 440px;
    max-width: 95%;
}

#remarksModal-inner h3,
.modal-panel h3 {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
    font-weight: 600;
}

#remarksModal-inner textarea,
.modal-panel textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
    min-height: 100px;
}

#remarksModal-inner .modal-actions,
.modal-panel .modal-actions {
    margin-top: 1rem;
    text-align: right;
}

/* =====================================================================
   ADMIN CARD / LIST LAYOUT (users, departments, permissions, etc.)
   ===================================================================== */

.users-shell {
    max-width: var(--maxw);
    margin: 1.5rem auto 2.5rem;
    padding: 0 1.5rem;
}

.users-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 1.8rem 2rem 2.1rem;
}

.users-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.3rem;
    flex-wrap: wrap;
}

.users-title {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-900);
}

.users-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.users-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 260px;
}

.users-actions-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Search form */

.users-search-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.users-search-form input[type="search"] {
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    min-width: 200px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.users-search-form input[type="search"]:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(213,0,0,0.12);
}

.users-search-form button {
    border-radius: 999px;
    border: 1px solid var(--gray-300);
    background: #f9fafb;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray-800);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.users-search-form button:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

/* Users table */

.users-table-wrapper {
    margin-top: 0.5rem;
    border-radius: 14px;
    overflow-x: auto;
    border: 1px solid var(--gray-100);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: #fff;
}

.users-table thead {
    background: linear-gradient(90deg, var(--gray-50), var(--gray-100));
}

.users-table th,
.users-table td {
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.users-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    white-space: nowrap;
}

.users-table td {
    color: var(--gray-800);
}

.users-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.users-table tbody tr:hover {
    background: #f5f5ff;
}

/* Actions column */

.users-table-th-actions,
.users-table-td-actions {
    text-align: right;
    white-space: nowrap;
}

/* Small outline buttons used inside modules */

.btn-small-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--gray-300);
    background: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    color: var(--gray-800);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.btn-small-outline:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
}

.btn-small-outline.primary {
    border-color: var(--red);
    color: var(--red);
    background: #fff5f5;
}

.btn-small-outline.primary:hover {
    background: #fee2e2;
}

.btn-small-outline-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
}

/* Badges */

.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-inactive {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-role {
    background: #eef2ff;
    color: #3730a3;
}

/* Modal base (for user add/edit, etc.) */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(4px);
}

.modal-backdrop.show {
    display: flex;
}

.modal-panel {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    width: 640px;
    max-width: 95%;
    padding: 1.5rem 1.8rem 1.7rem;
}

/* Responsive tweaks for admin cards */

@media (max-width: 900px) {
    .users-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .users-actions {
        align-items: stretch;
        min-width: 0;
    }

    .users-search-form {
        width: 100%;
    }

    .users-search-form input[type="search"] {
        flex: 1;
        min-width: 0;
    }

    .users-actions-buttons {
        justify-content: flex-start;
    }
}

/* =====================================================================
   FOOTER (public + admin)
   ===================================================================== */

.site-footer {
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.92rem;
    line-height: 1.5;
    width: 100%;
}

/* TOP SECTION (public only; hidden when logged-in) */
.footer-top {
    padding: 40px 0 30px;
    background: #111;
    width: 100%;
}

.footer-grid {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* BRAND */
.brand-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-brand p {
    margin: 0;
    color: #cbd5f5;
    font-size: 0.9rem;
}

/* COLUMNS */
.footer-col h4 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: #fff;
    position: relative;
    text-transform: uppercase;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--honda-red);
}

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

.footer-col ul li {
    margin: 6px 0;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--honda-red);
}

.contact-list span {
    color: #888;
    display: inline-block;
    min-width: 70px;
}

.wa-link {
    color: #25d366;
    font-weight: 600;
}

.wa-link:hover {
    color: #128c7e;
}

/* BOTTOM BAR (always) */
.footer-bottom {
    background: #000;
    padding: 18px 0;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 4px 0;
    opacity: .8;
}

/* FLOATING BUTTONS */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform .2s;
}

.wa-float:hover {
    transform: scale(1.1);
}

.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--honda-red);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    z-index: 998;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #c70024;
    transform: translateY(-4px);
}

/* =====================================================================
   RESPONSIVE – MOBILE NAV & LAYOUT
   ===================================================================== */

@media (max-width: 992px) {
    .nav-pills {
        position: fixed;
        top: 78px;
        left: 10px;
        right: 10px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 22px;
        padding: 1.5rem 1rem;
        border-radius: 22px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.3);
        background: #ffffff;
        display: none;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-pills.show {
        display: flex;
    }

    .nav-pills a,
    .nav-pills button {
        width: 100%;
        padding: 0.9rem 1.2rem;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f9f9f9;
        margin-top: 0.3rem;
        width: 100%;
    }

    .mobile-toggle {
        display: inline-flex;
    }
}

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

/* tablets – footer grid */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* mobile – footer grid & floating buttons */
@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .brand-footer {
        justify-content: center;
    }

    .wa-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .scroll-top {
        bottom: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ---------- EMI RESULTS (HOME) ---------- */

.emi-results-box {
    margin-top: 0.9rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.86rem;
}

.emi-results-box .emi-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.15rem;
}

.emi-results-box .emi-row span:first-child {
    color: #6b7280;
}

.emi-results-box .emi-row span:last-child {
    font-weight: 600;
    color: #111827;
}

.emi-note {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* On smaller screens, forms in hero stack as a single column */
@media (max-width: 900px) {
    .hero-stack {
        margin-top: 1.4rem;
    }
    .hero-stack .form-grid {
        grid-template-columns: 1fr;
    }
}