/* ============================================================
   SHARED FORM STYLES (CDN-ready)
   ============================================================
   Sections:
   0. Reset & Variables
   1. Layout
   2. Spacing System (Core)
   3. Components
   4. Animations / Keyframes
   5. Responsive Rules
   6. Form-Specific Exceptions
   7. Utilities / Minor Components
   ============================================================ */


/* ============================================================
   0. RESET & VARIABLES
   ============================================================ */
:root {
  --sf-accent-orange: #e07a00;
  --sf-accent-dark: #031a44;
  --sf-error: #c52828;
  --sf-success: #0a8a00;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  overflow: visible !important;
}

html,
body {
  height: auto;
}


/* ============================================================
   1. LAYOUT
   ============================================================ */

.form-container {
  box-shadow: 0 6px 24px rgba(16,24,40,0.08);
  position: relative;
  overflow: visible;
  z-index: 1;
}

.right-form {
  width: 100%;
  max-width: 720px;
}

.complete-horoscope-section .right-form,
.marriage-horoscope-section .right-form {
  flex: 1 1 300px;
  max-width: 460px;
}

.yearly-horoscope-section .right-form,
.muhurtha-booking-section .right-form {
  flex: 1 1 300px;
  max-width: var(--max-form-width, 460px);
  min-width: 260px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Normalize top spacing between banner and form sections across all forms/views */
.page-banner + .complete-horoscope-section,
.page-banner + .marriage-horoscope-section,
.page-banner + .yearly-horoscope-section,
.page-banner + .muhurtha-booking-section {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.page-banner {
  margin-bottom: 0 !important;
}

.complete-horoscope-section .right-form,
.marriage-horoscope-section .right-form,
.yearly-horoscope-section .right-form,
.muhurtha-booking-section .right-form {
  margin-top: 0 !important;
}

.complete-horoscope-section > .right-form > .form-container,
.marriage-horoscope-section > .right-form > .form-container,
.yearly-horoscope-section > .right-form > .form-container,
.muhurtha-booking-section > .right-form > .form-container {
  margin-top: 0 !important;
}

input.form-control,
select.form-control {
  height: 42px;
}


/* ============================================================
   2. SPACING SYSTEM (CORE)
   ============================================================ */

.form-container {
  gap: 4px !important;
  padding: 6px !important;
}

.right-form {
  padding: 2px 0 !important;
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) .form-group {
  margin-bottom: 6px !important;
  position: relative;
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) label {
  margin-bottom: 2px !important;
}

.form-section hr {
  margin: 6px 0 !important;
}

.section-title {
  margin-top: 6px !important;
  margin-bottom: 4px !important;
  line-height: 1.2;
  font-size: 14px;
  text-align: center;
}

.form-section .form-group:first-of-type {
  margin-top: 0;
}


/* ============================================================
   3. COMPONENTS
   ============================================================ */

/* --- 3a. CTA Button Hover --- */
.btn-custom:hover,
#payButton:hover {
  box-shadow: 0 0 12px rgba(224, 122, 0, 0.6);
}

/* --- 3b. Promo System --- */
.promo-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.promo-outer {
  flex: 1 1 auto;
  min-width: 0;
  border: 2px solid #f0f6fb;
  border-radius: 32px;
  padding: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.99));
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.promo-inner {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.promo-inner .form-control {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 24px;
  border: 1px solid #e9eef3;
  padding: 7px 12px;
  height: 38px;
  min-height: 38px;
  font-size: 15px;
  box-sizing: border-box;
}

.promo-input,
.promo-inner .form-control.promo-input {
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .16s ease;
}

.promo-input:focus,
.promo-inner .form-control.promo-input:focus {
  outline: none;
  border-color: #e07a00;
  box-shadow: 0 0 0 3px rgba(224,122,0,.16);
}

.promo-input.promo-applied,
.promo-input.promo-applied-input,
.promo-inner .form-control.promo-applied,
.promo-inner .form-control.promo-applied-input {
  border-color: #0a8a00 !important;
  box-shadow: 0 0 0 2px rgba(10,138,0,.18) !important;
}

.apply-promo-btn {
  flex: 0 0 auto;
  background: var(--sf-success);
  color: #fff;
  border: 0;
  border-radius: 22px;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(10,138,0,0.14);
}

.promo-link-inline {
  background: transparent;
  border: 0;
  color: var(--sf-accent-orange);
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
}

.promo-link {
  color: var(--sf-accent-orange);
  text-decoration: underline;
  display: block;
  text-align: center;
  margin: 2px 0;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 14px;
}

.promo-link:hover {
  color: #031752;
  text-decoration: none;
}

.lucky-btn,
.promo-link-inline {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}

.lucky-btn:hover,
.promo-link-inline:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.lucky-btn:active,
.promo-link-inline:active {
  transform: translateY(0);
}

.lucky-btn.is-busy,
.promo-link-inline.is-busy {
  opacity: .9;
  cursor: progress;
}

.promo-wrapper {
  position: relative;
  overflow: visible;
  z-index: 30;
}

#promoGroup,
.promo-top-row,
.promo-outer {
  overflow: visible;
}

.promo-top-row {
  position: relative;
  z-index: 25;
}

#promoGroup[hidden] {
  display: none !important;
}

