/* ============================================================
   FILE: tydfy.css
   PROJECT: CleaningMarketplace.Web
   PURPOSE: Complete Tydfy design system. Extends Bootstrap 5 with
            brand colours, Inter typography, buttons, forms, cards,
            status badges, and all component styles per FRONTEND.md.
   LAST MODIFIED: 29 May 2026
   ============================================================ */

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  /* Primary palette — official brand colours (Bart, logo): navy #0B2A6F, accent #1E88FF */
  --tydfy-accent:      #1E88FF;   /* brand accent — button fills, large text, UI (all pass AA 3:1) */
  --tydfy-blue:        #1E88FF;   /* action colour repointed to the brand accent */
  --tydfy-blue-dark:   #1565C0;   /* darker accent for hover/active */
  --tydfy-link:        #1565C0;   /* SMALL link text on white — 5.75:1, clears AA 4.5:1 (accent is 3.49) */
  --tydfy-blue-light:  #EFF6FF;
  --tydfy-teal:        #00B4CC;
  --tydfy-teal-mid:    #0077B6;

  /* Hero gradient — left-to-right teal → mid → brand accent */
  --tydfy-gradient: linear-gradient(135deg, #00B4CC 0%, #0077B6 50%, #1E88FF 100%);
  --gradient-hero:  linear-gradient(135deg, #00B4CC 0%, #0077B6 50%, #1E88FF 100%);

  /* Text */
  --tydfy-dark:   #1E293B;
  --tydfy-body:   #374151;
  --tydfy-muted:  #6B7280;
  --tydfy-slate:  #64748B;

  /* Backgrounds */
  --tydfy-bg:      #F8FAFC;
  --tydfy-light:   #F8FAFC;
  --tydfy-surface: #FFFFFF;
  --tydfy-white:   #FFFFFF;
  --tydfy-border:  #E2E8F0;

  /* Status colours */
  --tydfy-success:    #10B981;
  --tydfy-success-bg: #ECFDF5;
  --tydfy-warning:    #F59E0B;
  --tydfy-warning-bg: #FFFBEB;
  --tydfy-danger:     #EF4444;
  --tydfy-danger-bg:  #FEF2F2;
  --tydfy-info:       #3B82F6;
  --tydfy-info-bg:    #EFF6FF;

  /* Legacy aliases */
  --tydfy-green:       #10B981;
  --tydfy-green-light: #D1FAE5;
  --tydfy-dark-navy:   #0B2A6F;
  --tydfy-blue-xlight: #EFF6FF;

  /* Typography scale */
  --text-xs:   12px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   17px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  30px;
  --text-3xl:  38px;
  --text-hero: 48px;

  /* Font weights */
  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Line heights */
  --leading-tight:   1.25;
  --leading-normal:  1.5;
  --leading-relaxed: 1.75;

  /* Spacing (4px base grid) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --section-padding-y:        80px;
  --section-padding-y-mobile: 48px;
  --card-padding:        24px;
  --card-padding-mobile: 16px;

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-pill: 50px;
  --radius-full: 9999px;
  --tydfy-radius: 12px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 24px rgba(0,0,0,0.12);
  --shadow-nav:  0 2px 12px rgba(0,0,0,0.08);
  --tydfy-shadow:    0 2px 12px rgba(37,99,235,0.08);
  --tydfy-shadow-lg: 0 8px 32px rgba(37,99,235,0.14);
}

/* ── Base ───────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  color: var(--tydfy-dark);
  background: var(--tydfy-bg);
  -webkit-font-smoothing: antialiased;
}

/* Base link colour — AA-safe #1565C0 (H32). Without this, plain <a> fell back to Bootstrap's
   #0d6efd (privacy links) — 4.6:1 but off-brand. Buttons (.btn-*), nav links (.nav-link), the
   brand wordmark and footer links all carry higher-specificity colours and are unaffected, so
   #1E88FF stays on buttons/UI/large text while small text links become #1565C0. */
a { color: var(--tydfy-link); }
a:hover { color: var(--tydfy-blue-dark); }

/* iOS tap highlight */
button, a, [role="button"] {
  -webkit-tap-highlight-color: rgba(37,99,235,0.12);
  touch-action: manipulation;
}

/* Prevent iOS zoom on input focus — font-size must be 16px */
input, textarea, select {
  font-size: 16px !important;
}

main { padding-top: 0 !important; padding-bottom: 0 !important; }

/* ── Button system ──────────────────────────────────────────────────────── */

/* Base — all tydfy buttons inherit these */
.btn-tydfy-base,
.btn-tydfy-primary,
.btn-tydfy-outline,
.btn-tydfy-success,
.btn-tydfy-danger,
.btn-tydfy-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
  white-space: nowrap;
}

.btn-tydfy-primary {
  background: #1E88FF;
  color: #FFFFFF;
  border-color: #1E88FF;
}
.btn-tydfy-primary:hover {
  background: #1565C0;
  border-color: #1565C0;
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.30);
}

