/* ==========================================================================
   Uttarakhand DSC Wala — eMudhra-inspired professional palette
   Deep navy · Trust blue #1C64F2 · Orange CTA · High-contrast white text
   ========================================================================== */

:root {
  --navy: #0a2540;
  --navy-light: #0f3358;
  --royal: #1c64f2;
  --royal-light: #3b7ff5;
  /* Orange CTA accents (class names keep --teal for compatibility) */
  --teal: #ff6a1a;
  --teal-dark: #e55a0f;
  --teal-light: #ff853f;
  --gold: #ff853f;
  --surface: #f5f7fb;
  --surface-2: #e8eef6;
  --text: #1f2937;
  --text-muted: #64748b;
  --text-heading: #0a2540;
  --text-light: #94a3b8;
  --white: #ffffff;
  --font-sans: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-body: 0.9375rem;
  --fs-small: 0.8125rem;
  --lh-body: 1.6;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 16px 48px rgba(28, 100, 242, 0.16);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --transition: 0.2s ease;
  --bs-primary: #1c64f2;
  --bs-primary-rgb: 28, 100, 242;
  --bs-link-color: #1c64f2;
  --bs-link-hover-color: #0a2540;
  --bs-body-color: #1f2937;
  --bs-body-bg: #f5f7fb;
  --bs-border-color: #e8eef6;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

h1, .h1 { font-weight: var(--fw-bold); }
h2, .h2 { font-weight: var(--fw-medium); }

p, li, label, .form-control, .form-select, .btn {
  font-family: var(--font-sans);
}

.small, small {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.text-muted {
  color: var(--text-muted) !important;
}

a {
  color: var(--royal);
  transition: color var(--transition);
}

a:hover {
  color: var(--navy-light);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Buttons ---- */
.btn-teal {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.btn-teal:hover,
.btn-teal:focus {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.btn-royal {
  background: var(--royal);
  border-color: var(--royal);
  color: #fff;
}

.btn-royal:hover,
.btn-royal:focus {
  background: var(--royal-light);
  border-color: var(--royal-light);
  color: #fff;
}

.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn-navy:hover,
.btn-navy:focus {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: #fff;
}

.text-teal { color: var(--teal) !important; }
.text-royal { color: var(--royal) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-royal { background-color: var(--royal) !important; }
.bg-teal { background-color: var(--teal) !important; }

.btn-primary {
  --bs-btn-bg: var(--royal);
  --bs-btn-border-color: var(--royal);
  --bs-btn-hover-bg: var(--royal-light);
  --bs-btn-hover-border-color: var(--royal-light);
  --bs-btn-active-bg: var(--navy);
  --bs-btn-active-border-color: var(--navy);
  --bs-btn-focus-shadow-rgb: 28, 100, 242;
}

.btn-outline-primary {
  --bs-btn-color: var(--royal);
  --bs-btn-border-color: var(--royal);
  --bs-btn-hover-bg: var(--royal);
  --bs-btn-hover-border-color: var(--royal);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--navy);
  --bs-btn-active-border-color: var(--navy);
  --bs-btn-focus-shadow-rgb: 28, 100, 242;
}

/* ---- Top bar ---- */
.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1080;
}

.top-bar .top-bar-right {
  position: relative;
  z-index: 1081;
}

.lang-switcher {
  position: relative;
  z-index: 1082;
}

.lang-switcher .btn-lang {
  background: #ffd54f;
  border: 1px solid #f4c430;
  color: #0a2540;
  font-weight: 600;
  min-width: 8rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.lang-switcher .btn-lang:hover,
.lang-switcher .btn-lang:focus,
.lang-switcher .btn-lang.show {
  background: #ffca28;
  border-color: #f0b400;
  color: #0a2540;
}

.lang-switcher .dropdown-menu {
  z-index: 1090 !important;
  min-width: 13rem;
  font-size: 0.875rem;
  margin-top: 0.35rem !important;
  border: 1px solid #f4c430;
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.22);
  background: #fffef5;
}

.lang-switcher .dropdown-item {
  color: #0a2540;
  font-weight: 500;
  padding: 0.55rem 1rem;
}

.lang-switcher .dropdown-item:hover,
.lang-switcher .dropdown-item:focus {
  background: #ffe082;
  color: #0a2540;
}

.lang-switcher .dropdown-item.active,
.lang-switcher .dropdown-item[aria-current="true"] {
  background: #ffd54f;
  color: #0a2540;
  font-weight: 700;
}

/* Mobile top strip — always visible language */
.mobile-top-strip {
  display: none;
  background: var(--navy);
  padding: 0.4rem 0;
  position: relative;
  z-index: 1080;
}

.mobile-top-strip .btn-lang {
  min-width: auto;
}

/* ---- Navbar ---- */
.site-navbar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  box-shadow: var(--shadow-md);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.site-navbar .navbar-brand {
  font-size: 1rem;
  padding-top: 0;
  padding-bottom: 0;
}

.site-logo {
  height: 52px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  display: block;
  border-radius: 6px;
  background: #fff;
  padding: 2px 6px;
}

.auth-card .site-logo {
  margin-left: auto;
  margin-right: auto;
}

.site-logo-footer {
  height: 56px;
  max-width: 200px;
  padding: 4px 8px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 100, 242, 0.25);
  border: 1px solid rgba(255, 106, 26, 0.55);
  border-radius: 10px;
  color: var(--teal-light);
  font-size: 1.25rem;
}

.brand-tagline {
  font-size: 0.65rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-navbar .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.65rem !important;
  border-radius: 0.4rem;
  transition: background var(--transition), color var(--transition);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

@media (min-width: 1200px) {
  .site-navbar .navbar-nav {
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-navbar .nav-link {
    white-space: nowrap;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-navbar .nav-link {
    font-size: 0.78rem;
    padding: 0.4rem 0.4rem !important;
  }
}

/* ---- Hero — snow mountains behind the text, DSC banner on the right ---- */
.hero-section {
  background-color: #0a2540;
  background-image:
    linear-gradient(
      100deg,
      rgba(8, 20, 36, 0.55) 0%,
      rgba(10, 28, 48, 0.28) 34%,
      rgba(12, 32, 52, 0.08) 58%,
      rgba(18, 38, 58, 0.02) 100%
    ),
    url("../images/uk-hero-mountains.jpg");
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  color: #fff;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  right: max(1rem, calc((100vw - 1140px) / 2));
  width: min(540px, calc(50vw - 3rem));
  background-image: url("../images/hero-dsc-banner.png?v=2");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

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

.hero-badges {
  margin-bottom: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(10, 37, 64, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.22);
  color: #fff;
  padding: 0.4rem 0.95rem 0.4rem 0.75rem;
  border-radius: 2rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0;
  max-width: 100%;
}

.hero-badge-logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 0.35rem;
  background: #fff;
  padding: 2px;
}

.hero-badge-icon {
  flex-shrink: 0;
  color: #ff853f;
  font-size: 0.95rem;
}

.hero-badge-direct .hero-badge-icon {
  color: #7bdcb5;
}

a.hero-badge-direct {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.hero-badge-direct:hover {
  transform: translateY(-2px);
  border-color: rgba(73, 153, 54, 0.85);
  box-shadow: 0 6px 18px rgba(73, 153, 54, 0.28);
  color: inherit;
}

a.hero-badge-direct:focus-visible {
  outline: 2px solid #499936;
  outline-offset: 2px;
}

.hero-badge-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.2;
  min-width: 0;
}

.hero-badge-title {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.hero-badge-title .idsign-brand {
  color: #499936 !important;
  font-weight: 800;
  animation: none !important;
}

.hero-badge-id {
  color: rgba(255, 224, 204, 0.95);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .hero-badge {
    padding: 0.35rem 0.75rem 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  .hero-badge-logo {
    width: 30px;
    height: 30px;
  }

  .hero-badge-title,
  .hero-badge-id {
    white-space: normal;
  }

  .hero-badge-id {
    font-size: 0.65rem;
  }
}

.hero-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(8, 20, 36, 0.55);
}

.hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 540px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 12px rgba(8, 20, 36, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-actions .btn {
  max-width: 100%;
}

.hero-card {
  background: rgba(10, 37, 64, 0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #fff;
}

.hero-card p,
.hero-card .small,
.hero-card span {
  color: rgba(255, 255, 255, 0.95) !important;
}

.hero-card .text-teal {
  color: #ffb380 !important;
}

.hero-check {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff !important;
  margin: 0;
}

.hero-check i {
  color: #ffb380;
}

.hero-stat {
  text-align: center;
  padding: 0.75rem;
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  color: #fff !important;
}

.hero-stat span {
  font-size: 0.75rem;
  opacity: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85) !important;
}

.hero-visual {
  position: relative;
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.payment-qr-box {
  margin-top: 0.5rem;
  height: auto !important;
}

.payment-qr-img {
  display: inline-block;
  background: #fff;
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--surface-2);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  height: auto;
}

/* Tracking page — prevent stretched empty cards / footer overlap */
.tracking-section {
  padding-bottom: 3rem;
}

.tracking-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.tracking-search-card,
.tracking-results-card {
  height: auto !important;
  transform: none !important;
}

.tracking-search-card:hover,
.tracking-results-card:hover {
  transform: none;
}

/* Success page — application number must stay visible (no overlap) */
.app-number-hero {
  position: relative;
  z-index: 1;
  background: #fff8e6 !important;
  border: 2px solid #f0c14b !important;
}

.app-number-code {
  display: inline-block;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 0.5rem;
  padding: 0.65rem 1.25rem;
  word-break: break-all;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-light);
  color: #fff;
  border-color: var(--navy-light);
}

/* Blinking red CA disclaimer text */
@keyframes caBlink {
  0%, 100% { opacity: 1; color: #c1121f; }
  50% { opacity: 0.45; color: #ff0022; }
}

.ca-warning-blink {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  color: #c1121f;
  animation: caBlink 1.1s ease-in-out infinite;
  text-align: left;
  pointer-events: none; /* text itself shouldn't steal clicks */
}

/* IDSign brand green (idsign.app — rgb(73, 153, 54)) — stays green while warning blinks red */
.idsign-brand {
  color: #499936 !important;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.02em;
  animation: none !important;
}

/* Must sit above top-bar / lang switcher (z-index ~1080–1090) */
#caDisclaimerModal {
  z-index: 3000 !important;
  pointer-events: auto !important;
}

#caDisclaimerModal .modal-dialog,
#caDisclaimerModal .modal-content,
#caDisclaimerModal .modal-footer,
#caDisclaimerModal .modal-footer .btn {
  pointer-events: auto !important;
  position: relative;
  z-index: 3001;
}

body.modal-open .modal-backdrop {
  z-index: 2990 !important;
}

body.modal-open .whatsapp-float {
  z-index: 1000 !important;
  pointer-events: none;
}

#caDisclaimerModal .modal-content {
  box-shadow: 0 12px 40px rgba(193, 18, 31, 0.35);
}

.feature-img-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
  text-decoration: none;
  height: 100%;
  min-height: 220px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-img-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-img-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.feature-img-card-static img {
  object-fit: contain;
  background: #f0f4fa;
  padding: 0.75rem;
}

.feature-img-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 1rem;
  background: linear-gradient(transparent, rgba(10, 37, 64, 0.92));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.token-shot-img,
.token-card-img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  display: block;
  margin-inline: auto;
}

.token-card-img {
  max-height: 140px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.renew-side-img {
  width: 100%;
  object-fit: cover;
  background: #fff;
}

/* ---- Page header ---- */
.page-header {
  background: linear-gradient(135deg, var(--royal) 0%, var(--navy) 100%);
  color: #fff;
  padding: 2.75rem 0;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.page-header .breadcrumb {
  margin-bottom: 0;
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
}

.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.page-header .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.95);
}

/* ---- Trust strip ---- */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--surface-2);
  padding: 1.25rem 0;
  box-shadow: var(--shadow-sm);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-heading);
}

.trust-item i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 100, 242, 0.12);
  color: var(--teal);
  border-radius: 50%;
  font-size: 1rem;
}

