/* =========================================================
   Shree Yantra Booking Form Stylesheet
   Theme: Sacred Royal Gold & Crimson Devotional Aesthetic
   ========================================================= */

:root {
  --bg-primary: #0d0905;
  --bg-surface: rgba(26, 18, 12, 0.88);
  --bg-card: rgba(38, 25, 17, 0.7);
  --bg-card-hover: rgba(54, 34, 21, 0.85);
  --bg-card-active: rgba(69, 40, 18, 0.95);
  
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --gold-gradient: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #b45309 100%);
  --gold-glow: rgba(245, 158, 11, 0.28);

  --saffron-500: #ea580c;
  --saffron-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);

  --crimson-accent: #e11d48;
  --text-main: #fdfaf3;
  --text-muted: #d6cbbf;
  --text-dim: #9c8e7e;

  --border-subtle: rgba(217, 119, 6, 0.25);
  --border-highlight: rgba(251, 191, 36, 0.65);
  --border-active: #f59e0b;

  --error-color: #fb7185;
  --success-color: #34d399;

  --font-gujarati: 'Hind Vadodara', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-gujarati);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 16px;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Atmospheric Glow & Mandala Geometry */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(circle at 50% 10%, rgba(217, 119, 6, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(180, 83, 9, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(234, 88, 12, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, #150f09 0%, #0d0905 100%);
  pointer-events: none;
}

.bg-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(var(--gold-400) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Main Container */
.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.6s ease-out;
}

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

/* Header Styling */
.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.spiritual-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  color: var(--gold-400);
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.45));
  animation: gentlePulse 4s ease-in-out infinite;
}

.yantra-icon {
  width: 100%;
  height: 100%;
}

@keyframes gentlePulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.4));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 24px rgba(245, 158, 11, 0.65));
  }
}

.header-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--gold-300);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 10px;
}

.main-title {
  font-family: var(--font-gujarati);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 10%, #fde68a 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

/* Card Styling with Golden Glassmorphism */
.card {
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 
    0 20px 45px -10px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(251, 191, 36, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

/* Form Groups */
.input-group {
  margin-bottom: 22px;
}

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.label-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--gold-100);
}

.label-hint {
  font-size: 0.8rem;
  font-family: var(--font-sans);
  color: var(--text-dim);
}

.required-star {
  color: var(--error-color);
  font-weight: bold;
}

.optional-tag {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: normal;
}

/* Inputs */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(18, 12, 8, 0.7);
  border: 1.5px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.input-wrapper:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(22, 14, 9, 0.85);
}

.input-wrapper:focus-within {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
  background: rgba(25, 16, 10, 0.95);
}

.input-icon, .country-prefix {
  padding: 0 14px;
  color: var(--gold-400);
  font-size: 1rem;
  user-select: none;
}

.country-prefix {
  font-family: var(--font-sans);
  font-weight: 600;
  border-right: 1px solid rgba(217, 119, 6, 0.25);
  padding-right: 12px;
  margin-right: 4px;
}

.input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 13px 14px 13px 0;
  font-family: var(--font-gujarati);
  font-size: 0.98rem;
  color: #fff;
}

.input-wrapper input::placeholder {
  color: #7d7063;
  font-size: 0.9rem;
}

.input-group.has-error .input-wrapper {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.15);
}

.error-msg {
  display: none;
  color: var(--error-color);
  font-size: 0.82rem;
  margin-top: 6px;
  padding-left: 4px;
}

.input-group.has-error .error-msg {
  display: block;
}

/* Yantra Options Cards (New vs Old) */
.yantra-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .yantra-options {
    grid-template-columns: 1fr;
  }
}

.option-card {
  position: relative;
  cursor: pointer;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  transition: all var(--transition-fast);
  user-select: none;
  display: block;
}

.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.option-card.active {
  background: var(--bg-card-active);
  border-color: var(--gold-400);
  box-shadow: 
    0 8px 24px -6px rgba(245, 158, 11, 0.35),
    inset 0 0 0 1px rgba(251, 191, 36, 0.4);
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gold-600);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.option-card.active .radio-indicator {
  border-color: var(--gold-400);
  background: var(--gold-500);
}

.option-card.active .radio-indicator::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.tag-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.new-badge {
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-300);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.old-badge {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.option-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.option-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
  min-height: 40px;
  margin-bottom: 12px;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(217, 119, 6, 0.18);
}

.price-currency {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-400);
}

.price-val {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.price-guj {
  font-size: 0.85rem;
  color: var(--gold-200);
  margin-left: 4px;
}

/* Summary Box */
.summary-box {
  background: rgba(15, 10, 6, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.summary-label {
  color: var(--text-muted);
}

.summary-value {
  color: #fff;
  font-weight: 600;
}

.summary-divider {
  height: 1px;
  background: rgba(217, 119, 6, 0.2);
  margin: 12px 0;
}

.total-row {
  align-items: baseline;
}

.total-label {
  font-weight: 600;
  color: var(--gold-200);
  font-size: 1rem;
}

.total-amount-wrapper {
  text-align: right;
}

.total-amount {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gold-300);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  line-height: 1.1;
}

.total-amount-guj {
  font-size: 0.82rem;
  color: var(--gold-200);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: #2b1103;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-family: var(--font-gujarati);
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 8px 24px -4px rgba(217, 119, 6, 0.45);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(245, 158, 11, 0.6);
  filter: brightness(1.08);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 3, 2, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: all var(--transition-fast);
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: #18110b;
  border: 1.5px solid var(--gold-500);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  width: 56px;
  height: 56px;
  background: rgba(52, 211, 153, 0.15);
  color: var(--success-color);
  border: 2px solid var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0 auto 16px;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--gold-200);
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.receipt-content {
  background: rgba(10, 7, 4, 0.85);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
  text-align: left;
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.r-label {
  color: var(--text-dim);
}

.r-val {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.badge-highlight {
  color: var(--gold-300);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
}

.receipt-divider {
  height: 1px;
  background: rgba(217, 119, 6, 0.25);
  margin: 12px 0;
}

.total-item {
  margin-bottom: 0;
}

.r-val-price {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-400);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-gujarati);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Footer */
.form-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.blessing-text {
  margin-top: 6px;
  color: var(--gold-400);
  font-size: 0.88rem;
}
