/* =========================
   Donate Page Styles
   ========================= */

/* Reset for donate page elements */
.donate * {
  box-sizing: border-box;
}

.donate {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Donation notification */
.donation-notification {
  max-width: 600px;
  margin: 1rem auto;
  padding: 1rem;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 0.5rem;
  text-align: center;
  color: #c53030;
}

/* Hero section */
.donate .hero {
  text-align: center;
  padding: 2rem 1rem 2rem;
  background-image: url("rocklandLogogMap.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.donate .hero a {
  text-decoration: none;
  display: block;
}

.donate .hero h1 {
  font-family: var(--font-copperplate);
  color: var(--green);
}

.donate .hero h1 span:first-child {
  margin-right: 1rem;
}

.donate .hero h2 {
  font-family: var(--font-bold);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--blue);
  margin-top: 0.5rem;
}

.donate .hero .independent {
  color: var(--blue);
  font-weight: 700;
}

.donate .hero .for {
  color: var(--blue);
  font-weight: 600;
  font-size: 1.5rem;
  display: inline-block;
  vertical-align: top;
  font-style: italic;
}

.donate .hero .county-executive {
  color: var(--green);
  font-weight: 400;
}

/* Amounts section */
.donate .amounts {
  max-width: 600px;
  margin: 0 auto;
  color: var(--blue);
}

.donate .amounts h3 {
  font-family: var(--font-bold);
  font-size: 1.5rem;
  font-weight: 600;
}

.donate .amounts p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  opacity: 0.9;
}

