:root {
  --text-color: #ececec;

}

html, body {
  margin: 0;
  padding: 0;
}

.card {
  width: 90%;
  background-color: rgb(255, 255, 255);
  padding: 1rem;
}

/* Title */
.summary-title {
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 .5rem 0;
}

/* Rows */
.summary-rows {
  display: grid;
  gap: .5rem;
}

/* One row: date left, amount right */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.25rem;
}

/* Divider before total */
/* .summary-sep {
  border: 0;
  border-top: 2px solid #222;
  margin: .75rem 0 .5rem 0;
} */

/* Total line */
.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 1.5rem;
}

#loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.overlay-content {
  position: relative;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  z-index: 1001;
}


/* -----------------------------------Confirmation Overlay----------------------------------- */

/* === Overlay & Card === */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.confirm-overlay.show { opacity: 1; }

.confirm-card {
  background: #fff;
  border-radius: 1rem;           /* rounded-2xl */
  box-shadow: 0 20px 40px rgba(0,0,0,.2), 0 8px 20px rgba(0,0,0,.12);
  width: 100%;
  max-width: 40rem;              /* max-w-xl */
  padding: 1.5rem;               /* p-6 */
  overflow-y: auto;
  max-height: 90vh;
}

/* === Typography === */
.confirm-center { text-align: center; }

.confirm-title {
  font-size: 1.5rem;             /* text-2xl */
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.confirm-subtitle {
  font-size: 0.875rem;           /* text-sm */
  color: #4b5563;                /* gray-600 */
}

.confirm-meta {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.confirm-section-title {
  font-size: 1.125rem;           /* text-lg */
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.confirm-summary-list {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
}
.confirm-summary-list li { margin: 0.25rem 0; }

.confirm-total {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.confirm-info {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.confirm-info .confirm-label { font-weight: 600; }

/* === UI Bits === */
.confirm-divider {
  border: 0;
  border-top: 1px solid #d1d5db; /* gray-300 */
  margin: 1rem 0;
}

.confirm-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-align: center;
  cursor: pointer;
  border: none;
}

.confirm-btn-primary {
  background: #2563eb;           /* blue-600 */
  color: #fff;
}
.confirm-btn-primary:hover { background: #1d4ed8; } /* blue-700 */


/* -----------------------------------Giving Page Header----------------------------------- */

.giving-header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50vh;
  min-height: 25rem;
  background-image: url('../images/crowd.jpg');
  background-size: cover;
  background-position: center;
}

/* Inner container within header */
.giving-header-inner {
  width: 65%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Form group (placeholder for future form content) */
.giving-form-group {
  width: 100%;
}

/* -----------------------------------Promo Section----------------------------------- */

.giving-promo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #f0f0f0;
  margin-bottom: 3rem;
}

.giving-promo-text {
  font-size: 2rem;
  color: #2092f7;
  padding: 1.25rem;         /* ~p-5 */
  line-height: 1.25;        /* ~leading-tight */
  text-align: center;
}

@media (min-width: 1024px) {
  .card {
    width: 80%;
    border-radius: .5rem;
    width: 500px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  }
  
}
