/* site/css/style.css */
:root {
  --navy: #1B2A4A;
  --bg: #FFFFFF;
  --tertiary: #F5F5F3;
  --accent: #C9A96E;
  --text: #1A1A1A;
  --muted: #666;
  --error: #B00020;
  --success: #2E7D32;
  --border: #DDD;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header { margin-bottom: 32px; }

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 4px;
}

.subtitle { color: var(--muted); font-size: 0.95rem; margin: 0; }

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}

legend, label > strong, fieldset > label:first-child {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}

label {
  display: block;
  margin: 6px 0;
  cursor: pointer;
}

input[type="text"], input[type="datetime-local"], textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px; /* prevents iOS zoom-on-focus */
  font-family: inherit;
  background: white;
}

input[type="text"]:focus, input[type="datetime-local"]:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

input[type="radio"], input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

textarea { resize: vertical; }

.req { color: var(--error); font-weight: bold; }
.opt { color: var(--muted); font-weight: normal; font-size: 0.9em; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 4px 0 0; }
.error { color: var(--error); white-space: pre-line; }

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

button {
  background: var(--navy);
  color: white;
  border: none;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

button:hover { background: #0F1A33; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

#photo-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

#photo-list li {
  padding: 6px 8px;
  background: var(--tertiary);
  border-radius: var(--radius);
  margin-bottom: 4px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}

#call-details > .call-detail {
  margin: 12px 0 12px 24px;
  padding: 12px;
  background: var(--tertiary);
  border-radius: var(--radius);
}

#call-details .call-detail-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}

#confirmation {
  background: var(--tertiary);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

#confirmation h2 { color: var(--success); margin-top: 0; }

@media (min-width: 600px) {
  h1 { font-size: 1.75rem; }
  .container { padding: 48px 24px 64px; }
}
