/* Vedic Sanatan Spiritual Theme Styles for SSJST Portal */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Noto+Sans+Devanagari:wght@300;400;500;600;700;800&family=Noto+Serif+Devanagari:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --maroon-dark: #3a0f0f;
  --maroon-deep: #250606;
  --saffron-primary: #c85a04;
  --saffron-deep: #984800;
  --saffron-light: #e8730c;
  --gold-primary: #d4af37;
  --gold-light: #ffd9a0;
  --gold-muted: #bd8b20;
  --parchment-bg: #fff8ee;
  --parchment-card: #fff6e8;
  --parchment-border: #f0dcc0;
  --surface-white: #ffffff;
  --text-dark: #301408;
  --text-muted: #7a5a48;
}

/* Cross-Platform Typography & Rendering (Mac, Windows, iOS, Android) */
html {
  scroll-behavior: smooth;
  font-family: 'Noto Sans Devanagari', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  background-color: var(--parchment-bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.65;
  width: 100%;
  position: relative;
}

/* Devanagari Headings with Fluid Clamps for Mobile, Windows, Mac */
h1, h2, h3, h4, .font-serif-dev {
  font-family: 'Noto Serif Devanagari', 'Cinzel', 'Georgia', serif;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-feature-settings: "kern" 1;
}

h1 {
  font-size: clamp(1.75rem, 3.2vw + 0.8rem, 3.25rem);
}
h2 {
  font-size: clamp(1.35rem, 2.2vw + 0.6rem, 2.35rem);
}
h3 {
  font-size: clamp(1.15rem, 1.5vw + 0.4rem, 1.75rem);
}
h4 {
  font-size: clamp(1rem, 1vw + 0.3rem, 1.35rem);
}

/* Touch Targets & Form Inputs across mobile and desktops */
input, select, textarea, button {
  font-family: inherit;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
  min-height: 44px;
  font-size: 15px; /* Avoids iOS Safari auto-zoom on mobile inputs */
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--saffron-light);
  box-shadow: 0 0 0 3px rgba(232, 115, 12, 0.2);
}

/* Windows & Webkit custom themed scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #fff6ee;
}
::-webkit-scrollbar-thumb {
  background: #e8730c;
  border-radius: 8px;
  border: 2px solid #fff6ee;
}
::-webkit-scrollbar-thumb:hover {
  background: #b44a04;
}

/* Sacred Glows & Ornamental Accents */
.gold-glow {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
}
.saffron-glow {
  box-shadow: 0 4px 20px rgba(232, 115, 12, 0.25);
}
.sacred-border {
  border: 1px solid var(--parchment-border);
}

/* Sacred Temple Aura Pulse */
@keyframes sacredPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.95;
  }
}
.animate-sacred-pulse {
  animation: sacredPulse 4s ease-in-out infinite;
}

/* Tilak Pattern / Vedic Background overlay */
.vedic-pattern-bg {
  background-color: #fff9f2;
  background-image: radial-gradient(#dec1b0 0.75px, transparent 0.75px), radial-gradient(#dec1b0 0.75px, #fff9f2 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

.vedic-dark-pattern {
  background-color: #340c0c;
  background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Shloka Typography */
.shloka-box {
  background: linear-gradient(135deg, #fffaf3 0%, #fff3e2 100%);
  border-left: 4px solid #c85a04;
  border-right: 1px solid #f0dcc0;
  border-top: 1px solid #f0dcc0;
  border-bottom: 1px solid #f0dcc0;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 2px 8px rgba(200, 90, 4, 0.05);
}

/* Uniform Card Alignment and Hover Interactions */
.tier-card, .prakalp-card, .gallery-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
  will-change: transform, box-shadow;
}

.tier-card:hover, .prakalp-card:hover, .gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(58, 15, 15, 0.09);
}

.tier-card:active {
  transform: scale(0.99);
}

.tier-card.active-tier {
  border-color: #c85a04 !important;
  background: #fff3ec !important;
  box-shadow: 0 6px 20px rgba(200, 90, 4, 0.18) !important;
}

/* Glassmorphism Cards */
.glass-gold-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(240, 220, 192, 0.9);
  box-shadow: 0 4px 20px rgba(58, 15, 15, 0.05);
}

.sacred-gold-frame {
  position: relative;
  border: 2px solid #ffd9a0;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2), 0 10px 30px rgba(58, 15, 15, 0.15);
}

/* Responsive Image Containers */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive ID Card formatting */
#printableIdCardSection {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 480px) {
  #printableIdCardSection {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Interactive transitions for language buttons */
.lang-btn-hi, .lang-btn-en {
  user-select: none;
  touch-action: manipulation;
}

/* Print Specific Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #printableReceipt, #printableReceipt *,
  #printableIdCardSection, #printableIdCardSection * {
    visibility: visible;
  }
  #printableReceipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: white !important;
    border: none !important;
    box-shadow: none !important;
  }
  #printableIdCardSection {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: none !important;
    border: 2px solid #bd8b20 !important;
  }
  .no-print {
    display: none !important;
  }
}