/* Amount grid */
.donate .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .donate .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Preset buttons */
.donate .preset {
  background: var(--light-blue);
  border: 2px solid var(--light-blue);
  border-radius: 0.5rem;
  font-family: var(--font-bold);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donate .preset:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.donate .preset.selected {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* Custom amount input */
.donate .custom {
  background: var(--light-blue);
  border: 1px solid var(--light-blue);
  border-radius: 0.5rem;
  padding: 0 1rem 0 0.5rem;
  display: flex;
  align-items: center;
  cursor: text;
  transition: all 0.2s ease;
}

.donate .custom.selected {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.donate .custom span {
  font-family: var(--font-bold);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-right: 0.5rem;
}

.donate .custom input {
  border: none;
  outline: none;
  font-family: var(--font-header);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--white);
  width: 100%;
  min-width: 0;
  padding-left: 0;
  text-align: center;
}

.donate .custom input::placeholder {
  color: var(--blue);
}

/* Error message */
.donate .error {
  color: #c53030;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-align: center;
  min-height: 1.25rem;
}

/* CTA Button */
.donate .cta {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1.6rem;
  font-family: var(--font-bold);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: block;
}

.donate .cta:hover {
  background: #4a5c1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(92, 114, 34, 0.3);
}

.donate .cta:disabled {
  background: var(--gray);
  color: var(--text-dark);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.donate .cta.loading {
  background: var(--gray);
  color: var(--text-dark);
}

/* Divider */
.donate hr {
  border: none;
  height: 2px;
  background: var(--light-blue);
  margin: 4rem auto 1rem;
  max-width: 500px;
}

/* Contact section */
.donate .contact {
  text-align: center;
  padding: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.donate .contact p {
  font-size: 1.5rem;
  color: var(--blue);
  margin: 0;
  line-height: 1.5;
}

.donate .contact a {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 500;
}

.donate .contact a:hover {
  color: var(--green);
}

/* Seal/Logo at bottom */
.donate .seal {
  text-align: center;
  margin: 2rem auto 3.5rem;
  max-width: 160px;
}

.donate .seal img {
  width: 100%;
  height: auto;
}

/* Desktop/tablet responsive adjustments */
@media (min-width: 768px) {
  .donate .hero h1 {
    font-size: 6rem;
    line-height: 5.5rem;
  }

  .donate .hero h2 {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  .donate .hero .for {
    font-size: 2rem;
  }

  .donate .amounts {
    padding: 0rem 1rem;
    margin-top: 0;
  }

  .donate .amounts h3 {
    font-size: 2rem;
  }

  .donate .cta {
    width: auto;
    min-width: 200px;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  .donate .hero {
    padding: 3rem 2rem 6.5rem;
  }
  .donate .amounts {
    padding: 0rem 1rem;
    margin-top: -3rem;
  }
  .donate .hero h1 {
    font-size: 7rem;
    line-height: 6rem;
  }

  .donate .hero h2 {
    font-size: 3rem;
    line-height: 3.5rem;
  }

  .donate .hero .for {
    font-size: 2.5rem;
  }

  .donate .preset {
    font-size: 3rem;
    padding: 1rem 0;
    font-family: var(--font-bold);
  }

  .donate .amounts {
    max-width: 1000px;
  }
  .donate .custom input {
    font-family: var(--font-bold);
    font-size: 3rem;
  }

  .donate .cta {
    font-size: 3.5rem;
    font-family: var(--font-bold);
  }

  .donate .custom span {
    font-size: 3rem;
    font-family: var(--font-bold);
  }
}

/* Mobile-specific adjustments */
@media (max-width: 640px) {
  .donate .cta {
    width: 80%;
    margin: auto;
    font-size: 2.5rem;
  }

  .donate .hero h1 {
    font-size: 3.5rem;
    line-height: 4rem;
  }

  .donate .hero h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .donate .hero .for {
    font-size: 1.25rem;
    vertical-align: baseline;
  }

  .donate .amounts {
    max-width: 600px;
    margin: 0 auto;
    padding: 0rem 1rem;
    text-align: center;
    color: var(--blue);
  }

  .donate .amounts h3 {
    font-family: var(--font-bold);
    font-size: 1.25rem;
    font-weight: 700;
  }

  .donate .amounts p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    opacity: 0.9;
  }

  .donate .hero h2 {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .donate .grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin: 0 1.5rem 1.5rem 1.5rem;
  }

  .donate .contact p {
    font-size: 1.25rem;
    color: var(--blue);
    margin: 0;
    line-height: 1.25;
  }

  .donate .custom input {
    padding-left: 0;
    text-align: center;
  }
}

/* Extra small screens */
@media (max-width: 375px) {
  .donate .hero h1 {
    font-size: 2.75rem;
    line-height: 3rem;
  }

  .donate .hero .for {
    font-size: 1rem;
    display: inline;
  }
}

/* ==== NEW STYLES FOR CHECK DONATION CARD  ==== */

.amounts h3 {
  text-align: center;
}

.mp-check-card {
  background-color: #e3eef4;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 1rem auto 1.5rem;
  padding: 1.5rem;
  width: 40%;
  text-align: center;
}

.mp-check-title {
  color: var(--blue);
  font-size: 1rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.mp-check-payable {
  color: var(--blue);
  font-size: 1.25rem;
  font-family: var(--font-bold);
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.mp-mail-to {
  color: var(--blue);
  font-size: 1rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.mp-address {
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.4;
}

.mp-address p {
  margin: 0;
  color: var(--blue);
}

/* OR separator */
.mp-separator {
  position: relative;
  text-align: center;
  margin: 0 auto;
  
}

.mp-separator span {
  position: relative;
  background: #fff;
  color: var(--blue);
  font-size: 2rem;
  font-family: var(--font-primary);
  font-weight: 900;
  z-index: 1;
}
@media (max-width: 768px) {
  .mp-check-card {
    width: 60%;
  }
}
@media (max-width: 640px) {
  .mp-check-card {
    padding: 1.25rem;
    width: 60%;
  }
  
  .mp-check-title {
    font-size: 0.9rem;
  }
  
  .mp-check-payable {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
  }
  
  .mp-mail-to {
    font-size: 0.9rem;
  }
  
  .mp-address {
    font-size: 0.9rem;
  }
  
  .mp-separator {
    margin: 1.25rem auto;
  }
  
  .mp-separator span {
    font-size: 1.25rem;
    padding: 0 0.75rem;
  }
}
