/* =============================================
   DrainTeck Design System
   ============================================= */

/* --- CSS Variables --- */
:root {
    --dt-navy:        #0d2137;
    --dt-navy-light:  #1a3a5c;
    --dt-blue:        #1565c0;
    --dt-blue-light:  #1e88e5;
    --dt-cyan:        #00b4d8;
    --dt-orange:      #ff6b35;
    --dt-orange-dark: #e55a25;
    --dt-light:       #f5f7fa;
    --dt-white:       #ffffff;
    --dt-text:        #2d3748;
    --dt-text-muted:  #718096;
    --dt-border:      #e2e8f0;
    --dt-shadow:      0 4px 20px rgba(0,0,0,0.08);
    --dt-shadow-lg:   0 8px 32px rgba(0,0,0,0.14);
    --dt-radius:      12px;
    --dt-radius-lg:   20px;
    --font-head:      'Poppins', 'Helvetica Neue', Arial, sans-serif;
    --font-body:      'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    font-family: var(--font-body);
    color: var(--dt-text);
    background: var(--dt-white);
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
}

a { color: var(--dt-blue); text-decoration: none; }
a:hover { color: var(--dt-blue-light); }

/* =============================================
   NAVIGATION
   ============================================= */
.dt-navbar {
    background: rgba(13, 33, 55, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.55rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.dt-brand { font-family: var(--font-head); font-size: 1.65rem; font-weight: 800; letter-spacing: -0.5px; text-decoration: none; }
.brand-drain { color: var(--dt-white); }
.brand-teck  { color: var(--dt-cyan); }
.dt-navbar .nav-link { color: rgba(255,255,255,0.8) !important; font-weight: 500; font-size: 0.95rem; padding: 0.5rem 1rem !important; position: relative; transition: color 0.2s ease; }
.dt-navbar .nav-link::after { content: ''; position: absolute; bottom: 2px; left: 1rem; right: 1rem; height: 2px; background: var(--dt-cyan); transform: scaleX(0); transition: transform 0.25s ease; border-radius: 2px; }
.dt-navbar .nav-link:hover, .dt-navbar .nav-link.active { color: var(--dt-white) !important; }
.dt-navbar .nav-link:hover::after, .dt-navbar .nav-link.active::after { transform: scaleX(1); }
.btn-call { background: var(--dt-orange); color: var(--dt-white) !important; border: none; border-radius: 50px; padding: 0.5rem 1.35rem; font-weight: 600; font-size: 0.9rem; transition: all 0.2s ease; white-space: nowrap; text-decoration: none; display: inline-block; }
.btn-call:hover { background: var(--dt-orange-dark); color: var(--dt-white) !important; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,107,53,0.45); }
.dt-navbar .navbar-toggler { border-color: rgba(255,255,255,0.4); }
.dt-navbar .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%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary-dt { background: var(--dt-orange); color: var(--dt-white); border: 2px solid var(--dt-orange); border-radius: 50px; padding: 0.7rem 1.75rem; font-weight: 600; font-family: var(--font-head); transition: all 0.25s ease; display: inline-block; text-decoration: none; }
.btn-primary-dt:hover { background: var(--dt-orange-dark); border-color: var(--dt-orange-dark); color: var(--dt-white); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(255,107,53,0.4); }
.btn-outline-dt { background: transparent; color: var(--dt-white); border: 2px solid rgba(255,255,255,0.5); border-radius: 50px; padding: 0.7rem 1.75rem; font-weight: 600; font-family: var(--font-head); transition: all 0.25s ease; display: inline-block; text-decoration: none; }
.btn-outline-dt:hover { background: rgba(255,255,255,0.12); border-color: var(--dt-white); color: var(--dt-white); transform: translateY(-2px); }
.btn-outline-navy { background: transparent; color: var(--dt-navy); border: 2px solid var(--dt-navy); border-radius: 50px; padding: 0.65rem 1.5rem; font-weight: 600; font-family: var(--font-head); transition: all 0.25s ease; display: inline-block; text-decoration: none; }
.btn-outline-navy:hover { background: var(--dt-navy); color: var(--dt-white); transform: translateY(-2px); }
.btn-white-dt { background: var(--dt-white); color: var(--dt-navy); border: 2px solid var(--dt-white); border-radius: 50px; padding: 0.7rem 1.75rem; font-weight: 700; font-family: var(--font-head); transition: all 0.25s ease; display: inline-block; text-decoration: none; }
.btn-white-dt:hover { background: var(--dt-light); color: var(--dt-navy); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,255,255,0.3); }
.btn-outline-white-dt { background: transparent; color: var(--dt-white); border: 2px solid rgba(255,255,255,0.55); border-radius: 50px; padding: 0.7rem 1.75rem; font-weight: 600; font-family: var(--font-head); transition: all 0.25s ease; display: inline-block; text-decoration: none; }
.btn-outline-white-dt:hover { background: rgba(255,255,255,0.12); border-color: var(--dt-white); color: var(--dt-white); transform: translateY(-2px); }

