
:root { --green: #1b6e12; --glow: 46, 160, 30; --ink: #1e2b1c; }
.contact-main { background: #fff; color: var(--ink); font-family: "Nunito Sans", sans-serif; overflow-x: hidden; }

/* Contact page: top picture + title in black, then white space. */
.c-hero {
  display: flex; align-items: center; justify-content: center; min-height: clamp(260px, 46vh, 440px);
  background: #fff url("Schooloutline.jpg") center / cover no-repeat;          /* Fits the page width. */
  margin-bottom: 70px;                                                              /* The white space after the picture. */
}
.c-hero h1 { margin: 0; color: #000; font: 700 clamp(2.6rem, 7vw, 4.6rem) "Source Serif 4", serif; }

/* Donation link and its responsive styling. */
.donate-band {
  position: relative; display: flex; justify-content: center; align-items: center; padding: 28px 90px; text-align: center;
  color: #fff; text-decoration: none; background: linear-gradient(90deg, #14540d, var(--green), #14540d);
  box-shadow: inset 0 0 0 0 rgba(var(--glow), 0); transition: box-shadow .45s ease;
}
.db-text strong { display: block; font: 700 clamp(1.5rem, 4vw, 2.2rem) "Source Serif 4", serif; }
.db-text small { display: block; margin-top: 4px; font: 600 .9rem "Nunito Sans", sans-serif; opacity: .85; }
.db-go { position: absolute; right: 28px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem;
         background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.8); transition: transform .35s ease, background .35s; }
.donate-band:hover, .donate-band:focus-visible { box-shadow: inset 0 0 40px 6px rgba(120, 255, 90, .55), 0 0 26px 6px rgba(var(--glow), .5); outline: none; }
.donate-band:hover .db-go, .donate-band:focus-visible .db-go { transform: translateX(6px); background: rgba(255,255,255,.32); }

.c-wrap { max-width: 1100px; margin: 0 auto; padding: 60px 24px 80px; }

/* Map. */
.map-part iframe { display: block; width: 100%; height: clamp(300px, 45vw, 440px); border: 0; border-radius: 22px; box-shadow: 0 8px 26px rgba(0,0,0,.18); }
.map-link { margin: 12px 0 0; text-align: right; font-weight: 700; }
.map-link a { color: var(--green); }

/* Contact details: plain text, no blocks. */
.contact-part { margin-top: 70px; text-align: center; }
.contact-part h2, .d-title, .form-panel h2, .principal h2 { font-family: "Source Serif 4", serif; color: var(--green); }
.contact-part h2 { margin: 0 0 34px; font-size: 2rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.c-item h3 { margin: 0 0 10px; font: 700 .85rem "Nunito Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.c-item p { margin: 0; font-size: 1.15rem; line-height: 1.7; }
.c-item a { color: var(--ink); text-decoration: none; border-bottom: 0; transition: color .25s, border-color .25s; }
.c-item a:hover { color: var(--green); border-color: var(--green); }
.social { margin-top: 44px; }
.c-item .fb { display: inline-flex; align-items: center; gap: 12px; border: 0; font-weight: 700; }
.c-item .fb svg { transition: transform .35s ease, filter .45s ease; border-radius: 9px; }
.c-item .fb:hover svg { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(24, 119, 242, .7)); }

/* Donation page. */
.donate-main { position: relative; isolation: isolate; background: #eef7e9; }
.donate-main::before { content: ""; position: absolute; inset: -30px; z-index: -2; background: url("Background%20puc.jpeg") center / cover no-repeat; filter: blur(9px); }
.donate-main::after  { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(238, 247, 233, .72); }
.d-wrap { max-width: 1000px; margin: 0 auto; padding: 36px 24px 90px; }
.back-btn { display: inline-block; padding: 8px 20px; border-radius: 999px; border: 2px solid var(--green); background: rgba(255,255,255,.85); color: var(--green);
            font: 700 .95rem "Nunito Sans", sans-serif; text-decoration: none; transition: background .25s, color .25s, box-shadow .25s; }
.back-btn:hover, .back-btn:focus-visible { background: var(--green); color: #fff; box-shadow: 0 0 14px rgba(var(--glow), .6); }
.d-title { margin: 26px 0 30px; text-align: center; font-size: clamp(2rem, 5vw, 3rem); }

/* Principal message and portrait. */
.principal { display: flex; gap: 40px; align-items: center; margin-bottom: 40px; padding: 48px 52px; border-radius: 30px; background: rgba(255,255,255,.94);
             border-left: 10px solid var(--green); box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.p-photo { flex: none; width: 220px; height: 280px; object-fit: cover; border-radius: 22px; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.p-text { position: relative; flex: 1; }
.quote { position: absolute; top: -34px; left: -8px; font: 700 7rem/1 "Source Serif 4", serif; color: rgba(var(--glow), .25); pointer-events: none; }
.principal h2 { position: relative; margin: 0 0 18px; font-size: 1.9rem; }
.principal p { margin: 0 0 14px; font-size: 1.2rem; line-height: 1.9; }
.principal .sign { margin: 22px 0 0; font-size: 1rem; color: #24511d; }

/* The form. */
.form-panel { padding: 38px 44px; border-radius: 30px; background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.form-panel h2 { margin: 0 0 22px; font-size: 1.7rem; text-align: center; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 6px; font: 700 .95rem "Nunito Sans", sans-serif; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; box-sizing: border-box; padding: 12px 16px; border: 2px solid #cfe3c8; border-radius: 14px; background: #fff;
  font: 400 1rem "Nunito Sans", sans-serif; color: var(--ink); transition: border-color .25s, box-shadow .35s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(var(--glow), .3), 0 0 16px rgba(var(--glow), .35); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); }
.trap { position: absolute; left: -9999px; }
.send { justify-self: center; padding: 14px 40px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font: 700 1.1rem "Nunito Sans", sans-serif;
        background: linear-gradient(90deg, #14540d, var(--green)); transition: transform .35s ease, box-shadow .45s ease; }
.send:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 0 0 2px rgba(var(--glow), .75), 0 0 24px 6px rgba(var(--glow), .5); }
.send:disabled { opacity: .6; cursor: wait; }
.status { min-height: 1.4em; margin: 0; text-align: center; font-weight: 600; color: #24511d; }
.thanks { text-align: center; padding: 20px 0; }
.thanks span { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2.2rem; box-shadow: 0 0 22px rgba(var(--glow), .6); }
.thanks h2 { margin: 16px 0 6px; } .thanks p { margin: 0; font-size: 1.1rem; }

/* Same fade in/out while scrolling as the news page. */
.reveal-on .item { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease, box-shadow .45s ease; transition-delay: calc(var(--col, 0) * 90ms); }
.reveal-on .item.is-in { opacity: 1; transform: none; }

/* Responsive layout for tablets and phones. */
@media (max-width: 800px) {
  .contact-grid, .two { grid-template-columns: 1fr; }
  .donate-band { padding: 24px 76px 24px 24px; } .db-go { right: 16px; width: 42px; height: 42px; }
  .principal { flex-direction: column; padding: 36px 26px; } .p-photo { width: 180px; height: 230px; }
  .form-panel { padding: 28px 22px; }
}


/* Responsive layout for tablets and phones. */
@media (max-width: 800px) {
  /* Contact page. */
  .c-hero { margin-bottom: 44px; }
  .c-wrap { padding: 40px 18px 60px; }
  .contact-part { margin-top: 48px; }
  .contact-part h2 { margin-bottom: 24px; font-size: 1.7rem; }
  .contact-grid { gap: 26px; }
  .social { margin-top: 32px; }
  .c-item p, .c-item a { overflow-wrap: anywhere; }   /* A long e-mail address can no longer go off the screen. */

  /* Donation page. */
  .d-wrap { padding: 22px 16px 60px; }
  .d-title { margin: 20px 0 22px; }
  .principal { gap: 28px; margin-bottom: 28px; border-left-width: 6px; border-radius: 22px; }
  .p-text { width: 100%; }
  .principal h2 { font-size: 1.55rem; }
  .principal p { font-size: 1.05rem; line-height: 1.8; overflow-wrap: anywhere; }
  .form-panel { border-radius: 22px; }
  .form-panel h2 { font-size: 1.45rem; }
}
@media (max-width: 480px) {
  .donate-band { padding: 20px 64px 20px 18px; }
  .db-text small { font-size: .82rem; }
  .db-go { right: 12px; width: 38px; height: 38px; font-size: 1.3rem; }
  .p-photo { width: 160px; height: 205px; }
  .quote { top: -26px; font-size: 5.5rem; }
  .send { width: 100%; padding: 14px 20px; }
}