#promoSuggestionsDropdown,
.promo-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 12000;
  display: block;
  background: #fff;
  border: 1px solid #e7edf3;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15,23,42,.14);
  max-height: min(260px, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) #promoGroup,
:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) .promo-top-row,
:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) .promo-outer,
:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) .promo-wrapper {
  overflow: visible !important;
}

#promoSuggestionsDropdown.hidden,
.promo-dropdown.hidden {
  display: none !important;
}

.promo-item {
  padding: 10px 12px;
  font-size: 13px;
  color: #1e293b;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}

.promo-item:last-child {
  border-bottom: 0;
}

.promo-item:hover {
  background: #fff7eb;
}

.promo-item.recommended {
  background: linear-gradient(90deg, rgba(255,247,235,.92), rgba(255,255,255,.92));
  font-weight: 700;
}

.promo-item-empty {
  cursor: default;
  color: #64748b;
}

.promo-message,
#discountMsg,
#formDiscountMsg {
  transition: color .2s ease;
}

.promo-message.is-success,
#discountMsg.is-success,
#formDiscountMsg.is-success {
  color: #0a8a00 !important;
}

.promo-message.is-warning,
#discountMsg.is-warning,
#formDiscountMsg.is-warning {
  color: #a15c00 !important;
}

.promo-message.is-error,
#discountMsg.is-error,
#formDiscountMsg.is-error {
  color: #c52828 !important;
}

.fe-price-pulse {
  animation: fe-price-pulse 400ms cubic-bezier(.22,.75,.25,1);
}

.fe-price-stack {
  position: relative;
  display: inline-block;
  min-width: 118px;
  line-height: 1.2;
}

.fe-price-old,
.fe-price-new {
  display: block;
  white-space: nowrap;
  will-change: transform, opacity, filter;
}

.fe-price-old {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  animation: fe-price-old-out 380ms ease forwards;
}

.fe-price-new {
  animation: fe-price-new-in 420ms cubic-bezier(.2,.8,.2,1) forwards;
  transform-origin: center center;
}

.fe-price-microcopy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  font-size: 10px;
  line-height: 1;
  color: rgba(224,122,0,.95);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  pointer-events: none;
  animation: fe-price-micro-in 360ms ease forwards;
}

.fe-discount-badge-wrap {
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.fe-discount-badge-wrap:not(:empty) {
  display: flex;
  min-height: 26px;
  margin: 0 0 6px;
}

.fe-discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
  box-shadow: 0 2px 8px rgba(31,41,55,.12);
  border: 1px solid rgba(255,255,255,.35);
  max-width: 100%;
  text-align: center;
}

.fe-discount-badge--token {
  background: linear-gradient(120deg,#2563eb,#6d28d9);
}

.fe-discount-badge--promo {
  background: linear-gradient(120deg,#7c3aed,#d97706);
}

.fe-discount-badge--shimmer {
  position: relative;
  overflow: hidden;
}

.fe-discount-badge--shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,.24), rgba(255,255,255,0));
  animation: fe-badge-shimmer 2200ms ease-in-out infinite;
}

.lucky-particle {
  position: absolute;
  left: var(--lp-left, 50%);
  top: var(--lp-top, 50%);
  width: var(--lp-size, 8px);
  height: var(--lp-size, 8px);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.8);
  background: radial-gradient(circle at 30% 30%, #fff8cc 0%, #ffd36b 38%, #ff9f1a 100%);
  box-shadow: 0 0 8px rgba(255,191,73,.35);
}

.lucky-particle.is-animating {
  animation: lucky-particle-burst var(--lp-duration, 700ms) cubic-bezier(.2,.75,.25,1) forwards;
}

.lucky-symbol {
  position: fixed;
  font-size: 14px;
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", "Arial", sans-serif;
  color: gold;
  opacity: 0.6;
  pointer-events: none;
  z-index: 9999;
  animation: lucky-symbol-burst 0.9s ease-out forwards;
}

/* --- 3c. Promo Messages & States --- */
.promo-error {
  color: var(--sf-error);
  font-size: 13px;
  margin-top: 4px;
  min-height: 0;
  width: 100%;
  text-align: center;
}

.promo-success {
  color: var(--sf-success);
  font-size: 13px;
  margin-top: 4px;
  min-height: 0;
  width: 100%;
  text-align: center;
}

