/* ==========================================================================
   VIKRAANTWORLD.COM — MASTER DESIGN SYSTEM & THEME
   Unified Spiritual Luxury | Vedic Astrology, Vastu & Numerology
   Official Platform: https://vikraantworld.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Mukta:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');

:root {
  /* BRAND COLORS */
  --navy-dark: #091428;
  --navy-brand: #0b1b3d;
  --navy-surface: #132247;
  --navy-light: #1e293b;
  --navy-soft: #eff6ff;

  --gold-primary: #d97706;
  --gold-light: #f59e0b;
  --gold-accent: #fbbf24;
  --gold-soft: #fffbeb;
  --gold-border: #fde68a;
  --gold-gradient: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  --gold-radial: radial-gradient(circle, #fbbf24 0%, #d97706 100%);

  --ochre-sacred: #c2410c;
  --ochre-dark: #7c2d12;
  --ochre-soft: #fff7ed;
  --ochre-border: #fed7aa;

  --emerald: #059669;
  --emerald-light: #10b981;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;

  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --danger-border: #fecaca;

  /* SURFACES & BACKGROUNDS */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);

  /* TYPOGRAPHY COLORS */
  --text-dark: #0f172a;
  --text-main: #1e293b;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* BORDERS & SHADOWS */
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
  --shadow-gold: 0 6px 20px rgba(217, 119, 6, 0.22);
  --shadow-navy: 0 8px 24px rgba(11, 27, 61, 0.25);

  /* RADII */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* TRANSITIONS */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;

  /* FONTS */
  --font-brand: 'Outfit', 'Cinzel', 'Noto Sans Devanagari', sans-serif;
  --font-heading: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Mukta', sans-serif;
  --font-hindi: 'Mukta', 'Noto Sans Devanagari', sans-serif;
}

/* BASE RESETS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.75;
  font-size: 1.05rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.3;
}

h1 { font-size: 2.6rem; letter-spacing: -0.02em; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.2rem;
  color: var(--text-body);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--ochre-sacred);
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* SECTION PADDINGS */
.section-pad {
  padding: 5rem 0;
}

.section-pad-sm {
  padding: 3rem 0;
}

/* SECTION HEADER BLOCK */
.sec-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ochre-soft);
  border: 1px solid var(--ochre-border);
  color: var(--ochre-sacred);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.sec-badge-gold {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold-primary);
}

.sec-title {
  font-size: 2.3rem;
  color: var(--navy-brand);
  margin-bottom: 0.8rem;
}

.sec-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.42);
  color: #ffffff !important;
}

.btn-navy {
  background: var(--navy-brand);
  color: #ffffff !important;
  box-shadow: var(--shadow-navy);
}

.btn-navy:hover {
  background: var(--navy-surface);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-outline {
  background: #ffffff;
  color: var(--navy-brand) !important;
  border: 2px solid var(--navy-brand);
}

.btn-outline:hover {
  background: var(--navy-soft);
  color: var(--navy-brand) !important;
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-primary) !important;
  border: 2px solid var(--gold-primary);
}

.btn-outline-gold:hover {
  background: var(--gold-soft);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 15px 34px;
  font-size: 1.12rem;
}

