* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(rgba(31, 41, 51, 0.2), rgba(31, 41, 51, 0.2)),
    url("assets/puppies-grass.png") center / cover no-repeat fixed;
  color: #1f2933;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.entry-layout {
  width: 100%;
  max-width: 620px;
}

main {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border: 1px solid rgba(217, 226, 236, 0.9);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(31, 41, 51, 0.14);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d9e2ec;
}

.brand-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.site-logo {
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
  object-fit: contain;
}

.brand-name,
.brand-tagline {
  margin: 0;
}

.brand-name {
  color: #1f2933;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-tagline {
  margin-top: 4px;
  color: #52606d;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

p {
  margin: 0 0 24px;
  color: #52606d;
  line-height: 1.5;
}

form {
  display: grid;
  gap: 18px;
}

.merch-preview {
  text-align: center;
}

.merch-preview img {
  display: block;
  width: min(100%, 450px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

fieldset {
  border: 1px solid #cfe3d4;
  border-radius: 8px;
  margin: 0;
  padding: 18px;
}

legend {
  width: 100%;
  padding: 0 8px;
  font-weight: 800;
}

legend,
.secure-payment-label {
  display: flex;
  align-items: center;
}

legend {
  justify-content: space-between;
  gap: 16px;
}

.secure-payment-label {
  gap: 5px;
  color: #2f855a;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.secure-payment-label svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.full-width {
  grid-column: 1 / -1;
}

.fixed-donation-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #f0f7f2;
  border: 1px solid #aac7b1;
  border-radius: 6px;
}

.fixed-donation-amount span {
  color: #52606d;
  font-size: 14px;
  font-weight: 700;
}

.fixed-donation-amount strong {
  color: #1f2933;
  font-size: 22px;
}

.split-form-row {
  display: flex;
  gap: 8px;
}

.split-form-row > div:first-child {
  flex: 0 0 calc(50% - 4px);
  min-width: 0;
}

.split-form-row > div:last-child {
  flex: 0 0 calc(50% - 4px);
  min-width: 0;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 14px;
}

input,
select {
  width: 100%;
  border: 1px solid #aac7b1;
  border-radius: 6px;
  padding: 12px 14px;
  font: inherit;
  color: #1f2933;
  background: #f0f7f2;
}

input:focus,
select:focus {
  outline: 3px solid #b3d4ff;
  border-color: #2478cc;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background: #1f6f8b;
  cursor: pointer;
}

button:hover {
  background: #155f75;
}

.form-footer-logo {
  display: block;
  width: 96px;
  height: auto;
  margin: 0 auto;
}

.phishing-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 41, 51, 0.62);
}

.phishing-modal[hidden] {
  display: none;
}

.phishing-card {
  width: min(460px, 100%);
  padding: 28px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.phishing-card h2 {
  margin: 0 0 12px;
  color: #b42318;
  font-size: 30px;
  line-height: 1.2;
}

.phishing-card p {
  margin: 0 0 22px;
}

.close-modal-button {
  background: #b42318;
}

.close-modal-button:hover {
  background: #8f1c14;
}

.donation-page {
  max-width: 720px;
}

.amount-options,
.card-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.amount-options label,
.card-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 48px;
  padding: 12px;
  background: #f0f7f2;
  border: 1px solid #aac7b1;
  border-radius: 6px;
  cursor: pointer;
}

.amount-options input,
.card-options input {
  width: auto;
}

.training-notice {
  padding: 14px;
  color: #1f2933;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  line-height: 1.5;
}

.donation-page-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.secondary-link {
  color: #1f6f8b;
  font-weight: 700;
}

/* Home page styles */
.home-page main {
  max-width: 720px;
}

.hero-image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 300px;
}

.home-section {
  margin-bottom: 32px;
}

.home-section h2 {
  font-size: 22px;
  margin: 0 0 12px;
  color: #1f2933;
}

.home-section p {
  margin: 0 0 16px;
}

.feature-list {
  margin: 0 0 16px;
  padding-left: 20px;
  color: #52606d;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  background: #1f6f8b;
  text-decoration: none;
  cursor: pointer;
}

.cta-button:hover {
  background: #155f75;
}

.cta-note {
  color: #52606d;
  font-size: 14px;
}

.site-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #d9e2ec;
  text-align: center;
}

.footer-text {
  font-size: 13px;
  color: #7b8794;
}

@media (max-width: 520px) {
  body {
    padding: 16px;
  }

  main {
    padding: 24px;
  }

  .site-header {
    align-items: flex-start;
    gap: 12px;
  }

  .site-logo {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .amount-options,
  .card-options {
    grid-template-columns: 1fr;
  }
}