.promo-error:empty,
.promo-success:empty,
#discountMsg:empty,
#formDiscountMsg:empty {
  display: none;
  margin-top: 0;
}

.promo-error:not(:empty),
.promo-success:not(:empty),
#discountMsg:not(:empty),
#formDiscountMsg:not(:empty) {
  display: block;
}

/* --- 3d. Validation & Error States --- */
.field-error-highlight {
  border-color: var(--sf-accent-orange) !important;
  box-shadow: 0 0 0 4px rgba(224,122,0,0.10);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border: 1px solid #ff4d4f !important;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus,
input.is-invalid:focus-visible,
select.is-invalid:focus-visible,
textarea.is-invalid:focus-visible {
  border: 1px solid #ff4d4f !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.18);
}

/* --- 3e. Canvas & Confetti --- */
canvas#confettiCanvas {
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

canvas.is-active {
  display: block !important;
}

/* Legacy form canvas-confetti temporarily disabled (safe rollback retained) */
#formConfettiCanvas {
  display: none !important;
}

#spiritual-confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.spiritual-item {
  position: absolute;
  font-size: 18px;
  font-weight: 600;
  opacity: 0;
  animation: floatUp 4.5s linear forwards;
  color: #d4a017;
  text-shadow: 0 0 8px rgba(255, 200, 120, 0.7);
}

/* --- 3f. Promo Modal --- */
/* Shared promo-generation modal styling (aligned to Today's Offer popup card look) */
#promoModal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 20000;
  align-items: center;
  justify-content: center;
}

#promoModal[hidden],
#promoModal[aria-hidden="true"] {
  display: none !important;
}

#promoModal.is-open,
#promoModal[aria-hidden="false"] {
  display: flex !important;
}

#promoModal [role="dialog"][aria-modal="true"] {
  width: 94%;
  max-width: 420px;
  margin: 16px auto;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  position: relative;
}

#promoModalClose {
  position: absolute;
  right: 8px;
  top: 8px;
  background: transparent;
  border: 0;
  font-size: 18px;
}

#promoModalTitle {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

#promoGenMsg {
  min-height: 22px;
  margin-top: 6px;
  color: #111;
  font-size: 14px;
}

#promoGenMsg.is-neutral {
  color: #111 !important;
}

#promoGenMsg.is-error {
  color: #c52828 !important;
}

#promoGenMsg.is-success {
  color: #0a8a00 !important;
}

#promoGenSubmit {
  background: #e07a00;
  border: 0;
  padding: 8px 14px;
}

#promoModal.shared-promo-modal {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

#promoModal.shared-promo-modal .inline-discount-card,
#promoModal.shared-promo-modal .promo-inline-discount,
#promoModal.shared-promo-modal .promo-generation-card,
#promoModal.shared-promo-modal .promo-modal-card,
#promoModal.shared-promo-modal .promo-modal-content,
#promoModal.shared-promo-modal .promo-box,
#promoModal.shared-promo-modal > div {
  background: linear-gradient(135deg,#fffdf5 0%,#f8f2de 100%) !important;
  border: 2px solid #ffd700 !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(255,215,0,0.18) !important;
}

#promoModal.shared-promo-modal .inline-discount-subtitle,
#promoModal.shared-promo-modal .promo-gen-subtitle,
#promoModal.shared-promo-modal [data-promo-subtitle] {
  margin: 0 0 8px !important;
  font-size: 0.82rem !important;
  color: #2d3957 !important;
  line-height: 1.2 !important;
}

#promoModal.shared-promo-modal #promoGenName,
#promoModal.shared-promo-modal #promoGenEmail,
#promoModal.shared-promo-modal #promoGenPhone {
  width: 100% !important;
  border: 1px solid #d8d9de !important;
  border-radius: 10px !important;
  padding: 9px 11px !important;
  font-size: .92rem !important;
  margin-bottom: 7px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  color: #222 !important;
}

#promoModal.shared-promo-modal #promoGenName:focus,
#promoModal.shared-promo-modal #promoGenEmail:focus,
#promoModal.shared-promo-modal #promoGenPhone:focus {
  outline: none !important;
  border-color: #d0a200 !important;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.20) !important;
}

#promoModal.shared-promo-modal #promoGenSubmit {
  background: linear-gradient(135deg,#ffcf33,#ffb300) !important;
  color: #3a2800 !important;
  font-weight: 700 !important;
  border: 0 !important;
  border-radius: 9px !important;
  padding: 9px 12px !important;
  box-shadow: 0 4px 12px rgba(255,186,0,0.35) !important;
}

#promoModal.shared-promo-modal #promoGenCancel {
  background: #eceef3 !important;
  color: #111 !important;
  border: 0 !important;
  border-radius: 9px !important;
  padding: 9px 12px !important;
}