.btn-tydfy-outline {
  background: transparent;
  color: #1E88FF;
  border-color: #1E88FF;
}
.btn-tydfy-outline:hover {
  background: #EFF6FF;
  color: #1565C0;
  border-color: #1565C0;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-tydfy-success {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
}
.btn-tydfy-success:hover {
  background: #059669;
  border-color: #059669;
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-tydfy-danger {
  background: transparent;
  color: #EF4444;
  border-color: #EF4444;
}
.btn-tydfy-danger:hover {
  background: #FEF2F2;
  text-decoration: none;
}

.btn-tydfy-ghost {
  background: transparent;
  color: #374151;
  border-color: transparent;
}
.btn-tydfy-ghost:hover {
  background: #F8FAFC;
  color: #1E293B;
  text-decoration: none;
}

/* Loading state */
.btn-tydfy-primary.is-loading,
.btn-tydfy-outline.is-loading,
.btn-tydfy-success.is-loading,
.btn-tydfy-danger.is-loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn-tydfy-primary.is-loading::after,
.btn-tydfy-outline.is-loading::after,
.btn-tydfy-success.is-loading::after,
.btn-tydfy-danger.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Legacy button aliases — kept for backwards compat with existing pages */
.btn-tydfy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
  white-space: nowrap;
  background: var(--tydfy-blue);
  color: #FFFFFF;
  border-color: var(--tydfy-blue);
}
.btn-tydfy:hover {
  background: var(--tydfy-blue-dark);
  border-color: var(--tydfy-blue-dark);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.btn-tydfy-white {
  background: #FFFFFF;
  color: var(--tydfy-blue);
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-tydfy-white:hover {
  background: #EFF6FF;
  color: var(--tydfy-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  text-decoration: none;
}
.btn-tydfy-lg,
.btn-tydfy-primary.btn-lg,
.btn-tydfy-outline.btn-lg {
  padding: 14px 28px;
  font-size: 1.0625rem;
}

/* Bootstrap .btn overrides — keep pill shape */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 999px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 44px;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Mobile: full-width buttons */
@media (max-width: 575.98px) {
  .btn-tydfy-primary,
  .btn-tydfy-outline,
  .btn-tydfy-success,
  .btn-tydfy-danger,
  .btn-tydfy-lg,
  .btn-tydfy-white {
    width: 100%;
  }
}

/* ── Form system ────────────────────────────────────────────────────────── */
.form-field { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 6px;
}

.required-star { color: #EF4444; margin-left: 2px; }

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 16px !important;
  font-family: 'Inter', sans-serif;
  color: #1E293B;
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}
.form-input:focus {
  outline: none;
  border-color: #1E88FF;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-input.is-invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.form-input.is-valid {
  border-color: #10B981;
}

.form-hint {
  display: block;
  font-size: 13px;
  color: #6B7280;
  margin-top: 4px;
}
.form-error {
  display: none;
  font-size: 13px;
  color: #EF4444;
  margin-top: 4px;
}
.form-error.is-visible { display: block; }

/* Bootstrap .form-control / .form-select — keep consistent */
.form-control, .form-select {
  font-family: 'Inter', sans-serif;
  border-radius: 10px !important;
  border: 1.5px solid #CBD5E1;
  padding: 12px 16px;
  min-height: 48px;
  font-size: 16px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--tydfy-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  outline: none;
}

/* ── Card system ────────────────────────────────────────────────────────── */
.tydfy-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}
.tydfy-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.tydfy-card-header {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tydfy-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1E293B;
  margin: 0;
}
.tydfy-card-body { padding: 16px 24px; }
.tydfy-card-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tydfy-card-featured {
  border: 2px solid var(--tydfy-blue) !important;
  box-shadow: 0 8px 32px rgba(37,99,235,0.18);
}

@media (max-width: 575.98px) {
  .tydfy-card-header,
  .tydfy-card-body { padding-left: 16px; padding-right: 16px; }
  .tydfy-card-footer { padding-left: 16px; padding-right: 16px; }
}

/* ── Status badges ──────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.status-pending    { background: #FFFBEB; color: #92400E; }
.status-confirmed  { background: #EFF6FF; color: #1565C0; }
.status-accepted   { background: #ECFDF5; color: #065F46; }
.status-inprogress { background: #EEF2FF; color: #3730A3; }
.status-completed  { background: #ECFDF5; color: #065F46; }
.status-cancelled  { background: #FEF2F2; color: #991B1B; }
.status-disputed   { background: #FFF7ED; color: #9A3412; }
.status-refunded   { background: #F5F3FF; color: #5B21B6; }

/* ── Empty states ───────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #6B7280;
}
.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}
.empty-state h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 15px;
  color: #6B7280;
  max-width: 320px;
  margin: 0 auto 20px;
}

/* ── Loading skeleton ───────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.tydfy-navbar,
#mainNavbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #FFFFFF;
  min-height: 70px;
  box-shadow: var(--shadow-nav);
  transition: box-shadow 0.2s ease;
  padding: 0;
}
.tydfy-navbar.scrolled,
#mainNavbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.13);
}
.tydfy-navbar .container,
#mainNavbar .container {
  min-height: 70px;
  display: flex;
  align-items: center;
}

/* Fix Bootstrap bullet defaults */
.navbar-nav {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0;
}
.navbar-nav .nav-item { list-style: none !important; }

/* Nav links */
.tydfy-navbar .nav-link,
#mainNavbar .nav-link {
  font-weight: 500;
  font-size: 15px;
  color: #374151 !important;
  padding: 6px 0 !important;
  background: transparent !important;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.tydfy-navbar .nav-link:hover,
#mainNavbar .nav-link:hover {
  color: #1E88FF !important;
  background: transparent !important;
}

/* Desktop top-nav horizontal separation.
   #mainNavbar .nav-link uses `padding: 6px 0` (no horizontal padding) so the
   colour-change hover stays tight to the text. That left the horizontal flex
   row with zero space between items ("DashboardMy BookingsBook a Clean").
   A flex gap restores ~px-3 separation without re-introducing horizontal
   padding and without any Bootstrap JS. Scoped to the lg breakpoint (>=992px)
   where the nav is a row; below that the nav stacks with its own border
   separators (see the max-width:991.98px block) so mobile is left untouched. */
@media (min-width: 992px) {
  #mainNavbar .navbar-nav { gap: 32px; }
}

/* Hamburger — NO border, NO shadow, NO background */
.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 6px !important;
}
.navbar-toggler:focus {
  box-shadow: none !important;
  outline: none !important;
}
.navbar-toggler:hover {
  background: rgba(37,99,235,0.08) !important;
  border-radius: 8px;
}
.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='%231E88FF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 24px;
  height: 24px;
}

