:root {
  color-scheme: light;
  --bg: #f4f7f7;
  --surface: #ffffff;
  --ink: #17191c;
  --muted: #656b73;
  --line: #dfe4df;
  --accent: #007f73;
  --accent-strong: #005d55;
  --accent-soft: #e5f4f1;
  --warning: #b56a00;
  --error: #b92e34;
  --success: #13784c;
  --shadow: 0 18px 48px rgba(25, 32, 35, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 127, 115, 0.1), transparent 32%),
    linear-gradient(315deg, rgba(181, 106, 0, 0.08), transparent 28%),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(340px, 0.9fr);
  gap: clamp(24px, 4vw, 54px);
  width: min(1040px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 54px) 0;
  align-items: center;
}

.intro {
  display: grid;
  gap: 18px;
}

.eyebrow {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(0, 127, 115, 0.28);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 500px;
  font-size: clamp(2.25rem, 5.2vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 420px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.55;
}

.submission-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.submission-note div {
  min-width: 0;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.84);
}

.note-label,
.note-value {
  display: block;
}

.note-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.note-value {
  font-size: 0.9rem;
  font-weight: 800;
}

.form-panel {
  width: 100%;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(23, 25, 28, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.credit {
  grid-column: 1 / -1;
  justify-self: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.form-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
}

.form-heading h2 {
  font-size: 1.28rem;
  letter-spacing: 0;
}

.form-heading p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

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

.field {
  display: grid;
  gap: 6px;
}

label,
.upload-title {
  font-size: 0.84rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

input,
select {
  padding: 0 13px;
}

input:focus,
select:focus,
.upload-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 127, 115, 0.14);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.hidden {
  display: none;
}

.upload-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px dashed #aab5ad;
  border-radius: 8px;
  background: #fbfcfb;
  cursor: pointer;
}

.upload-text {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
}

.upload-action {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.form-message {
  display: none;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.4;
}

.form-message.visible {
  display: block;
}

.form-message.error {
  color: var(--error);
  background: #fff0f1;
}

.form-message.success {
  color: var(--success);
  background: #edf8f2;
}

.form-message.warning {
  color: var(--warning);
  background: #fff6e8;
}

.submit-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.submit-button:hover {
  background: var(--accent-strong);
  box-shadow: 0 14px 28px rgba(0, 93, 85, 0.2);
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

@media (max-width: 860px) {
  .page-shell {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    padding: 14px 0 12px;
  }

  .intro {
    gap: 9px;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
    line-height: 1;
  }

  .submission-note {
    display: none;
  }

  .form-heading {
    margin-bottom: 13px;
  }

  .credit {
    font-size: 0.72rem;
  }

  .form-heading h2 {
    font-size: 1.12rem;
  }

  form {
    gap: 10px;
  }

  input,
  select {
    min-height: 42px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 18px, 1040px);
  }

  .form-panel {
    padding: 15px;
  }

  .intro-copy {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .upload-box {
    min-height: 60px;
    padding: 10px 12px;
  }

  .check-row {
    line-height: 1.32;
  }

  .submit-button {
    min-height: 44px;
  }
}
