* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* Top Navigation */
.top-nav {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 8px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brazil-flag-img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.country-name {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

/* Ensure mobile buttons are hidden on desktop */
@media (min-width: 769px) {
  .mobile-menu-toggle,
  .action-bar-menu-toggle {
    display: none !important;
  }
  
  .nav-links {
    display: flex !important;
  }
  
  .action-item {
    display: flex !important;
  }
  
  /* Ensure spinner is visible on desktop */
  .loading-spinner,
  .loading-spinner[style*="display: flex"],
  .loading-spinner[style*="display:flex"],
  .loading-spinner.spinner-visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99999 !important;
    background: transparent !important;
  }
  
  .spinner-circle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .spinner-segment {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.nav-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #1976d2;
}

/* Header */
.header {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
  padding: 16px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ministry-logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.ministry-title {
  font-size: 28px;
  font-weight: 400;
  color: #333;
}

.header-right {
  display: flex;
  flex-direction: column; /* place font controls below language */
  align-items: flex-end;
  gap: 8px;
}

.language-selector { position: relative; color: #666; }
.language-selector .lang-trigger {
  background: none;
  border: 1px solid #ddd;
  color: #333;
  padding: 3px 6px; /* even smaller */
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px; /* tighter gap */
  cursor: pointer;
  font-size: 12px; /* shrink trigger text */
}
.language-selector .lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  list-style: none;
  padding: 3px 0; /* tighter */
  margin: 0;
  min-width: 160px; /* shorter menu */
  z-index: 1000;
}
.language-selector .lang-menu li {
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px; /* smaller text */
}
.language-selector .lang-menu li:hover {
  background: #f5f7fb;
}

.flag-icon {
  width: 14px;
  height: 10px;
  object-fit: cover;
  border-radius: 2px;
}

.current-lang-text { font-size: 12px; }

.dropdown-icon {
  color: #666;
}

.font-controls {
  display: flex;
  gap: 8px;
}

.font-btn {
  background: none;
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: #666;
  font-size: 12px;
  transition: all 0.2s;
}

.font-btn:hover {
  background-color: #f5f5f5;
  border-color: #1976d2;
  color: #1976d2;
}

/* Action Bar */
.action-bar {
  background-color: #1069cf; /* darker blue like the reference */
  color: white;
  padding: 10px 0; /* tighter */
}

.action-container {
  max-width: 960px; /* reduce side space */
  margin: 0 auto;
  display: flex;
  justify-content: center; /* keep group centered */
  gap: 44px; /* slightly tighter spacing */
  padding: 0 12px; /* smaller side padding */
}

.action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap; /* keep each option on one line */
  text-decoration: none; /* remove underline for links */
  color: white; /* ensure text color is white */
}

.action-item:hover {
  opacity: 0.8;
  color: white; /* maintain white on hover */
}

.action-icon {
  color: white;
}

/* Main Content */
.main-content {
  background: #ffffff;
  min-height: 400px;
  padding: 0 0 40px; /* remove top padding to eliminate white gap */
}

.page-title {
  /* Full-width banner styling to match reference */
  width: 100%;
  margin: 0;
  padding: 0 0 12px; /* remove top padding to eliminate gap */
  border-top: 0; /* remove blue strip to remove gap */
  background:
    linear-gradient(90deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.55) 100%),
    url('assets/auth-header.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.25);
}

.page-title h2 {
  color: #a4d246; /* vivid green similar to screenshot */
  font-size: 26px; /* tighter */
  font-weight: 400;
  letter-spacing: 2px;
  max-width: 1200px;
  padding: 2px 20px; /* tighter vertical padding */
  margin: 0 auto; /* center the content block while keeping left-aligned text */
}

/* Error banner between title and recovery section */
.error-banner {
  max-width: 780px; /* narrower so text does not float */
  margin: 8px auto 12px;
  padding: 12px 18px;
  background: #b71c1c; /* deeper red */
  border: 1px solid #8e0e0e;
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  flex-wrap: nowrap; /* keep on one line */
  justify-content: center; /* center align content */
  align-items: center;
  gap: 12px;
  text-align: center;
  white-space: nowrap; /* prevent wrapping between icon and text */
}

.error-banner .err-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
}

.error-banner .err-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  color: #ffffff; /* white icon */
}

.error-banner span,
.error-banner span:last-child,
.error-banner .err-text {
  line-height: 1; /* align vertically with icon */
  display: inline-block;
  vertical-align: middle;
}

