/* ============================================================
   BuySteel — Brand Stylesheet
   Owen Metal Group | #007A33 brand green
   ============================================================ */

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
    --brand-green: #007A33;
    --brand-green-accent: #009F4D;
    --brand-gray-dark: #5B6770;
    --brand-gray-light: #737B82;
    --brand-blue: #0095C8;
    --brand-gold: #A09958;
    --brand-black: #000000;
    --brand-white: #ffffff;
    --brand-footer-bg: #1a1a1a;
    --brand-hero-start: #003d1a;
    --bs-link-color: var(--brand-blue);
    --bs-link-hover-color: var(--brand-green);
    --bs-focus-ring-color: rgba(0, 122, 51, 0.25);
}

/* ── Base ────────────────────────────────────────────────── */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    position: relative;
    min-height: 100%;
}

body {
    background-color: var(--brand-white);
    color: #212529;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Bootstrap Primary Override ─────────────────────────── */
.btn-primary {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--brand-white);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--brand-green-accent);
    border-color: var(--brand-green-accent);
    color: var(--brand-white);
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(0, 122, 51, 0.35);
}

/* For actual <button disabled> elements */
.btn-primary:disabled {
    background-color: #6c757d; /* Your custom color (e.g., solid gray) */
    border-color: #6c757d;
    color: #ffffff;
    opacity: 1; /* Reset the opacity to make it solid */
}

/* For anchor tags acting as buttons <a class="btn btn-primary disabled"> */
.btn-primary.disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
    opacity: 1;
}

.btn-outline-primary {
    color: var(--brand-green);
    border-color: var(--brand-green);
}

.btn-outline-primary:hover {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--brand-white);
}

/* btn-secondary → PANTONE 431 C gray */
.btn-secondary {
    color: var(--brand-white);
    background-color: var(--brand-gray-dark);
    border-color: var(--brand-gray-dark);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active,
.show > .btn-secondary.dropdown-toggle {
    color: var(--brand-white);
    background-color: var(--brand-gray-light);
    border-color: var(--brand-gray-light);
}

.btn-secondary:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(91, 103, 112, 0.35);
}

/* btn-outline-secondary → PANTONE 431 C gray outline */
.btn-outline-secondary {
    color: var(--brand-gray-dark);
    border-color: var(--brand-gray-dark);
}

.btn-outline-secondary:hover {
    color: var(--brand-white);
    background-color: var(--brand-gray-dark);
    border-color: var(--brand-gray-dark);
}

.btn-outline-light {
    color: var(--brand-white);
    border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--brand-white);
    border-color: var(--brand-white);
}

/* Form focus rings */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 149, 200, 0.25);
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar-buysteel {
    background-color: var(--brand-black) !important;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.navbar-buysteel .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.navbar-buysteel .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.925rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.navbar-buysteel .nav-link:hover,
.navbar-buysteel .nav-link:focus {
    color: var(--brand-white) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-buysteel .nav-link.active {
    color: var(--brand-green-accent) !important;
}

.navbar-buysteel .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-buysteel .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-buysteel .dropdown-menu {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    min-width: 220px;
}

.navbar-buysteel .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.15s ease;
}

.navbar-buysteel .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--brand-white);
}

.navbar-buysteel .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.15);
}

