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

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

/* ── Info banner ── */
.seva-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;
}
.seva-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; }

/* ── 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; }

/* ── Signup type tiles ── */
.signup-type-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}
@media (max-width: 480px) { .signup-type-group { grid-template-columns: 1fr; } }

.signup-type-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;
}
.signup-type-tile:hover { border-color: #cc4e00; background: #fff3e8; }
.signup-type-tile:has(input:checked) {
  border-color: #cc4e00;
  background: #fff3e8;
  box-shadow: 0 0 0 3px rgba(204,78,0,.18);
}
.signup-type-tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.signup-type-tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px 16px;
  text-align: center;
}
.signup-type-tile-inner i { font-size: 2rem; color: #cc4e00; margin-bottom: 10px; }
.signup-type-name { font-weight: 700; font-size: 1rem; color: #3a1a00; margin-bottom: 5px; }
.signup-type-sub { font-size: .8rem; color: #7a4010; line-height: 1.4; }

/* ── Seva / interest tiles ── */
.seva-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 12px;
}
.seva-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;
}
.seva-tile:hover { border-color: #cc4e00; background: #fff3e8; }
.seva-tile:has(input:checked) {
  border-color: #cc4e00;
  background: #fff3e8;
  box-shadow: 0 0 0 3px rgba(204,78,0,.18);
}
.seva-tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px 12px;
  text-align: center;
}
.seva-tile-inner i { font-size: 1.5rem; color: #cc4e00; margin-bottom: 7px; }
.seva-tile-name { font-weight: 700; font-size: .82rem; color: #3a1a00; line-height: 1.2; }
.seva-tile input { position: absolute; opacity: 0; width: 0; height: 0; }

/* ── Availability tile groups ── */
.avail-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.avail-tile {
  display: block;
  cursor: pointer;
  border: 2px solid #e0c89a;
  border-radius: 30px;
  background: #fffdf5;
  transition: border-color .2s, background .2s, box-shadow .2s;
  user-select: none;
}
.avail-tile:hover { border-color: #cc4e00; background: #fff3e8; }
.avail-tile:has(input:checked) {
  border-color: #cc4e00;
  background: #fff3e8;
  box-shadow: 0 0 0 3px rgba(204,78,0,.15);
}
.avail-tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.avail-tile-inner {
  padding: 9px 18px;
  font-weight: 600;
  font-size: .88rem;
  color: #3a1a00;
  display: flex;
  align-items: center;
  gap: 6px;
}
.avail-tile-inner i { color: #cc4e00; font-size: .9rem; }

/* ── Other seva text wrap ── */
#otherSevaWrap, #otherPriestWrap { display: none; margin-top: 10px; }

/* ── Priest work section toggle ── */
#volunteerSection, #priestSection { display: none; }

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

/* ── SMS 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; }

/* ── Submit / Reset buttons ── */
.btn-seva-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-seva-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.btn-seva-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-seva-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; }
}

/* ── Priest Assistance calendar ── */
.priest-cal-wrap {
  background: #fff;
  border: 1px solid #e8d5b0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
  max-width: 340px;
}
.priest-cal-header {
  background: linear-gradient(135deg, #3a1a00, #cc4e00);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.priest-cal-header span {
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: .92rem;
  font-weight: 700;
}
.priest-cal-nav {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.priest-cal-nav:hover { background: rgba(255,255,255,.35); }
.priest-cal-grid {
  padding: 10px 10px 14px;
}
.priest-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.priest-cal-dow span {
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  color: #cc4e00;
  padding: 4px 0;
  text-transform: uppercase;
}
.priest-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.priest-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
  color: #2c1a00;
}
.priest-cal-day:hover:not(.disabled):not(.empty) {
  background: #fff3e0;
  border-color: #cc4e00;
}
.priest-cal-day.selected {
  background: #cc4e00;
  color: #fff;
  border-color: #cc4e00;
}
.priest-cal-day.today {
  border-color: #f5a623;
  color: #cc4e00;
  font-weight: 800;
}
.priest-cal-day.today.selected { color: #fff; }
.priest-cal-day.disabled {
  color: #ccc;
  cursor: default;
  background: none;
}
.priest-cal-day.empty { cursor: default; }
.priest-cal-selected-summary {
  font-size: .8rem;
  color: #7a3800;
  margin-top: 10px;
  padding: 8px 12px;
  background: #fff8e1;
  border: 1px solid #e8d5b0;
  border-radius: 8px;
  display: none;
}
.priest-cal-selected-summary.show { display: block; }
