@charset "UTF-8";

/* =====================================================================
   English Contact /english/contact/
   Markup: page-contact.php
   ===================================================================== */

#rnw-eng {
  --wine:#a2274f;
  --wine-dark:#8f1f45;
  --wine-light:#b83b64;
  --ink:#31384a;
  --muted:#8a90a1;
  --line:#dfe3ec;
  --bg:#f7f0f3;
  --white:#fff;

  width:100%;
  margin:0;
  padding:36px 16px 72px;
  background:var(--bg);
  color:var(--ink);
  font-family:Arial, Helvetica, sans-serif;
  line-height:1.6;
}

#rnw-eng,
#rnw-eng *,
#rnw-eng *::before,
#rnw-eng *::after {
  box-sizing:border-box;
}

/* 旧style.cssの要素指定をこのフォーム内だけ打ち消す */
#rnw-eng h1,
#rnw-eng h2,
#rnw-eng h3,
#rnw-eng p,
#rnw-eng form,
#rnw-eng label,
#rnw-eng section {
  margin:0;
  padding:0;
  border:0;
  box-shadow:none;
}

#rnw-eng h1 {
  width:auto;
  height:auto;
  background:none!important;
  text-indent:0;
}

#rnw-eng section {
  width:auto;
}

/* =====================================================================
   Form shell
   ===================================================================== */

#rnw-eng .contact-shell {
  width:100%;
  max-width:640px;
  margin:0 auto;
  background:var(--white);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 14px 34px rgba(72,28,45,.08);
}

/* =====================================================================
   Header / Progress
   ===================================================================== */

#rnw-eng .contact-head {
  padding:34px 32px 30px;
  color:#fff;
  background:linear-gradient(135deg,var(--wine-light),var(--wine));
}

#rnw-eng .contact-head h1 {
  width:100%;
  height:auto;
  margin:0 0 10px;
  background:none!important;
  text-align:center;
  color:#fff;
  font-size:30px;
  font-weight:700;
  line-height:1.25;
}

#rnw-eng .contact-head .intro {
  margin:0 0 28px;
  color:rgba(255,255,255,.86);
  font-size:15px;
  text-align:center;
}

#rnw-eng .steps {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  align-items:start;
}

#rnw-eng .step {
  position:relative;
  min-width:0;
  color:rgba(255,255,255,.62);
  font-size:11px;
  line-height:1.3;
  text-align:center;
}

#rnw-eng .step:not(:last-child)::after {
  content:"";
  position:absolute;
  top:14px;
  left:50%;
  z-index:0;
  width:100%;
  height:2px;
  background:rgba(255,255,255,.28);
}

#rnw-eng .step-dot {
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  margin:0 auto 8px;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:13px;
  font-weight:700;
}

#rnw-eng .step.active,
#rnw-eng .step.done {
  color:#fff;
}

#rnw-eng .step.active .step-dot,
#rnw-eng .step.done .step-dot {
  background:#fff;
  color:var(--wine);
}

#rnw-eng .step.done:not(:last-child)::after {
  background:rgba(255,255,255,.7);
}

#rnw-eng .step-label.short {
  display:none;
}

/* =====================================================================
   Body
   ===================================================================== */

#rnw-eng .contact-body {
  width:100%;
  max-width:100%;
  padding:40px 32px 46px;
  overflow:hidden;
}

#rnw-eng form.formrun {
  display:block;
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
}

#rnw-eng .panel {
  display:none;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0;
  padding:0;
}

#rnw-eng .panel.active {
  display:block;
}

#rnw-eng .panel-title {
  display:block;
  width:100%;
  max-width:100%;
  margin:0 0 8px;
  padding:0;
  color:var(--ink);
  font-size:22px;
  font-weight:700;
  line-height:1.4;
  text-align:center;
}

#rnw-eng .panel-desc {
  margin:0 0 26px;
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
  text-align:center;
}

/* =====================================================================
   Options
   ===================================================================== */

#rnw-eng .rnw-contact-question + .rnw-contact-question,
#rnw-eng .field + .rnw-contact-question {
  margin-top:32px;
}

#rnw-eng .rnw-contact-question + .field {
  margin-top:32px!important;
}

