@import url(./global/_variable.css);

/* estimate */
/* ============================================ */

/* estimate-form */
/* ============================================ */
.estimate-form {
  padding-block: clamp(3.75rem, 2.6295rem + 2.9279vw, 5.625rem) 100px; /* 90~60(1920~896) */
  background-color: #FFF;
  border-radius: 50px 50px 0 0;
  position: relative;
  @media (width <= 896px) {
    border-radius: 30px 30px 0 0;
    padding-block: 60px;
  }
}
.estimate-form__inner {
  max-width: 880px;
  margin-inline: auto;
  padding-inline: 20px;
}
.estimate-form__card {
  padding: 50px;
  background: #fff;
  border: 1px solid #E9EDF4;
  border-radius: 24px;
  box-shadow: 0 0 15px rgba(0, 0, 0, .05);
  @media (width <= 896px) {
    padding: 28px 20px;
    border-radius: 16px;
  }
}
.estimate-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
  @media (width <= 896px) {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.estimate-form__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.estimate-form__field--half {
  grid-column: span 1;
}
.estimate-form__field--full {
  grid-column: 1 / -1;
}
.estimate-form__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Zen Kaku Gothic New', var(--font_normal);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--font_c);
  word-break: keep-all;
}
.estimate-form__label-sub {
  font-size: .8125rem;
  font-weight: 500;
  opacity: .6;
}
.estimate-form__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font_normal);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.estimate-form__badge--required {
  background: var(--point_c);
  color: #fff;
}
.estimate-form__badge--optional {
  background: #fff;
  border: 1px solid #CCD5E3;
  color: var(--font_c);
  opacity: .6;
}
.estimate-form__input,
.estimate-form__select {
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #CCD5E3;
  border-radius: 10px;
  font-family: var(--font_normal);
  font-size: 1.6rem;
  color: var(--font_c);
  transition: border-color .3s ease-out;
  &::placeholder {
    color: #B7C0D1;
  }
  &:focus {
    outline: none;
    border-color: var(--main_c);
  }
}
.estimate-form__select-wrap {
  position: relative;
  &::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 22px;
    width: 10px;
    height: 6px;
    background: var(--font_c);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: translateY(-50%);
    pointer-events: none;
  }
}
.estimate-form__select {
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}
.estimate-form__check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.estimate-form__check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font_normal);
  font-size: 15px;
  color: var(--font_c);
  cursor: pointer;
  > input[type='checkbox'] {
    width: 20px;
    height: 20px;
    accent-color: var(--main_c);
    cursor: pointer;
  }
}

.t_center {
  text-align: center;
}

.estimate-form__privacy {
  margin-top: 40px;
  font-family: var(--font_normal);
  font-size: 13px;
  line-height: 1.9;
  text-align: left;
  color: var(--font_c);
  opacity: .7;
  display: inline-block;
  @media (width <= 896px) {
    margin-top: 28px;
    text-align: left;
  }
  > a {
    text-decoration: underline;
    text-underline-offset: .2em;
    color: var(--main_c);
    opacity: 1;
  }
}
.estimate-form__submit {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.estimate-form__submit-btn {
  min-width: 280px;
  padding: 20px;
  background: var(--main_c);
  border: none;
  border-radius: 999px;
  font-family: 'Zen Kaku Gothic New', var(--font_normal);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: opacity .3s ease-out;
  @media (width <= 896px) {
    width: 100%;
  }
  &:hover {
    @media (hover: hover) {
      opacity: .7;
    }
  }
}
.estimate-form__note {
  margin-top: 40px;
  font-family: var(--font_normal);
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
  color: var(--font_c);
  opacity: .6;
  word-break: keep-all;
  display: inline-block;
  padding-inline: 0 1em;
  text-indent: -1em;
  @media (width <= 896px) {
    margin-top: 28px;
  }
}
