@charset "UTF-8";
/* CSS Document */
h1 img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}

.card {
  margin-bottom: 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.note-box {
  background: #eaf6ff;
  border: 1px solid #b8daff;
  color: #0c5460;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 1.5rem;
}

.help-note {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.35rem;
}

.custom-control {
  width: 100%;
}

.custom-checkbox,
.custom-radio {
  margin-bottom: 0.85rem;
}

.custom-checkbox .custom-control-label,
.custom-radio .custom-control-label {
  display: inline-block;
  max-width: 100%;
  line-height: 1.6;
  padding-top: 0.05rem;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.custom-control-label {
  padding-right: 0.5rem;
}

.custom-checkbox .custom-control-label:before,
.custom-checkbox .custom-control-label:after,
.custom-radio .custom-control-label:before,
.custom-radio .custom-control-label:after {
  top: 0.2rem;
}

.name-group .input-group,
.person-group .input-group {
  width: 100%;
}

.person-box {
  border-top: 1px solid #dee2e6;
  margin-top: 1rem;
  padding-top: 1rem;
}

.person-box:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.person-title {
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #dc3545;
}

.inline-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.inline-time .custom-select,
.inline-time .form-control {
  max-width: 220px;
}

.child-inline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.child-age-field {
  width: 110px;
  max-width: 100%;
}

.child-name-field,
.child-grade-field {
  width: 100%;
}

.child-section .form-control,
.child-section .custom-select {
  font-size: 1rem;
}

.btn-submit-wrap {
  margin-top: 2rem;
  text-align: center;
}

.btn-submit-main {
  width: 100%;
  max-width: 420px;
  padding: 14px 20px;
  font-size: 1.15rem;
}

@media (min-width: 768px) {
  .form-row .col-md-6 {
    padding: 0 10px;
  }

  .custom-control-inline {
    margin-right: 2rem;
  }
}

@media (max-width: 767px) {
  input.form-control,
  select.custom-select,
  textarea.form-control {
    font-size: 1.05rem;
    padding: 12px;
  }

  .custom-checkbox,
  .custom-radio {
    margin-bottom: 1.1rem !important;
    padding-left: 2.5rem;
  }

  .custom-checkbox .custom-control-label,
  .custom-radio .custom-control-label {
    font-size: 1.05rem;
    line-height: 1.6;
    padding-top: 0.15rem;
  }

  .custom-checkbox .custom-control-label:before,
  .custom-checkbox .custom-control-label:after,
  .custom-radio .custom-control-label:before,
  .custom-radio .custom-control-label:after {
    width: 1.4rem;
    height: 1.4rem;
    top: 0.3rem;
  }

  .name-group .input-group,
  .person-group .input-group {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    margin-bottom: 1rem;
  }

  .name-group .input-group-prepend,
  .person-group .input-group-prepend {
    flex: 0 0 auto;
    display: flex;
  }

  .name-group .input-group-text,
  .person-group .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 48px;
    padding: 0 12px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .name-group .form-control,
  .person-group .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    margin: 0;
    line-height: 48px;
    box-sizing: border-box;
  }

  .inline-time {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .inline-time .custom-select,
  .inline-time .form-control {
    max-width: 100%;
  }

  .child-inline-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .child-age-field {
    width: 100%;
  }

  .child-section .form-control,
  .child-section .custom-select {
    width: 100%;
    min-height: 48px;
    font-size: 1.05rem;
    padding: 12px;
  }
}