* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Arial", sans-serif;
  background: #f5f1eb;
  color: #1f2937;
}

.container {
  max-width: 900px;
  margin: 32px auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 32px 40px;
  box-shadow: 0 18px 40px rgba(31, 41, 55, 0.12);
}

.header h1 {
  margin: 0 0 8px;
  color: #2c3e50;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  gap: 6px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 999px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #374151;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn.active {
  background: #4a5a47;
  color: #ffffff;
}

.header p {
  margin: 0 0 24px;
  color: #5b6b7c;
}

.header .tip {
  margin-top: -12px;
  font-size: 13px;
  color: #111827;
  background: #f3f4f6;
  padding: 8px 12px;
  border-radius: 10px;
}

.header .tip.notice {
  margin-top: 0;
  margin-bottom: 8px;
  background: #fef3cd;
  color: #856404;
  border: 1px solid #ffc107;
  font-weight: 600;
}

.step {
  display: block;
}

h2 {
  margin-top: 0;
  color: #8b9d83;
}

h3 {
  color: #2c3e50;
  margin-top: 24px;
}

.field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.hidden,
.field.hidden {
  display: none;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select,
textarea {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #8b9d83;
  outline: none;
  box-shadow: 0 0 0 2px rgba(139, 157, 131, 0.2);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

button {
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

#prevBtn {
  background: #e5e7eb;
  color: #111827;
}

#nextBtn,
#submitBtn {
  background: #b85c42;
  color: #ffffff;
}

#submitBtn {
  display: inline-block;
}

.note {
  font-size: 13px;
  color: #4b5563;
}

.consent {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #f9fafb;
}

.consent label {
  font-weight: 500;
}

.confirmation {
  padding: 16px;
  background: #ecfdf3;
  border-radius: 12px;
  color: #065f46;
}

.message-template {
  margin-top: 16px;
}

.message-template textarea {
  width: 100%;
  min-height: 160px;
  background: #f9fafb;
}

.error {
  color: #b91c1c;
  font-size: 13px;
  margin-top: 6px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0 8px;
  }

  .container {
    margin: 16px auto;
    padding: 20px 16px 28px;
    border-radius: 12px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  input,
  select,
  textarea {
    width: 100%;
  }
}
