
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #111111;
  --white: #ffffff;
  --yellow: #fbd64a;
  --grey: #777777;
  --light-grey: #eeeeee;
  --error: #b42318;
  --success: #067647;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #ffffff;
  color: var(--black);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.donation-page {
  width: 100%;
  min-height: 100vh;
  padding: 25px 20px 35px;
}

.page-header {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

.back-link {
  color: var(--black);
  text-decoration: none;
  font-size: 25px;
  font-weight: 600;
}

.foundation-name {
  font-size: 14px;
  font-weight: 700;
}

.donation-container {
  width: 100%;
  max-width: 430px;
  margin: 45px auto 0;
}

.intro {
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 13px;
}

.intro h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.intro-text {
  margin-top: 14px;
  max-width: 350px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--grey);
}

.donation-section,
.donor-section {
  margin-bottom: 30px;
}

.donation-section h2,
.donor-section h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 17px;
}

.donation-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.donation-tab {
  border: 1px solid var(--light-grey);
  background: var(--white);
  padding: 13px 10px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.donation-tab.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.donation-tab:disabled {
  cursor: not-allowed;
  color: #999999;
  background: #f6f6f6;
}

.recurring-note {
  font-size: 10px;
  color: var(--grey);
  margin: 0 0 17px;
}

.amount-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 17px 0 22px;
}

.amount-option {
  min-height: 48px;
  border: 1px solid #dedede;
  background: var(--white);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.amount-option:hover,
.amount-option.selected {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.custom-amount-label,
.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 9px;
}

.custom-amount-box {
  width: 100%;
  height: 55px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  border-radius: 6px;
  color: var(--white);
}

.custom-amount-box span {
  font-size: 17px;
  font-weight: 700;
}

.custom-amount-box input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  color: var(--white);
  background: transparent;
  font-size: 16px;
  font-weight: 700;
}

.custom-amount-box input::placeholder {
  color: #aaaaaa;
  font-size: 12px;
  font-weight: 500;
}

.custom-amount-box input::-webkit-inner-spin-button,
.custom-amount-box input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}



.amount-hint {
  font-size: 10px;
  color: var(--grey);
  margin-top: 8px;
}

.form-field {
  margin-bottom: 17px;
}

.form-field input {
  display: block;
  width: 100%;
  height: 49px;
  padding: 0 13px;
  border: 1px solid #dedede;
  border-radius: 6px;
  outline: none;
  font-size: 12px;
  background: var(--white);
  transition: border-color 0.2s;
}

.form-field input:focus {
  border-color: var(--black);
}

.form-field input::placeholder {
  color: #aaaaaa;
}

.donate-button {
  width: 100%;
  min-height: 57px;
  padding: 10px 13px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-radius: 50px;
  background: var(--yellow);
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  transition: opacity 0.2s;
}

.donate-button:hover {
  opacity: 0.88;
}

.donate-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 19px;
}

.secure-note {
  margin-top: 15px;
  text-align: center;
  font-size: 10px;
  color: var(--grey);
}

.payment-message {
  padding: 14px;
  margin-bottom: 22px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.6;
}

.payment-message[hidden] {
  display: none;
}

.payment-message.success {
  display: block;
  color: var(--success);
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.payment-message.error {
  display: block;
  color: var(--error);
  background: #fef3f2;
  border: 1px solid #fecdca;
}

.payment-message.info {
  display: block;
  color: #175cd3;
  background: #eff8ff;
  border: 1px solid #b2ddff;
}

.page-footer {
  max-width: 1100px;
  margin: 55px auto 0;
  text-align: center;
  font-size: 10px;
  color: var(--grey);
}

@media (max-width: 480px) {
  .donation-page {
    padding: 22px 20px 30px;
  }

  .donation-container {
    max-width: 361px;
    margin-top: 38px;
  }

  .intro h1 {
    font-size: 33px;
  }
}

@media (min-width: 768px) {
  .donation-container {
    margin-top: 65px;
  }

  .intro h1 {
    font-size: 42px;
  }
}
