:root {
  --green: #195b30;
  --green-dark: #103e22;
  --ink: #18251e;
  --muted: #5c6b62;
  --line: #d3ddd5;
  --paper: #f6f8f5;
  --gold: #a66c13;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
}

button, input, select, textarea { font: inherit; }

.nomination-topbar {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 8px clamp(16px, 4vw, 46px);
  border-bottom: 1px solid #d2ddd4;
  background: #fff;
}

.nomination-brand {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--green-dark);
  text-decoration: none;
}

.nomination-brand img { width: 34px; height: 34px; }
.nomination-brand strong, .nomination-brand small { display: block; letter-spacing: 0; }
.nomination-brand small { color: var(--muted); font-size: .7rem; }
.nomination-topbar > a:last-child { color: var(--green); font-size: .84rem; font-weight: 800; }

main { width: min(980px, 100%); margin: 0 auto; padding: 34px 18px 70px; }
.nomination-heading { margin-bottom: 30px; }
.nomination-heading > p:first-child { margin: 0 0 6px; color: var(--gold); font-size: .82rem; font-weight: 800; }
.nomination-heading h1 { margin: 0; color: var(--green-dark); font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.18; letter-spacing: 0; }
.nomination-heading > p:last-child { max-width: 760px; margin: 12px 0 0; color: var(--muted); line-height: 1.75; }

#special-tree-form { display: grid; gap: 14px; }
.nomination-section { padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.section-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.section-heading > span { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; background: #fff0c2; color: #744a09; font-weight: 900; }
.section-heading h2, .section-heading p { margin: 0; letter-spacing: 0; }
.section-heading h2 { color: var(--green-dark); font-size: 1.2rem; }
.section-heading p { margin-top: 4px; color: var(--muted); font-size: .84rem; line-height: 1.55; }

.location-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 20px; }
.location-fields { display: grid; align-content: start; gap: 8px; }
label, legend { color: #28372f; font-size: .84rem; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid #bfcac2; border-radius: 6px; background: #fff; color: var(--ink); padding: 10px 12px; }
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #80a98a; outline-offset: 2px; }

.location-button, .manual-location-button { min-height: 46px; border-radius: 6px; font-weight: 800; cursor: pointer; }
.location-button { border: 0; background: var(--green); color: #fff; }
.manual-location-button { border: 1px solid #8aa093; background: #fff; color: var(--green); }
.location-status { min-height: 42px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
#nomination-map { min-height: 310px; border: 1px solid #bdcbbf; border-radius: 7px; background: #e6ece7; }

.nomination-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nomination-photo { position: relative; min-width: 0; min-height: 220px; display: flex; flex-direction: column; align-items: flex-start; padding: 15px; border: 1px dashed #879b8d; border-radius: 8px; background: #f8faf8; cursor: pointer; overflow: hidden; }
.nomination-photo.has-photo { border-style: solid; border-color: var(--green); background: #fff; }
.photo-number { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #dcece0; color: var(--green); }
.nomination-photo strong { margin-top: 10px; color: var(--green-dark); }
.nomination-photo small { margin-top: 4px; color: var(--muted); font-weight: 500; line-height: 1.5; }
.nomination-photo img { width: 100%; aspect-ratio: 4 / 3; margin-top: 12px; object-fit: cover; border-radius: 6px; }
.photo-action { min-height: 40px; display: inline-grid; place-items: center; margin-top: auto; padding: 0 12px; border-radius: 6px; background: #e5efe7; color: var(--green); font-size: .78rem; }
.nomination-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.special-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 18px 0; padding: 0; border: 0; }
.special-reasons legend { grid-column: 1 / -1; margin-bottom: 3px; }
.special-reasons label { min-height: 44px; display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid #d2dbd4; border-radius: 6px; background: #f8faf8; font-weight: 700; }
.special-reasons input { width: 18px; min-height: 18px; accent-color: var(--green); }

.nomination-consent { padding: 18px 20px; border-left: 4px solid #c99739; background: #fffaf0; }
.nomination-consent label { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.nomination-consent input { width: 20px; min-height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--green); }
.nomination-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.nomination-error { min-height: 22px; color: #a02a20; font-size: .86rem; font-weight: 800; }
.nomination-actions { display: flex; gap: 12px; align-items: center; }
.nomination-actions button, .nomination-actions a, .nomination-success a { min-height: 48px; display: inline-grid; place-items: center; padding: 0 22px; border-radius: 6px; font-weight: 900; text-decoration: none; }
.nomination-actions button { border: 0; background: var(--green); color: #fff; cursor: pointer; }
.nomination-actions button:disabled { opacity: .55; cursor: wait; }
.nomination-actions a { color: var(--green); }

.nomination-success { padding: 36px; border: 1px solid #b8cbbd; border-radius: 8px; background: #fff; text-align: center; }
.nomination-success > p:first-child { color: var(--gold); font-weight: 900; }
.nomination-success h2 { color: var(--green-dark); letter-spacing: 0; }
.nomination-success p { color: var(--muted); line-height: 1.7; }
.nomination-success a { width: fit-content; margin: 20px auto 0; background: var(--green); color: #fff; }

@media (max-width: 700px) {
  .nomination-topbar { padding-inline: 12px; }
  .nomination-brand small { display: none; }
  main { padding: 24px 12px 50px; }
  .nomination-heading { margin-bottom: 22px; }
  .nomination-section { padding: 19px 14px; }
  .location-grid { grid-template-columns: 1fr; }
  #nomination-map { min-height: 245px; grid-row: 1; }
  .nomination-photo-grid, .special-reasons { grid-template-columns: 1fr; }
  .nomination-photo { min-height: 170px; }
  .nomination-photo.has-photo { min-height: 320px; }
  .nomination-actions { display: grid; }
  .nomination-actions a { min-height: 44px; }
}