#promoModalClose {
  color: #2d3957;
  cursor: pointer;
  line-height: 1;
}

#promoModal.shared-promo-modal [role="dialog"][aria-modal="true"] {
  color: #1f2a37 !important;
}

#promoModal.shared-promo-modal #promoModalTitle {
  color: #2d3957 !important;
  padding-right: 30px;
}

#promoModal.shared-promo-modal #promoModalClose {
  background: #fff8d6 !important;
  border: 1px solid #f2d36b !important;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#promoModal.shared-promo-modal #promoGenMsg {
  color: #1b2a53 !important;
}

/* --- 3g. Intl-Tel-Input --- */
/* Intl-tel-input alignment/readability fixes for form + promo-generation modal */
#promoModal.shared-promo-modal .iti,
.form-container .iti,
form .iti {
  width: 100% !important;
  display: block !important;
}

#promoModal.shared-promo-modal .iti--separate-dial-code .iti__selected-flag,
.form-container .iti--separate-dial-code .iti__selected-flag,
form .iti--separate-dial-code .iti__selected-flag {
  background: #f1f3f7 !important;
  border-right: 1px solid #d8d9de !important;
  border-radius: 10px 0 0 10px !important;
  min-width: 84px !important;
}

#promoModal.shared-promo-modal .iti input,
#promoModal.shared-promo-modal .iti input[type="tel"],
.form-container .iti input,
.form-container .iti input[type="tel"],
form .iti input,
form .iti input[type="tel"] {
  width: 100% !important;
  box-sizing: border-box !important;
  color: #222 !important;
  background: #fff !important;
}

#promoModal.shared-promo-modal .iti--separate-dial-code input,
#promoModal.shared-promo-modal .iti--separate-dial-code input[type="tel"],
.form-container .iti--separate-dial-code input,
.form-container .iti--separate-dial-code input[type="tel"],
form .iti--separate-dial-code input,
form .iti--separate-dial-code input[type="tel"] {
  padding-left: var(--promo-phone-pad, 116px) !important;
  text-indent: 0 !important;
}

#promoModal.shared-promo-modal .iti__selected-dial-code,
#promoModal.shared-promo-modal .iti__selected-flag,
#promoModal.shared-promo-modal .iti__arrow,
.form-container .iti__selected-dial-code,
.form-container .iti__selected-flag,
.form-container .iti__arrow,
form .iti__selected-dial-code,
form .iti__selected-flag,
form .iti__arrow {
  color: #111 !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

#promoModal.shared-promo-modal .iti__selected-flag,
.form-container .iti__selected-flag,
form .iti__selected-flag {
  display: inline-flex !important;
  align-items: center !important;
}

#promoModal.shared-promo-modal .iti__selected-dial-code,
.form-container .iti__selected-dial-code,
form .iti__selected-dial-code {
  color: #111 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

#promoModal.shared-promo-modal .iti__country-list,
.form-container .iti__country-list,
form .iti__country-list {
  z-index: 22000 !important;
}

/* --- 3h. Sample PDF CTA --- */
/* Shared sample-PDF CTA styling (secondary to Try Your Luck) */
:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) .view-sample-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
  width: 100%;
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) .view-sample {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #bf6a00;
  text-decoration: none;
  background: rgba(224,122,0,0.08);
  border: 1px solid rgba(224,122,0,0.28);
  border-radius: 999px;
  cursor: pointer;
  font-size: calc(13.5px * var(--scale, 1));
  font-weight: 600;
  line-height: 1.1;
  padding: 3px 9px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
  max-width: 100%;
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) .view-sample:hover {
  color: #9b5700;
  background: rgba(224,122,0,0.13);
  border-color: rgba(224,122,0,0.4);
  text-decoration: none;
  transform: translateY(-1px);
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) .view-sample:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(224,122,0,0.18);
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) .attachment-pin {
  color: #d16a00;
  transform-origin: center;
  animation: pin-bob 1.2s ease-in-out infinite;
  width: calc(15px * var(--scale, 1));
  height: calc(15px * var(--scale, 1));
  flex: 0 0 auto;
  line-height: 1;
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) .view-text {
  line-height: 1.1;
}