/* BuySteel text logo */
.brand-logo {
    color: var(--brand-white);
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-steel {
    color: var(--brand-gold);
}

/* User avatar circle in navbar */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--brand-green);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ── Hero Section ────────────────────────────────────────── */
.hero-section {
    background:
        linear-gradient(to right, #003d1a 0%, #003d1a 25%, rgba(0,61,26,0.75) 50%, rgba(0,61,26,0.4) 70%, rgba(0,61,26,0) 100%),
        url('/images/hero-laser.jpg') right center / cover no-repeat;
    color: var(--brand-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.hero-section h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
}

/* ── Upload Zone ─────────────────────────────────────────── */
.upload-zone {
    border: 2px dashed var(--brand-green);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    background-color: #f8fff9;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--brand-green-accent);
    background-color: rgba(0, 159, 77, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 122, 51, 0.15);
}

.upload-zone .upload-icon {
    font-size: 3.5rem;
    color: var(--brand-green);
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.upload-zone h4 {
    color: var(--brand-gray-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: var(--brand-gray-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.upload-zone input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.upload-filename {
    display: none;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 122, 51, 0.1);
    border: 1px solid rgba(0, 122, 51, 0.25);
    border-radius: 6px;
    color: var(--brand-green);
    font-weight: 500;
    font-size: 0.9rem;
}

.upload-filename.visible {
    display: inline-block;
}

.upload-error {
    display: none;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: 6px;
    color: #dc3545;
    font-size: 0.9rem;
}

.upload-error.visible {
    display: block;
}

.upload-file-list {
    width: 100%;
    text-align: left;
}

.upload-file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    background: rgba(0,122,51,0.05);
    border-radius: 6px;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.upload-file-icon { color: var(--brand-green); flex-shrink: 0; }
.upload-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.upload-file-size { flex-shrink: 0; color: var(--brand-gray-light); font-size: 0.8rem; }
.upload-file-remove {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0.15rem;
    cursor: pointer;
    flex-shrink: 0;
}
.upload-file-remove:hover { color: #e53e3e; }

/* ── Hero upload zone (dark hero background overrides) ─────── */
.upload-zone.upload-zone-hero {
    border-color: rgba(255,255,255,0.35);
    background-color: rgba(255,255,255,0.07);
    padding: 40px 32px;
}

.upload-zone.upload-zone-hero:hover,
.upload-zone.upload-zone-hero.drag-over {
    border-color: rgba(255,255,255,0.7);
    background-color: rgba(255,255,255,0.14);
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.upload-zone.upload-zone-hero .upload-filename {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.upload-zone.upload-zone-hero .upload-error {
    color: #ffcdd2;
}

.format-badge {
    display: inline-block;
    background-color: rgba(0, 122, 51, 0.1);
    color: var(--brand-green);
    border: 1px solid rgba(0, 122, 51, 0.2);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: "SFMono-Regular", Consolas, monospace;
    margin: 0 2px;
}

/* ── Step Cards (How It Works) ───────────────────────────── */
.step-card {
    background: var(--brand-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(0, 122, 51, 0.1);
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.step-card:hover {
    box-shadow: 0 8px 32px rgba(0, 122, 51, 0.15);
    transform: translateY(-2px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--brand-green);
    color: var(--brand-white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--brand-green);
    margin-bottom: 1rem;
    display: block;
}

/* ── Service Cards ───────────────────────────────────────── */
.service-card {
    background: var(--brand-white);
    border: 1px solid rgba(91, 103, 112, 0.15);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.service-icon {
    font-size: 2rem;
    color: var(--brand-green);
    margin-bottom: 0.75rem;
    display: block;
}

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
    background-color: var(--brand-green);
    color: var(--brand-white);
    padding: 60px 0;
}

.cta-banner h2 {
    font-weight: 700;
}

/* ── Quote Steps Progress Bar ────────────────────────────── */
.quote-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    margin-bottom: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.quote-step {
    display: flex;
    align-items: center;
}

.quote-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    background-color: #dee2e6;
    color: var(--brand-gray-light);
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.quote-step-label {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: var(--brand-gray-light);
    font-weight: 500;
    white-space: nowrap;
}

.quote-step.active .quote-step-number {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--brand-white);
}

.quote-step.active .quote-step-label {
    color: var(--brand-green);
    font-weight: 600;
}

.quote-step.completed .quote-step-number {
    background-color: var(--brand-green-accent);
    border-color: var(--brand-green-accent);
    color: var(--brand-white);
}

.quote-step.completed .quote-step-label {
    color: var(--brand-gray-dark);
}

.quote-step-connector {
    width: 60px;
    height: 2px;
    background-color: #dee2e6;
    margin: 0 0.5rem;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.quote-step-connector.completed {
    background-color: var(--brand-green-accent);
}

@media (max-width: 576px) {
    .quote-step-label {
        display: none;
    }

    .quote-step-connector {
        width: 24px;
    }
}

/* ── Order Status Badges ─────────────────────────────────── */
.order-status-badge {
    display: inline-block;
    padding: 0.3em 0.75em;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-submitted      { background: rgba(0,149,200,.12); color: var(--brand-blue); border: 1px solid rgba(0,149,200,.3); }
.status-csr-review     { background: rgba(160,153,88,.12); color: #7a7220; border: 1px solid rgba(160,153,88,.3); }
.status-plant-assigned { background: rgba(160,153,88,.12); color: #6c5e00; border: 1px solid rgba(160,153,88,.3); }
.status-sap-created    { background: rgba(0,122,51,.1); color: var(--brand-green); border: 1px solid rgba(0,122,51,.25); }
.status-in-production  { background: rgba(0,122,51,.15); color: #005227; border: 1px solid rgba(0,122,51,.35); }
.status-shipped        { background: rgba(0,159,77,.15); color: #004d22; border: 1px solid rgba(0,159,77,.35); }
.status-completed      { background: rgba(0,122,51,.1); color: var(--brand-green); border: 1px solid rgba(0,122,51,.2); }
.status-cancelled      { background: rgba(220,53,69,.1); color: #dc3545; border: 1px solid rgba(220,53,69,.2); }
.status-needs-action   { background: rgba(253,126,20,.12); color: #c45f00; border: 1px solid rgba(253,126,20,.3); }

/* ── Price Display ───────────────────────────────────────── */
.price-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-green);
    line-height: 1;
}

.price-display .price-unit {
    font-size: 1rem;
    font-weight: 400;
    color: var(--brand-gray-light);
}

.price-pending {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--brand-gray-light);
}

/* ── Order Status Timeline ───────────────────────────────── */
.status-timeline {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    padding: 1rem 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 70px;
    position: relative;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    right: -50%;
    height: 2px;
    background-color: #dee2e6;
    z-index: 0;
}

.timeline-step.done:not(:last-child)::after {
    background-color: var(--brand-green-accent);
}

.timeline-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-gray-light);
    border: 2px solid #dee2e6;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.timeline-step.done .timeline-dot {
    background-color: var(--brand-green-accent);
    border-color: var(--brand-green-accent);
    color: white;
}

.timeline-step.current .timeline-dot {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 122, 51, 0.2);
}

.timeline-label {
    font-size: 0.68rem;
    text-align: center;
    color: var(--brand-gray-light);
    margin-top: 0.4rem;
    line-height: 1.2;
    padding: 0 2px;
}

.timeline-step.done .timeline-label,
.timeline-step.current .timeline-label {
    color: var(--brand-gray-dark);
    font-weight: 500;
}

/* ── DFM Flag Cards ──────────────────────────────────────── */
.dfm-flag {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    border-left: 4px solid;
}

.dfm-flag.dfm-warning {
    background-color: rgba(253, 126, 20, 0.08);
    border-left-color: #fd7e14;
    color: #6c3a00;
}

.dfm-flag.dfm-info {
    background-color: rgba(0, 149, 200, 0.08);
    border-left-color: var(--brand-blue);
    color: #003f58;
}

/* ── ITAR Block ──────────────────────────────────────────── */
.itar-block {
    background-color: #fff9e6;
    border: 1px solid #f0d060;
    border-left: 4px solid var(--brand-gold);
    border-radius: 8px;
    padding: 1.25rem;
}

.itar-block h6 {
    color: #5a4800;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.itar-block p {
    color: #5a4800;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* ── Trust Strip ─────────────────────────────────────────── */
.trust-strip {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--brand-gray-dark);
    font-weight: 500;
}

.trust-item-icon {
    font-size: 1.4rem;
    color: var(--brand-green);
    flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────── */
footer.site-footer {
    background-color: var(--brand-footer-bg);
    color: rgba(255, 255, 255, 0.75);
    padding: 48px 0 24px;
    margin-top: auto;
}

footer.site-footer .footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

footer.site-footer .footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

footer.site-footer h6 {
    color: var(--brand-white);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

footer.site-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.15s ease;
}

footer.site-footer a:hover {
    color: var(--brand-green-accent);
}

footer.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    margin-top: 2.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

footer.site-footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    display: inline;
    margin: 0 0.5rem;
    font-size: 0.8rem;
}

footer.site-footer .footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Utility Classes ─────────────────────────────────────── */
.text-brand-green { color: var(--brand-green) !important; }
.text-brand-gold  { color: var(--brand-gold) !important; }
.text-brand-blue  { color: var(--brand-blue) !important; }
.text-brand-gray  { color: var(--brand-gray-dark) !important; }

.bg-brand-green        { background-color: var(--brand-green) !important; }
.bg-brand-green-accent { background-color: var(--brand-green-accent) !important; }
.bg-brand-dark         { background-color: var(--brand-footer-bg) !important; }

.border-brand-green { border-color: var(--brand-green) !important; }

/* ── Section helpers ─────────────────────────────────────── */
.section-pad    { padding: 64px 0; }
.section-pad-sm { padding: 40px 0; }

.section-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--brand-gray-light);
    font-size: 1.05rem;
}

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-card {
    max-width: 460px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
}

.auth-page {
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* ── Checkout ────────────────────────────────────────────── */
.checkout-section {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: white;
}

.checkout-section h5 {
    font-weight: 600;
    color: var(--brand-gray-dark);
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.order-summary-card {
    background-color: #f8fff9;
    border: 1px solid rgba(0, 122, 51, 0.15);
    border-radius: 10px;
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
}

.order-summary-card h5 {
    font-weight: 700;
    color: var(--brand-green);
    margin-bottom: 1rem;
}

.order-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
}

.order-line:last-child { border-bottom: none; }

.order-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 2px solid var(--brand-green);
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--brand-green);
}

/* ── Success / Confirmation ──────────────────────────────── */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 122, 51, 0.1);
    border: 3px solid var(--brand-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--brand-green);
    margin-bottom: 1.5rem;
}

.order-ref {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-green);
    background-color: rgba(0, 122, 51, 0.08);
    padding: 0.25rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

/* ── Address Cards ───────────────────────────────────────── */
.address-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.address-card:hover {
    border-color: var(--brand-green);
    background-color: rgba(0, 122, 51, 0.03);
}

.address-card.selected {
    border-color: var(--brand-green);
    background-color: rgba(0, 122, 51, 0.06);
}

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--brand-gray-light);
}

.empty-state-icon {
    font-size: 3rem;
    opacity: 0.35;
    display: block;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: var(--brand-gray-dark);
    font-weight: 600;
}

/* ── Table ───────────────────────────────────────────────── */
.table-buysteel thead th {
    background-color: #f8f9fa;
    color: var(--brand-gray-dark);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.table-buysteel tbody tr:hover {
    background-color: rgba(0, 122, 51, 0.03);
}

/* ── Analysis Spinner ────────────────────────────────────── */
.analysis-spinner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f0f8ff;
    border: 1px solid rgba(0, 149, 200, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--brand-blue);
}

/* ── Alert Overrides ─────────────────────────────────────── */
.alert-success {
    background-color: rgba(0, 122, 51, 0.1);
    border-color: rgba(0, 122, 51, 0.25);
    color: #004d1e;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section     { padding: 48px 0; }
    .hero-section h1  { font-size: 1.75rem; }
    .upload-zone      { padding: 40px 20px; }
    .auth-card        { padding: 1.75rem 1.25rem; }
    .section-pad      { padding: 40px 0; }
    .order-summary-card { position: static; }
    .status-timeline  { gap: 0; }
    .timeline-label   { font-size: 0.62rem; }
}

@media (max-width: 576px) {
    .price-display { font-size: 1.5rem; }
    .quote-steps   { padding: 1rem 0.5rem; }
}

/* ── Validation ──────────────────────────────────────────── */
.field-validation-error { color: #dc3545; font-size: 0.875rem; }
.input-validation-error { border-color: #dc3545 !important; }

/* ── Staging Banner ──────────────────────────────────────── */
.staging-banner {
    background: #b45309;          /* amber-700 */
    color: #fff;
    text-align: center;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* ── Misc ────────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.font-mono { font-family: "SFMono-Regular", Consolas, monospace; }
.text-decoration-none { text-decoration: none !important; }

.badge-service {
    display: inline-block;
    background: rgba(0,122,51,.1);
    color: var(--brand-green);
    border: 1px solid rgba(0,122,51,.2);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 2px;
}