#rnw-eng .rnw-contact-question-title {
  width:auto;
  height:auto;
  margin:0 0 12px;
  padding:0;
  background:none;
  color:var(--ink);
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  line-height:1.5;
  text-align:left;
}

#rnw-eng [data-question],
#rnw-eng .option-card,
#rnw-eng .panel-title,
#rnw-eng .btn {
  scroll-margin-top:calc(var(--rnw-header-h-pc, 88px) + 24px);
  scroll-margin-bottom:24px;
}

@media (max-width:1125px) {
  #rnw-eng [data-question],
  #rnw-eng .option-card,
  #rnw-eng .panel-title,
  #rnw-eng .btn {
    scroll-margin-top:calc(var(--rnw-header-h-sp, 59px) + 24px);
  }
}

#rnw-eng .options {
  display:grid;
  gap:12px;
  width:100%;
  max-width:100%;
  min-width:0;
}

#rnw-eng .option-card {
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:58px;
  padding:15px 18px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  transition:.18s ease;
}

#rnw-eng .option-card:hover {
  border-color:#c8a8b5;
  background:#fffafb;
}

#rnw-eng .option-card:has(input:checked) {
  border-color:var(--wine);
  background:#fff8fa;
  box-shadow:0 0 0 1px var(--wine) inset;
}

#rnw-eng .option-card input {
  position:relative;
  flex:0 0 auto;
  width:20px;
  height:20px;
  margin:0;
  border:2px solid #d6dce7;
  border-radius:50%;
  appearance:none;
  -webkit-appearance:none;
}

#rnw-eng .option-card input:checked {
  border-color:var(--wine);
}

#rnw-eng .option-card input:checked::after {
  content:"";
  position:absolute;
  inset:4px;
  border-radius:50%;
  background:var(--wine);
}

#rnw-eng .option-card input:focus-visible,
#rnw-eng .btn:focus-visible,
#rnw-eng .consent input:focus-visible {
  outline:3px solid var(--wine);
  outline-offset:4px;
}

#rnw-eng .option-card span {
  font-size:16px;
  line-height:1.45;
}

/* =====================================================================
   Fields
   ===================================================================== */

#rnw-eng .fields {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:20px;
  width:100%;
  max-width:100%;
  min-width:0;
}

#rnw-eng .fields > *,
#rnw-eng .field {
  min-width:0;
  max-width:100%;
}

#rnw-eng .field {
  width:100%!important;
  margin:0 0 20px!important;
  padding:0!important;
  left:auto!important;
  right:auto!important;
  float:none!important;
  transform:none!important;
}

#rnw-eng .fields .field {
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  justify-self:stretch!important;
  align-self:start!important;
}

#rnw-eng .field.full {
  grid-column:1 / -1;
}

#rnw-eng .label-row {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}

#rnw-eng label.field-label {
  font-size:14px;
  font-weight:700;
}

#rnw-eng .badge {
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:2px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
}

#rnw-eng .badge.req {
  background:#fde8ef;
  color:var(--wine);
}

#rnw-eng .badge.opt {
  background:#eef0f4;
  color:#6d7482;
}

#rnw-eng .help {
  margin:5px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}

#rnw-eng input[type="text"],
#rnw-eng input[type="email"],
#rnw-eng input[type="tel"],
#rnw-eng input[type="number"],
#rnw-eng select,
#rnw-eng textarea {
  display:block;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  outline:none;
  transition:.18s ease;
}

#rnw-eng select {
  /* Override the legacy 36px height so text fits inside the padding. */
  height:auto;
}

#rnw-eng input:focus,
#rnw-eng select:focus,
#rnw-eng textarea:focus {
  border-color:var(--wine);
  box-shadow:0 0 0 3px rgba(162,39,79,.08);
}

#rnw-eng textarea {
  min-height:180px;
  resize:vertical;
}

/* =====================================================================
   Error / Note
   ===================================================================== */

#rnw-eng .error {
  display:none;
  margin-top:7px;
  color:#b42318;
  font-size:12px;
}

#rnw-eng .error.show {
  display:block;
}