/* --- 3i. Primary CTA (Pay Button) --- */
/* Primary CTA enhancement: stronger hierarchy without size/layout changes */
:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) #payButton {
  background: linear-gradient(135deg, #f08a00 0%, #e07a00 55%, #c96800 100%);
  color: #fff;
  border: 1px solid rgba(159, 78, 0, 0.35);
  box-shadow: 0 10px 22px rgba(224, 122, 0, 0.34), 0 2px 0 rgba(138, 70, 0, 0.34);
  transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .3s cubic-bezier(.22,.61,.36,1), filter .26s cubic-bezier(.22,.61,.36,1), background-position .28s cubic-bezier(.22,.61,.36,1);
  background-size: 140% 140%;
  background-position: 0% 50%;
  position: relative;
  overflow: hidden;
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) #payButton::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 42%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
  pointer-events: none;
  opacity: 0.72;
  transition: opacity .26s cubic-bezier(.22,.61,.36,1);
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) #payButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(224, 122, 0, 0.36), 0 0 16px rgba(240, 148, 32, 0.2), 0 2px 0 rgba(138, 70, 0, 0.34);
  filter: saturate(1.06) brightness(1.02);
  background-position: 100% 50%;
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) #payButton:hover::before {
  opacity: 0.86;
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) #payButton:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(224, 122, 0, 0.3), 0 1px 0 rgba(138, 70, 0, 0.3);
  filter: saturate(1);
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) #payButton:active::before {
  opacity: 0.6;
}

:is(#horoscopeForm, #marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) #payButton:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 220, 160, 0.75), 0 10px 22px rgba(224, 122, 0, 0.34);
}


/* ============================================================
   4. ANIMATIONS / KEYFRAMES
   ============================================================ */

@keyframes fe-price-pulse {
  0% { box-shadow: 0 0 0 0 rgba(224,122,0,0); }
  50% { box-shadow: 0 0 0 4px rgba(224,122,0,.08); }
  100% { box-shadow: 0 0 0 0 rgba(224,122,0,0); }
}

@keyframes fe-price-old-out {
  0% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-6px) scale(.99); filter: blur(1px); }
}

