/* [Firm Name] — Premium Modular Preloader Style */

:root {
  --pr-primary: #1a3c6e;
  --pr-secondary: #2c5282;
  --pr-accent: #c8a45a;
  --pr-light: #f7f8fc;
  --pr-white: #ffffff;
  --pr-border: #e2e8f0;
  --pr-text: #2d3748;
}

/* Fullscreen Overlay Container */
#preloader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--pr-white);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
  will-change: opacity, transform, filter;
}

/* High-End Exit Transition (Scale Up + Blur Out + Fade Out) */
#preloader-container.preloader-exit {
  opacity: 0;
  transform: scale(1.025);
  filter: blur(16px);
  visibility: hidden;
  pointer-events: none;
}

/* Top Progress Indicator Bar */
.preloader-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(26, 60, 110, 0.05);
  z-index: 100000;
}
.preloader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pr-accent) 0%, var(--pr-primary) 50%, var(--pr-secondary) 100%);
  box-shadow: 0 0 10px rgba(200, 164, 90, 0.6);
  transition: width 0.1s linear;
}

/* ── Central Brand Reveal ── */
.preloader-brand-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  text-align: center;
  padding: 40px;
  max-width: 460px;
  z-index: 10;
  animation: subtleFloat 3s ease-in-out infinite;
}

.brand-emblem-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glowing gold aura behind the brand logo */
.brand-emblem-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, rgba(200, 164, 90, 0.25) 0%, rgba(200, 164, 90, 0) 70%);
  border-radius: 50%;
  filter: blur(4px);
  animation: pulseGlow 2s ease-in-out infinite;
}

.brand-emblem-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--pr-primary) 0%, #0f2447 100%);
  border: 2px solid var(--pr-accent);
  color: var(--pr-accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(26, 60, 110, 0.18);
  position: relative;
  z-index: 2;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--pr-primary);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--pr-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

/* Dynamic Ticker Loader Text */
.preloader-ticker-box {
  height: 20px;
  overflow: hidden;
  position: relative;
  width: 260px;
}
.preloader-ticker-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pr-secondary);
  opacity: 0;
  transform: translateY(8px);
  position: absolute;
  left: 0;
  right: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.preloader-ticker-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Fullscreen Skeleton Template ── */
.preloader-skeleton-root {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.28;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* Header Skeleton */
.sk-header {
  background: var(--pr-primary);
  height: 68px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sk-logo-placeholder {
  width: 170px;
  height: 20px;
  border-radius: 4px;
}
.sk-btn-placeholder {
  width: 110px;
  height: 34px;
  border-radius: 7px;
}

/* Hero Section Skeleton */
.sk-hero {
  background: linear-gradient(135deg, var(--pr-primary) 0%, #0f2447 55%, #1a3c6e 100%);
  padding: 90px 60px;
  height: 380px;
}
.sk-hero-badge {
  width: 190px;
  height: 24px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.sk-hero-title1 {
  width: 340px;
  height: 36px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.sk-hero-title2 {
  width: 270px;
  height: 36px;
  border-radius: 6px;
  margin-bottom: 24px;
}
.sk-hero-para1 {
  width: 520px;
  height: 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.sk-hero-para2 {
  width: 440px;
  height: 10px;
  border-radius: 3px;
  margin-bottom: 36px;
}
.sk-hero-ctas {
  display: flex;
  gap: 14px;
}
.sk-hero-cta1 {
  width: 160px;
  height: 42px;
  border-radius: 8px;
}
.sk-hero-cta2 {
  width: 100px;
  height: 14px;
  margin-top: 14px;
  border-radius: 3px;
}

/* Trust Bar Skeleton */
.sk-trust-bar {
  background: var(--pr-accent);
  height: 48px;
  padding: 0 60px;
  display: flex;
  justify-content: center;
  gap: 50px;
  align-items: center;
}
.sk-trust-item {
  width: 140px;
  height: 12px;
  border-radius: 3px;
}

/* About Section Skeleton */
.sk-about-section {
  padding: 70px 60px;
  display: flex;
  gap: 60px;
  align-items: center;
  background: var(--pr-white);
  flex: 1;
}
.sk-about-text {
  flex: 1;
}
.sk-about-title {
  width: 270px;
  height: 24px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.sk-about-para {
  height: 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  width: 100%;
}
.sk-about-highlights {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}
.sk-hl-item {
  width: 75px;
  height: 38px;
  border-radius: 6px;
  background: var(--pr-light);
}
.sk-about-card {
  flex: 1;
  background: var(--pr-light);
  border-radius: 14px;
  padding: 32px;
  height: 300px;
  border: 1px solid var(--pr-border);
}
.sk-card-title {
  width: 150px;
  height: 14px;
  border-radius: 3px;
  margin-bottom: 24px;
}
.sk-card-item {
  height: 10px;
  border-radius: 3px;
  margin-bottom: 14px;
  width: 90%;
}

/* ── Shimmer Effects ── */
.sk-shimmer {
  background-size: 200% 100%;
  animation: skShimmerSweep 1.6s infinite linear;
}

/* Shimmer variations depending on background color */
.sk-shimmer-light {
  background-image: linear-gradient(90deg, #e2e8f0 25%, #edf2f7 50%, #e2e8f0 75%);
}
.sk-shimmer-dark {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 75%);
}
.sk-shimmer-gold {
  background-image: linear-gradient(90deg, rgba(200, 164, 90, 0.1) 25%, rgba(200, 164, 90, 0.22) 50%, rgba(200, 164, 90, 0.1) 75%);
}
.sk-shimmer-accent {
  background-image: linear-gradient(90deg, rgba(26, 60, 110, 0.08) 25%, rgba(26, 60, 110, 0.18) 50%, rgba(26, 60, 110, 0.08) 75%);
}

@keyframes skShimmerSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; filter: blur(6px); }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Responsive Overrides */
@media (max-width: 780px) {
  .sk-header { padding: 0 20px; }
  .sk-hero { padding: 40px 20px; height: auto; }
  .sk-hero-para1, .sk-hero-para2 { width: 100%; }
  .sk-trust-bar { padding: 10px; height: auto; flex-wrap: wrap; gap: 12px; }
  .sk-about-section { padding: 40px 20px; flex-direction: column; gap: 30px; }
  .sk-about-highlights { justify-content: space-between; }
  .sk-about-card { width: 100%; }
  .preloader-brand-reveal { padding: 20px; }
}

/* ── Acknowledgement & Disclaimer Modal ── */

body.disclaimer-locked {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100svh !important;
}

.disclaimer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.85); /* Deep navy base overlay */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  box-sizing: border-box;
}

.disclaimer-overlay.disclaimer-visible {
  opacity: 1;
  visibility: visible;
}

.disclaimer-card {
  background: rgba(15, 36, 71, 0.85); /* Deep navy glassmorphism card */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(200, 164, 90, 0.25); /* Muted gold border */
  border-top: 4px solid var(--pr-accent, #c8a45a); /* Premium top-highlight border */
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55),
              inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  max-width: 850px;
  width: 100%;
  border-radius: 24px;
  padding: 40px;
  box-sizing: border-box;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.disclaimer-overlay.disclaimer-visible .disclaimer-card {
  transform: scale(1) translateY(0);
}

.disclaimer-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pr-accent, #c8a45a); /* Muted Gold Accent */
  margin: 0;
  letter-spacing: 0.5px;
  text-align: center;
  position: relative;
  padding-bottom: 8px;
}

/* Subtle gold divider */
.disclaimer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--pr-accent, #c8a45a);
  border-radius: 2px;
  opacity: 0.8;
}

.disclaimer-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-height: 240px;
  overflow-y: auto;
  padding-right: 14px;
}

.disclaimer-body p {
  margin-bottom: 16px;
}

.disclaimer-body p:last-child {
  margin-bottom: 0;
}

/* Custom scrollbar for disclaimer text */
.disclaimer-body::-webkit-scrollbar {
  width: 6px;
}

.disclaimer-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.disclaimer-body::-webkit-scrollbar-thumb {
  background: rgba(200, 164, 90, 0.35);
  border-radius: 3px;
}

.disclaimer-body::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 164, 90, 0.55);
}