/* ensure icon-box is perfectly centered with text */
.error-banner .err-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.verification-container {
  width: 100%;
  max-width: none; /* let it span full width */
  margin: 0; /* remove centering margins */
  padding: 0; /* remove side padding so it runs edge-to-edge */
}

.verification-card {
  background: white;
  border-radius: 0; /* full-bleed section */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-header {
  background-color: #ffffff; /* white header background */
  color: #1976d2; /* blue text */
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 3px solid #1976d2; /* blue bottom border */
}

.expand-icon {
  color: #ffffff; /* white icon */
  background-color: #1976d2; /* blue circular background */
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transform: rotate(180deg);
}

.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.form-content {
  padding: 32px 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.required {
  color: #d32f2f;
}

.help-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 0;
  display: flex;
  align-items: center;
}

.help-btn:hover {
  color: #1976d2;
}

.form-input {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.2s;
  background-color: #f9f9f9;
}

.form-input:focus {
  outline: none;
  border-color: #1976d2;
  background-color: white;
}

/* Accessibility Floating Button - Two Hands Icon */
.accessibility-floating-btn {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(calc(-50% - 60px)); /* Offset above captcha icon */
  z-index: 1001;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  cursor: default;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none; /* Make it non-interactive */
  visibility: visible !important;
  padding: 2px;
  border-radius: 4px; /* Square container with slight rounding */
  background-color: #1976d2;
  line-height: 0;
  /* Match captcha container size */
  min-width: 44px;
  min-height: 44px;
  width: fit-content;
  height: fit-content;
}

.accessibility-floating-btn .floating-icon-img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /* Match the size of captcha icon - constrain to same dimensions */
  max-width: 40px;
  max-height: 40px;
  width: 40px;
  height: 40px;
}

/* hCaptcha Container - Pixelated Background */
.hcaptcha-container {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%); /* Centered, accessibility icon is above */
  z-index: 1000;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  border-radius: 25px;
  padding: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  visibility: visible !important;
  line-height: 0;
  /* Match accessibility button size */
  min-width: 44px;
  min-height: 44px;
  width: fit-content;
  height: fit-content;
  
  /* Pixelated/mosaic background effect */
  background-color: #b3e5fc;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 5px,
      rgba(144, 202, 249, 0.5) 5px,
      rgba(144, 202, 249, 0.5) 10px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 5px,
      rgba(179, 229, 252, 0.5) 5px,
      rgba(179, 229, 252, 0.5) 10px
    );
  background-size: 10px 10px;
}

.hcaptcha-container .captcha-icon-img {
  position: relative;
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  z-index: 10;
  pointer-events: none;
  display: block;
  /* Match the size of accessibility icon */
}

.hcaptcha-container #hcaptcha-widget {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  /* Allow widget to load but keep it invisible and off-screen */
}

/* Allow hCaptcha widget to load but keep it visually hidden - invisible size handles this */
.hcaptcha-container .hcaptcha {
  /* With size: 'invisible', hCaptcha handles hiding - minimal CSS needed */
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* Hide hCaptcha iframes but allow them to load */
.hcaptcha-container .hcaptcha iframe,
.hcaptcha-container #hcaptcha-widget iframe {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  border: none !important;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.btn-secondary {
  background-color: white; /* white background */
  border: 2px solid #1976d2; /* blue border */
  color: #1976d2; /* blue text */
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s; /* only transition opacity */
  text-decoration: none; /* remove underline for links */
  display: inline-block; /* allow link to work like button */
  opacity: 1; /* fully opaque by default */
}

.btn-secondary:hover {
  opacity: 0.8; /* lighten up on hover */
  background-color: white; /* maintain white background */
  color: #1976d2; /* maintain blue text */
  border-color: #1976d2; /* maintain blue border */
}

.btn-primary {
  background-color: #1976d2;
  border: 2px solid #1976d2;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s; /* only transition opacity */
  opacity: 1; /* fully opaque by default */
  min-width: 200px; /* prevent width changes when text changes */
  box-sizing: border-box; /* include padding and border in width */
  text-align: center; /* center text to prevent visual shifts */
  display: inline-block; /* allow min-width to work */
}

.btn-primary:hover {
  opacity: 0.8; /* lighten up on hover */
  background-color: #1976d2; /* maintain blue background */
  border-color: #1976d2; /* maintain blue border */
  color: white; /* maintain white text */
}

.btn-primary:disabled {
  opacity: 0.8; /* slightly faded when disabled */
  cursor: not-allowed;
  /* no other changes to prevent jumping */
}

/* Search Results */
.search-results {
  padding: 24px 24px 0;
}

.sr-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1976d2;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(25, 118, 210, 0.35);
}

