*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: Georgia, serif;
  background-color: #1a1a1a;
  color: #f1f1f1;
  line-height: 1.6;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem;
}

main {
  max-width: 36rem;
  width: 100%;
  text-align: center;
}

h1 {
  font-size: 2.25rem;
  font-weight: normal;
  font-style: italic;
  color: #999;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

h1.glow {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e5e5e5;
  margin-bottom: 0.5rem;
}

p {
  color: #b0b0b0;
  margin-bottom: 0.75rem;
}

a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.section {
  text-align: left;
  margin-top: 3rem;
}

.section + .section {
  margin-top: 2rem;
}

.cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #f1f1f1;
  color: #1a1a1a;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta:hover {
  background: #d4d4d4;
  color: #1a1a1a;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 24px rgba(255, 255, 255, 0.4);
}

ol, ul {
  color: #b0b0b0;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

li {
  margin-bottom: 0.5rem;
}

details {
  background-color: #1f1f1f;
  border: 1px solid #2a2a2a;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

summary {
  padding: 1rem;
  cursor: pointer;
  color: #e0e0e0;
  font-style: italic;
  font-weight: 500;
  list-style: none;
}

summary::marker,
summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  font-style: normal;
  color: #666;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "\2212";
}

details .faq-answer {
  padding: 0 1rem 1rem;
  color: #bcbcbc;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

nav a {
  color: #888;
}

label {
  display: block;
  color: #ccc;
  margin-bottom: 0.25rem;
}

textarea,
select,
input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  background: #262626;
  color: #f1f1f1;
  border: 1px solid #333;
  border-radius: 6px;
  font-family: Georgia, serif;
  font-size: 1rem;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

textarea:focus,
select:focus {
  outline: none;
  border-color: #555;
}

select {
  appearance: none;
  cursor: pointer;
}

input[type="file"] {
  cursor: pointer;
  padding: 0.5rem;
}

input[type="file"]::file-selector-button {
  background: #333;
  color: #f1f1f1;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 0.75rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #ccc;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: #f1f1f1;
}

.field-group {
  text-align: left;
  margin-bottom: 1.5rem;
}

.hint {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.25rem;
}

.error {
  font-size: 0.875rem;
  color: #f87171;
  margin-top: 0.25rem;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #1a1a1a;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.875rem;
  color: #555;
}

footer a {
  color: #777;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
}

main, footer {
  position: relative;
  z-index: 20;
}
