/* Stripe Donations - Donation Form
   --main-color is set on .donation-form-wrapper via inline style from PHP.
   Typography: main title 1.6em, subtext 0.95em, body 1em.
*/

.donation-form-wrapper {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #333;
  box-sizing: border-box;
}

.donation-form-wrapper * {
  box-sizing: border-box;
}

.donation-form-container {
  max-width: 450px;
  margin: 30px auto;
  padding: 50px 40px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgb(253, 247, 240) 0%, rgba(253, 247, 240, 0.95) 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--main-color);
  min-height: 550px;
}

/* Main heading: same level as tracker title */
.donation-title {
  text-align: center;
  font-size: 1.6em;
  font-weight: 600;
  color: var(--main-color);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.donation-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--main-color);
  margin: 8px auto 0 auto;
  border-radius: 2px;
}

/* Supporting text under title */
.donation-subtext {
  text-align: center;
  font-size: 0.95em;
  color: #777;
  margin-bottom: 18px;
  line-height: 1.45;
}

.donation-subtext p {
  margin: 0;
  font-size: 1em;
}

.donation-step {
  display: none;
}

.donation-step.active {
  display: block;
  animation: fadeIn 0.6s ease-in-out;
}

.donation-tabs {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
}

.donation-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  cursor: pointer;
  font-size: 1em;
  color: #666;
  transition: all 0.3s ease;
}

.donation-tab.active {
  color: var(--main-color);
  font-weight: bold;
  border-bottom: 3px solid var(--main-color);
}

.donation-tab-content {
  margin-bottom: 20px;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.preset-button {
  flex: 1 1 calc(33.333% - 10px);
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.preset-button:hover {
  opacity: 0.8;
  border-color: var(--main-color);
}

.preset-button.selected {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #fff;
}

.custom-amount input {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  border: 2px solid #ddd;
  border-radius: 8px;
}

.custom-amount input:focus {
  outline: none;
  border-color: var(--main-color);
}

.continue-button,
.donate-now-button {
  width: 100%;
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 14px;
}

.continue-button:hover,
.donate-now-button:hover {
  opacity: 0.85;
}

#step-2 label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
}

#step-2 input[type="text"],
#step-2 input[type="email"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
}

#step-2 input:focus {
  outline: none;
  border-color: var(--main-color);
}

#step-2 label[for="newsletter"] {
  display: flex;
  align-items: center;
  font-weight: 300;
}

#step-2 label[for="newsletter"] input {
  margin-right: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
