:root {
 body {
  background-image: url("https://images.unsplash.com/photo-1557682250-33bd709cbe85?w=1600&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.card__header h1,
.lead {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.card { max-width: 640px; margin: 0 auto; padding: 24px 20px 48px; }
.card__header h1 { font-size: 20px; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

.form {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.field { padding: 14px 0; border-bottom: 1px solid var(--border); }
.field:last-of-type { border-bottom: none; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }

.req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #b8335ab;
  background: #ffccd5a;
  border: 1px solid #b8335a;
  border-radius: 999px;
  vertical-align: middle;
}

.hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 12px; font-size: 16px;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text); font-family: inherit;
}

textarea { resize: vertical; }

input:focus, textarea:focus {
  outline: none; border-color: var(--line);
  box-shadow: 0 0 0 3px rgba(6, 199, 85, 0.15);
}

.checks, .radios {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 12px; margin-bottom: 10px;
}

.checks label, .radios label {
  font-weight: 400; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: #fafbfc;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}

.submit {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: #4528a8;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(69, 40, 168, 0.4);
  transition: all 0.2s ease;
}
.submit:hover {
  background: #361f82;
  transform: translateY(-1px);
}
.submit:disabled {
  background: #a89bd4;
  cursor: not-allowed;
}


.message { margin-top: 12px; font-size: 14px; min-height: 1em; }
.message.error { color: var(--error); }
.message.success { color: var(--line-dark); }

.note { color: var(--muted); font-size: 12px; text-align: center; margin: 14px 0 0; }
