.text-red {
  color: #e14b4b;
}

.text-gray {
  color: #6d6d6d;
}

.text-sm {
  font-size: 14px;
}

.form-wrapper {
  padding: 20px 16px 48px;
  background-color: #fff;
}

.form-hero {
  background: #fff;
  border-radius: 14px;
  padding: 26px 14px 20px;
  text-align: center;
  margin-bottom: 18px;
}
.form-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #2ca8e9;
  letter-spacing: 0.5px;
}

.form-title img {
  max-width: 334px;
}

.form-hero .sub {
  margin-top: 8px;
  font-size: 14px;
}
.form-hero .sub strong {
  background: linear-gradient(transparent 60%, #ffff53 60%);
  font-weight: 800;
}
.form-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.form-step {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid #00a9ff;
  color: #00a9ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.form-step.active {
  background: #00a9ff;
  color: #fff;
}
.form-step small {
  font-size: 12px;
  margin-top: 4px;
}

.form-step__arw {
  display: inline-block;
  vertical-align: middle;
  color: #5a5a5a;
  line-height: 1;
  position: relative;
  width: 1em;
  height: 1em;
  transform: translateX(-25%) rotate(45deg);
}

.form-step__arw::before,
.form-step__arw::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 0.1em;
}

.form-step__arw::before {
  top: 0;
  left: 0;
  right: 0;
  height: 0.1em;
}

.form-step__arw::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 0.1em;
}

.card {
  width: 94%;
  margin: 0 auto 40px;
  padding: 30px 15px 40px;
  background: #ffffff;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.15);
}

.notice-top {
  border-radius: 10px;
  padding: 12px 12px 10px;
  margin-bottom: 18px;
}

.notice-top .title {
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
}
.notice-top .text {
  margin: 0;
  color: #e14b4b;
  font-size: 14px;
  line-height: 1.6;
  list-style-type: disc;
}

.form {
  width: 100%;
}
.field {
  margin-bottom: 30px;
}
.field-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.field-title {
  font-weight: 700;
  font-size: 15px;
  color: #555;
  width: calc(100% - 50px);
}
.field-cap {
  margin-bottom: 8px;
  color: #5a5a5a;
  font-size: 14px;
}
.address-title {
  margin-top: 15px;
  font-size: 14px;
}
.id-card {
  margin: 10px auto;
}
.required {
  width: 41px;
  background: #e14b4b;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.input,
select,
textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #dadada;
  border-radius: 6px;
  font-size: 14px;
  background: #fcfcfc;
}
select {
  color: #888;
}
.input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 163, 229, 0.2);
  border-color: #9ad6f6;
}

.help {
  margin: 8px 0 0;
  padding: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: #e14b4b;
  background-color: #fffff4;

  strong {
    font-weight: bold;
  }
}

.choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.choice {
  position: relative;
}
.choice input {
  display: none;
}
.choice span {
  display: block;
  width: 100%;
  padding: 12px 10px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fafafa;
  text-align: center;
  transition: all 0.2s ease;
  color: #888;
}
.choice input:checked + span {
  background: #f0faff;
  border-color: #00a9ff;
  color: #333;
}

.input-with-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.unit {
  padding: 12px 10px;
  background: #e0e0e0;
  border-radius: 6px;
  color: #555;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
}

.upload {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.file-label {
  font-size: 14px;
  font-weight: 700;
  color: #666;
}

.file-input {
  padding: 10px 10px;
  background: #fafafa;
  border-radius: 10px;

  input {
    width: 100%;
  }
}

.checklist {
  margin-top: 6px;
  font-size: 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.checkbox-row input {
  width: 18px;
  height: 18px;
}
.checkbox-row label {
  font-size: 14px;
  color: #555;
}

.submit {
  margin-top: 26px;
}

.error-text {
  margin-top: 3px;
  font-size: 12px;
  color: #eb2828;
}

.is-valid {
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="number"],
  select,
  .file-input {
    border: 1px solid #40c1f3;
    background-color: #f0faff;
  }
}

.is-invalid {
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="number"],
  select,
  .choice span,
  .file-input {
    border: 1px solid #eb2828;
    background-color: #ffe8e8;
  }

  input[name="confirm"] {
    outline: 1px solid #eb2828;
    outline-offset: 2px;
  }
}

@media (max-width: 520px) {
  .form-step {
    width: 64px;
    height: 64px;
    font-size: 14px;
  }
  .form-hero {
    padding: 22px 10px 18px;
  }
  .wrapper {
    padding: 16px 12px 28px;
  }
}

/* confirm page */
.confirm-item {
  margin-bottom: 18px;
}
.confirm-label {
  display: block;
  background: #e0f4ff;
  color: #333;
  padding: 8px 10px;
  font-size: 14px;
  margin-bottom: 6px;
}
.confirm-value {
  margin: 0;
  padding: 0 4px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}
.id-label {
  text-align: center;
  margin: 6px 0 0;
}
.id-figure {
  display: block;
  margin: 0 auto;
  max-width: 260px;
  width: 100%;
}
.id-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* thanks page */
.thanks-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  padding: 40px 20px;
  background-color: #e0f4ff;
  border-radius: 10px;

  .form-back {
    margin-top: 30px;
  }
}

/* shared buttons */
.form-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 30px auto 0;
  padding: 22px 52px;
  gap: 10px;
  width: 280px;
  height: 74px;
  color: #fff;
  background: #007dd6;
  box-shadow: 2px 3px 1px #0062a9;
  border-radius: 70px;
  border: 0;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.form-btn:hover {
  background: #3faadf;
  transform: translateY(3px);
  box-shadow: none;
}

.form-back {
  margin-top: 30px;
  text-align: center;
  color: #8b8b8b;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  width: 100%;
}
.form-back:hover {
  color: #5f5f5f;
}

@media screen and (max-width: 768px) {
  .input,
  select,
  textarea {
    font-size: 16px;
  }
  .input::placeholder,
  textarea::placeholder {
    font-size: 14px;
  }
}