.sr-header h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
}

.sr-icon {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  background-color: #1976d2;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sr-row {
  display: none; /* Hidden by default, only shown when image is fetched */
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(25, 118, 210, 0.2);
}

/* Show sr-row when it should be visible (when image is loaded) */
.sr-row[style*="display: flex"],
.sr-row[style*="display:flex"],
.sr-row[style*="display: grid"] {
  display: grid !important;
}

.sr-label {
  color: #1976d2;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.sr-value {
  color: #5f6368;
}

.sr-image {
  padding: 16px 0 24px;
  display: flex;
  justify-content: center; /* center the A4 image */
}

.sr-image {
  position: relative;
}

.sr-image img {
  width: 100%; /* fill available content width */
  max-width: 100%;
  height: auto; /* preserve intrinsic aspect ratio */
  display: block;
  object-fit: contain;
  background: white;
  border: 1px solid rgba(25, 118, 210, 0.3);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Full-page view styles */
body.full-page-view {
  overflow-x: hidden;
  overflow-y: auto !important;
}

body.full-page-view .main-content {
  padding: 0 !important;
  margin: 0 !important;
  background: #f5f5f5;
  min-height: 100vh;
}

body.full-page-view .search-results {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body.full-page-view .sr-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0;
  padding: 16px 24px;
}

body.full-page-view .sr-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.full-page-view .sr-image {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  background: #f5f5f5;
  min-height: calc(100vh - 80px);
}

body.full-page-view .sr-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: calc(100vh - 80px);
  object-fit: contain;
  object-position: center top;
  border: none;
  display: block;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}


