* {
  box-sizing: border-box;
}

html {
  background: #f4f6f8;
}

body {
  margin: 0;
  color: #20242a;
  background: #f4f6f8;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden,
.hidden-box {
  display: none !important;
}

#form-section {
  width: 100%;
  min-height: 100vh;
  padding: 48px 20px 72px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92),
      rgba(244, 246, 248, 0.96)
    ),
    #f4f6f8;
}

.form-box-wrap {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.form-box {
  width: 100%;
  margin: 0 0 18px;
  padding: 28px;
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 28, 38, 0.06);
}

.form-box:first-child {
  border-top: 4px solid var(--point);
}

.form-head {
  width: 100%;
}

.form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.form-title::before {
  content: "";
  width: 5px;
  height: 20px;
  border-radius: 4px;
  background: var(--point);
  flex: 0 0 auto;
}

.form-notice-card,
.notice-box {
  width: 100%;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid #e2e6ec;
  border-left: 4px solid var(--point);
  border-radius: 8px;
  background: #f8fafc;
  color: #3d4652;
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

.danger-notice,
.info-notice {
  background: #f8fafc !important;
  border-color: #e2e6ec !important;
  border-left-color: var(--point) !important;
  color: #3d4652 !important;
}

.section-guide {
  margin: -6px 0 14px;
  color: #697386;
  font-size: 14px;
  line-height: 1.6;
  word-break: keep-all;
}

.infor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 0 18px;
  border: 1px solid var(--point);
  border-radius: 6px;
  background: #fff;
  color: var(--point);
  font-size: 14px;
  font-weight: 700;
}

.radio-select-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
  border: 0;
}

.input-line .radio-select-area {
  width: calc(100% - 150px) !important;
}

.radio-item {
  width: 100% !important;
  min-height: 76px;
  aspect-ratio: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  color: #28313d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  word-break: keep-all;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
}

.radio-item:hover {
  border-color: var(--point);
  color: var(--point);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--point) 12%, transparent);
}

.form-section-radio:checked + label,
.age-category-radio:checked + label,
.music-start-radio:checked + label,
.category-radio:checked + label,
.section-radio:checked + label {
  border-color: var(--point);
  background: var(--point);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--point) 24%, transparent);
}

.infor-form-box-step1 {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.step1-left {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.step1-right {
  width: 100%;
  min-width: 0;
}

#pre-show-area,
#profile-preview-area,
#receipt-preview-area {
  width: 220px !important;
  min-height: 280px !important;
  height: 280px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px;
  border: 1.5px dashed #c8ced8 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  color: #667085;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

#pre-show-area:hover,
#profile-preview-area:hover,
#receipt-preview-area:hover {
  border-color: var(--point) !important;
  color: var(--point);
  background: #fff !important;
}

#pre-show-area img,
#profile-preview-area img,
#receipt-preview-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.input-line {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f4;
}

.input-line:last-child {
  border-bottom-color: transparent;
}

.input-line > .input-line {
  width: 50%;
  padding: 0;
  border-bottom: 0;
}
.input-line > .input-line > .step1-form-label {
  text-align: center;
}
.input-line > .input-line:first-child > .step1-form-label {
  text-align: left;
}

.step1-form-label {
  width: 150px;
  flex: 0 0 150px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  word-break: keep-all;
}

.step1-form-input {
  width: calc(100% - 150px);
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: #111827;
  font-size: 15px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.step1-form-input:focus {
  border-color: var(--point);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--point) 14%, transparent);
}

.step1-form-input::placeholder {
  color: #9aa3af;
}

select.step1-form-input {
  appearance: auto;
}

.school-search-wrap,
.fgoawrg {
  width: calc(100% - 150px) !important;
  min-width: 0;
}

.school-search-wrap > .step1-form-input {
  width: 100% !important;
}

.school-result-list {
  border: 1px solid #d9dee7 !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 34px rgba(20, 28, 38, 0.12) !important;
  overflow: hidden;
}

