:root {
  --bg: #f5f1ea;
  --bg-shade: #e6dbc8;
  --card: #fffdf9;
  --text: #2b2620;
  --muted: #6f665b;
  --line: #d9ccba;
  --accent: #0f766e;
  --accent-hover: #0b5a54;
  --error: #b42318;
  --warn-bg: #fff6e7;
  --warn-line: #f6c680;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -20%, var(--bg-shade), transparent),
    radial-gradient(900px 700px at 100% 0%, #ede5d7, transparent),
    var(--bg);
  min-height: 100vh;
}

.layout {
  width: min(920px, 92vw);
  margin: 4rem auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 14px 45px rgba(84, 62, 33, 0.09);
}

h1 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.2px;
}

p {
  margin-top: 0.3rem;
}

.steps {
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

a {
  color: var(--accent);
}

.dropzone {
  border: 2px dashed var(--line);
  border-radius: 14px;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.dropzone:hover,
.dropzone.active {
  border-color: var(--accent);
  background: #faf7f1;
}

#fileInput {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.filename {
  margin-top: 0.7rem;
  font-weight: 600;
}

.status {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.status.error {
  border-color: #efb7b0;
  background: #fff2f0;
  color: var(--error);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.95rem;
}

input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  font-size: 0.97rem;
}

input:focus {
  outline: 2px solid #80cbc4;
  outline-offset: 1px;
}

input.warn {
  border-color: var(--warn-line);
  background: var(--warn-bg);
}

.consent-row {
  margin-top: 1rem;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

button {
  background: var(--accent);
  border: 0;
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 1.25rem;
  font-size: 1rem;
  margin-top: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover:enabled {
  background: var(--accent-hover);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .layout {
    margin: 2rem auto;
  }

  .card {
    padding: 1.2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
