@charset "utf-8";

/* ===============================
   DH Self Counsel Form
================================ */
.dh-self-card {
  width:100%;
  max-width:500px;
  margin:0 auto;
  color:#111;
  background:transparent;
  border-radius:0;
  padding:0;
  box-shadow:none;
  overflow:visible;
}

/* top */
.dh-self-top {
  padding:0;
  margin-bottom:24px;
  background:transparent;
}

.dh-self-topline {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin-bottom:10px;
  color:#fff;
  font-size:15px;
  font-weight:400;
}

.dh-self-topline > span:first-child {
  display:block;
}

.dh-self-topline > span:last-child {
  margin-left:auto;
  padding:0;
  background:transparent;
  color:#16b7e9;
  font-size:18px;
  font-weight:700;
}

.dh-self-topline > span:last-child b {
  color:#16b7e9;
  font-size:22px;
  font-weight:700;
}

.dh-self-topline > span:last-child span {
  color:#16b7e9;
  font-size:18px;
  font-weight:600;
}

.dh-self-progress {
  width:100%;
  height:7px;
  border-radius:0;
  background:rgba(255,255,255,.78);
  overflow:hidden;
}

.dh-self-progress span {
  display:block;
  width:20%;
  height:100%;
  background:#16b7e9;
  transition:width .25s ease;
}

/* body */
.dh-self-body {
  padding:0;
  background:transparent;
}

.dh-self-question {
  display:flex;
  align-items:center;
  width:100%;
  min-height:60px;
  margin:0 0 20px;
  padding:0 24px;
  border-radius:8px;
  background:#075fae;
  color:#fff;
  font-size:21px;
  line-height:1.3;
  font-weight:700;
  text-align:left;
  letter-spacing:-0.05em;
  box-sizing:border-box;
}

.dh-self-question:before {
  content:attr(data-step);
  margin-right:12px;
  color:#fff;
  font-size:32px;
  font-weight:700;
  line-height:1;
}

/* options */
.dh-self-options {
  display:flex;
  flex-direction:column !important;
  gap:11px;
  width:100%;
  min-height:auto;
  margin:0;
  padding:36px 40px 0;
  border-radius:8px 8px 0 0;
  background:#fff;
  box-sizing:border-box;
}

.dh-self-option {
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  height:48px;
  padding:0 30px;
  border:1px solid #d8d8d8;
  border-radius:4px;
  background:#fff;
  box-shadow:none;
  cursor:pointer;
  transition:border-color .2s ease, background .2s ease;
  box-sizing:border-box;
}

.dh-self-option:hover {
  border-color:#16b7e9;
}

.dh-self-option input {
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.dh-self-check {
  position:relative;
  width:18px;
  height:18px;
  margin-right:14px;
  border-radius:50%;
  background:#d4d7d8;
  flex:0 0 auto;
}

.dh-self-check:after {
  content:"✓";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -55%);
  color:#fff;
  font-size:11px;
  font-weight:700;
}

.dh-self-option input:checked + .dh-self-check {
  background:#075fae;
}

.dh-self-option input:checked ~ span:last-child {
  color:#075fae;
  font-weight:700;
}

.dh-self-option:has(input:checked) {
  border-color:#16b7e9;
}

.dh-self-option span:last-child {
  color:#333;
  font-size:15px;
  font-weight:500;
}

/* nav */
.dh-self-nav,
.dh-self-submit-wrap {
  display:flex;
  gap:12px;
  width:100%;
  margin:0;
  padding:20px 40px 45px;
  border-radius:0 0 8px 8px;
  background:#fff;
  box-sizing:border-box;
}

.dh-self-nav .dh-self-prev:first-child {
  display:none;
}

.dh-self-prev,
.dh-self-next,
.dh-self-submit {
  flex:1;
  height:52px;
  border:0;
  border-radius:4px;
  font-size:20px;
  font-weight:700;
  cursor:pointer;
}

.dh-self-prev {
  background:#b9b9b9;
  color:#fff;
}

.dh-self-next,
.dh-self-submit {
  background:#075fae;
  color:#fff;
}

.dh-self-next:hover,
.dh-self-submit:hover {
  background:#064184;
}

/* contact */
.dh-self-contact {
  width:100%;
  padding:32px 40px 0;
  border-radius:8px 8px 0 0;
  background:#fff;
  color:#111;
  box-sizing:border-box;
}

.dh-self-contact h3 {
  margin:0 0 28px;
  color:#111;
  font-size:25px;
  line-height:1.35;
  font-weight:700;
  text-align:center;
  letter-spacing:-0.05em;
}

.dh-self-field {
  margin-bottom:16px;
}

.dh-self-field label {
  display:block;
  margin-bottom:8px;
  color:#111;
  font-size:14px;
  font-weight:700;
}

.dh-self-field label em {
  color:#ff3131;
  font-style:normal;
}

.dh-self-field input {
  width:100%;
  height:44px;
  padding:0 12px;
  border:1px solid #d8d8d8;
  border-radius:4px;
  background:#fff;
  color:#111;
  font-size:14px;
  box-sizing:border-box;
}

.dh-self-phone {
  display:grid;
  grid-template-columns:1fr 18px 1fr 18px 1fr;
  align-items:center;
  gap:6px;
}

.dh-self-phone span {
  text-align:center;
  color:#333;
}

.dh-self-agree {
  display:flex;
  align-items:center;
  gap:8px;
  margin:18px 0;
  color:#333;
  font-size:13px;
}

.dh-self-notice {
  margin:0;
  color:#777;
  font-size:12px;
  line-height:1.6;
  text-align:center;
}

/* mobile */
@media screen and (max-width:768px) {
  .dh-self-card {
    max-width:100%;
  }

  .dh-self-topline {
    font-size:14px;
  }

  .dh-self-topline > span:last-child {
    font-size:16px;
  }

  .dh-self-topline > span:last-child b {
    font-size:20px;
  }

  .dh-self-question {
    min-height:56px;
    font-size:18px;
    padding:0 18px;
  }

  .dh-self-question:before {
    font-size:26px;
  }

  .dh-self-options {
    padding:26px 20px 0;
  }

  .dh-self-option {
    padding:0 20px;
  }

  .dh-self-nav,
  .dh-self-submit-wrap {
    padding:18px 20px 30px;
  }

  .dh-self-contact {
    padding:26px 20px 0;
  }

  .dh-self-contact h3 {
    font-size:21px;
  }

  .dh-self-prev,
  .dh-self-next,
  .dh-self-submit {
    height:48px;
    font-size:17px;
  }
}