.disclaimer-error {
  background: rgba(197, 48, 48, 0.15);
  border: 1px solid rgba(197, 48, 48, 0.4);
  color: #feb2b2;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shake 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.disclaimer-consent {
  margin: 6px 0;
}

.disclaimer-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.9);
}

.disclaimer-checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.disclaimer-custom-checkbox {
  flex-shrink: 0;
  height: 20px;
  width: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 164, 90, 0.45);
  border-radius: 5px;
  margin-right: 12px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.disclaimer-checkbox-label:hover .disclaimer-custom-checkbox {
  border-color: var(--pr-accent, #c8a45a);
  background: rgba(200, 164, 90, 0.1);
  box-shadow: 0 0 8px rgba(200, 164, 90, 0.2);
}

.disclaimer-checkbox-label input:checked ~ .disclaimer-custom-checkbox {
  background: var(--pr-accent, #c8a45a);
  border-color: var(--pr-accent, #c8a45a);
  box-shadow: 0 0 10px rgba(200, 164, 90, 0.4);
}

.disclaimer-custom-checkbox::after {
  content: "";
  display: none;
  width: 4px;
  height: 9px;
  border: solid #0f2447;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.disclaimer-checkbox-label input:checked ~ .disclaimer-custom-checkbox::after {
  display: block;
}

.disclaimer-checkbox-text {
  line-height: 1.45;
}

.disclaimer-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
}

.disclaimer-btn {
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  font-family: inherit;
}

.disclaimer-btn.btn-primary {
  background: var(--pr-accent, #c8a45a);
  color: #1a3c6e;
}

.disclaimer-btn.btn-primary:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 164, 90, 0.35);
}

.disclaimer-btn.btn-primary:disabled {
  background: rgba(200, 164, 90, 0.22);
  color: rgba(255, 255, 255, 0.35);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.disclaimer-btn.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
}

.disclaimer-btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

/* Responsiveness */
@media (max-width: 576px) {
  .disclaimer-card {
    padding: 28px 24px;
    width: 95%;
    border-radius: 20px;
    gap: 20px;
  }
  
  .disclaimer-title {
    font-size: 1.45rem;
  }
  
  .disclaimer-body {
    font-size: 0.88rem;
    max-height: 200px;
  }
  
  .disclaimer-checkbox-text {
    font-size: 0.88rem;
  }
  
  .disclaimer-buttons {
    flex-direction: column-reverse; /* Stacks vertically with disagree on bottom, agree on top */
    gap: 12px;
    margin-top: 4px;
  }
  
  .disclaimer-btn {
    width: 100%;
    text-align: center;
    padding: 14px;
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  .disclaimer-card {
    max-width: 680px;
    padding: 36px;
  }
}



