body { font-family: 'Pretendard', system-ui, sans-serif; }

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

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

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

.w300 { width: 300px !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: var(--red-color);
}

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

.agency-join .required::after {
    content: "*";
    color: var(--red-color);
    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='%23358AE3'%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='%23358AE3' 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"], .agency-join .support-set select { max-width: 100%; }

.agency-join .support-set select { min-width: 200px; }

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

.agency-join .support-set-group-1, .agency-join .support-set-group-2 {
    display: none;
}

.agency-join .support-set-group-1.active, .agency-join .support-set-group-2.active {
    display: table-row;
}

.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 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; }

.agency-join table colgroup col:nth-child(1) { width: 200px; }

.agency-join table colgroup col:nth-child(2) { width: auto; }

.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, .support-notice-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;
}

.support-notice-modal .modal-body p {
    margin: 2em 0;
}

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

.text-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;
}

.radio .text-link {
    display: inline !important;
    margin-left: 4px;
    color: var(--primary-color);
    padding-right: 100px;
}

.modal-body .text-link {
    display: list-item !important;
    margin-bottom: 14px;
    text-decoration: none;
}

.modal-body .text-link a {
    color: #333 !important;
}

/* 정보 카드 영역 */
.info-cards {
    display: flex;
    gap: 16px;
}

.info-card {
    flex: 1;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.info-card-title {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: #161616;
}

.info-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;

    button { border-radius: 6px; }
}

.info-card-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background-color: #f5f8fc;
    border: 1px solid #EDF2F7;
    border-radius: 8px;
    padding: 16px;
}

.info-card-item > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-card-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #161616;
}

.info-card-item-desc {
    font-size: 13px;
    color: #717171;
    line-height: 1.5;
}

.check-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #e8f2fc;
    border-radius: 50%;
    margin-top: 1px;
}

.check-icon::after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6l2.5 2.5L9.5 3.5' stroke='%23358AE3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.num-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #e8f2fc;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-top: 1px;
}

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

.content .description {
    padding: 0;
    background: initial;
    border: 0;

    .desc-text {
        margin-bottom: 16px;
        position: relative;
        top: -8px;
    }
}

@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; }

    .info-cards { flex-direction: column; }

    .info-card { padding: 20px; }

    .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, .support-notice-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);
    }
}
