/* =========================================================
   JWL — contact.php / confirm.php / complete.php styles
   Extends policy.css to keep the page frame consistent.
   ========================================================= */

.page-contact main { position: relative; z-index: 1; }

/* ---------- Body frame (mirrors .policy-body) ---------- */
.contact-body {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad-x) clamp(80px, 10vw, 140px);
}

.contact-article {
  font-family: var(--font-jp);
  color: var(--text);
  line-height: 1.85;
}

.contact-intro {
  font-size: 15px;
  color: var(--text-2);
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.req-mark { color: #ef4444; font-weight: 700; }

/* ---------- Alert / warning ---------- */
.contact-alert {
  margin: 0 0 28px;
  padding: 16px 20px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-left: 3px solid #ef4444;
  border-radius: 8px;
  color: #fca5a5;
  font-size: 14px;
  line-height: 1.6;
}

.field-warning {
  margin-top: 14px;
  padding: 18px 22px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-left: 3px solid #fbbf24;
  border-radius: 8px;
  color: #fde68a;
  font-size: 13.5px;
  line-height: 1.75;
}
.field-warning p { margin: 0; }
.field-warning p + p { margin-top: 8px; }
.field-warning strong { color: #fcd34d; font-weight: 700; letter-spacing: 0.02em; }
.field-warning[hidden] { display: none; }

/* ---------- Form layout ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; gap: 28px; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.field-label.required::after {
  content: "*";
  color: #ef4444;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 2px;
}

.field-input {
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 14px 16px;
  line-height: 1.6;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  width: 100%;
  appearance: none;
}
textarea.field-input {
  resize: vertical;
  min-height: 160px;
  font-family: var(--font-jp);
}
select.field-input {
  background-color: #121826;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
  color: var(--text);
  color-scheme: dark;
}
select.field-input option {
  background-color: #121826;
  color: var(--text);
  padding: 8px 12px;
}
select.field-input option:checked,
select.field-input option:hover {
  background-color: #1f2937;
  color: #ffffff;
}
.field-input::placeholder { color: var(--text-3); }
.field-input:hover { border-color: rgba(255, 255, 255, 0.24); }
.field-input:focus {
  outline: none;
  border-color: var(--accent-3);
  background: rgba(20, 184, 166, 0.04);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.field-error {
  margin: 0;
  font-size: 13px;
  color: #fca5a5;
  padding-left: 14px;
  border-left: 2px solid #ef4444;
}

/* ---------- Consent + actions ---------- */
.contact-consent {
  font-size: 13px;
  color: var(--text-3);
  margin: 8px 0 0;
}
.contact-consent a {
  color: var(--accent-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
.contact-actions-split {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-actions .btn { min-width: 220px; }

@media (max-width: 520px) {
  .contact-actions-split { flex-direction: column-reverse; }
  .contact-actions .btn { width: 100%; min-width: 0; }
}

/* ---------- Review (confirm + complete) ---------- */
.contact-review {
  margin: 0 0 32px;
  padding: 4px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.contact-review > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}
.contact-review dt {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 600;
  padding-top: 3px;
}
.contact-review dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  word-break: break-word;
}
.contact-review dd .muted { color: var(--text-3); font-size: 13px; }

@media (max-width: 640px) {
  .contact-review > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- Complete ---------- */
.contact-complete-lead {
  font-size: 15px;
  color: var(--text-2);
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  line-height: 1.85;
}
.contact-complete-note {
  font-size: 14px;
  color: var(--text-3);
  margin: 24px 0 32px;
  line-height: 1.8;
}
.contact-complete-note a {
  color: var(--accent-3);
  text-decoration: none;
  font-weight: 600;
}
.contact-complete-note a:hover { text-decoration: underline; }
