:root {
  --green: #174b3f;
  --mint: #d9f0df;
  --lime: #b6df4c;
  --coral: #f06a4f;
  --ink: #13211d;
  --muted: #58706a;
  --line: #dbe5df;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8faf7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(217, 240, 223, 0.78), rgba(255, 255, 255, 0.88) 46%, rgba(255, 242, 216, 0.82)),
    #f8faf7;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 54px 0 44px;
  background:
    linear-gradient(120deg, rgba(23, 75, 63, 0.93), rgba(23, 75, 63, 0.72)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='760' viewBox='0 0 1200 760'%3E%3Crect width='1200' height='760' fill='%23174b3f'/%3E%3Cpath d='M0 610 C180 520 330 680 500 590 S840 420 1200 510 L1200 760 L0 760 Z' fill='%23b6df4c' opacity='.62'/%3E%3Cpath d='M80 126 L310 72 L530 146 L762 62 L1060 132' stroke='%23ffffff' stroke-width='18' opacity='.18' fill='none'/%3E%3Ccircle cx='960' cy='230' r='138' fill='%23f06a4f' opacity='.82'/%3E%3Crect x='160' y='248' width='250' height='320' rx='24' fill='%23ffffff' opacity='.16'/%3E%3Crect x='452' y='210' width='252' height='358' rx='24' fill='%23ffffff' opacity='.12'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kicker {
  color: var(--lime);
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 780px;
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 900;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.58;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.photo-tile {
  position: absolute;
  border: 10px solid rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  background-size: cover;
  background-position: center;
}

.photo-tile-one {
  inset: 22px 20px auto 72px;
  height: 250px;
  background-image: url("/assets/images/IMG_1486-1.jpg");
  background-position: center;
}

.photo-tile-two {
  inset: 184px 110px auto 4px;
  height: 230px;
  transform: rotate(-4deg);
  background-image: url("/assets/images/IMG_1313-1.jpg");
  background-position: center 38%;
}

.photo-tile-three {
  inset: 300px 24px auto 210px;
  height: 170px;
  transform: rotate(5deg);
  background-image: url("/assets/images/IMG_1410-1.jpg");
  background-position: center;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
  padding: 44px 0 72px;
}

.upload-form,
.note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(23, 75, 63, 0.08);
}

.upload-form {
  padding: clamp(20px, 4vw, 34px);
}

.form-head {
  max-width: 730px;
  margin-bottom: 26px;
}

.form-head h2,
.note h2 {
  color: var(--green);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.form-head p,
.note,
.status {
  color: var(--muted);
  line-height: 1.6;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fields label,
.consents label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

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

.fields input,
.fields textarea {
  width: 100%;
  border: 1px solid #cddbd4;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfb;
  font: inherit;
}

.fields input:focus,
.fields textarea:focus {
  outline: 3px solid rgba(182, 223, 76, 0.38);
  border-color: var(--green);
}

.dropzone {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 24px;
  border: 2px dashed #b5ccc1;
  border-radius: 8px;
  background: #f8fcf6;
}

.dropzone.is-dragging {
  border-color: var(--coral);
  background: #fff7f3;
}

.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-copy {
  display: grid;
  gap: 4px;
  pointer-events: none;
}

.dropzone-copy strong {
  color: var(--green);
  font-size: 1.1rem;
}

.dropzone-copy span {
  color: var(--muted);
}

.file-button,
.submit {
  position: relative;
  z-index: 1;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.file-button {
  color: var(--green);
  background: var(--mint);
}

.submit {
  color: #ffffff;
  background: var(--coral);
}

.submit:disabled {
  opacity: 0.62;
  cursor: wait;
}

.preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.preview-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.preview-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.preview-item .placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  color: var(--green);
  background: var(--mint);
  font-weight: 800;
}

.preview-item span {
  display: block;
  overflow: hidden;
  padding: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consents {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.consents label {
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 500;
}

.consents input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.consents a {
  color: var(--green);
  font-weight: 800;
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

.status {
  flex-basis: 100%;
  margin: 0;
  font-weight: 700;
}

.status.is-success {
  color: var(--green);
}

.status.is-error {
  color: #b93824;
}

.progress {
  display: none;
  overflow: hidden;
  width: min(260px, 100%);
  height: 10px;
  border-radius: 999px;
  background: #edf3ef;
}

.progress.is-visible {
  display: block;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transition: width 160ms ease;
}

.note {
  position: sticky;
  top: 24px;
  padding: 24px;
}

.note ol {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: 44px 0 36px;
  }

  .hero-grid,
  .upload-layout,
  .fields {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 330px;
  }

  .photo-tile-one {
    inset: 0 12px auto 42px;
    height: 185px;
  }

  .photo-tile-two {
    inset: 116px 86px auto 0;
    height: 175px;
  }

  .photo-tile-three {
    inset: 200px 8px auto 160px;
    height: 122px;
  }

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

  .note {
    position: static;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 22px, 1120px);
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4rem);
  }

  .meta span {
    width: 100%;
  }

  .hero-visual {
    min-height: 260px;
  }

  .photo-tile {
    border-width: 7px;
  }

  .photo-tile-one {
    left: 28px;
    right: 0;
    height: 150px;
  }

  .photo-tile-two {
    top: 104px;
    right: 62px;
    height: 140px;
  }

  .photo-tile-three {
    top: 174px;
    left: 126px;
    height: 86px;
  }

  .upload-form,
  .note,
  .dropzone {
    padding: 18px;
  }
}
