body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

.mb0 {
  margin-bottom: 0 !important;
}

.mb10 {
  margin-bottom: 10px !important;
}

.mt10 {
  margin-top: 10px !important;
}

.gap10 {
  gap: 10px;
}

.flex {
  display: flex;
  align-items: center;
}

.agency-join table {
  border: 1px solid #dddddd !important;
}

.agency-join table td {
  font-size: 13px;
}

.agency-join h3 {
  margin-bottom: -15px;
}

.agency-join select {
  width: 100%;
  max-width: 500px;
  border-radius: 0;
}

.agency-join input,textarea,select {
  display: block;
  width: 100%;
  max-width: 500px;
  padding: 10px;
  border-radius: 0;
}

.agency-join textarea {
  height: 100px;
}

.agency-join .subtext {
  display: block;
  margin: 10px 0 0;
  font-size: 12px;
  color: #a6a6a6;
}

.agency-join .subtext .link {
  color: var(--primary-color) !important;
}

.agency-join .subtext.warn {
  display: none;
  color: #e44549;
}

.agency-join .subtext.warn.on {
  display: block;
}

.agency-join .required::after {
  content: "*";
  color: #e44549;
  padding-left: 4px;
}

.agency-join .checkbox,.radio {
  margin-right: 10px;
  cursor: pointer;
}

.agency-join .checkbox input[type="checkbox"] {
  display: none;
}

.agency-join .checkbox .checkbox-image {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23D1D5DB' stroke-width='1' fill='white'/%3E%3Cpath d='M6 10l2.5 2.5L14 7' stroke='%239CA3AF' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 2px;
}

.agency-join .checkbox input[type="checkbox"]:checked + .checkbox-image {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%2353a8e2'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%2353a8e2' stroke-width='1'/%3E%3Cpath d='M6 10l2.5 2.5L14 7' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.agency-join .radio {
  display: block;
  margin-bottom: 10px;
}

.agency-join .radio input[type="radio"] {
  display: none;
}

.agency-join .radio .radio-image {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23D1D5DB' stroke-width='1' fill='white'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 2px;
}

.agency-join .radio input[type="radio"]:checked + .radio-image {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%2353a8e2' stroke-width='1' fill='white'/%3E%3Ccircle cx='10' cy='10' r='5' fill='%2353a8e2'/%3E%3C/svg%3E");
}

.agency-join .checkbox,.radio .label-text {
  font-size: 13px;
}

.agency-join .checkbox-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 800px;
  gap: 10px 0;
  margin-bottom: 10px;
}

.agency-join .support-set {
  display: flex;
  gap: 10px;
}

.agency-join .support-set label {
  font-weight: 500;
}

.agency-join .support-set div {
  flex: 2;
}

.agency-join .support-set div:nth-child(2) {
  flex: 3;
}

.agency-join .support-set div:nth-child(2) input[type="text"] {
  max-width: 100%;
}

.agency-join .support-set label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.agency-join .btn-del {
  display: none;
  margin-left: 10px;
}

.agency-join .row {
  max-width: 500px;
}

.agency-join .max {
  max-width: 100%;
}

.agency-join input[type=file] {
  display: inline-block;
}

.agency-join .file-button {
  position: relative;
  top: 0.5px;
  display: inline-block;
  margin-left: -4px;
  padding: 11px 12px;
}

.agency-join .agreement .agreement-sub {
  display: block;
  margin-bottom: 15px;
  font-size: 13px;
  color: #717171;
}

.agency-join .agreement .agreement-link {
  display: block;
  margin-bottom: 30px;
  font-size: 13px;
  color: #161616;
  text-decoration: underline;
}

.agency-join .agreement .agreement-link::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url('/assets/images/icon/ic-arrow-right-white-1097bcfd3cd9c8432e69e700f62c08a4.png'); /* 이미지 경로 */
  background-size: contain;
  background-repeat: no-repeat;
  filter: brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(0%) hue-rotate(0deg);
  margin-left: 6px;
  vertical-align: middle;
}

.agency-join .agreement label {
  display: block;
  margin-top: -6px;
}

.agency-join .agreement .label-text {
  position: relative;
  top: 2px;
  font-size: 16px;
}

.agency-join .join-btn-wrap {
  gap: 20px;
}

.agency-join .flex-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.agency-join .gap-h10 {
  gap: 10px 0;
}

.agency-join .gap0 {
  gap: 0;
}

.agency-join .select-input {
  display: none;
  justify-content: end;
  align-items: center;
}

.agency-join .select-input input {
  padding-right: 30px;
}

.agency-join .select-input .unselect {
  position: absolute;
  margin-right: 12px;
  margin-bottom: 2px;
  font-size: 16px;
  color: #999;
  cursor: pointer;
}

.agency-join .etc-input {
  min-width: 250px;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
}

.agreement-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 460px;
  background: #fff;
  padding: 24px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.modal-header {
  position: relative;
  margin: 16px 0;
  text-align: center;
}

.modal-header h2 {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.modal-close {
  position: absolute;
  right: 0;
  top: -24px;
  width: 24px;
  cursor: pointer;
  color: #333;
}

.modal-body {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  text-align: left;
}

.modal-body ol {
  padding-left: 20px;
}

.modal-body ol > li {
  margin-bottom: 16px;
}

.modal-body ul {
  padding-left: 20px;
  list-style-type: disc;
}

.file-desc {
  display: none;
  border-bottom: 1px solid #ddd;
}

@media (max-width: 786px) {
  body {
    word-break: keep-all;
  }

  textarea {
    background-color: #fff;
    border-right: 1px solid #ddd;
  }

  input[type=file] {
    display: none !important;
  }

  .content {
    padding: 20px;
  }

  .content .description {
    margin: 0;
  }

  .agency-join td.label {
    padding-bottom: 0;
  }

  .agency-join table tr {
    margin-bottom: 10px;
  }

  .agency-join table tr:last-child {
    margin-bottom: 0;
  }

  .agency-join p.subtext {
    max-width: 100%;
    white-space: normal;
  }

  .agency-join .row {
    width: 100%;
  }

  .agency-join .file-row {
    align-items: end;
  }

  .agency-join .address {
    flex-wrap: wrap;
  }

  .agency-join .agreement .checkbox {
    white-space: normal;
  }

  .modal-overlay {
    margin: 0;
  }

  .agreement-modal {
    margin: 0;
  }

  .file-desc {
    display: block;
    flex: 1;
    max-width: calc(100% - 73px);
    padding: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.button-loader {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  height: 20px;
  opacity: 0;
  animation: loader-fade-in 0.5s ease-in-out forwards;
}
@keyframes loader-fade-in {
  to {
    opacity: 1;
  }
}
.button-loader span {
  width: 5px;
  height: 5px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-block;
  opacity: 0;
  animation: blink 1.4s infinite ease-in-out;
}
.button-loader span:nth-child(1) {
  animation-delay: 0s;
}
.button-loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.button-loader span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%, 80%, 100% {
    opacity: 0;
    transform: scale(0.4);
  }
  40% {
    opacity: 1;
    transform: scale(1.2);
  }
}