/* =============================================
   HERO SECTION
   ============================================= */
.dt-hero { position: relative; background: linear-gradient(135deg, var(--dt-navy) 0%, var(--dt-navy-light) 55%, #0e4d8a 100%); overflow: hidden; min-height: 88vh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, rgba(0,180,216,0.14) 0%, transparent 55%), radial-gradient(ellipse at 15% 80%, rgba(21,101,192,0.18) 0%, transparent 50%); }
.hero-bg::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(0,180,216,0.1) 0%, transparent 70%); top: 8%; right: 12%; animation: dtFloat 7s ease-in-out infinite; }
.hero-bg::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,53,0.07) 0%, transparent 70%); bottom: 18%; right: 28%; animation: dtFloat 9s ease-in-out infinite reverse; }
@keyframes dtFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.hero-content { position: relative; z-index: 2; padding: 5rem 0 6.5rem; }
.hero-content--centered { text-align: center; }
.hero-content--centered .hero-subtitle--centered { margin-left: auto; margin-right: auto; }
.hero-content--centered .hero-actions--centered { justify-content: center; }
.hero-badge { display: inline-flex; align-items: center; background: rgba(0,180,216,0.12); border: 1px solid rgba(0,180,216,0.28); color: var(--dt-cyan); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.85rem; font-weight: 500; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2.5rem, 5.5vw, 4.2rem); color: var(--dt-white); line-height: 1.12; margin-bottom: 1.25rem; }
.text-accent { color: var(--dt-cyan); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.72); max-width: 520px; margin-bottom: 2rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 80px; }

/* =============================================
   TRUST BAR
   ============================================= */
.dt-trust-bar { background: var(--dt-light); padding: 1.5rem 0; border-bottom: 1px solid var(--dt-border); }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-weight: 600; font-size: 0.875rem; color: var(--dt-navy); }
.trust-item i { color: var(--dt-orange); font-size: 1rem; }

/* =============================================
   SECTION UTILITIES
   ============================================= */
.section-pad { padding: 5rem 0; }
.bg-light-section { background: var(--dt-light); }
.section-label { display: inline-block; color: var(--dt-orange); font-weight: 700; font-size: 0.75rem; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.6rem); color: var(--dt-navy); line-height: 1.2; margin-bottom: 1rem; }
.section-subtitle { color: var(--dt-text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; line-height: 1.75; }
.section-header { margin-bottom: 1rem; }
.section-divider { border: none; border-top: 1px solid var(--dt-border); margin: 0; }

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-card { display: flex; flex-direction: column; background: var(--dt-white); border: 1px solid var(--dt-border); border-radius: var(--dt-radius-lg); padding: 2rem; text-decoration: none; color: var(--dt-text); transition: all 0.3s ease; height: 100%; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--dt-blue), var(--dt-cyan)); transform: scaleX(0); transition: transform 0.3s ease; }
.service-card:hover { border-color: transparent; box-shadow: var(--dt-shadow-lg); transform: translateY(-5px); color: var(--dt-text); }
.service-card:hover::before { transform: scaleX(1); }
.service-card--featured { border-color: var(--dt-blue); box-shadow: 0 4px 26px rgba(21,101,192,0.12); }
.service-card--featured::before { transform: scaleX(1); }
.service-badge-feat { display: inline-block; background: var(--dt-blue); color: var(--dt-white); font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 0.2rem 0.65rem; border-radius: 4px; margin-bottom: 1rem; }
.service-icon { width: 58px; height: 58px; background: linear-gradient(135deg, var(--dt-blue) 0%, var(--dt-cyan) 100%); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--dt-white); font-size: 1.35rem; margin-bottom: 1.25rem; flex-shrink: 0; }
.service-card h3 { font-size: 1.15rem; color: var(--dt-navy); margin-bottom: 0.6rem; }
.service-card p  { color: var(--dt-text-muted); font-size: 0.93rem; line-height: 1.68; margin-bottom: 1.25rem; flex-grow: 1; }
.service-link { color: var(--dt-blue); font-weight: 600; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.25rem; margin-top: auto; transition: color 0.2s ease; }
.service-card:hover .service-link { color: var(--dt-orange); }

/* =============================================
   WHY DRAINTECK
   ============================================= */