#rnw-eng .note {
  margin:18px 0 0;
  color:#6f7584;
  font-size:12px;
  line-height:1.7;
}

/* =====================================================================
   Buttons
   ===================================================================== */

#rnw-eng .nav {
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top:32px;
}

#rnw-eng .btn {
  min-width:180px;
  min-height:50px;
  padding:12px 22px;
  border:0;
  border-radius:8px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}

#rnw-eng .btn-primary {
  background:var(--wine);
  color:#fff;
}

#rnw-eng .btn-primary:hover {
  background:var(--wine-dark);
}

#rnw-eng .btn-back {
  background:#eef0f4;
  color:#4c5361;
}

/* =====================================================================
   Review / Privacy
   ===================================================================== */

#rnw-eng .review-box {
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
}

#rnw-eng .review-row {
  display:grid;
  grid-template-columns:210px 1fr;
  border-bottom:1px solid var(--line);
}

#rnw-eng .review-row:last-child {
  border-bottom:0;
}

#rnw-eng .review-key,
#rnw-eng .review-val {
  padding:14px 16px;
  font-size:14px;
  line-height:1.6;
}

#rnw-eng .review-key {
  background:#faf8f9;
  font-weight:700;
}

#rnw-eng .privacy {
  margin-top:24px;
  padding:18px;
  border-radius:10px;
  background:#faf8f9;
  font-size:13px;
  line-height:1.8;
}

#rnw-eng .privacy a {
  color:var(--wine);
  text-decoration:underline;
}

#rnw-eng .consent {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:20px;
  font-weight:700;
}

#rnw-eng .consent input {
  width:18px;
  height:18px;
  accent-color:var(--wine);
}

#rnw-eng .btn-submit:disabled {
  opacity:.45;
  cursor:not-allowed;
}

#rnw-eng ._formrun_gotcha {
  position:absolute!important;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width:900px) {
  #rnw-eng {
    padding:20px 12px 48px;
  }

  #rnw-eng .contact-head {
    padding:28px 24px 24px;
  }

  #rnw-eng .contact-body {
    padding:30px 24px 36px;
  }

  #rnw-eng .step-label.full {
    display:none;
  }

  #rnw-eng .step-label.short {
    display:block;
  }

  #rnw-eng .step {
    font-size:10px;
  }
}

@media (max-width:640px) {
  #rnw-eng .contact-shell {
    border-radius:12px;
  }

  #rnw-eng .contact-head {
    padding:24px 16px 20px;
  }

  #rnw-eng .contact-head h1 {
    font-size:24px;
  }

  #rnw-eng .contact-head .intro {
    margin-bottom:22px;
    font-size:13px;
  }

  #rnw-eng .steps {
    gap:2px;
  }

  #rnw-eng .step-dot {
    width:24px;
    height:24px;
    margin-bottom:6px;
    font-size:11px;
  }

  #rnw-eng .step:not(:last-child)::after {
    top:12px;
  }

  #rnw-eng .step-label {
    font-size:9px;
  }

  #rnw-eng .contact-body {
    padding:26px 16px 32px;
  }

  #rnw-eng .panel-title {
    font-size:20px;
  }

  #rnw-eng .fields {
    grid-template-columns:1fr;
    gap:18px;
  }

  #rnw-eng .field.full {
    grid-column:auto;
  }

  #rnw-eng .nav {
    flex-direction:column-reverse;
  }

  #rnw-eng .btn {
    width:100%;
  }

  #rnw-eng .review-row {
    grid-template-columns:1fr;
  }

  #rnw-eng .review-key {
    padding-bottom:5px;
    background:#fff;
    color:#777e8d;
    font-size:12px;
  }

  #rnw-eng .review-val {
    padding-top:0;
  }
}

/* Hospital details follow the selected referral option, as in the Japanese form. */
#rnw-eng .options > .hospital-field {
  width: calc(100% - 28px)!important;
  margin: -2px 0 8px 28px!important;
  padding: 12px 14px 4px!important;
  border-left: 2px solid #fce7ef;
}
#rnw-eng .hospital-field[hidden] { display: none!important; }
#rnw-eng .hospital-field input[type="text"] { background: #fbfcfe; }
