/* ============================================================
   Astrosaras — Puja detail page
   Order Your [Puja Name] Registration Form
   ============================================================ */

.puja-detail {
  min-height: 100dvh;
  padding: 120px 0 80px;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(75, 0, 130, 0.32), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(0, 60, 120, 0.22), transparent 60%),
    linear-gradient(180deg, #07041a 0%, #0d0420 50%, #050213 100%);
  color: var(--text, #f5e9c5);
}

/* ---- Hero / breadcrumb / heading ---- */
.puja-detail__hero {
  max-width: 1180px;
  margin: 0 auto 28px;
  padding: 0 20px;
  text-align: center;
}
.puja-detail__crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.16em;
  color: rgba(245, 233, 197, 0.55);
  margin-bottom: 22px;
}
.puja-detail__crumb a {
  color: #d4af37; text-decoration: none;
  transition: color 200ms ease;
}
.puja-detail__crumb a:hover { color: #f5e9c5; }
.puja-detail__heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 600; line-height: 1.2;
  margin: 0 auto; max-width: 900px;
  color: #d4af37;
}
.puja-detail__heading em {
  font-style: italic;
  background: linear-gradient(135deg, #f5d77a 0%, #d4af37 50%, #9b7a1f 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---- Two-column panel ---- */
.puja-detail__panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  background: rgba(20, 8, 48, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 28px;
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  margin-left: 20px; margin-right: 20px;
}
@media (min-width: 1240px) {
  .puja-detail__panel { margin-left: auto; margin-right: auto; }
}
@media (max-width: 880px) {
  .puja-detail__panel { grid-template-columns: 1fr; }
}

/* ---- LEFT: info column ---- */
.puja-detail__info { min-width: 0; }
.puja-detail__media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 18px;
}
.puja-detail__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.puja-detail__corner {
  position: absolute; top: 12px; right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 8, 48, 0.75);
  border: 1px solid #d4af37;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: #d4af37;
}
.puja-detail__title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text, #f5e9c5);
}
.puja-detail__sanskrit {
  font-family: 'Cinzel', serif;
  font-size: 0.96rem;
  color: #d4af37;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.puja-detail__price-block {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 14px;
  font-family: 'Cinzel', serif;
}
.puja-detail__price-now {
  font-size: 1.6rem; font-weight: 700;
  color: #d4af37;
}
.puja-detail__price-old {
  font-size: 0.95rem;
  color: rgba(245, 233, 197, 0.45);
  text-decoration: line-through;
}
.puja-detail__desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem; line-height: 1.7;
  color: rgba(245, 233, 197, 0.85);
  margin: 0 0 22px;
}
.puja-detail__inc-title {
  font-family: 'Cinzel', serif;
  font-size: 0.96rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #d4af37;
  margin: 0 0 12px;
}
.puja-detail__inc-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.02rem; line-height: 1.6;
  color: rgba(245, 233, 197, 0.85);
}
.puja-detail__inc-list li {
  position: relative;
  padding-left: 22px;
}
.puja-detail__inc-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5d77a, #d4af37);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.45);
}
.puja-detail__inc-list strong { color: #f5e9c5; font-weight: 600; }

/* ---- RIGHT: form ---- */
.puja-detail__form {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 22px;
  background: rgba(15, 5, 38, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.22);
  display: flex; flex-direction: column;
  gap: 18px;
}

.pdf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .pdf-grid { grid-template-columns: 1fr; }
}
.pdf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pdf-field--full { grid-column: 1 / -1; }
.pdf-field label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 233, 197, 0.55);
}
.pdf-field input,
.pdf-field select,
.pdf-field textarea {
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(20, 8, 48, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.24);
  color: var(--text, #f5e9c5);
  outline: none;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.pdf-field input::placeholder,
.pdf-field textarea::placeholder {
  color: rgba(245, 233, 197, 0.35);
}
.pdf-field input:focus,
.pdf-field select:focus,
.pdf-field textarea:focus {
  border-color: #d4af37;
  background: rgba(20, 8, 48, 0.85);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.pdf-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, #d4af37 50%),
                    linear-gradient(135deg, #d4af37 50%, transparent 50%);
  background-position: right 18px top 50%, right 12px top 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.pdf-field select:invalid { color: rgba(245, 233, 197, 0.45); }
.pdf-field textarea { resize: vertical; min-height: 80px; }
.pdf-field input:invalid:not(:placeholder-shown) { border-color: rgba(255, 107, 107, 0.55); }
.pdf-field input:valid:not(:placeholder-shown) { border-color: rgba(74, 222, 128, 0.4); }

.pdf-terms {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(20, 8, 48, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.16);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem; line-height: 1.5;
  color: rgba(245, 233, 197, 0.78);
  cursor: pointer;
}
.pdf-terms input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #d4af37;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.pdf-terms a { color: #d4af37; text-decoration: underline; text-underline-offset: 3px; }

.pdf-footbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  flex-wrap: wrap;
}
.pdf-price { display: flex; align-items: baseline; gap: 8px; }
.pdf-price__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245, 233, 197, 0.55);
}
.pdf-price__value {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem; font-weight: 700;
  color: #d4af37;
}
.pdf-price__gst {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  color: rgba(245, 233, 197, 0.45);
}

.pdf-submit {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.86rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: linear-gradient(135deg, #f5d77a 0%, #d4af37 50%, #9b7a1f 100%);
  color: #1a0b2e;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease, opacity 200ms ease;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.32);
}
.pdf-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.42);
  filter: brightness(1.04);
}
.pdf-submit:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.4);
}
.pdf-submit.is-loading { pointer-events: none; opacity: 0.7; }

.pdf-status {
  margin: 6px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.86rem;
}
.pdf-status[data-kind="success"] {
  background: rgba(74, 222, 128, 0.10);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
}
.pdf-status[data-kind="error"] {
  background: rgba(255, 107, 107, 0.10);
  border: 1px solid rgba(255, 107, 107, 0.45);
  color: #ff8a8a;
}
