/*! Prasadam signup styles */

.navivedya-wrap {
  max-width: 1100px;
  margin: 0 auto 44px;
  padding: 0 15px;
}

.navivedya-hero {
  background: #fff8f0;
  border: 1px solid #e0c89a;
  border-left: 4px solid #cc4e00;
  border-radius: 8px;
  padding: 18px 20px;
  color: #3a1a00;
  line-height: 1.65;
}

.navivedya-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 24px;
  align-items: start;
}

.navivedya-card {
  background: #fff;
  border: 1px solid #e0c89a;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  overflow: hidden;
}

.navivedya-card-header {
  background: linear-gradient(180deg, #cc4e00, #b04600);
  color: #fff;
  font-weight: 700;
  padding: 13px 18px;
}

.navivedya-card-body { padding: 20px; }

.navivedya-date-grid,
.navivedya-option-grid,
.quantity-grid {
  display: grid;
  gap: 10px;
}

.navivedya-date-grid { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
.navivedya-option-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.quantity-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

.navivedya-choice {
  display: block;
  cursor: pointer;
  border: 2px solid #e0c89a;
  border-radius: 8px;
  background: #fffdf5;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.navivedya-choice:hover { border-color: #cc4e00; background: #fff3e8; }
.navivedya-choice:has(input:checked) {
  border-color: #cc4e00;
  background: #fff3e8;
  box-shadow: 0 0 0 3px rgba(204,78,0,.14);
}
.navivedya-choice input { position: absolute; opacity: 0; width: 0; height: 0; }

.navivedya-choice span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  text-align: center;
  color: #3a1a00;
  font-weight: 700;
  line-height: 1.25;
}

.navivedya-choice .prasadam-choice-content {
  min-height: 86px;
  flex-direction: column;
  gap: 5px;
}

.navivedya-choice .program-day-choice-content {
  min-height: 112px;
  flex-direction: column;
  gap: 7px;
}

.program-day-choice-content strong {
  color: #3a1a00;
  line-height: 1.25;
}

.program-day-choice-content small {
  color: #7a3800;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
}

.prasadam-choice-content i {
  color: #cc4e00;
  font-size: 1.3rem;
  line-height: 1;
}

.prasadam-choice-content strong {
  font-size: .98rem;
  line-height: 1.15;
}

.prasadam-choice-content small {
  color: #6f4a25;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
}

.item-quantity-wrap {
  margin-top: 14px;
  border: 1px solid #efd19a;
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.item-quantity-heading {
  color: #7a0c10;
  font-weight: 800;
  margin-bottom: 10px;
}

.item-quantity-list {
  display: grid;
  gap: 10px;
}

.item-quantity-empty {
  color: #6f4a25;
  font-size: .88rem;
  line-height: 1.45;
}

.item-quantity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 10px;
  align-items: center;
}

.item-quantity-name {
  color: #3a1a00;
  font-weight: 700;
  line-height: 1.35;
}

.item-quantity-row select,
.item-quantity-row input {
  border: 1.5px solid #d4b896;
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 10px;
}

.item-quantity-other {
  grid-column: 1 / -1;
}

.public-list-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

@media (max-width: 520px) {
  .item-quantity-row {
    grid-template-columns: 1fr;
  }
}

.public-list-toolbar select,
.public-list-toolbar input {
  border: 1.5px solid #d4b896;
  border-radius: 8px;
  padding: 9px 12px;
  min-height: 42px;
}

.public-signup-list {
  display: grid;
  gap: 10px;
}

.public-signup-item {
  border: 1px solid #edd4aa;
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px 14px;
}

.public-signup-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.public-signup-name {
  color: #cc4e00;
  font-weight: 800;
}

.public-signup-meta {
  color: #5a3200;
  font-size: .9rem;
  margin-top: 4px;
}

.public-signup-date {
  background: #fff3e0;
  border-radius: 999px;
  color: #7a3800;
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 800;
  padding: 5px 9px;
  text-align: center;
}

.public-signup-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.public-signup-actions {
  display: flex;
  gap: 6px;
}

.signup-icon-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d4b896;
  border-radius: 999px;
  color: #7a3800;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.signup-icon-btn:hover {
  border-color: #cc4e00;
  color: #cc4e00;
}

.signup-icon-btn.danger {
  color: #b71c1c;
}

.signup-icon-btn.danger:hover {
  border-color: #b71c1c;
  background: #ffebee;
}

.signup-edit-panel {
  border-top: 1px solid #edd4aa;
  margin-top: 12px;
  padding-top: 12px;
}

.signup-edit-grid {
  display: grid;
  gap: 10px;
}

.signup-edit-grid label {
  color: #5a3200;
  display: grid;
  font-size: .82rem;
  font-weight: 800;
  gap: 4px;
}

.signup-edit-grid input,
.signup-edit-grid select {
  border: 1.5px solid #d4b896;
  border-radius: 8px;
  color: #3a1a00;
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
}

.signup-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.signup-save-btn,
.signup-cancel-btn {
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  padding: 8px 16px;
}

.signup-save-btn {
  background: #cc4e00;
  border: 1px solid #cc4e00;
  color: #fff;
}

.signup-cancel-btn {
  background: #fff;
  border: 1px solid #d4b896;
  color: #5a3200;
}

.signup-manage-message {
  color: #5a3200;
  font-size: .84rem;
  font-weight: 700;
  margin-top: 8px;
}

.signup-manage-message.success { color: #1b5e20; }
.signup-manage-message.error { color: #b71c1c; }

.navivedya-note {
  background: #f8fbff;
  border: 1px solid #b9d2f0;
  border-left: 4px solid #1565c0;
  border-radius: 8px;
  color: #14395f;
  font-size: .9rem;
  padding: 12px 14px;
}

.field-error { border-color: #dc3545 !important; }
.error-msg { color: #dc3545; display: none; font-size: .82rem; margin-top: 4px; }
.error-msg.show { display: block; }
.required-note { color: #666; font-size: .84rem; }

.navivedya-submit {
  background: linear-gradient(135deg, #ff9800, #ffeb3b);
  border: none;
  border-radius: 28px;
  color: #7a0c10;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  padding: 12px 28px;
}
.navivedya-submit:disabled { cursor: not-allowed; opacity: .72; }

.navivedya-reset {
  background: #fff;
  border: 2px solid #cc4e00;
  border-radius: 28px;
  color: #cc4e00;
  font-weight: 800;
  padding: 10px 22px;
}

.navivedya-alert {
  border-radius: 8px;
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
}
.navivedya-alert.show { display: block; }
.navivedya-alert.success { background: #e8f5e9; border: 1px solid #81c784; color: #1b5e20; }
.navivedya-alert.error { background: #ffebee; border: 1px solid #ef9a9a; color: #b71c1c; }

@media (max-width: 900px) {
  .navivedya-layout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .navivedya-card-body { padding: 16px; }
  .public-signup-top { flex-direction: column; }
  .public-signup-side { justify-items: start; }
}