.why-graphic { position: relative; height: 360px; border-radius: var(--dt-radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--dt-navy) 0%, var(--dt-navy-light) 100%); }
.why-stats { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; padding: 2rem; }
.stat-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--dt-radius); padding: 1rem 1.5rem; text-align: center; width: 100%; max-width: 210px; }
.stat-card--accent { background: linear-gradient(135deg, var(--dt-orange) 0%, #ff8c5a 100%); border-color: transparent; }
.stat-number { display: block; font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--dt-white); line-height: 1; }
.stat-unit { font-size: 1rem; font-weight: 600; }
.stat-label { display: block; color: rgba(255,255,255,0.65); font-size: 0.78rem; font-weight: 500; margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.5px; }
.why-features { display: flex; flex-direction: column; gap: 1.25rem; }
.why-feature { display: flex; gap: 1rem; align-items: flex-start; }
.why-feature-icon { width: 28px; height: 28px; background: var(--dt-orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--dt-white); font-size: 0.68rem; flex-shrink: 0; margin-top: 3px; }
.why-feature strong { display: block; color: var(--dt-navy); margin-bottom: 0.15rem; }
.why-feature p { color: var(--dt-text-muted); font-size: 0.9rem; margin: 0; line-height: 1.55; }

/* =============================================
   CTA BANNER
   ============================================= */
.dt-cta-banner { background: linear-gradient(135deg, var(--dt-navy) 0%, #0e5aa8 100%); padding: 5rem 2rem; position: relative; overflow: hidden; text-align: center; }
.dt-cta-banner::before { content: ''; position: absolute; top: -60%; right: -8%; width: 420px; height: 420px; border-radius: 50%; background: rgba(0,180,216,0.07); pointer-events: none; }
.dt-cta-banner h2 { color: var(--dt-white); font-size: clamp(1.75rem, 3.5vw, 2.6rem); margin-bottom: 0.75rem; position: relative; }
.dt-cta-banner p  { color: rgba(255,255,255,0.78); font-size: 1.1rem; margin-bottom: 2rem; position: relative; }

/* =============================================
   SERVICE AREA CHIPS
   ============================================= */
.area-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; }
.area-chip { background: var(--dt-white); border: 1px solid var(--dt-border); border-radius: 50px; padding: 0.45rem 1.1rem; font-size: 0.875rem; font-weight: 500; color: var(--dt-navy); transition: all 0.2s ease; box-shadow: var(--dt-shadow); cursor: default; }
.area-chip:hover { background: var(--dt-navy); color: var(--dt-white); border-color: var(--dt-navy); transform: translateY(-2px); }
.area-chip i { color: var(--dt-orange); }
.area-chip:hover i { color: var(--dt-cyan); }

/* =============================================
   PAGE HEADER
   ============================================= */
.dt-page-header { background: linear-gradient(135deg, var(--dt-navy) 0%, var(--dt-navy-light) 100%); padding: 4rem 0 5rem; text-align: center; position: relative; overflow: hidden; }
.dt-page-header::before { content: ''; position: absolute; top: -60%; left: -8%; width: 380px; height: 380px; border-radius: 50%; background: rgba(0,180,216,0.06); pointer-events: none; }
.dt-page-header h1 { color: var(--dt-white); font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 0.5rem; position: relative; }
.dt-page-header p  { color: rgba(255,255,255,0.72); font-size: 1.1rem; margin: 0; position: relative; }
.page-header-wave  { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.page-header-wave svg { width: 100%; height: 60px; }

/* =============================================
   SERVICES DETAIL PAGE
   ============================================= */
.service-detail-icon { width: 76px; height: 76px; background: linear-gradient(135deg, var(--dt-blue) 0%, var(--dt-cyan) 100%); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--dt-white); margin-bottom: 1.5rem; }
.service-detail-icon--alt   { background: linear-gradient(135deg, var(--dt-navy) 0%, var(--dt-blue) 100%); }
.service-detail-icon--green { background: linear-gradient(135deg, #1a7a43 0%, #27ae60 100%); }
.service-detail-list { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.service-detail-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; color: var(--dt-text); }
.service-detail-list li i { color: var(--dt-orange); flex-shrink: 0; }
.service-detail-visual { border-radius: var(--dt-radius-lg); height: 360px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.routine-visual     { background: linear-gradient(135deg, var(--dt-navy) 0%, #0e4d8a 100%); }
.residential-visual { background: linear-gradient(135deg, #0d3b6e 0%, var(--dt-navy-light) 100%); }
.commercial-visual  { background: linear-gradient(135deg, #1b3a2a 0%, #1b6e43 100%); }
.visual-icon-bg { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 50%; width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.25); }
.visual-icon-bg--blue   { color: rgba(0,180,216,0.4); }
.visual-icon-bg--orange { color: rgba(255,107,53,0.4); }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.about-value { background: var(--dt-white); border: 1px solid var(--dt-border); border-radius: var(--dt-radius); padding: 1.5rem; text-align: center; transition: all 0.3s ease; }
.about-value:hover { box-shadow: var(--dt-shadow-lg); transform: translateY(-4px); border-color: var(--dt-blue); }
.about-value i { font-size: 1.75rem; color: var(--dt-blue); margin-bottom: 0.75rem; display: block; }
.about-value h4 { font-size: 1rem; color: var(--dt-navy); margin-bottom: 0.3rem; }
.about-value p  { font-size: 0.85rem; color: var(--dt-text-muted); margin: 0; }
.commitment-card { background: var(--dt-white); border-radius: var(--dt-radius-lg); padding: 2rem; border: 1px solid var(--dt-border); text-align: center; transition: all 0.3s ease; height: 100%; }
.commitment-card:hover { box-shadow: var(--dt-shadow-lg); transform: translateY(-4px); }
.commitment-number { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--dt-border); line-height: 1; margin-bottom: 0.5rem; }
.commitment-card h4 { color: var(--dt-navy); margin-bottom: 0.5rem; }
.commitment-card p  { color: var(--dt-text-muted); font-size: 0.9rem; margin: 0; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section-title { font-size: 1.5rem; color: var(--dt-navy); margin-bottom: 0.75rem; }
.contact-info-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item  { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--dt-blue) 0%, var(--dt-cyan) 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--dt-white); flex-shrink: 0; font-size: 0.95rem; }
.contact-info-label { display: block; font-size: 0.72rem; color: var(--dt-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.15rem; }
.contact-info-value { display: block; color: var(--dt-navy); font-weight: 600; font-size: 1rem; }
a.contact-info-value:hover { color: var(--dt-blue); }
.contact-social-btn { display: inline-flex; align-items: center; background: #1877f2; color: var(--dt-white); padding: 0.6rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: all 0.2s ease; text-decoration: none; }
.contact-social-btn:hover { background: #145dbf; color: var(--dt-white); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(24,119,242,0.35); }
.contact-form-card { background: var(--dt-white); border: 1px solid var(--dt-border); border-radius: var(--dt-radius-lg); padding: 2.5rem; box-shadow: var(--dt-shadow); }
.dt-input { border: 1.5px solid var(--dt-border); border-radius: 10px; padding: 0.72rem 1rem; font-size: 0.95rem; color: var(--dt-text); transition: all 0.2s ease; width: 100%; }
.dt-input:focus { border-color: var(--dt-blue); box-shadow: 0 0 0 3px rgba(21,101,192,0.1); outline: none; }
.dt-validation { color: #dc3545; font-size: 0.8rem; margin-top: 0.3rem; display: block; }
.contact-success { background: linear-gradient(135deg, #0a3d1a 0%, #1b6e43 100%); border-radius: var(--dt-radius-lg); padding: 3rem 2rem; text-align: center; color: var(--dt-white); min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contact-success i { color: #4ade80; }
.contact-success h3 { font-size: 1.75rem; margin: 1rem 0 0.5rem; }
.contact-success p  { color: rgba(255,255,255,0.78); margin-bottom: 0; }

/* =============================================
   FOOTER
   ============================================= */
.dt-footer { background: var(--dt-navy); padding: 4rem 0 0; }
.footer-logo { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--dt-white); margin-bottom: 1rem; }
.footer-logo span { color: var(--dt-cyan); }
.dt-footer p { color: rgba(255,255,255,0.58); font-size: 0.88rem; line-height: 1.7; }
.footer-heading { color: var(--dt-white); font-size: 0.78rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links li a { color: rgba(255,255,255,0.58); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-links li a:hover { color: var(--dt-cyan); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-contact li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.footer-contact li i { color: var(--dt-orange); width: 16px; text-align: center; flex-shrink: 0; }
.footer-contact li a { color: rgba(255,255,255,0.72); transition: color 0.2s ease; }
.footer-contact li a:hover { color: var(--dt-cyan); }
.footer-contact li span { color: rgba(255,255,255,0.72); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-links a { width: 38px; height: 38px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65); font-size: 0.85rem; transition: all 0.2s ease; text-decoration: none; }
.social-links a:hover { background: var(--dt-blue); border-color: var(--dt-blue); color: var(--dt-white); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 1.25rem 0; margin-top: 3rem; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.83rem; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.45); font-size: 0.83rem; transition: color 0.2s ease; }
.footer-bottom a:hover { color: var(--dt-cyan); }

/* =============================================
   BLAZOR + VALIDATION
   ============================================= */
#blazor-error-ui { background: #b32121; bottom: 0; display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem; position: fixed; width: 100%; z-index: 2000; color: white; font-size: 0.9rem; box-shadow: 0 -1px 2px rgba(0,0,0,0.2); }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }
.form-label { font-weight: 500; font-size: 0.875rem; color: var(--dt-text); margin-bottom: 0.4rem; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; font-size: 0.82rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
    .dt-navbar .navbar-collapse { background: rgba(13,33,55,0.98); padding: 1rem 0.5rem; border-radius: 0 0 var(--dt-radius) var(--dt-radius); margin-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
    .navbar-cta { margin-top: 0.75rem; padding-bottom: 0.5rem; }
    .why-graphic { height: 280px; }
}
@media (max-width: 575.98px) {
    .section-pad { padding: 3.5rem 0; }
    .dt-hero { min-height: auto; }
    .hero-content { padding: 3.5rem 0 5rem; }
    .hero-title { font-size: 2.1rem; }
    .hero-badge { font-size: 0.78rem; }
    .trust-item { flex-direction: column; gap: 0.3rem; text-align: center; font-size: 0.82rem; }
    .contact-form-card { padding: 1.5rem; }
    .dt-cta-banner { padding: 3.5rem 1.5rem; }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

/* =============================================
   NAVBAR — LOGO + NEW BUTTONS
   ============================================= */
.dt-nav-logo {
    height: 60px;
    background: #fff;
    border-radius: 10px;
    padding: 4px 10px;
    display: block;
}
.nav-link-highlight { color: var(--dt-cyan) !important; font-weight: 600; }
.nav-link-highlight:hover { color: #fff !important; }

.btn-schedule {
    background: transparent;
    border: 2px solid var(--dt-cyan);
    color: var(--dt-cyan);
    padding: .42rem 1.1rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .85rem;
    transition: all .25s ease;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.btn-schedule:hover {
    background: var(--dt-cyan);
    color: var(--dt-navy);
}

/* =============================================
   MUDBLAZOR OVERRIDES
   ============================================= */
.mud-input-outlined .mud-input-outlined-border { border-radius: 10px !important; }
.mud-button-root.mud-button { font-family: var(--font-head); }

/* =============================================
   SCHEDULE PAGE
   ============================================= */
.schedule-section { min-height: 60vh; }

/* Step Indicator */
.schedule-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}
.schedule-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.step-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.step-active .step-circle  { background: var(--dt-blue);  color: #fff; box-shadow: 0 0 0 4px rgba(21,101,192,0.18); }
.step-done   .step-circle  { background: var(--dt-cyan);  color: var(--dt-navy); }
.step-pending .step-circle { background: #e2e8f0; color: var(--dt-text-muted); }
.step-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
.step-active .step-label  { color: var(--dt-blue); }
.step-done   .step-label  { color: var(--dt-cyan); }
.step-pending .step-label { color: var(--dt-text-muted); }
.step-connector {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.6rem;
    margin-bottom: 1.6rem;
    transition: background 0.3s ease;
    min-width: 32px;
}
.connector-done { background: var(--dt-cyan); }

/* Schedule Card */
.schedule-card {
    background: #fff;
    border: 1px solid var(--dt-border);
    border-radius: var(--dt-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--dt-shadow);
}
.schedule-card-title    { font-size: 1.5rem; color: var(--dt-navy); margin-bottom: 0.35rem; }
.schedule-card-subtitle { color: var(--dt-text-muted); margin-bottom: 1.75rem; font-size: 0.95rem; }

/* Service Select Grid */
.service-select-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
}
.service-select-card {
    border: 2px solid var(--dt-border);
    border-radius: var(--dt-radius);
    padding: 1.2rem 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    color: var(--dt-text-muted);
    background: #fff;
    user-select: none;
}
.service-select-card i    { font-size: 1.65rem; color: var(--dt-blue-light); transition: color 0.2s; }
.service-select-card span { font-size: 0.78rem; font-weight: 600; line-height: 1.3; }
.service-select-card:hover        { border-color: var(--dt-blue); transform: translateY(-2px); box-shadow: var(--dt-shadow); }
.service-select-card.selected     { border-color: var(--dt-blue); background: rgba(21,101,192,0.07); color: var(--dt-navy); }
.service-select-card.selected i   { color: var(--dt-blue); }

/* Time Chips */
.time-grid  { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 0.5rem; }
.time-chip  {
    border: 2px solid var(--dt-border);
    border-radius: 50px;
    padding: 0.48rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--dt-text);
    background: #fff;
    user-select: none;
}
.time-chip:hover          { border-color: var(--dt-blue); color: var(--dt-blue); }
.time-chip.selected       { background: var(--dt-blue); border-color: var(--dt-blue); color: #fff; }

/* Step navigation buttons row */
.schedule-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.schedule-nav-both { justify-content: space-between; }

/* Success State */
.schedule-success {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 580px;
    margin: 0 auto;
}
.success-icon      { font-size: 5rem; color: var(--dt-cyan); margin-bottom: 1.25rem; line-height: 1; }
.schedule-success h2 { font-size: 2rem; color: var(--dt-navy); margin-bottom: 1rem; }
.schedule-success p  { color: var(--dt-text-muted); font-size: 1rem; margin-bottom: 0.5rem; }

/* =============================================
   QUOTE PAGE
   ============================================= */
.quote-section       { margin-bottom: 2.25rem; }
.quote-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dt-navy);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--dt-border);
}
.prop-type-grid { display: flex; gap: 1rem; flex-wrap: wrap; }
.prop-type-card {
    border: 2px solid var(--dt-border);
    border-radius: var(--dt-radius);
    padding: 1.4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--dt-text-muted);
    background: #fff;
    min-width: 140px;
    user-select: none;
}
.prop-type-card i    { font-size: 2rem; color: var(--dt-blue-light); transition: color 0.2s; }
.prop-type-card span { font-size: 0.95rem; font-weight: 700; }
.prop-type-card:hover       { border-color: var(--dt-blue); transform: translateY(-2px); box-shadow: var(--dt-shadow); }
.prop-type-card.selected    { border-color: var(--dt-blue); background: rgba(21,101,192,0.07); color: var(--dt-navy); }
.prop-type-card.selected i  { color: var(--dt-blue); }

.quote-sidebar {
    background: var(--dt-light);
    border-radius: var(--dt-radius-lg);
    padding: 1.75rem;
    position: sticky;
    top: 90px;
}
.quote-sidebar h5 { color: var(--dt-navy); font-size: 1.1rem; margin-bottom: 1rem; }
.quote-benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.quote-benefits li { font-size: 0.9rem; color: var(--dt-text); }

/* Schedule / Quote responsive */
@media (max-width: 767.98px) {
    .service-select-grid { grid-template-columns: repeat(2, 1fr); }
    .schedule-card        { padding: 1.5rem; }
    .schedule-success     { padding: 2.5rem 1rem; }
    .navbar-cta           { flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
    .service-select-grid  { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .prop-type-grid       { gap: 0.6rem; }
    .prop-type-card       { flex: 1; padding: 1rem; min-width: 0; }
}    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =============================================
   TeckOps Admin — Info Boxes & Dashboard Widgets
   ============================================= */

/* Info Box (AdminLTE-style stat cards) */
.admin-info-box {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    min-height: 90px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.info-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    min-width: 80px;
    color: #ffffff;
    font-size: 2rem;
}

.info-box-icon .mud-icon-root {
    font-size: 2rem;
}

.info-box-content {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box-label {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--dt-text-muted);
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.info-box-number {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dt-text);
}

.info-box-detail {
    color: var(--dt-text-muted);
    font-size: 0.72rem;
    margin-top: 2px;
}

/* Color variants */
.info-box-primary .info-box-icon { background: var(--dt-blue); }
.info-box-warning .info-box-icon { background: #f59e0b; }
.info-box-success .info-box-icon { background: #22c55e; }
.info-box-info    .info-box-icon { background: #00b4d8; }
.info-box-danger  .info-box-icon { background: #ef4444; }

/* AdminLTE accent top-border variant */
.info-box-primary { border-top: 3px solid var(--dt-blue); }
.info-box-warning { border-top: 3px solid #f59e0b; }
.info-box-success { border-top: 3px solid #22c55e; }
.info-box-info    { border-top: 3px solid #00b4d8; }
.info-box-danger  { border-top: 3px solid #ef4444; }

/* Timeline compact override */
.admin-timeline .mud-timeline-item-body {
    padding: 4px 0 12px;
}

/* Responsive info boxes */
@media (max-width: 600px) {
    .info-box-icon {
        width: 60px;
        min-width: 60px;
    }
    .info-box-icon .mud-icon-root {
        font-size: 1.5rem;
    }
}

/* =============================================
   FieldTeck — Mobile-first Tech App Styles
   ============================================= */

/* Layout */
.ft-layout {
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

.ft-appbar {
    flex-shrink: 0;
}

.ft-main-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 64px; /* height of bottom nav */
}

.ft-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-divider);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.10);
}

/* Bottom nav bar */
.ft-nav-bar {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    height: 64px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ft-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 6px 0 4px;
    text-decoration: none;
    color: var(--mud-palette-text-secondary);
    transition: color 0.15s;
    gap: 2px;
}

.ft-nav-item.active,
.ft-nav-item:hover {
    color: var(--mud-palette-primary);
}

.ft-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ft-nav-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Page container */
.ft-page {
    padding: 0;
    min-height: calc(100dvh - 120px);
}

/* Loading state */
.ft-loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    gap: 8px;
}

/* Empty state */
.ft-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 16px;
    text-align: center;
    gap: 8px;
}

/* ─── Jobs List ─────────────────────────────── */

.ft-jobs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px;
}

.ft-jobs-title {
    font-weight: 700;
}

.ft-job-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 12px;
}

.ft-job-card {
    background: var(--mud-palette-surface);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--mud-palette-divider);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    user-select: none;
}

.ft-job-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.ft-job-card.ft-job-enroute   { border-left-color: var(--mud-palette-info); }
.ft-job-card.ft-job-onsite    { border-left-color: var(--mud-palette-warning); }
.ft-job-card.ft-job-inprogress{ border-left-color: var(--mud-palette-warning); }
.ft-job-card.ft-job-complete  { border-left-color: var(--mud-palette-success); }
.ft-job-card.ft-job-flagged   { border-left-color: var(--mud-palette-error); }

.ft-job-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.ft-job-card-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ft-job-number {
    font-weight: 600;
    font-size: 13px;
    color: var(--mud-palette-text-secondary);
}

.ft-customer-name {
    font-weight: 600;
    margin: 2px 0;
}

.ft-service-type {
    margin-bottom: 8px;
}

.ft-job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ft-job-address,
.ft-job-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ft-status-chip {
    height: 22px;
}

.ft-job-weather {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

/* ─── Job Detail ─────────────────────────────── */

.ft-detail-header {
    background: var(--mud-palette-primary);
    color: white;
    padding: 16px;
}

.ft-detail-header .mud-typography {
    color: white;
}

.ft-detail-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.ft-job-title {
    font-weight: 700;
}

.ft-detail-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
}

.ft-detail-phone {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ft-detail-phone .mud-link {
    color: rgba(255,255,255,0.9) !important;
}

/* Action bar */
.ft-action-bar {
    padding: 12px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--mud-palette-background);
    border-bottom: 1px solid var(--mud-palette-divider);
}

.ft-action-btn {
    height: 52px;
    font-size: 16px;
    font-weight: 600;
}

.ft-flag-btn {
    height: 44px;
}

/* Sections */
.ft-section {
    padding: 14px 16px;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.ft-section-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Time tracking bar */
.ft-time-bar {
    padding: 14px 16px;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.ft-time-entries {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ft-time-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ft-time-actions {
    display: flex;
    gap: 8px;
}

/* Checklist */
.ft-checklist {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ft-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 6px 0;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.ft-checklist-item:last-child {
    border-bottom: none;
}

.ft-checklist-item.complete .ft-checklist-text .mud-typography {
    text-decoration: line-through;
    color: var(--mud-palette-text-secondary);
}

.ft-checklist-item.safety {
    background: color-mix(in srgb, var(--mud-palette-error) 6%, transparent);
    border-radius: 8px;
    padding: 6px 8px;
}

.ft-checklist-text {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

/* Photos */
.ft-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.ft-photo-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--mud-palette-background-grey);
}

.ft-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ft-photo-thumb .mud-chip {
    position: absolute;
    bottom: 2px;
    left: 2px;
    height: 18px;
    font-size: 10px;
}

.ft-photo-actions {
    display: flex;
    flex-wrap: wrap;
}

/* Photo capture label-button — triggers native file picker without JS */
.ft-photo-btn {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid var(--mud-palette-primary);
    color: var(--mud-palette-primary);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: 0.02857em;
    user-select: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ft-photo-btn:hover {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.08);
}

/* Parts */
.ft-parts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ft-part-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.ft-part-item:last-child {
    border-bottom: none;
}

/* Notes */
.ft-note-item {
    padding: 8px;
    background: var(--mud-palette-background-grey);
    border-radius: 8px;
    margin-bottom: 8px;
}

/* AI Panel */
.ft-ai-section {
    background: linear-gradient(135deg, rgba(21,101,192,0.04), rgba(0,180,216,0.04));
}

.ft-ai-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.ft-ai-body {
    padding-top: 4px;
}

.ft-ai-response {
    background: var(--mud-palette-background-grey);
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid var(--mud-palette-primary);
}

/* ─── PIN Lock Overlay ─────────────────────────────── */

.ft-pin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 33, 55, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ft-pin-card {
    background: var(--mud-palette-surface);
    border-radius: 20px;
    padding: 32px 24px;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.ft-pin-dots {
    display: flex;
    gap: 12px;
}

.ft-pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--mud-palette-primary);
    background: transparent;
    transition: background 0.1s;
}

.ft-pin-dot.filled {
    background: var(--mud-palette-primary);
}

.ft-pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.ft-pin-key {
    aspect-ratio: 1;
    border-radius: 50%;
    border: none;
    background: var(--mud-palette-background-grey);
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.1s, transform 0.08s;
    -webkit-tap-highlight-color: transparent;
}

.ft-pin-key:active {
    background: var(--mud-palette-action-hover);
    transform: scale(0.92);
}

.ft-pin-key-del {
    font-size: 20px;
    background: transparent;
}

/* ─── Profile & Schedule ─────────────────────────────── */

.ft-profile-page .ft-detail-header,
.ft-schedule-page .ft-jobs-header {
    padding: 24px 16px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =============================================
   TECKPORTAL — Customer Self-Service Portal
   Portal routes: /portal/*
   ============================================= */

/* Brand helpers used by portal login */
.tp-brand-drain { color: var(--dt-navy); }
.tp-brand-teck  { color: var(--dt-cyan); }

/* ─── Layout ─────────────────────────────────── */
.tp-layout    { min-height: 100dvh; background: var(--dt-light); }
.tp-appbar    { background: var(--dt-navy) !important; }

.tp-main-content {
    padding-bottom: 70px; /* space for bottom nav */
    min-height: calc(100dvh - 56px);
}

.tp-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--dt-white);
    border-top: 1px solid var(--dt-border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

/* ─── Bottom Nav Bar ─────────────────────────── */
.tp-nav-bar {
    display: flex;
    height: 62px;
    align-items: stretch;
}

.tp-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--dt-text-muted);
    text-decoration: none;
    transition: color 0.2s;
    padding: 6px 4px 8px;
    -webkit-tap-highlight-color: transparent;
}

.tp-nav-item.active { color: var(--dt-navy); }
.tp-nav-item .tp-nav-icon { display: flex; }
.tp-nav-label { font-size: 0.65rem; font-weight: 500; line-height: 1; }

/* ─── Page base ──────────────────────────────── */
.tp-page {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.tp-page-header {
    padding: 8px 0 16px;
}

.tp-loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    gap: 12px;
}

.tp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    gap: 8px;
    text-align: center;
}

/* ─── Cards ──────────────────────────────────── */
.tp-card-list { display: flex; flex-direction: column; gap: 12px; }

.tp-card {
    background: var(--dt-white);
    border-radius: var(--dt-radius);
    padding: 16px;
    box-shadow: var(--dt-shadow);
    border: 1px solid var(--dt-border);
}

.tp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.tp-card-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.tp-card-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ─── Login Page ─────────────────────────────── */
.tp-login-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dt-light);
    padding: 16px;
}

.tp-login-card {
    background: var(--dt-white);
    border-radius: var(--dt-radius-lg);
    padding: 32px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--dt-shadow-lg);
}

.tp-login-header {
    text-align: center;
    margin-bottom: 24px;
}

.tp-login-logo { margin-bottom: 12px; }
.tp-login-title { margin-bottom: 4px; }
.tp-back-btn { margin-bottom: 8px; }

/* ─── SSR Form Fields (login/portal pages) ───── */
.dt-field {
    margin-bottom: 16px;
}

.dt-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dt-text-muted);
    margin-bottom: 6px;
}

.dt-field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--dt-text);
    background: var(--dt-white);
    border: 1px solid var(--dt-border);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dt-field input:focus {
    outline: none;
    border-color: var(--dt-blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.dt-field input.invalid {
    border-color: #d32f2f;
}

.dt-field .validation-message {
    color: #d32f2f;
    font-size: 0.75rem;
    margin-top: 4px;
}

.dt-field-helper {
    font-size: 0.75rem;
    color: var(--dt-text-muted);
    margin-top: 4px;
}

.dt-field-spacer {
    margin-bottom: 24px;
}

/* ─── Dashboard ──────────────────────────────── */
.tp-dashboard-page { }

.tp-dashboard-header {
    padding: 8px 0 20px;
}

.tp-welcome {
    font-weight: 700;
    color: var(--dt-navy);
}

.tp-dashboard-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--dt-white);
    border-radius: var(--dt-radius);
    padding: 20px 12px;
    text-decoration: none;
    box-shadow: var(--dt-shadow);
    border: 1px solid var(--dt-border);
    transition: box-shadow 0.2s, transform 0.15s;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
}

.tp-dashboard-tile:hover { box-shadow: var(--dt-shadow-lg); transform: translateY(-2px); }
.tp-tile-icon { margin-bottom: 4px; }
.tp-tile-count { font-weight: 700; color: var(--dt-navy); line-height: 1.2; }

/* ─── Invoices ───────────────────────────────── */
.tp-invoice-amounts {
    display: flex;
    gap: 24px;
    margin: 8px 0;
}

/* ─── Job Photos ─────────────────────────────── */
.tp-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.tp-photo-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.tp-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tp-photo-type {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.6rem;
    text-align: center;
    padding: 2px 4px;
    text-transform: capitalize;
}

/* ─── Maintenance ────────────────────────────── */
.tp-next-due {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--dt-light);
}

.tp-due-soon { background: #fff8e1; }

/* ─── Notification Prefs ─────────────────────── */
.tp-prefs-table {
    background: var(--dt-white);
    border-radius: var(--dt-radius);
    box-shadow: var(--dt-shadow);
    border: 1px solid var(--dt-border);
    overflow: hidden;
}

.tp-prefs-header {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--dt-light);
    border-bottom: 1px solid var(--dt-border);
}

.tp-pref-row {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--dt-border);
}

.tp-pref-row:last-child { border-bottom: none; }

/* ─── Account ────────────────────────────────── */
.tp-account-section { }
.tp-section-title { font-weight: 600; color: var(--dt-navy); margin-bottom: 12px; }

/* ─── Load More ──────────────────────────────── */
.tp-load-more {
    display: flex;
    justify-content: center;
    padding: 16px 0 8px;
}
