/*!
 * Copyright © 2025 OHTCC (ohtccwa.org)
 * All rights reserved.
 * pooja.css — styles for poojarequest.html
 */

/* ── Form wrap ── */
.pooja-form-wrap {
  max-width: 780px;
  margin: 8px auto 40px;
  padding: 0 15px;
}

/* ── Info banner ── */
.pooja-info-banner {
  background: #fff8f0;
  border: 1px solid #e0c89a;
  border-left: 4px solid #cc4e00;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .92rem;
  color: #3a1a00;
  line-height: 1.6;
}
.pooja-info-banner i { color: #cc4e00; margin-right: 6px; }

/* ── Card header ── */
.header-box {
  background: linear-gradient(180deg, #cc4e00, #b04600);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 13px 20px;
  border-radius: 8px 8px 0 0;
  letter-spacing: .03em;
}
.header-box i { margin-right: 5px; }

.form-card {
  background: #fff;
  border: 1px solid #e0c89a;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 24px 28px 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

/* ── Form fields ── */
.form-label {
  font-weight: 600;
  color: #3a1a00;
  margin-bottom: 5px;
  font-size: .92rem;
}
.form-control, .form-select {
  border: 1.5px solid #d4b896;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .97rem;
  color: #333;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: #cc4e00;
  box-shadow: 0 0 0 3px rgba(204,78,0,.15);
  outline: none;
}
textarea.form-control { min-height: 100px; resize: vertical; }

/* ── Form validation ── */
.field-error { border-color: #dc3545 !important; }
.error-msg { color: #dc3545; font-size: 0.8rem; margin-top: 3px; display: none; }
.error-msg.show { display: block; }

/* ── Date inputs ── */
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }
input[type="date"]:invalid { color: #aaa; }
input[type="date"] { color-scheme: light; }

/* ── Location radio tiles ── */
.location-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}
@media (max-width: 480px) { .location-radio-group { grid-template-columns: 1fr; } }
.location-tile {
  display: block;
  cursor: pointer;
  border: 2px solid #e0c89a;
  border-radius: 10px;
  background: #fffdf5;
  transition: border-color .2s, background .2s, box-shadow .2s;
  user-select: none;
}
.location-tile:hover { border-color: #cc4e00; background: #fff3e8; }
.location-tile:has(input:checked) {
  border-color: #cc4e00;
  background: #fff3e8;
  box-shadow: 0 0 0 3px rgba(204,78,0,.18);
}
.location-tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.location-tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 14px;
  text-align: center;
}
.location-tile-inner i { font-size: 1.8rem; color: #cc4e00; margin-bottom: 8px; }
.location-tile-name { font-weight: 700; font-size: .95rem; color: #3a1a00; margin-bottom: 4px; }
.location-tile-sub { font-size: .78rem; color: #7a4010; }

/* ── Pooja type tiles ── */
.pooja-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 12px;
}
.pooja-tile {
  display: block;
  cursor: pointer;
  border: 2px solid #e0c89a;
  border-radius: 10px;
  background: #fffdf5;
  transition: border-color .2s, background .2s, box-shadow .2s;
  user-select: none;
}
.pooja-tile:hover { border-color: #cc4e00; background: #fff3e8; }
.pooja-tile:has(input:checked) {
  border-color: #cc4e00;
  background: #fff3e8;
  box-shadow: 0 0 0 3px rgba(204,78,0,.18);
}
.pooja-tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px 12px;
  text-align: center;
}
.pooja-tile-inner i { font-size: 1.5rem; color: #cc4e00; margin-bottom: 7px; }
.pooja-tile-name { font-weight: 700; font-size: .82rem; color: #3a1a00; line-height: 1.2; }
.pooja-tile input { position: absolute; opacity: 0; width: 0; height: 0; }

/* ── Date/time row ── */
.date-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 576px) { .date-time-row { grid-template-columns: 1fr; } }

/* ── Submit button ── */
.btn-pooja-submit {
  background: linear-gradient(135deg, #ff9800, #ffeb3b);
  color: #7a0c10;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 30px;
  padding: 13px 40px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-pooja-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* ── Reset button ── */
.btn-pooja-reset {
  background: #fff;
  color: #7a0c10;
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid #cc4e00;
  border-radius: 30px;
  padding: 13px 32px;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-pooja-reset:hover { background: #fff3e0; transform: translateY(-2px); }

/* ── Success modal ── */
#successModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#successModal.show { display: flex; }
.modal-inner {
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
  animation: modalPop .3s ease;
}
.modal-top {
  background: linear-gradient(135deg, #cc4e00, #b04600);
  padding: 28px 32px 20px;
  text-align: center;
}
.modal-top .emoji { font-size: 3rem; margin-bottom: 8px; }
.modal-top h3 { color: #fff; margin: 0; font-size: 1.3rem; }
.modal-body-inner { padding: 22px 28px 26px; text-align: center; color: #3a1a00; line-height: 1.6; }
.modal-body-inner p { margin-bottom: 8px; }
.btn-modal-close {
  background: #cc4e00;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 36px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 18px;
  transition: background .2s;
}
.btn-modal-close:hover { background: #a33d00; }
@keyframes modalPop {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Other pooja wrap ── */
#otherPoojaWrap { display: none; margin-top: 10px; }

/* ── Required note ── */
.required-note { font-size: .82rem; color: #666; margin-bottom: 5px; }

/* ── SMS / info note ── */
.sms-note {
  background: #f0faf5;
  border: 1px solid #a8d8be;
  border-left: 4px solid #2d6a4f;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .88rem;
  color: #1a3a2a;
  margin-top: 8px;
}
.sms-note i { color: #2d6a4f; margin-right: 6px; }
.pooja-tile-inner {
  position: relative;
}

.tile-price {
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #b5451b;
}

/* ── Sponsorship tiles (seetha-rama-kalyanam.html) ── */
.sponsorship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 6px;
  margin-bottom: 4px;
}
@media (max-width: 480px) { .sponsorship-grid { grid-template-columns: 1fr; } }
.sponsorship-tile {
  display: block;
  cursor: pointer;
  border: 2px solid #e0c89a;
  border-radius: 12px;
  background: #fffdf5;
  transition: border-color .2s, background .2s, box-shadow .2s;
  user-select: none;
}
.sponsorship-tile:hover { border-color: #cc4e00; background: #fff3e8; }
.sponsorship-tile:has(input:checked) {
  border-color: #cc4e00;
  background: #fff3e8;
  box-shadow: 0 0 0 3px rgba(204,78,0,.18);
}
.sponsorship-tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.sponsorship-tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px 18px;
  text-align: center;
  position: relative;
}
.sponsorship-tile-inner i { font-size: 1.8rem; color: #cc4e00; margin-bottom: 9px; }
.sponsor-price {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #b5451b;
}
.sponsor-title {
  font-weight: 700;
  font-size: .97rem;
  color: #3a1a00;
  margin-bottom: 5px;
}
.sponsor-desc {
  font-size: .8rem;
  color: #7a4010;
  line-height: 1.4;
}