/* Mobile dropdown panel */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #FFFFFF;
    padding: 16px;
    border-radius: 0 0 12px 12px;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  .navbar-nav .nav-link {
    padding: 12px 0 !important;
    border-bottom: 1px solid #F1F5F9;
    font-size: 16px !important;
  }
  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }
  .tydfy-navbar, #mainNavbar { min-height: 60px; }
  .tydfy-navbar .container,
  #mainNavbar .container { min-height: 60px; }
  #mainNav .d-flex.flex-column.flex-lg-row {
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
  }
  #mainNav .d-flex.flex-column.flex-lg-row .btn,
  #mainNav .d-flex.flex-column.flex-lg-row .btn-tydfy-primary,
  #mainNav .d-flex.flex-column.flex-lg-row .btn-tydfy-outline {
    width: 100%;
    min-height: 44px;
  }
}

/* ── Trust badges ───────────────────────────────────────────────────────── */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
}
.trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #10B981;
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Section layout ─────────────────────────────────────────────────────── */
.tydfy-section    { padding: 80px 0; }
.tydfy-section-sm { padding: 48px 0; }

.tydfy-heading {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--tydfy-dark);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.tydfy-subheading {
  font-size: 1.0625rem;
  color: var(--tydfy-slate);
  line-height: 1.65;
}

@media (max-width: 767.98px) {
  .tydfy-section    { padding: 48px 0; }
  .tydfy-section-sm { padding: 32px 0; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.tydfy-hero {
  background: var(--tydfy-gradient);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}
.tydfy-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.tydfy-hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.tydfy-hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
}
@media (max-width: 767.98px) {
  .tydfy-hero {
    padding: 64px 0 48px;
    min-height: auto;
  }
  .tydfy-hero-headline { font-size: 2rem; }
}

/* ── Search card ─────────────────────────────────────────────────────────── */
.tydfy-search-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(37,99,235,0.16);
  padding: 24px 28px;
}

/* ── Step cards ──────────────────────────────────────────────────────────── */
.step-card {
  text-align: center;
  padding: 32px 24px;
}
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tydfy-blue);
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

/* ── Feature cards ───────────────────────────────────────────────────────── */
.feature-card {
  background: #FFFFFF;
  border-radius: var(--tydfy-radius);
  padding: 32px 24px;
  box-shadow: var(--tydfy-shadow);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tydfy-shadow-lg);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: #EFF6FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tydfy-blue-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* ── Review cards ────────────────────────────────────────────────────────── */