/* ---- Cards ---- */
.card-premium {
  background: #fff;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: auto;
}

/*
 * Equal-height ONLY when explicitly opted-in.
 * Never apply height:100% to all .row.g-4 cards — stacked cards in admin/detail
 * pages inflate column height and the footer (higher z-index) paints over content.
 */
.row.equal-cards > [class*="col"] > .card-premium {
  height: 100%;
}

.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Detail / form cards: no stretch, no hover lift (avoids overlap) */
.admin-main .card-premium,
.admin-main .card-premium:hover,
.detail-stack .card-premium,
.detail-stack .card-premium:hover,
.tracking-search-card,
.tracking-search-card:hover,
.tracking-results-card,
.tracking-results-card:hover {
  height: auto !important;
  transform: none !important;
}

.card-premium .card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(28, 100, 242, 0.14), rgba(255, 106, 26, 0.12));
  color: var(--royal);
  border-radius: 12px;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card-premium .card-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-heading);
}

.card-premium .card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

/* ---- Section ---- */
.section-padding {
  padding: 3.5rem 0;
}

.section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ---- Steps ---- */
.step-card {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--royal);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(28, 100, 242, 0.35);
}

.step-card h5 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-heading);
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--royal) 0%, var(--teal) 100%);
  color: #fff;
  padding: 3rem 0;
  border-radius: var(--radius-lg);
}