/* Footer */
.footer {
  background-color: #1976d2;
  color: white;
  padding: 16px 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-content p {
  font-size: 12px;
  opacity: 0.9;
}

/* Dark mode overrides */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}
body.dark-mode .header { background-color: #1e1e1e; border-bottom-color: #2a2a2a; }
body.dark-mode .verification-card { background: #1e1e1e; box-shadow: 0 4px 12px rgba(0,0,0,0.6); }
body.dark-mode .card-header { background: #1e1e1e; color: #90caf9; border-bottom-color: #1976d2; }
body.dark-mode .form-input { background-color: #222; border-color: #444; color: #e0e0e0; }
body.dark-mode .btn-secondary { border-color: #bbb; color: #ddd; }
body.dark-mode .btn-secondary:hover { background-color: #2a2a2a; }
body.dark-mode .footer { background-color: #0f4fa6; }


/* Mobile Navigation Buttons */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #333;
}

.action-bar-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Top Navigation - Mobile */
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
  }

  .nav-container {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #e0e0e0;
    width: 100%;
  }

  .nav-links.mobile-menu-open {
    display: flex !important;
  }

  .nav-links .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
  }

  .nav-links .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-left {
    gap: 8px;
  }

  .country-name {
    font-size: 14px;
    font-weight: 600;
  }

  /* Header - Mobile */
  .header-container {
    flex-direction: row;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }

  .header-left {
    flex: 1;
    gap: 12px;
    align-items: center;
  }

  .ministry-logo-img {
    height: 48px;
    width: auto;
  }

  .ministry-title {
    font-size: 16px;
    font-weight: 400;
    color: #1976d2;
    margin: 0;
  }

  .header-right {
    align-items: flex-end;
    gap: 8px;
  }

  .language-selector {
    width: auto;
  }

  .lang-trigger {
    font-size: 14px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: white;
  }

  .font-controls {
    gap: 4px;
  }

  .font-btn {
    font-size: 12px;
    padding: 6px 10px;
    border: 1px solid #ddd;
  }

  /* Action Bar - Mobile */
  .action-bar {
    padding: 12px 16px;
  }

  .action-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
  }

  .action-bar-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .action-item {
    display: none;
  }

  .mobile-action-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1069cf;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-action-menu.mobile-menu-open,
  .mobile-action-menu[style*="flex"] {
    display: flex !important;
  }

  .mobile-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-action-item:last-child {
    border-bottom: none;
  }

  .mobile-action-item:hover,
  .mobile-action-item:active {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .mobile-action-item .action-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

.mobile-action-item span {
  color: white;
  font-weight: 500;
}

/* Loading Spinner Styles */
.loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  background: transparent;
  padding: 30px 40px;
  border-radius: 12px;
  pointer-events: none;
  width: auto;
  height: auto;
  /* Ensure visibility on all screen sizes */
  visibility: visible;
  opacity: 1;
}

/* Force visibility when spinner should be shown */
.loading-spinner.spinner-visible,
.loading-spinner[style*="display: flex"],
.loading-spinner[style*="display:flex"],
.loading-spinner[style*="display:flex!important"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 99999 !important;
  background: transparent !important;
}

/* Ensure spinner segments are always visible when spinner is shown */
.loading-spinner.spinner-visible .spinner-circle,
.loading-spinner[style*="display: flex"] .spinner-circle,
.loading-spinner[style*="display:flex"] .spinner-circle {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.loading-spinner.spinner-visible .spinner-segment,
.loading-spinner[style*="display: flex"] .spinner-segment,
.loading-spinner[style*="display:flex"] .spinner-segment {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.spinner-circle {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0;
  /* Smooth rotation animation */
  animation: spinner-rotate 1.2s linear infinite;
  /* Ensure spinner is visible on all screen sizes */
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  transform-origin: center center;
  will-change: transform;
}

.spinner-segment {
  position: absolute;
  width: 6px;
  height: 20px;
  border-radius: 3px;
  top: 50%;
  left: 50%;
  margin-left: -3px;
  margin-top: -10px;
  transform-origin: 3px 30px;
  /* Ensure segments are visible on all screen sizes */
  visibility: visible !important;
  display: block !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Create 12 segments with gradient from light gray to dark gray */
.spinner-segment:nth-child(1) {
  transform: rotate(0deg) translateY(-25px);
  background: #d0d0d0;
  opacity: 0.4;
}

.spinner-segment:nth-child(2) {
  transform: rotate(30deg) translateY(-25px);
  background: #c0c0c0;
  opacity: 0.5;
}

.spinner-segment:nth-child(3) {
  transform: rotate(60deg) translateY(-25px);
  background: #b0b0b0;
  opacity: 0.6;
}

.spinner-segment:nth-child(4) {
  transform: rotate(90deg) translateY(-25px);
  background: #a0a0a0;
  opacity: 0.7;
}

.spinner-segment:nth-child(5) {
  transform: rotate(120deg) translateY(-25px);
  background: #909090;
  opacity: 0.8;
}

.spinner-segment:nth-child(6) {
  transform: rotate(150deg) translateY(-25px);
  background: #808080;
  opacity: 0.9;
}

.spinner-segment:nth-child(7) {
  transform: rotate(180deg) translateY(-25px);
  background: #707070;
  opacity: 1;
}

.spinner-segment:nth-child(8) {
  transform: rotate(210deg) translateY(-25px);
  background: #606060;
  opacity: 1;
}

.spinner-segment:nth-child(9) {
  transform: rotate(240deg) translateY(-25px);
  background: #505050;
  opacity: 1;
}

.spinner-segment:nth-child(10) {
  transform: rotate(270deg) translateY(-25px);
  background: #404040;
  opacity: 1;
}

.spinner-segment:nth-child(11) {
  transform: rotate(300deg) translateY(-25px);
  background: #606060;
  opacity: 1;
}

.spinner-segment:nth-child(12) {
  transform: rotate(330deg) translateY(-25px);
  background: #707070;
  opacity: 0.9;
}

@keyframes spinner-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hide spinner text */
.spinner-text {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

  /* Page Title - Mobile */
  .page-title {
    padding: 0;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: auto;
  }

  .page-title h2 {
    font-size: 16px;
    padding: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    letter-spacing: 1px;
  }

  /* Recovery Data Header - Mobile */
  .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-bottom: 2px solid #1976d2;
    width: 100%;
  }

  .expand-icon {
    color: #1976d2;
    width: 16px;
    height: 16px;
    background: none;
    transform: rotate(0deg);
  }

  .card-header h3 {
    color: #1976d2;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    flex: 1;
  }

  /* Form Content - Mobile */
  .verification-container {
    padding: 0;
  }

  .verification-card {
    margin: 0;
    border-radius: 0;
  }

  .form-content {
    padding: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-group label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .form-input {
    padding: 12px;
    font-size: 16px;
  }

  .form-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .btn-secondary,
  .btn-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
  }

  /* Search Results - Mobile */
  .search-results {
    padding: 16px;
  }

}

@media (max-width: 480px) {
  .verification-container {
    padding: 0 12px;
  }

  .form-content {
    padding: 24px 16px;
  }

  .page-title {
    padding: 0 12px 24px;
  }

  .page-title h2 {
    font-size: 24px;
  }
}

/* PDF modal styles removed (image-only flow) */

/* Anti-inspection measures - Make it harder to inspect elements */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection for input fields and text areas */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Disable text selection highlighting */
::selection {
  background: transparent;
}

::-moz-selection {
  background: transparent;
}