.review-card {
  background: #FFFFFF;
  border-radius: var(--tydfy-radius);
  padding: 28px;
  box-shadow: var(--tydfy-shadow);
  height: 100%;
}
.review-stars { color: #F59E0B; font-size: 1.0625rem; letter-spacing: 2px; }
.review-quote {
  font-size: 15px;
  color: var(--tydfy-dark);
  line-height: 1.65;
  font-style: italic;
  margin: 12px 0;
}
.review-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--tydfy-slate);
}

/* ── CTA section ─────────────────────────────────────────────────────────── */
.tydfy-cta {
  background: #0B2A6F;
  padding: 80px 0;
  text-align: center;
}

/* ── Pricing cards ───────────────────────────────────────────────────────── */
.pricing-card {
  border-radius: var(--tydfy-radius);
  background: #FFFFFF;
  box-shadow: var(--tydfy-shadow);
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tydfy-shadow-lg);
}
.pricing-card-featured {
  border: 2.5px solid var(--tydfy-blue);
  box-shadow: 0 8px 40px rgba(37,99,235,0.2);
  transform: scale(1.03);
}
.pricing-card-featured:hover {
  transform: scale(1.03) translateY(-4px);
}
.pricing-badge {
  background: var(--tydfy-blue);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--tydfy-blue);
  line-height: 1;
  letter-spacing: -0.04em;
}
.pricing-price span { font-size: 1.25rem; font-weight: 500; vertical-align: super; }
.pricing-includes li {
  font-size: 14px;
  color: var(--tydfy-slate);
  padding: 4px 0;
}
.pricing-includes li::before {
  content: '✓ ';
  color: var(--tydfy-green);
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .pricing-card-featured { transform: none; }
  .pricing-card-featured:hover { transform: translateY(-4px); }
}

/* ── Apply progress steps ────────────────────────────────────────────────── */
.apply-progress {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.apply-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.apply-progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #E2E8F0;
  z-index: 0;
  transition: background 0.3s ease;
}
.apply-progress-step.completed:not(:last-child)::after,
.apply-progress-step.active:not(:last-child)::after {
  background: var(--tydfy-blue);
}
.apply-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #E2E8F0;
  color: var(--tydfy-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  z-index: 1;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease;
}
.apply-progress-step.active .apply-step-circle,
.apply-progress-step.completed .apply-step-circle {
  background: var(--tydfy-blue);
  color: #FFFFFF;
}
.apply-step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--tydfy-slate);
  margin-top: 6px;
  text-align: center;
}
.apply-progress-step.active .apply-step-label,
.apply-progress-step.completed .apply-step-label {
  color: var(--tydfy-blue);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.tydfy-footer {
  background: #0B2A6F;
  color: #94A3B8;
  padding: 56px 0 0;
}
.tydfy-footer-brand {
  font-size: 1.375rem;
  font-weight: 700;
  color: #FFFFFF;
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
}
.tydfy-footer h6 {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
}
.tydfy-footer a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 14px;
  line-height: 2;
  display: block;
  transition: color 0.15s ease;
}
.tydfy-footer a:hover { color: #FFFFFF; }
.tydfy-footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 48px;
  padding: 20px 0;
  font-size: 13px;
  color: #64748B;
  text-align: center;
}

/* ── Cookie notice (#cn) ─────────────────────────────────────────────────── */
#cn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  z-index: 9999;
}
#cn a { color: #93C5FD; text-decoration: underline; }
#cn button {
  min-height: 32px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* ── Utility classes ─────────────────────────────────────────────────────── */
.text-tydfy-blue  { color: var(--tydfy-link)  !important; }  /* text utility → AA-safe link colour */
.text-tydfy-green { color: var(--tydfy-green) !important; }
.text-tydfy-dark  { color: var(--tydfy-dark)  !important; }
.text-tydfy-slate { color: var(--tydfy-slate) !important; }
.bg-tydfy-light   { background: var(--tydfy-light)       !important; }
.bg-tydfy-blue-xl { background: var(--tydfy-blue-xlight) !important; }

/* iOS momentum scrolling */
.scrollable {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* ── Account dropdown (vanilla-JS toggled — see _Layout.cshtml) ─────────────── */
/* Every item is a 44px tap target with 16px text (prevents iOS zoom on focus). */
#accountMenu .dropdown-item,
#accountMenu .dropdown-item button {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 16px;
}
#accountMenu form { margin: 0; }
#accountMenu form .dropdown-item { width: 100%; background: none; border: 0; text-align: left; }

/* On mobile the menu flows inside the stacked nav as a full-width card rather
   than an absolutely-positioned popover (which mispositions without Popper). */
@media (max-width: 991.98px) {
  #accountMenu.show {
    position: static;
    float: none;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    border: 1px solid var(--tydfy-border) !important;
  }
}

/* Hero "View Pricing" outline CTA hover — CSP F-H3: replaces inline onmouseover/onmouseout. */
.hero-outline-cta:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6) !important; }
