/* ===========================================================================
   contact.css — お問い合わせフォーム専用スタイル
   ※ legal.css の上に重ねて読み込む前提
   ============================================================================ */

main { max-width: 720px; }

/* ===== Form ===== */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(20, 41, 107, 0.06);
}
.field { margin-bottom: 22px; }
.field-label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 8px;
}
.required {
  color: var(--error);
  font-size: 12px;
  margin-left: 4px;
  vertical-align: middle;
}
.optional {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 4px;
  font-weight: 400;
}
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 149, 217, 0.18);
}
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown),
select:invalid:not(:focus) { border-color: var(--error); }
textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}
.field-help {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 6px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
  margin: 8px 0 24px;
  line-height: 1.7;
}
.consent input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-blue);
}

.btn-submit {
  display: block;
  width: 100%;
  background: var(--brand-green);
  color: var(--white);
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(91, 178, 73, 0.35);
  transition: all .2s;
  font-family: inherit;
}
.btn-submit:hover:not(:disabled) {
  background: var(--brand-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(91, 178, 73, 0.45);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.note-direct {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.85;
}
.note-direct strong { color: var(--navy); }

/* ===== Confirmation state ===== */
.confirmation {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(20, 41, 107, 0.06);
}
.confirmation .icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.confirmation h2 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 12px;
}
.confirmation p {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 24px;
}
.confirmation .back-to-top {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.confirmation .back-to-top:hover { background: var(--navy-darker); }

@media (max-width: 768px) {
  .form-card { padding: 24px 20px; }
}
