body {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Osaka", "メイリオ", "Meiryo", "MS Pゴシック", "MS P Gothic", "Myriad Web", "Myriad Pro", Verdana, sans-serif;
  color: #555555 !important;
}

.title-img {
  padding: 1em 0;
  display: flex;
  justify-content: center;
}

.title-img img {
  width: 80%;
  min-width: 300px !important;
  height: auto;
}

.title-page {
  padding-top: 0.5em;
  font-size: 1.6em;
  letter-spacing: 0.2em
}

.step-register {
  margin: 30px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.step-register img {
  width: 700px;
}

.form-register {
  .ec-label {
    font-size: 16px;
  }

  .ec-borderedDefs {
    dl {
      padding: 0 15px;

      dt {
        margin-left: 30px;
      }

      dd {
        p {
          font-size: 0.9rem;
          line-height: 160%;
        }
      }
    }
  }

  .accepted-rule {
    margin-left: 30px;
  }
}

.gap-third {
  margin-left: 45px;
}

.gap-four {
  margin-left: 125px;
}

@media screen and (max-width: 768px) {
  .page-des {
    font-size: 0.9rem;
  }

  p {
    line-break: anywhere;
  }

  .step-register img {
    padding: 0 10px;
    width: 100%;
  }

  .ec-input {
    input {
      width: 100%;
    }
  }

  .gap-third {
    margin-left: 10px;
  }

  .gap-four {
    margin-left: 0;
  }

  .form-register {
    font-size: 0.9rem;

    .ec-borderedDefs {
      p {
        line-height: 170%;
      }

      dl {
        padding: 10px;

        dt {
          margin-left: 0;
        }

        dd {
          p {
            font-size: 0.9rem;
            line-height: 170%;
          }
        }
      }
    }

    .accepted-rule {
      margin-left: 0;
    }

    .submit-checked {
      font-size: 13px;
    }
  }

  /* Select2 Mobile Changes */
  .select2-container {
    max-width: 100%;
  }

  .select2-dropdown {
    width: 100% !important;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .select2-results__option {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
  }

  .select2-results__option--highlighted[aria-selected] {
    background-color: #5897fb;
  }
}

.page-des {
  text-align: center;
}

.btn-add-licenses {
  border-radius: 5px;
  padding: 0 10px;
  margin-top: 10px;
}

.text-red {
  color: red;
}

.session-form {
  display: flex;
  gap: 30px;
  padding: 15px 0;
  background: #F2F2F2;
  border-bottom: 1px solid #999999;
  border-top: 1px solid #999999;

  p {
    font-weight: bold;
  }
}

.accepted-container {
  flex-direction: column;
  gap: 20px;

  .accepted-rule {
    text-align: left;

    .gap {
      margin-left: 15px;
    }

    .gap-second {
      margin-left: 30px;
    }
  }
}

.session-submit {
  gap: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;

  .submit-link {
    display: flex;
    align-items: center;
    gap: 10px;

    a {
      color: #0070c0;
      text-decoration: underline;
    }
  }

  button {
    background: #d03233;
    color: white;
    border: none;
    width: 300px;
    height: 60px;
    border-radius: 5px;
    font-size: 25px;
  }

  button:enabled {
    cursor: pointer;
  }
}

.ec-required {
  font-weight: bold;
  border: 1px solid #FF0000;
  padding: 0.2em 0.4em;
}

.ec-select {
  select {
    border: 1px solid #999999;
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

.ec-input {
  input {
    border: 1px solid #999999;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 55%;
  }
}

.ec-numberInput {
  input {
    border: 1px solid #999999;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 55%;
  }
}

.ec-checkbox {
  margin-top: 5px;
  margin-left: 18px;
}

@media only screen and (min-width: 768px) {
  .title-page {
    font-size: 2em;
  }

  .ec-select {
    select {
      margin-bottom: 16px;
    }
  }
}

@media screen and (max-width: 768px) {
  .ec-borderedDefs {
    dl {
      dt {
        display: flex;
      }
    }
  }

  .ec-numberInput {
    input {
      width: 100%;
    }
  }

  .ec-input {
    input {
      width: 100%;
    }
  }
}

.btn-add-licenses {
  padding: 0 15px;
  border-radius: 0;
  background-color: #F2F2F2 !important;
  max-width: 160px;
  height: 25px;
  border: 1px solid;
}

.ec-successMessage {
  color: #28a745;
  font-weight: bold;
}

.datetimepicker-input {
  border: 1px solid #999999 !important;
  margin-top: 10px;
}

/* Select2 Custom Styles - Match existing dropdowns */
.select2-container {
  margin-top: 10px;
  margin-bottom: 10px;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #999999;
  border-radius: 0;
  height: auto !important;
  min-height: 38px;
  padding: 5px 10px;
  display: flex !important;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5;
  padding-left: 0;
  color: #555555;
  white-space: normal !important;
  word-wrap: break-word !important;
  word-break: break-all;
  overflow-wrap: break-word;
  flex: 1;
  width: auto !important;
  min-width: 0;
  padding-right: 20px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
  position: absolute;
  right: 1px;
}

.select2-dropdown {
  border: 1px solid #999999;
  border-radius: 0;
}

.select2-results__option {
  padding: 8px 12px;
  line-height: 1.6;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #5897fb;
}

/* Make desired_pick_up_date width match flight_number width in airport section */
#airport #register_desired_pick_up_date,
#airport input.flatpickr-input[name="register[desired_pick_up_date]"],
#airport input.flatpickr-input+input.form-control {
  width: 55%;
}