html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 35%), radial-gradient(circle at top right, rgba(22, 163, 74, 0.10), transparent 30%), #f5f7fb;
    color: #111827;
}

/* =========================
   Layout / Header / Footer
========================= */

.main-content {
    min-height: calc(100vh - 170px);
}

.site-header {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.custom-navbar {
    padding: 14px 0;
}

.brand-box {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
}

.brand-main {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.brand-sub {
    color: #d1d5db;
    font-size: 0.78rem;
    font-weight: 600;
}

.custom-navbar .nav-link {
    color: #e5e7eb !important;
    font-weight: 700;
    padding: 8px 12px !important;
    border-radius: 999px;
}

    .custom-navbar .nav-link:hover {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.1);
    }

.custom-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.custom-navbar .navbar-toggler-icon {
    filter: invert(1);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none !important;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
    transition: 0.2s ease;
    white-space: nowrap;
    border: 0;
}

    .whatsapp-btn:hover {
        background: #15803d;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(22, 163, 74, 0.35);
    }

    .whatsapp-btn:focus {
        color: #ffffff !important;
    }

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 22px 0;
    color: #6b7280;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

    .footer-content strong {
        display: block;
        color: #111827;
        font-weight: 900;
    }

    .footer-content span {
        font-size: 0.9rem;
    }

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

    .footer-links a {
        color: #374151;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.9rem;
    }

        .footer-links a:hover {
            color: #2563eb;
        }

/* =========================
   General Page Styling
========================= */

.shipping-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 60px;
}

.calculator-hero {
    background: linear-gradient(135deg, #111827, #1f2937 55%, #0f766e);
    border-radius: 28px;
    padding: 34px;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    position: relative;
}

    .calculator-hero::after {
        content: "";
        position: absolute;
        width: 230px;
        height: 230px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        right: -70px;
        top: -80px;
    }

.customer-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0f766e);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.12);
    color: #d1fae5;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.calculator-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.calculator-hero p {
    max-width: 650px;
    color: #d1d5db;
    margin-bottom: 0;
    font-size: 1.05rem;
}

.hero-card {
    min-width: 210px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    padding: 22px;
    text-align: center;
}

.hero-card-label {
    color: #d1d5db;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.hero-card-price {
    font-size: 2rem;
    font-weight: 900;
}

.hero-card-small {
    color: #bbf7d0;
    font-size: 0.85rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.section-title {
    margin-bottom: 18px;
}

    .section-title h3 {
        font-size: 1.15rem;
        font-weight: 850;
        margin-bottom: 3px;
    }

    .section-title p {
        margin-bottom: 0;
        color: #6b7280;
        font-size: 0.92rem;
    }

/* =========================
   Forms / Buttons
========================= */

.form-label {
    font-weight: 700;
    color: #374151;
    font-size: 0.9rem;
}

.modern-input {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    min-height: 44px;
    box-shadow: none !important;
}

    .modern-input:focus,
    .form-control:focus,
    .form-select:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
    }

.modern-btn {
    border: 0;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white !important;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
    transition: 0.2s ease;
    text-decoration: none;
}

    .modern-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
        color: white !important;
    }

.shipping-note {
    min-height: 44px;
    display: flex;
    align-items: center;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #155e75;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
}

/* =========================
   Tables
========================= */

.modern-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}
.modern-table {
    margin-bottom: 0;
    min-width: 1250px;
}


    .modern-table thead th {
        background: #f8fafc;
        color: #111827;
        font-weight: 850;
        border-bottom: 1px solid #e5e7eb;
        padding: 14px;
        white-space: nowrap;
    }

    .modern-table tbody td {
        padding: 10px;
        vertical-align: middle;
        border-color: #eef2f7;
    }
.modern-table-wrap::-webkit-scrollbar {
    height: 10px;
}

.modern-table-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.modern-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

    .modern-table-wrap::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
.row-box-units {
    font-weight: 800;
    color: #0f766e;
}

.remove-item-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 900;
    transition: 0.2s ease;
}

    .remove-item-btn:hover {
        background: #ef4444;
        color: #ffffff;
    }

/* =========================
   Calculator Summary
========================= */

.soft-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 14px;
    padding: 12px 14px;
    margin-top: 16px;
    font-size: 0.92rem;
    font-weight: 600;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.summary-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    min-height: 100px;
}

    .summary-box span,
    .total-card span {
        display: block;
        color: #6b7280;
        font-size: 0.92rem;
        margin-bottom: 6px;
    }

    .summary-box strong {
        display: block;
        font-size: 1.55rem;
        color: #111827;
    }

.total-card {
    margin-top: 16px;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}

    .total-card span {
        color: #cbd5e1;
    }

    .total-card strong {
        display: block;
        font-size: clamp(2rem, 4vw, 3.2rem);
        font-weight: 950;
        letter-spacing: -1px;
    }

.estimate-disclaimer {
    margin-top: 16px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 14px;
    padding: 13px 15px;
    font-weight: 650;
}

/* =========================
   Modals
========================= */

.modern-modal {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

    .modern-modal .modal-header {
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
        padding: 18px 22px;
    }

    .modern-modal .modal-body {
        padding: 22px;
    }

    .modern-modal .modal-footer {
        background: #f8fafc;
        border-top: 1px solid #e5e7eb;
        padding: 16px 22px;
    }

/* =========================
   Customer Profile Later
========================= */

.customer-profile-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 22px;
}

.customer-info-card {
    height: fit-content;
}

.info-list {
    display: grid;
    gap: 12px;
}

    .info-list div {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 13px 15px;
    }

    .info-list span {
        display: block;
        color: #6b7280;
        font-size: 0.82rem;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .info-list strong {
        display: block;
        color: #111827;
        font-size: 0.98rem;
        word-break: break-word;
    }

.customer-summary-grid {
    grid-template-columns: repeat(2, 1fr);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.78rem;
    white-space: nowrap;
}

.status-quote {
    background: #eef2ff;
    color: #3730a3;
}

.status-paid {
    background: #dcfce7;
    color: #166534;
}

.status-ordered {
    background: #e0f2fe;
    color: #075985;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-neutral {
    background: #f3f4f6;
    color: #374151;
}

/* =========================
   Responsive
========================= */

@media (max-width: 991px) {
    .custom-navbar .navbar-nav {
        padding-top: 14px;
        align-items: stretch !important;
    }

    .custom-navbar .nav-link {
        padding: 10px 12px !important;
    }

    .whatsapp-btn {
        width: 100%;
        margin-top: 8px;
    }

    .customer-profile-grid {
        grid-template-columns: 1fr;
    }

    .customer-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-card {
        width: 100%;
        text-align: left;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 18px;
    }

    .calculator-hero {
        padding: 24px;
        border-radius: 22px;
    }
}
.cancelled-row {
    opacity: 0.65;
    background: #f9fafb;
}

    .cancelled-row td {
        text-decoration: line-through;
    }