@keyframes fe-price-new-in {
  0% { opacity: 0; transform: translateY(4px) scale(.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fe-price-micro-in {
  0% { opacity: 0; transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fe-badge-shimmer {
  0% { left: -130%; }
  100% { left: 140%; }
}

@keyframes lucky-particle-burst {
  0% {
    opacity: .95;
    transform: translate(-50%, -50%) scale(.8) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--lp-x, 0px)), calc(-50% + var(--lp-y, 0px))) scale(1.06) rotate(var(--lp-rotate, 90deg));
  }
}

@keyframes lucky-symbol-burst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  100% {
    transform: translate(var(--x, 0px), var(--y, 0px)) scale(0.8);
    opacity: 0;
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    transform: translateY(-120px) scale(1);
    opacity: 0;
  }
}

@keyframes pin-bob {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(-5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}


/* ============================================================
   5. RESPONSIVE RULES
   ============================================================ */

/* --- 5a. Desktop (min-width: 768px) - Row layout --- */
@media (min-width: 768px) {
  .right-form .row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px !important;
  }

  .right-form .row > [class*="col-"] {
    width: calc(50% - 6px);
    max-width: calc(50% - 6px);
    flex: 0 0 calc(50% - 6px);
    min-width: 0;
  }

  .right-form .row > [class*="col-"] .form-group {
    width: 100%;
    max-width: none;
  }

  .right-form input.form-control,
  .right-form select.form-control {
    width: 100%;
    max-width: none;
  }

  .right-form input[type="time"],
  .right-form input[type="date"] {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .right-form .row > [class*="col-"]:has(#birthCity),
  .right-form .row > [class*="col-"]:has(#muhurthaPlace),
  .right-form .row > [class*="col-"]:has(textarea.form-control),
  .right-form .row > [class*="col-"]:has(#year) {
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
  }
}

/* --- 5b. Desktop (min-width: 1024px) - Form row --- */
@media (min-width: 1024px) {
  .right-form {
    max-width: 720px;
  }

  .right-form .form-row {
    display: flex;
    gap: 8px !important;
  }

  .right-form .form-row .form-group,
  .right-form .row .form-group {
    width: 50%;
  }
}

/* --- 5c. Desktop (min-width: 1025px) - Muhurtha scaling --- */
@media (min-width: 1025px) {
  .muhurtha-booking-section #muhurthaBookingForm input.form-control,
  .muhurtha-booking-section #muhurthaBookingForm select.form-control {
    height: calc(36px * var(--scale));
    min-height: 0;
    padding: calc(6px * var(--scale)) calc(8px * var(--scale));
    font-size: calc(13.5px * var(--scale));
  }

  .muhurtha-booking-section #muhurthaBookingForm textarea.form-control {
    height: auto;
    min-height: 0;
    padding: calc(6px * var(--scale)) calc(8px * var(--scale));
    font-size: calc(13.5px * var(--scale));
  }
}

/* --- 5d. Tablet (768px to 1100px) --- */
@media (min-width: 768px) and (max-width: 1100px) {
  .page-banner + .yearly-horoscope-section {
    padding-top: 0 !important;
  }

  .yearly-horoscope-section .right-form,
  .yearly-horoscope-section > .right-form > .form-container {
    margin-top: 0 !important;
  }

  .complete-horoscope-section {
    display: flex;
    flex-direction: column;
  }

  .complete-horoscope-section .left-content {
    order: 1;
    width: 100%;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  .complete-horoscope-section .left-content img {
    display: block;
    margin: 0 auto 16px !important;
    max-width: 260px;
  }

  .complete-horoscope-section .left-content .gradient-text,
  .complete-horoscope-section .left-content .left-subheading,
  .complete-horoscope-section > .right-form > .gradient-text {
    text-align: center !important;
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .complete-horoscope-section .left-content .gradient-text {
    margin-top: 8px;
    margin-bottom: 6px;
  }

  .complete-horoscope-section .left-content .left-subheading {
    margin-top: 0;
  }

  .complete-horoscope-section > .right-form > .gradient-text {
    margin-top: 8px;
    margin-bottom: 6px;
  }

  .complete-horoscope-section .left-content p,
  .complete-horoscope-section .left-content h1,
  .complete-horoscope-section .left-content h2 {
    text-align: center;
    max-width: 600px;
  }

  .complete-horoscope-section .left-content,
  .complete-horoscope-section .left-content .gradient-text,
  .complete-horoscope-section .left-content .left-subheading,
  .complete-horoscope-section .left-content p,
  .complete-horoscope-section .left-content h1,
  .complete-horoscope-section .left-content h2,
  .complete-horoscope-section .left-content h3,
  .complete-horoscope-section .left-content h4,
  .complete-horoscope-section .left-content ul,
  .complete-horoscope-section .left-content ol,
  .complete-horoscope-section .left-content li {
    text-align: center !important;
  }

  .complete-horoscope-section .left-content ul,
  .complete-horoscope-section .left-content ol {
    padding-left: 0;
    list-style-position: inside;
  }

  .complete-horoscope-section .right-form {
    order: 2;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }

  .complete-horoscope-section input,
  .complete-horoscope-section select {
    font-size: 15px;
  }

  .complete-horoscope-section #payButton {
    min-height: 48px;
  }

  .complete-horoscope-section .right-form,
  .marriage-horoscope-section .right-form,
  .yearly-horoscope-section .right-form,
  .muhurtha-booking-section .right-form {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }

  .right-form .row {
    display: flex;
    gap: 6px !important;
    flex-wrap: wrap;
  }

  .right-form .row > [class*="col-"] {
    width: calc(50% - 6px);
  }

  .right-form .row > [class*="col-"]:has(#birthCity),
  .right-form .row > [class*="col-"]:has(#muhurthaPlace),
  .right-form .row > [class*="col-"]:has(textarea.form-control) {
    width: 100%;
  }

  .marriage-horoscope-section input.form-control,
  .marriage-horoscope-section select.form-control,
  .yearly-horoscope-section input.form-control,
  .yearly-horoscope-section select.form-control,
  .muhurtha-booking-section input.form-control,
  .muhurtha-booking-section select.form-control {
    width: 100%;
    font-size: 15px;
  }

  .marriage-horoscope-section #payButton,
  .yearly-horoscope-section #payButton,
  .muhurtha-booking-section #payButton {
    width: 100%;
    min-height: 48px;
  }

  .marriage-horoscope-section .phone-helper-text,
  .yearly-horoscope-section .phone-helper-text,
  .muhurtha-booking-section .phone-helper-text {
    display: none;
  }

  /* Muhurtha tablet layout: clean 2-column grid */
  .muhurtha-booking-section #muhurthaBookingForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px !important;
    align-items: start;
  }

  .muhurtha-booking-section #muhurthaBookingForm > .form-section {
    display: contents;
  }

  .muhurtha-booking-section #muhurthaBookingForm > .row.gx-2 {
    display: contents;
  }

  .muhurtha-booking-section #muhurthaBookingForm > .form-section > .row.gx-2 {
    display: contents;
  }

  .muhurtha-booking-section #muhurthaBookingForm > .row.gx-2 > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    min-width: 0;
  }

  .muhurtha-booking-section #muhurthaBookingForm > .form-section > .row.gx-2 > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    min-width: 0;
  }

  .muhurtha-booking-section #muhurthaBookingForm > .form-group.inline-field {
    width: 100%;
    display: block;
  }

  .muhurtha-booking-section #muhurthaBookingForm > .form-section > .form-group.inline-field {
    width: 100%;
    display: block;
  }

  .muhurtha-booking-section #muhurthaBookingForm > .form-group.inline-field .inline-label {
    display: block;
    margin-bottom: 6px;
  }

  .muhurtha-booking-section #muhurthaBookingForm > .form-section > .form-group.inline-field .inline-label {
    display: block;
    margin-bottom: 6px;
  }

  .muhurtha-booking-section #muhurthaBookingForm > .form-group.inline-field .inline-control {
    width: 100%;
  }

  .muhurtha-booking-section #muhurthaBookingForm > .form-section > .form-group.inline-field .inline-control {
    width: 100%;
  }

  .muhurtha-booking-section #muhurthaBookingForm > #formError,
  .muhurtha-booking-section #muhurthaBookingForm > hr,
  .muhurtha-booking-section #muhurthaBookingForm > h2,
  .muhurtha-booking-section #muhurthaBookingForm > .form-group.inline-field:has(#muhurthaPlace),
  .muhurtha-booking-section #muhurthaBookingForm > .form-group.inline-field:has(#birthCity),
  .muhurtha-booking-section #muhurthaBookingForm > .form-group:has(textarea.form-control),
  .muhurtha-booking-section #muhurthaBookingForm > .form-group.text-center,
  .muhurtha-booking-section #muhurthaBookingForm > #promoLinkWrap,
  .muhurtha-booking-section #muhurthaBookingForm > #promoGroup,
  .muhurtha-booking-section #muhurthaBookingForm > #payButtonWrap,
  .muhurtha-booking-section #muhurthaBookingForm > .row.gx-2 > [class*="col-"]:has(textarea.form-control) {
    grid-column: 1 / -1;
  }

  .muhurtha-booking-section #muhurthaBookingForm > .form-section > hr,
  .muhurtha-booking-section #muhurthaBookingForm > .form-section > .form-header,
  .muhurtha-booking-section #muhurthaBookingForm > .form-section > .form-group.inline-field:has(#birthCity),
  .muhurtha-booking-section #muhurthaBookingForm > .form-section > .form-group:has(textarea.form-control),
  .muhurtha-booking-section #muhurthaBookingForm > .form-section > .row.gx-2 > [class*="col-"]:has(textarea.form-control) {
    grid-column: 1 / -1;
  }
}

