:root {
  --text: #1d2735;
  --muted: #4f6278;
  --bg-1: #f8fff5;
  --bg-2: #fff9f2;
  --bg-3: #f2f8ff;
  --card: #ffffff;
  --border: #d9e3ef;
  --accent: #157347;
  --accent-dark: #0f5a38;
  --warm: #de7c3f;
  --danger: #b42318;
  --success: #146c43;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, #ffffff 0%, transparent 30%),
    radial-gradient(circle at 92% 0%, #fff3d6 0%, transparent 35%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 46%, var(--bg-3) 100%);
}

.hero {
  padding: 2rem 1rem 1rem;
}

.hero__glass {
  width: min(1020px, 93vw);
  margin: 0 auto;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(17, 25, 40, 0.12);
}

.hero__header {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  align-items: center;
}

.hero__logo {
  width: 120px;
  max-width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 700;
}

h1 {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

.hero__lead {
  margin: 0.2rem 0;
  color: var(--muted);
}

.status-pill {
  margin: 0.85rem 0 0;
  display: inline-block;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: #ecfdf3;
  border: 1px solid #b7ebcc;
  font-size: 0.86rem;
}

.layout {
  width: min(1020px, 93vw);
  margin: 1rem auto 2.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1.2rem;
  box-shadow: 0 12px 28px rgba(27, 52, 87, 0.08);
}

.schedule-card {
  grid-column: 1 / -1;
}

.schedule-timeline {
  display: grid;
  gap: 0.55rem;
}

.schedule-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.58rem 0.7rem;
  border: 1px solid #e5edf7;
  border-radius: 10px;
  background: #fbfdff;
}

.schedule-time {
  font-weight: 700;
  color: #1d4e89;
}

.schedule-label {
  color: var(--text);
}

h2 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

h3 {
  margin-top: 0;
}

.muted {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.field-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

#paypalButtonContainer {
  min-height: 44px;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.78rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7bc7a1;
  outline: 2px solid rgba(21, 115, 71, 0.16);
}

button,
.button-link {
  width: 100%;
  display: inline-block;
  padding: 0.72rem 0.9rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: var(--accent-dark);
}

button:disabled {
  background: #b8c6d5;
  color: #f5f7fa;
  cursor: not-allowed;
  box-shadow: none;
}

button:disabled:hover {
  background: #b8c6d5;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.checkbox-row input {
  width: auto;
}

.message {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--success);
}

.donation-box {
  margin-top: 1rem;
  border: 1px dashed #cfdbe8;
  border-radius: 12px;
  padding: 0.8rem;
  background: #f9fcff;
}

.donation-box p {
  margin-top: 0;
  color: var(--muted);
}

.info-stack {
  display: grid;
  gap: 0.75rem;
}

.info-item {
  padding: 0.85rem;
  border: 1px solid #e5edf7;
  border-radius: 10px;
  background: #fbfdff;
}

.info-item h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.info-item p {
  margin: 0;
  color: var(--muted);
}

.footer {
  width: min(1020px, 93vw);
  margin: 0 auto 2rem;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: #215f9f;
}

.guide-card {
  max-width: 820px;
  margin: 0 auto;
}

.guide-card h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.35rem;
}

.guide-card p {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-layout {
  width: min(1100px, 94vw);
  margin: 1.2rem auto 2rem;
  display: grid;
  gap: 1rem;
}

.admin-data-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.admin-help-link {
  margin: 0.9rem 0;
}

.admin-help-link a {
  color: #215f9f;
  font-weight: 700;
}

.data-list {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
  background: #fcfdff;
}

.data-item {
  padding: 0.55rem;
  border-radius: 8px;
  border: 1px solid #e9edf4;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.data-item p {
  margin: 0.16rem 0;
}

.data-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.icon-delete {
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  border-radius: 999px;
  background: #fff;
  color: #b42318;
  border: 1px solid #f2b8b5;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
}

.icon-delete:hover {
  background: #ffeceb;
}

.action-button {
  margin-top: 0.5rem;
  padding: 0.55rem 0.8rem;
  width: auto;
}

.action-button[disabled] {
  background: #9eb5a7;
  cursor: not-allowed;
}

.action-button-danger {
  background: #b42318;
}

.action-button-danger:hover {
  background: #8f1c13;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 30, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 90;
}

.modal-card {
  width: min(460px, 95vw);
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dbe6f2;
  padding: 1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.paypal-modal-card {
  width: min(540px, 95vw);
}

.paypal-note-box {
  border: 1px solid #dbe6f2;
  background: #f8fbff;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.9rem;
}

.paypal-note-box p {
  margin: 0.2rem 0;
  font-weight: 700;
}

.paypal-reminder {
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #fff4de;
  border: 1px solid #f0d39a;
  color: #5f4215;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

#confirmDeleteButton {
  background: #b42318;
}

#confirmDeleteButton:hover {
  background: #8f1c13;
}

.is-hidden {
  display: none !important;
}

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

  .admin-data-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .hero__header {
    grid-template-columns: 1fr;
  }

  .hero__logo {
    width: 96px;
  }
}
