/* Free Upgrade — minimal, clean, accessible */
:root{
  --bg: #ffffff;
  --text: #171717;
  --muted: #666;
  --line: #e5e5e5;
  --accent: #0f62fe; /* not forced in elements; only subtle highlight */
  --radius: 12px;
  --pad: 1rem;
  --container: 72ch;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}

.container{ width:min(100% - 2*var(--pad), var(--container)); margin-inline:auto; }

.page-header{
  border-bottom:1px solid var(--line);
  background: #fafafa;
}
.page-header .container{ padding: 2rem 0 1.25rem; }
h1{
  margin:0 0 .25rem 0;
  line-height:1.2;
}
h1 .accent{
  letter-spacing:.03em;
}
.lede{ margin:.25rem 0 0 0; color:var(--muted); }

main.container{ padding: 2rem 0; }
.group{
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.group > legend, .group > h2{
  font-size:1.125rem;
  margin:0 0 .75rem 0;
}

.field{ display:grid; gap:.5rem; margin: 1rem 0; }
.inline{ display:flex; gap: 1rem; align-items:end; flex-wrap:wrap; }
.confirm{ align-self:end; padding-bottom:.25rem; }

.checkbox-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem,1fr));
  gap:.5rem 1rem;
}
.checkbox-grid label{
  display:flex; align-items:center; gap:.5rem;
}

input, textarea, select{
  font:inherit;
  padding:.6rem .7rem;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}
textarea{ resize: vertical; }
input:focus, textarea:focus, select:focus{
  outline:none;
  border-color:#999;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.photo-preview{
  margin-top:.5rem;
  border:1px dashed var(--line);
  border-radius:var(--radius);
  padding:.75rem;
}
.photo-preview img{
  display:block;
  max-width:100%;
  height:auto;
  border-radius:8px;
}

.actions{
  display:flex; align-items:center; gap:1rem; flex-wrap:wrap;
  margin-top:1.25rem;
}
button{
  appearance:none;
  border:none;
  padding:.7rem 1rem;
  border-radius:10px;
  background:#111;
  color:#fff;
  cursor:pointer;
  box-shadow: var(--shadow);
}
button:hover{ filter:brightness(1.05); }
.small-note{ color:var(--muted); margin:0; }

.page-footer{
  border-top:1px solid var(--line);
  background:#fafafa;
}
.page-footer .container{ padding: 1rem 0; font-size:.95rem; color:var(--muted); }


.center {
text-align: center;
}





/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