.cta-band h2 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ---- Product / price ---- */
.price-tag {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teal);
}

.price-breakdown {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
}

.price-breakdown .row {
  padding: 0.25rem 0;
}

.price-breakdown .total-row {
  border-top: 2px solid var(--surface-2);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

/* ---- Apply wizard ---- */
.apply-wizard {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.wizard-progress {
  background: linear-gradient(135deg, var(--royal) 0%, var(--navy) 100%);
  padding: 1.25rem 1.5rem;
}

.wizard-steps {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.wizard-step-dot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  opacity: 0.45;
  transition: opacity var(--transition);
}

.wizard-step-dot.active,
.wizard-step-dot.done {
  opacity: 1;
}

.wizard-step-dot .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.wizard-step-dot.active .dot {
  background: var(--teal);
  border-color: var(--teal-light);
}

.wizard-step-dot.done .dot {
  background: var(--royal);
  border-color: var(--royal-light);
}

.wizard-step-dot span {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  line-height: 1.2;
}

.wizard-body {
  padding: 2rem 1.75rem;
}

.wizard-pane {
  display: none;
}

.wizard-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.wizard-section {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.wizard-section:last-child,
.wizard-section.mb-0 {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

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

.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.selection-chip {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem;
  background: var(--surface);
  border: 2px solid var(--surface-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.selection-chip:hover {
  border-color: var(--royal);
  background: #fff;
}

.selection-chip.selected {
  border-color: var(--teal);
  background: rgba(28, 100, 242, 0.08);
  box-shadow: 0 0 0 3px rgba(28, 100, 242, 0.15);
}

.selection-chip strong {
  display: block;
  color: var(--text-heading);
  font-size: 0.9375rem;
  font-weight: 500;
}

.selection-chip small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.price-summary-box {
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.04), rgba(28, 100, 242, 0.10));
  border: 1px solid rgba(28, 100, 242, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 90px;
}

.price-summary-box.hidden {
  display: none !important;
}

.review-table td:first-child {
  color: var(--text-muted);
  width: 40%;
  font-size: 0.875rem;
}

/* ---- Tracking timeline ---- */
.status-timeline {
  position: relative;
  padding-left: 2rem;
}

.status-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--surface-2);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}

.timeline-item.current::before {
  background: var(--teal);
}

.timeline-item.done::before {
  background: var(--royal);
}

/* ---- Status badges ---- */
.badge-status {
  font-weight: 600;
  padding: 0.4em 0.75em;
  border-radius: 2rem;
  font-size: 0.75rem;
}

.badge-submitted { background: #dbeafe; color: #1e40af; }
.badge-pending { background: #fff3d6; color: #8a6400; }
.badge-processing { background: #e0e7ff; color: #0a2540; }
.badge-completed { background: #d4f5ef; color: #0f766e; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-cancelled { background: #eef2f7; color: #64748b; }

/* ---- Auth ---- */
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.auth-card .form-check-label {
  color: var(--text-heading) !important;
  font-size: var(--fs-small);
}

/* ---- Admin ---- */
.admin-body {
  background: #eef0f8;
}

body.admin-body .whatsapp-float {
  display: none;
}

.admin-subnav {
  background: #fff;
  border-bottom: 1px solid var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.admin-pills .nav-link {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 2rem;
  padding: 0.4rem 0.85rem;
}

.admin-pills .nav-link.active {
  background: var(--navy);
  color: #fff;
}

.wa-thread {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 520px;
  overflow-y: auto;
  padding: 0.25rem 0.15rem 0.75rem;
}

.wa-bubble {
  max-width: min(36rem, 88%);
  border-radius: 0.85rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.wa-bubble-in {
  background: #f0f4f8;
  align-self: flex-start;
}

.wa-bubble-out {
  background: #d9fdd3;
  align-self: flex-end;
}

.admin-main {
  padding-bottom: 4rem;
}

.admin-main .row.g-4,
.detail-stack.row {
  align-items: flex-start;
}

.admin-stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal);
}

.admin-stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
}

.admin-stat-card .stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-table-wrap .table {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.admin-table-wrap .table thead {
  background: linear-gradient(135deg, var(--royal) 0%, var(--navy) 100%);
  color: #fff;
}

.admin-table-wrap .table thead th {
  font-weight: 600;
  border: none;
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.admin-table-wrap .table tbody td {
  vertical-align: middle;
  padding: 0.75rem 1rem;
}

/* ---- FAQ accordion ---- */
.faq-accordion .accordion-button {
  font-weight: 500;
  color: var(--text-heading);
  font-family: var(--font-sans);
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(28, 100, 242, 0.08);
  color: var(--text-heading);
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(28, 100, 242, 0.2);
}

/* ---- Footer ---- */
main#main-content {
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 2.5rem;
  position: relative;
  z-index: auto;
  isolation: isolate;
}

.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  margin-top: auto;
  position: relative;
  z-index: auto;
  flex-shrink: 0;
  clear: both;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.875rem;
  display: block;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--teal-light);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- WhatsApp float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 1050;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

/* ---- Cookie banner (mobile-first, no overlap with WhatsApp) ---- */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1060;
  max-width: 720px;
  margin-inline: auto;
  background: rgba(10, 37, 64, 0.96);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.28);
  padding: 0.85rem 1rem;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.cookie-banner-text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.45rem;
}

.cookie-banner-actions .btn {
  min-height: 40px;
  white-space: nowrap;
}

body.has-cookie-banner {
  padding-bottom: 5.5rem;
}

body.has-cookie-banner .whatsapp-float {
  bottom: 7.5rem;
}

body.admin-body .cookie-banner {
  display: none !important;
}

.cookies-policy-card {
  max-width: 52rem;
  margin-inline: auto;
}

.cookies-list {
  padding-left: 1.15rem;
  margin-bottom: 0;
}

.cookies-list li + li {
  margin-top: 0.45rem;
}

/* ---- Real customer reviews ---- */
.review-stars {
  color: #f5b301;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.review-stars .fa-regular {
  color: #d1d5db;
}

.review-comment {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.review-summary-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: #fff8e8;
  border: 1px solid #f0d48a;
  border-radius: var(--radius-lg);
}

.review-summary-score {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
}

.review-form-card:hover,
.review-card:hover {
  transform: none;
}

.star-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.star-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-picker label {
  min-width: 52px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(10, 37, 64, 0.15);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--text-heading);
  font-weight: 600;
  cursor: pointer;
}

.star-picker label i {
  color: #f5b301;
}

.star-picker input:focus-visible + label {
  outline: 2px solid var(--royal);
  outline-offset: 2px;
}

.star-picker input:checked + label {
  background: #fff7e0;
  border-color: #f5b301;
  color: #9a3412;
}

@media (max-width: 767.98px) {
  .star-picker {
    width: 100%;
  }

  .star-picker label {
    flex: 1 1 calc(20% - 0.4rem);
    min-width: 0;
  }

  .review-summary-score {
    font-size: 1.85rem;
  }
}

.footer-legal {
  text-align: center;
}

/* ---- Token / product image placeholder ---- */
.img-placeholder {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  min-height: 160px;
}

.img-placeholder i {
  font-size: 3rem;
  opacity: 0.4;
}

/* ---- Form ---- */
.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-heading);
  font-family: var(--font-sans);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 0.2rem rgba(28, 100, 242, 0.2);
}

.hindi-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- Responsive: auto device layouts ---- */
@media (max-width: 767.98px) {
  .mobile-top-strip {
    display: block;
  }

  .hero-section {
    padding: 2.5rem 0 1.25rem;
    min-height: 0;
    background-image:
      linear-gradient(
        180deg,
        rgba(8, 20, 36, 0.55) 0%,
        rgba(10, 28, 48, 0.32) 50%,
        rgba(12, 32, 52, 0.12) 100%
      ),
      url("../images/uk-hero-mountains.jpg");
    background-position: center 30%;
  }

  .hero-section::after {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    margin: 1.5rem 0 0;
    aspect-ratio: 637 / 471;
    top: auto;
    right: auto;
    bottom: auto;
  }

  .site-logo {
    height: 44px;
    max-width: min(150px, 48vw);
  }

  .hero-banner-img {
    max-height: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.15rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 0.75rem 0.8rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1 1 0;
    min-height: 44px;
  }

  body.has-cookie-banner {
    padding-bottom: 11rem;
  }

  body.has-cookie-banner .whatsapp-float {
    bottom: 10.25rem;
    right: 16px;
  }

  body.has-cookie-banner:has(#applyWizard) .whatsapp-float {
    bottom: 12.75rem;
  }

  .feature-img-card,
  .feature-img-card img {
    min-height: 180px;
    height: 180px;
  }

  .hero-card {
    margin-top: 0.5rem;
  }

  .trust-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .wizard-body {
    padding: 1.25rem 1rem;
    padding-bottom: 5.5rem; /* room for sticky nav */
  }

  .wizard-progress {
    padding: 0.9rem 0.75rem;
  }

  .wizard-steps {
    justify-content: space-between;
    gap: 0.15rem;
    overflow-x: visible;
  }

  .wizard-step-dot {
    flex: 1 1 0;
    min-width: 0;
  }

  .wizard-step-dot .dot {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }

  .wizard-step-dot span {
    font-size: 0.55rem;
    letter-spacing: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wizard-section {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

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

  /* Category chips: keep readable full-width on very narrow screens */
  #chipsCategory.selection-grid {
    grid-template-columns: 1fr;
  }

  .selection-chip {
    padding: 0.7rem 0.65rem;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .selection-chip strong {
    font-size: 0.8125rem;
    line-height: 1.25;
  }

  .selection-chip small {
    font-size: 0.68rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .apply-wizard-nav {
    position: sticky;
    bottom: 0;
    z-index: 30;
    background: #fff;
    margin: 0 -1rem -1.25rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    border-top: 1px solid rgba(10, 37, 64, 0.1) !important;
    box-shadow: 0 -6px 18px rgba(10, 37, 64, 0.1);
  }

  .apply-wizard-nav .btn {
    min-height: 44px;
    font-size: 0.9rem;
  }

  /* Keep FAB clear of sticky wizard nav */
  body:has(#applyWizard) .whatsapp-float {
    bottom: 78px;
  }

  .price-summary-box:not(.hidden) {
    position: sticky;
    top: 0;
    z-index: 25;
    margin-bottom: 0.75rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 6px 18px rgba(10, 37, 64, 0.12);
  }

  .price-summary-box .price-breakdown {
    font-size: 0.8125rem;
  }

  #caDisclaimerModal .modal-dialog {
    margin: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  #caDisclaimerModal .modal-body {
    max-height: min(50vh, 320px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #caDisclaimerModal .modal-footer {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: 0.5rem;
  }

  #caDisclaimerModal .modal-footer .btn {
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  body.modal-open .whatsapp-float {
    display: none;
  }

  .section-padding {
    padding: 2.25rem 0;
  }

  .page-header {
    padding: 1.75rem 0;
  }

  .page-header h1 {
    font-size: 1.35rem;
  }

  .cta-band {
    padding: 2rem 1rem;
  }

  .review-table {
    font-size: 0.875rem;
  }

  .review-table td {
    word-break: break-word;
  }
}

@media (max-width: 1199.98px) {
  .site-navbar .navbar-collapse {
    background: var(--navy-light);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 0.75rem;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    z-index: 1040;
  }

  .site-navbar {
    z-index: 1030;
  }

  .site-navbar .navbar-nav .nav-link,
  .site-navbar .navbar-nav .btn {
    width: 100%;
    text-align: left;
  }
}

body.is-mobile .top-bar-left .me-3:not(:first-child) {
  display: none;
}

body.is-desktop .mobile-top-strip {
  display: none !important;
}

/* ---- Direct apply instructions ---- */
.direct-apply-page .card-premium:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.direct-wait-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: var(--radius-lg);
  color: #9a3412;
}

.direct-wait-banner i {
  margin-top: 0.2rem;
  font-size: 1.25rem;
  color: var(--teal);
}

.direct-wait-banner strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #7c2d12;
}

.direct-wait-banner span {
  display: block;
  font-size: 0.92rem;
}

.direct-partner-card {
  padding: 1.35rem 1.4rem;
  background: linear-gradient(135deg, #eef8ec 0%, #fff 55%);
  border: 2px solid #499936;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.direct-partner-kicker {
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #499936;
}

.direct-partner-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.direct-partner-id {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: #0a2540;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.direct-partner-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.direct-lang-badge {
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.15rem 0.5rem;
  background: rgba(28, 100, 242, 0.12);
  color: var(--royal);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.direct-lang-badge-en {
  background: rgba(73, 153, 54, 0.14);
  color: #2f7a22;
}

.direct-steps {
  margin: 0;
  padding-left: 1.15rem;
}

.direct-steps li + li {
  margin-top: 0.9rem;
}

.direct-field-preview {
  max-width: 520px;
}

.direct-preview-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
}

.direct-preview-input {
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #f8fafc;
}

.direct-continue .form-check-label {
  color: var(--text);
}

#directContinue.disabled {
  pointer-events: none;
  opacity: 0.65;
}

@media (max-width: 575.98px) {
  .direct-partner-id {
    font-size: 1.2rem;
  }

  .direct-continue .btn-lg {
    width: 100%;
  }
}

.idsign-check-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #499936;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.idsign-check-status:hover,
.idsign-check-status:focus {
  color: #2f6d22;
  text-decoration: underline;
}

.idsign-check-status--icon {
  font-size: 1.2rem;
}

.idsign-check-status--btn {
  padding: 0.4rem 0.75rem;
  border: 1px solid #499936;
  border-radius: 999px;
  background: #f3faf1;
}

.idsign-check-status--btn:hover,
.idsign-check-status--btn:focus {
  background: #e6f5e2;
  text-decoration: none;
}

.tracking-idsign-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tracking-idsign-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 0.25rem;
  background: #fff;
}

.tracking-idsign-field {
  position: relative;
}

.tracking-idsign-affix {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.tracking-idsign-input {
  padding-left: 2.7rem;
}

/* ---- Apply document capture ---- */
.doc-upload-card {
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
  height: 100%;
}

.doc-upload-preview {
  position: relative;
  min-height: 160px;
  border: 1px dashed rgba(10, 37, 64, 0.22);
  border-radius: 0.65rem;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.doc-upload-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.doc-upload-empty {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.doc-upload-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.doc-upload-actions .btn {
  flex: 1 1 140px;
  min-height: 44px;
}

.doc-camera-video {
  width: 100%;
  max-height: 55vh;
  background: #111;
  border-radius: 0.5rem;
  object-fit: cover;
}

.admin-doc-card {
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: 0.65rem;
  padding: 0.75rem;
  background: var(--surface);
}

.admin-doc-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.45rem;
  border: 1px solid rgba(10, 37, 64, 0.08);
  background: #fff;
}

@media (max-width: 767.98px) {
  .doc-upload-preview,
  .doc-upload-preview img {
    min-height: 200px;
    height: 200px;
  }

  .doc-upload-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
  }
}