.school-result-item {
  padding: 11px 13px !important;
  color: #28313d;
}

.school-result-item:hover {
  background: #f4f6f8 !important;
}

.school-result-name {
  font-weight: 800;
}

.school-result-sub {
  margin-top: 4px;
  color: #697386;
  font-size: 12px;
}

.member-box {
  margin-top: 14px !important;
  padding: 18px !important;
  border: 1px solid #e2e6ec !important;
  border-radius: 8px !important;
  background: #fbfcfe !important;
}

.member-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #111827;
  font-weight: 800;
}

.small-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--point) !important;
  border-radius: 6px !important;
  background: var(--point) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.small-button.remove-member {
  background: #fff !important;
  color: var(--point) !important;
}

.form-button-group {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-button-group button {
  width: min(260px, 100%);
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  outline: none;
  background: var(--point);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--point) 24%, transparent);
}

.form-button-group button:hover,
.application-menu button:hover,
.notice-modal-button:hover {
  filter: brightness(0.96);
}

.input-error {
  border-color: var(--point) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--point) 18%, transparent) !important;
}

.application-menu {
  display: grid;
  gap: 10px;
}

.application-original-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #e2e6ec;
  border-left: 4px solid var(--point);
  border-radius: 8px;
  background: #f8fafc;
  color: #3d4652;
  line-height: 1.7;
  text-align: left;
  word-break: keep-all;
}

.application-menu button {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--point);
  border-radius: 8px;
  background: #fff;
  color: var(--point);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.application-menu button:first-child {
  background: var(--point);
  color: #fff;
}

.application-menu button:nth-child(2),
.application-menu button:nth-child(3) {
  background: #fff;
  color: var(--point);
}

.notice-modal-backdrop {
  backdrop-filter: blur(3px);
}

.notice-modal-box {
  max-width: 560px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e6ec;
  box-shadow: 0 24px 70px rgba(20, 28, 38, 0.24) !important;
}

.notice-modal-title {
  color: #111827 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

.notice-modal-button {
  border-radius: 8px !important;
  background: var(--point) !important;
  font-weight: 800 !important;
}

.end-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(17, 24, 39, 0.48);
}

.end-popup-content {
  width: min(520px, 100%);
  padding: 34px 30px;
  border: 1px solid #e2e6ec;
  border-top: 4px solid var(--point);
  border-radius: 10px;
  background-color: #fff;
  color: #20242a;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.65;
  word-break: keep-all;
  box-shadow: 0 24px 70px rgba(20, 28, 38, 0.22);
}

@media (max-width: 1100px) {
  #form-section {
    padding: 18px 12px 40px;
  }

  .form-box {
    padding: 20px 16px;
    margin-bottom: 12px;
    box-shadow: none;
  }

  .form-title {
    font-size: 18px;
  }

  .infor-button {
    width: 100%;
  }

  .radio-select-area {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .radio-item {
    min-height: 60px;
    padding: 11px 8px;
    font-size: 13px;
  }

  .radio-item br {
    display: none;
  }

  .radio-item small {
    display: inline;
  }

  .infor-form-box-step1 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #pre-show-area,
  #profile-preview-area,
  #receipt-preview-area {
    width: min(220px, 100%) !important;
    height: 260px;
    min-height: 260px !important;
  }

  .input-line,
  .input-line > .input-line {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 10px 0;
  }

  .step1-form-label {
    width: 100% !important;
    flex: none;
    text-align: left;
  }

  .step1-form-input,
  .school-search-wrap,
  .fgoawrg,
  .input-line .radio-select-area {
    width: 100% !important;
  }
}

@media (max-width: 520px) {
  .radio-select-area {
    grid-template-columns: 1fr;
  }

  .form-box {
    border-radius: 6px;
  }

  .notice-modal-box {
    padding: 22px 16px !important;
  }
}
