:root {
  --page-bg: #d3d3ba;
  --accent-strong: #990000;
  --accent-dark: #590000;
  --neutral-900: #0f0f0f;
  --neutral-700: rgba(17, 17, 17, 0.75);
  --neutral-500: rgba(17, 17, 17, 0.58);
  --neutral-200: rgba(255, 255, 255, 0.85);
  --card-bg: rgba(255, 255, 255, 0.95);
  --shadow-lg: 0 34px 70px -40px rgba(0, 0, 0, 0.48);
  --shadow-md: 0 20px 48px -32px rgba(0, 0, 0, 0.4);
  --radius-lg: clamp(18px, 2.8vw, 28px);
  --radius-md: clamp(14px, 2vw, 22px);
  --space-lg: clamp(40px, 8vw, 96px);
  --space-md: clamp(24px, 4.5vw, 48px);
  --space-sm: clamp(16px, 3vw, 32px);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.program-page {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--neutral-900);
  display: flex;
  flex-direction: column;
}

.program-page__background {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, rgba(211, 211, 186, 0.96) 0%, rgba(181, 181, 164, 0.92) 100%);
  background-image: url('/assets/hero-back.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  filter: saturate(0.85) contrast(1.02);
  z-index: 0;
}

.program-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md) clamp(16px, 6vw, 80px) var(--space-lg);
}

.program-hero {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 5vw, 48px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.program-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(12px, 3vw, 24px);
}

.program-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-hero__back:hover,
.program-hero__back:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.45);
  outline: none;
}

.program-hero__brand img {
  width: clamp(90px, 12vw, 140px);
  height: auto;
  display: block;
}

.program-hero__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.program-hero__info {
  grid-column: span 7;
  display: grid;
  gap: clamp(12px, 2vw, 20px);
}

.program-hero__tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(153, 0, 0, 0.12);
  color: var(--accent-strong);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 0.4vw + 0.6rem, 0.9rem);
}

.program-hero__title {
  margin: 0;
  font-size: clamp(2rem, 2vw + 1.4rem, 2.8rem);
  letter-spacing: 0.02em;
  color: var(--neutral-900);
}

.program-hero__lead {
  margin: 0;
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.2rem);
  line-height: 1.6;
  color: var(--neutral-700);
}

.program-hero__highlights {
  margin: 0;
  padding-left: clamp(16px, 2vw, 28px);
  display: grid;
  gap: clamp(8px, 1vw, 14px);
  color: var(--neutral-700);
}

.program-hero__context {
  grid-column: span 5;
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-md);
  padding: clamp(16px, 2.5vw, 28px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  display: grid;
  gap: clamp(10px, 1.6vw, 18px);
  color: var(--neutral-700);
  line-height: 1.6;
}

.program-form {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.program-form__card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 5vw, 48px);
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.flash-wrapper {
  display: grid;
  gap: 12px;
}

.flash {
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.flash--success {
  background: rgba(0, 128, 0, 0.12);
  color: #0a5f0a;
}

.flash--error {
  background: rgba(153, 0, 0, 0.12);
  color: var(--accent-dark);
}

.report-form {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.field-group {
  margin: 0;
  border: none;
  padding: 0;
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.field-group > legend {
  font-size: clamp(1.2rem, 0.8vw + 1rem, 1.6rem);
  font-weight: 700;
  color: var(--accent-strong);
}

.field-grid {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
}

.field-grid--balanced {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.field {
  display: grid;
  gap: clamp(6px, 1vw, 12px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--neutral-900);
}

.field--wide {
  grid-column: 1 / -1;
}

.field > span {
  text-transform: uppercase;
  font-size: clamp(0.72rem, 0.3vw + 0.62rem, 0.85rem);
  color: rgba(17, 17, 17, 0.7);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  padding: clamp(12px, 1.4vw, 18px) clamp(14px, 1.8vw, 20px);
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px -22px rgba(0, 0, 0, 0.25);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(153, 0, 0, 0.35);
  border-color: rgba(153, 0, 0, 0.5);
}

.field--static {
  align-content: start;
}

.field__static-value {
  margin: 0;
  padding: clamp(12px, 1.6vw, 18px);
  border-radius: 12px;
  background: rgba(153, 0, 0, 0.12);
  color: var(--accent-strong);
  font-weight: 600;
}

.field__hint {
  font-weight: 500;
  color: var(--neutral-500);
  line-height: 1.4;
}

.attachment-input-list {
  display: grid;
  gap: 12px;
}

.attachment-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px dashed rgba(0, 0, 0, 0.16);
}

.attachment-input input[type="file"] {
  flex: 1;
  font: inherit;
}

.attachment-remove {
  border: none;
  background: rgba(153, 0, 0, 0.1);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.attachment-remove:hover,
.attachment-remove:focus-visible {
  background: var(--accent-strong);
  color: #ffffff;
  outline: none;
}

.attachment-add {
  justify-self: start;
}

.upload-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(153, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.upload-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(153, 0, 0, 0.2) 0%, rgba(153, 0, 0, 0.6) 50%, rgba(153, 0, 0, 0.2) 100%);
  animation: shimmer 1.8s infinite linear;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 24px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  border: none;
}

.btn--primary {
  background: var(--accent-strong);
  color: #ffffff;
  box-shadow: 0 18px 32px -24px rgba(153, 0, 0, 0.6);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #b80000;
  transform: translateY(-2px);
  outline: none;
}

.btn--ghost {
  background: rgba(153, 0, 0, 0.08);
  color: var(--accent-strong);
  border: 1px solid rgba(153, 0, 0, 0.25);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(153, 0, 0, 0.16);
  outline: none;
}

.btn--light {
  background: rgba(255, 255, 255, 0.18);
  color: var(--accent-strong);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.submit {
  justify-self: flex-end;
  padding-inline: clamp(28px, 4vw, 48px);
}

.program-footer {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 6vw, 80px);
  color: rgba(17, 17, 17, 0.7);
}

.program-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.program-footer__contact a {
  color: inherit;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .program-hero__body {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .program-hero__info {
    grid-column: 1 / -1;
  }

  .program-hero__context {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .program-shell {
    padding-inline: clamp(16px, 6vw, 32px);
  }

  .program-hero {
    padding: clamp(18px, 6vw, 32px);
  }

  .program-hero__top {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .program-hero__back {
    order: 2;
  }

  .program-form__card {
    padding: clamp(20px, 6vw, 32px);
  }

  .submit {
    justify-self: stretch;
  }
}

@media (max-width: 480px) {
  .program-hero__tag {
    letter-spacing: 0.06em;
  }

  .field-grid--balanced {
    grid-template-columns: 1fr;
  }
}