/* --- 5e. Mobile (max-width: 800px) - Promo stacking --- */
@media (max-width: 800px) {
  .promo-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

/* --- 5f. Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  .marriage-horoscope-section,
  .yearly-horoscope-section,
  .muhurtha-booking-section {
    display: flex;
    flex-direction: column;
  }

  .marriage-horoscope-section .right-form,
  .yearly-horoscope-section .right-form,
  .muhurtha-booking-section .right-form {
    order: 1;
  }

  .marriage-horoscope-section .left-content,
  .yearly-horoscope-section .left-content,
  .muhurtha-booking-section .left-content {
    order: 2;
  }

  input.form-control,
  select.form-control,
  textarea.form-control {
    font-size: 16px !important;
    min-height: 44px;
  }

  #payButton,
  .btn-custom {
    width: 100%;
    max-width: none;
    min-height: 48px;
    font-size: 16px;
  }

  /* Muhurtha mobile visibility fix:
     Only unhide the specific Zoho section that contains the Muhurtha form. */
  .zpsection.zp-hidden-sm.zp-hidden-xs:has(.muhurtha-booking-section) {
    display: block !important;
  }
}

/* --- 5g. Small mobile (max-width: 767px) --- */
@media (max-width: 767px) {
  .complete-horoscope-section .right-form,
  .marriage-horoscope-section .right-form,
  .yearly-horoscope-section .right-form,
  .muhurtha-booking-section .right-form {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }
}

/* --- 5h. Tiny mobile (max-width: 600px) --- */
@media (max-width: 600px) {
  .fe-discount-badge {
    font-size: 11px;
    padding: 6px 10px;
  }

  .fe-discount-badge-wrap {
    margin-bottom: 5px;
  }
}

/* --- 5i. Phone input (max-width: 480px) --- */
@media (max-width: 480px) {
  #promoModal.shared-promo-modal .iti--separate-dial-code input,
  #promoModal.shared-promo-modal .iti--separate-dial-code input[type="tel"],
  .form-container .iti--separate-dial-code input,
  .form-container .iti--separate-dial-code input[type="tel"],
  form .iti--separate-dial-code input,
  form .iti--separate-dial-code input[type="tel"] {
    padding-left: var(--promo-phone-pad, 108px) !important;
  }
}


/* ============================================================
   6. FORM-SPECIFIC EXCEPTIONS
   ============================================================ */

:is(#marriageHoroscopeForm, #yearlyHoroscopeForm, #muhurthaBookingForm) .promo-label-row label {
  margin: 0;
  color: #444;
  font-weight: 500;
}

.muhurtha-booking-section .form-row {
  margin-bottom: 6px !important;
}

/* Phase 1 safe extraction: Complete Horoscope form */
#horoscopeForm #phoneHelp {
  font-size: 12px;
  color: #666;
  margin-top: 0;
}