/* GLASS & CARD CONTAINERS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--shadow-md);
}

.card-luxury {
  border-top: 4px solid var(--gold-primary);
}

/* GRIDS */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .section-pad { padding: 3.5rem 0; }
}

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-gold { background: var(--gold-soft); color: var(--gold-primary); border: 1px solid var(--gold-border); }
.badge-green { background: var(--emerald-soft); color: var(--emerald); border: 1px solid var(--emerald-border); }
.badge-ochre { background: var(--ochre-soft); color: var(--ochre-sacred); border: 1px solid var(--ochre-border); }
.badge-navy { background: var(--navy-soft); color: var(--navy-brand); border: 1px solid #bfdbfe; }

/* MASTER FOOTER (ACROSS ALL PAGES) */
.site-footer {
  background: var(--navy-dark);
  color: #e2e8f0;
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--gold-primary);
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-brand-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.footer-brand-title {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.footer-brand-title span {
  color: var(--gold-accent);
}

.footer-tagline {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-pillars-badge {
  display: inline-block;
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid var(--gold-primary);
  color: #fef3c7;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2.5px;
  background: var(--gold-primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--gold-accent);
  transform: translateX(4px);
}

.footer-social-wrap {
  display: flex;
  gap: 10px;
  margin-top: 1.2rem;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--gold-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-bottom-links {
  display: flex;
  gap: 1.2rem;
}

.footer-bottom-links a {
  color: #94a3b8;
  font-size: 0.88rem;
}

.footer-bottom-links a:hover {
  color: var(--gold-accent);
}

/* BACK TO TOP BUTTON */
.btn-back-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-brand);
  border: 2px solid var(--gold-primary);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.btn-back-top.visible {
  opacity: 1;
  visibility: visible;
}

.btn-back-top:hover {
  transform: translateY(-4px);
  background: var(--gold-primary);
  color: #ffffff;
}

/* ==========================================================================
   VIKRAANTWORLD MASTER FORM DESIGN SYSTEM (SPIRITUAL LUXURY THEME)
   Unified aesthetics across Contact, Calculators, Widgets & Portals
   ========================================================================== */

.form-group {
  margin-bottom: 1.35rem;
  position: relative;
}

.form-label,
.form-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--navy-brand);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.form-label .required-star,
.form-field-label .required-star,
.req-star {
  color: var(--danger);
  font-weight: 900;
  font-size: 1rem;
}

/* MASTER INPUT CONTROLS */
.form-control,
.form-field-input,
.form-field-select,
.input-control {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.78rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-dark);
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              transform 0.15s ease;
  box-sizing: border-box;
}

.form-control::placeholder,
.form-field-input::placeholder,
.input-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* HOVER & FOCUS STATES */
.form-control:hover,
.form-field-input:hover,
.form-field-select:hover,
.input-control:hover {
  border-color: #f59e0b;
}

.form-control:focus,
.form-control:focus-visible,
.form-field-input:focus,
.form-field-input:focus-visible,
.form-field-select:focus,
.form-field-select:focus-visible,
.input-control:focus,
.input-control:focus-visible {
  border-color: var(--gold-primary);
  background-color: #fffdfa;
  box-shadow: 0 0 0 3.5px rgba(217, 119, 6, 0.18), 0 2px 8px rgba(217, 119, 6, 0.08);
  outline: none;
  transform: translateY(-1px);
}

/* CUSTOM STYLED SELECT CONTROLS */
select.form-control,
select.form-field-select,
select.input-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 14px;
  padding-right: 2.6rem;
  cursor: pointer;
}

/* DATE & TIME INPUT CUSTOMIZATION */
input[type="date"].form-control,
input[type="date"].form-field-input,
input[type="time"].form-control,
input[type="time"].form-field-input {
  accent-color: var(--gold-primary);
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
}

/* TEXTAREA REFINEMENTS */
textarea.form-control,
textarea.input-control {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

/* INPUT ICON GROUP WRAPPER */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-wrap .input-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  font-size: 1.15rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon-wrap .form-control.has-left-icon,
.input-icon-wrap .form-field-input.has-left-icon {
  padding-left: 2.75rem;
}

.input-icon-wrap .input-icon-right {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.btn-input-clear {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-input-clear:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* RADIO PILL GROUP (SPIRITUAL LUXURY PILLS) */
.radio-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.1rem;
}

.radio-pill-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-body);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.radio-pill-label:hover {
  border-color: var(--gold-primary);
  background: var(--gold-soft);
  color: var(--gold-primary);
  transform: translateY(-1px);
}

.radio-pill-input:checked + .radio-pill-label {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transform: translateY(-2px);
}

/* CUSTOM RANGE SLIDER (LUXURY GOLD TRACK & THUMB) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 25%, #ef4444 50%, #f59e0b 75%, #3b82f6 100%);
  outline: none;
  transition: opacity 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-radial);
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.7);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-radial);
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* FORM VALIDATION STATES */
.form-control.is-valid,
.form-field-input.is-valid {
  border-color: var(--emerald) !important;
  background-color: var(--emerald-soft) !important;
}

.form-control.is-valid:focus,
.form-field-input.is-valid:focus {
  box-shadow: 0 0 0 3.5px rgba(5, 150, 105, 0.2) !important;
}

.form-control.is-invalid,
.form-field-input.is-invalid {
  border-color: var(--danger) !important;
  background-color: var(--danger-soft) !important;
}

.form-control.is-invalid:focus,
.form-field-input.is-invalid:focus {
  box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.2) !important;
}

.form-feedback-error {
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  animation: fadeIn 0.2s ease;
}

.form-feedback-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-char-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: monospace;
}

/* BUTTON LOADING SPINNERS */
.btn.is-loading,
.btn-calc-primary.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

.btn.is-loading::after,
.btn-calc-primary.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin-left: -9px;
  margin-top: -9px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpinnerRotate 0.65s linear infinite;
}

@keyframes btnSpinnerRotate {
  to { transform: rotate(360deg); }
}

/* QUICK ACTION CHIPS ON FORMS */
.form-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.prompt-chip-btn {
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: #92400e;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.prompt-chip-btn:hover {
  background: var(--gold-border);
  color: #78350f;
  transform: translateY(-1px);
}