#horoscopeForm #promoLinkWrap {
  margin: 4px 0;
}

#horoscopeForm #discountRow {
  margin-top: 2px;
}

#horoscopeForm #payButtonWrap {
  margin-top: 5px;
  text-align: center;
}

/* Phase 1 safe extraction: Marriage Horoscope form */
#marriageHoroscopeForm #phoneHelp {
  font-size: 12px;
  color: #666;
  margin-top: 0;
}

#marriageHoroscopeForm #promoLinkWrap {
  margin: 6px 0;
}

#marriageHoroscopeForm #discountRow {
  margin-top: 4px;
}

#marriageHoroscopeForm #payButtonWrap {
  margin-top: 8px;
  text-align: center;
}

/* Phase 1 safe extraction: Yearly Horoscope form */
#yearlyHoroscopeForm #phoneHelp {
  font-size: 12px;
  color: var(--muted, #666);
  margin-top: 6px;
}

#yearlyHoroscopeForm #discountRow {
  margin-top: 4px;
}

#yearlyHoroscopeForm #payButtonWrap {
  margin-top: 8px;
  text-align: center;
}

/* Phase 1 safe extraction: Muhurtha Booking form */
.muhurtha-booking-section .form-group:empty {
  display: none;
}

.muhurtha-booking-section .hidden,
.muhurtha-booking-section .invisible {
  display: none !important;
}

.muhurtha-booking-section input.form-control,
.muhurtha-booking-section select.form-control {
  min-height: 42px;
}

#muhurthaBookingForm #phoneHelp {
  font-size: 12px;
  color: var(--muted, #666);
  margin-top: 6px;
}

#muhurthaBookingForm #promoLinkWrap {
  margin: 6px 0;
}

#muhurthaBookingForm #discountRow {
  margin-top: 4px;
}

#muhurthaBookingForm #payButtonWrap {
  margin-top: 8px;
  text-align: center;
}


/* ============================================================
   7. UTILITIES / MINOR COMPONENTS
   ============================================================ */

.phone-helper-text {
  font-size: 12px;
  opacity: 0.8;
}

.error-text {
  color: var(--sf-error);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px !important;
  overflow-wrap: anywhere;
}

/* ============================================================
   8. CONSOLIDATED FROM INLINE HTML FORMS
   ============================================================ */

.sample-menu[aria-hidden="false"] { display: block; }

.lang-item + .lang-item { margin-top: 4px; }

.lang-item:hover, .lang-item:focus { background: #f6f8fa; outline: none; }

.gender-box input[type="radio"] { display: none; }

canvas {
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

@keyframes field-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,122,0,0); }
  50%  { box-shadow: 0 0 0 calc(6px * var(--scale)) rgba(224,122,0,0.12); }
  100% { box-shadow: 0 0 0 0 rgba(224,122,0,0); }
}

/* --- Phase 2: Shared base CSS properties (identical across all 4 forms) --- */

.gradient-text {
  background: linear-gradient(90deg, #ff9933, #ff66cc, #33ccff, #66ff66);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-bottom: 6px;
}

.left-content {
  border-radius: 10px;
  padding: 10px;
  flex: 1 1 300px;
  max-width: 460px;
  color: #000;
}

.form-container {
  background: #e6f7ff;
  width: 100%;
  color: #222;
  display: flex;
  flex-direction: column;
}

.form-hero {
  display: flex;
  width: 100%;
  overflow: hidden;
  margin-bottom: 6px;
  border: 0;
}

.form-hero .hero-left {
  background: var(--accent-orange);
  color: var(--heading-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-hero .hero-right {
  background: var(--accent-dark);
  color: var(--heading-white);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-hero .hero-left .left-text {
  line-height: 1.05;
  font-weight: 700;
}

.form-hero .hero-left .left-small {
  display: block;
  font-weight: 700;
}

.form-hero .hero-right .subtitle {
  color: rgba(255,255,255,0.95);
  margin: 0;
  line-height: 1.25;
  opacity: 0.95;
}

.form-header {
  text-align: left;
  margin-bottom: 6px;
}

.form-header h1 {
  margin: 0;
  color: #013A51;
}

label {
  color: #444;
  display: block;
}

input.form-control,
select.form-control {
  border-radius: 8px;
  background: #fff;
  color: #222;
  box-sizing: border-box;
}

.gender-box-container {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.gender-box label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.sample-menu {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 6px;
  max-width: calc(100% - 24px);
  z-index: 99999;
  text-align: left;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lang-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: calc(8px * var(--scale)) calc(10px * var(--scale));
  border-radius: 6px;
  cursor: pointer;
  color: #111;
  white-space: nowrap;
}

.btn-custom {
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-size: calc(14px * var(--scale));
}


.pac-container {
  z-index: 30000 !important;
}

