/* General Styles */
body {
    font-family: 'Pretendard', sans-serif;
    margin: 0;
    background-color: #fcfcfc;
    color: #222;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.highlight {
    color: #00754a;
}

/* Participant Section */
.participant-section {
    padding: 120px 0;
    text-align: center;
}

.participant-section h3 {
    font-family: 'Ria Sans', sans-serif;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 24px;
}

.participant-section p {
    font-size: 18px;
    line-height: 26px;
    color: #222;
    margin-bottom: 40px;
}

.participant-section .highlight {
    color: #2793c2;
    font-weight: bold;
}

.participant-section .info-span {
    color: #a1a1a1;
}

.participant-images img {
    max-width: 100%;
    height: auto;
}

/* Disease Info Box */
.disease-info-box {
    background-color: #ededed;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    position: relative;
    border-radius: 8px;
    flex-shrink: 0;
    width: 100%;
    text-align: left;
    margin-top: 40px;
}

.disease-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.disease-label {
    font-family: "Pretendard", sans-serif;
    line-height: 26px;
    font-style: normal;
    position: relative;
    flex-shrink: 0;
    color: #222222;
    font-size: 18px;
    white-space: nowrap;
    font-weight: 500;
    margin: 0 !important;
    min-width: 122px;
}

.disease-label.w-110px {
    width: 110px;
}

.disease-separator {
    background-color: #d4d4d4;
    align-self: stretch;
    flex-shrink: 0;
    width: 1px;
}

.disease-list {
    font-family: "Pretendard", sans-serif;
    line-height: 26px;
    font-style: normal;
    position: relative;
    flex-shrink: 1;
    color: #222222;
    font-size: 18px;
    white-space: pre-wrap;
    flex-grow: 1;
    min-height: 1px;
    min-width: 1px;
    margin: 0 !important;
}

.disease-line {
    background-color: #d4d4d4;
    height: 1px;
    flex-shrink: 0;
    width: 100%;
}

/* Documents Section */
.documents-section {
    padding: 100px 0;
}

.documents-section h3 {
    font-family: 'Ria Sans', sans-serif;
    font-size: 32px;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 60px;
}

.document-list {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.document-item {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.document-item:hover {
    transform: translateY(-10px);
}

.document-item p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Title Icons via Pseudo */
.document-item p::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Specific Icons mapping */
.document-item[onclick*='C002'] p::before,
.document-item[onclick*='C004'] p::before {
    background: url("/resource/www/images/about/icons/icon-book-open.svg") no-repeat center/contain;
}

.document-item[onclick*='C005'] p::before,
.document-item[onclick*='C006'] p::before {
    background: url("/resource/www/images/about/icons/icon-document.svg") no-repeat center/contain;
}

.document-item img {
    width: 100%;
    border-radius: 12px;
}

/* Search Section */
.search-section {
    padding: 100px 0;
    width: 100%;
}

.search-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 80px;
}

.search-text {
    width: 30%;
}

.search-text h3 {
    font-family: 'Ria Sans', sans-serif;
    font-size: 44px;
    font-weight: bold;
    line-height: 1.2;
    text-align: left;
}

.search-box {
    flex: 1;
    display: flex;
    background-color: #fff;
    border-radius: 32px;
    border: 1px solid #eee;
    box-shadow: 0;
    overflow: hidden;
}

.search-input-area {
    flex: 1;
    min-width: 0;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.search-input-area .top-area {
    text-align: center;
}

.search-input-area .top-area p {
    font-size: 24px;
    font-weight: bold;
    color: #222;
}

.search-input-area .top-area .highlight {
    color: #00754a;
    font-weight: bold;
}

.search-input-area .top-area .small-text {
    font-size: 16px;
    font-weight: 500;
    color: #999;
    margin: 16px 0 0;
    line-height: 1.5;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ddd;
    padding: 10px 0;
    margin-bottom: 60px;
    margin-top: 40px;
}

.input-wrapper input {
    flex: 1;
    border: none;
    font-size: 20px;
    font-weight: 500;
    outline: none;
    background: transparent;
    padding: 5px 0;
    color: #222;
}

.input-wrapper input::placeholder {
    color: #ccc;
}

.search-icon-btn {
    width: 32px;
    height: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    border: none;
    cursor: pointer;
}

.apply-button-small {
    width: auto;
    align-self: center;
    background-color: #00754a;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 18px 40px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.apply-button-small:hover {
    background-color: #005f3c;
}

.btn-icon {
    width: 20px;
    height: 20px;
    background: url("/resource/www/images/common/icon-pointer.png") no-repeat center/contain;
}

.map-area {
    flex: 0 0 40%;
    width: 40%;
    background-color: #f9f9f9;
    border-left: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    background-image: none;
    border-radius: 0;
}

.map-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 277 / 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-inner img {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.map-btn {
    position: absolute;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
}

.map-btn.active {
    background-color: #00754a;
    color: #fff;
    border-color: #00754a;
    z-index: 10;
}

@media (hover: hover) and (pointer: fine) {
    .map-btn:hover {
        background-color: #00754a;
        color: #fff;
        border-color: #00754a;
        z-index: 10;
    }
}

/* Map positions precisely */
.map-btn.seoul {
    top: 19%;
    left: 26%;
}

.map-btn.incheon {
    top: 23%;
    left: 9%;
}

.map-btn.gyeonggi {
    top: 25%;
    left: 38%;
}

.map-btn.gangwon {
    top: 18%;
    left: 62%;
}

.map-btn.chungnam {
    top: 42%;
    left: 21%;
}

.map-btn.chungbuk {
    top: 38%;
    left: 52%;
}

.map-btn.sejong {
    top: 43%;
    left: 38%;
}

.map-btn.daejeon {
    top: 52%;
    left: 44%;
}

.map-btn.gyeongbuk {
    top: 46%;
    left: 74%;
}

.map-btn.daegu {
    top: 52%;
    left: 73%;
}

.map-btn.jeonbuk {
    top: 57%;
    left: 32%;
}

.map-btn.gwangju {
    top: 66%;
    left: 20%;
}

.map-btn.jeonnam {
    top: 74%;
    left: 24%;
}

.map-btn.gyeongnam {
    top: 64%;
    left: 61%;
}

.map-btn.busan {
    top: 65%;
    left: 80%;
}

.map-btn.ulsan {
    top: 57%;
    left: 89%;
}

.map-btn.jeju {
    top: 89%;
    left: 20%;
}

.agency-list-container {
    margin-top: 80px;
    border-top: 2px solid #222;
}

.agency-list {
    width: 100%;
    border-collapse: collapse;
}

.agency-list th,
.agency-list td {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.agency-list th {
    font-weight: 600;
    font-size: 15px;
    color: #666;
    background-color: #f4f4f4;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.status-active {
    background-color: #00754a;
    color: #fff;
}

.status-badge.status-inactive {
    background-color: #efefef;
    color: #ccc;
}

.field-badge {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #00754A;
    color: #00754A;
    font-size: 13px;
    font-weight: 500;
}

.map-pin-btn {
    width: 24px;
    height: 24px;
    background: #efefef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center/14px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
}

.detail-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.page-link {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #eee;
    border: none;
    padding: 0;
    cursor: pointer;
}

.page-link.active {
    width: 32px;
    height: 12px;
    border-radius: 6px;
    background-color: #00754a;
}

.page-nav {
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
    cursor: pointer;
    background-color: transparent;
    margin: 0 10px;
}

.page-nav.prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}

.page-nav.next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}

.apply-button-container {
    text-align: center;
}

.apply-button-large {
    width: auto;
    min-width: 480px;
    padding: 24px 60px;
    background-color: #00754a;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 80px;
    box-shadow: 0 10px 30px rgba(0, 117, 74, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.apply-button-large::before {
    content: '';
    width: 24px;
    height: 24px;
    background: url("/resource/www/images/common/icon-pointer.png") no-repeat center/contain;
}

/* Visibility classes */
.pc-only {
    display: block;
}

.pc-only.agency-list {
    display: table;
}

.mobile-only {
    display: none;
}

/* Responsive Styles */
@media (max-width: 1280px) {
    .pc-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .search-container {
        flex-direction: column;
        gap: 40px;
    }

    .search-text {
        display: none;
    }

    .search-box {
        flex-direction: column;
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        border: 1px solid #eee;
        overflow: hidden;
    }

    .search-input-area {
        width: 100%;
        padding: 40px 20px;
        order: 1;
        background-color: #fff;
        box-sizing: border-box;
    }

    .map-area {
        width: 100%;
        padding: 40px 20px;
        order: 2;
        background-color: #f4f4f4;
        border-left: none;
        border-top: 1px solid #eee;
        aspect-ratio: auto;
        box-sizing: border-box;
    }

    .map-inner {
        width: 100%;
        max-width: 277px;
        aspect-ratio: 277 / 500;
        margin: 0 auto;
    }

    .search-input-area .top-area p {
        font-size: 20px;
    }

    .search-input-area .top-area .small-text {
        font-size: 13px;
        margin-top: 10px;
    }

    .input-wrapper {
        margin: 30px 0;
    }

    .apply-button-small {
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 16px;
    }

    .apply-button-large {
        min-width: 100%;
        padding: 20px;
        font-size: 16px;
    }

    /* Mobile Card Layout 개선 */
    .agency-list-container {
        margin-top: 20px;
        border-top: none;
    }

    .inst-card {
        padding: 32px 0;
        border-bottom: 1px solid #ddd;
        background-color: transparent;
        border-radius: 0;
        margin-bottom: 0;
        box-shadow: none;
    }

    .inst-card:last-child {
        border: none;
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .card-region {
        font-size: 15px;
        color: #222;
        font-weight: 500;
    }

    .map-pin-btn {
        width: 34px;
        height: 34px;
        background-color: #eee;
        background-size: 20px;
        margin-left: 0;
        transition: background-color 0.2s;
    }

    .map-pin-btn:active {
        background-color: #ddd;
    }

    .card-body {
        cursor: default;
    }

    .card-title-area {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }

    .card-name {
        font-size: 18px;
        font-weight: bold;
        color: #222;
        margin: 0;
    }

    .status-badge {
        padding: 6px 12px;
        font-size: 11px;
        white-space: nowrap;
    }

    .card-addr {
        font-size: 14px;
        color: #666;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .field-badge {
        font-size: 12px;
        padding: 6px 16px;
        display: inline-block;
    }

    .no-data-card {
        text-align: center;
        padding: 60px 0;
        color: #999;
    }

    .container {
        padding: 0 20px;
    }

    .participant-section,
    .journey-section,
    .documents-section,
    .search-section {
        padding: 60px 0;
        width: 100%;
    }

    .journey-section {
        padding-bottom: 160px;
    }

    .container h3 {
        font-size: 20px;
    }

    .participant-section p {
        margin: 0;
        font-size: 14px;
    }

    .document-list {
        display: block;
    }

    .document-list .document-item {
        margin-bottom: 16px;
    }

    /*.participant-section,
    .journey-section,
    .documents-section,
    .search-section {
        padding: 80px 20px;
    }*/

    .participant-section h3,
    .journey-section h3,
    .documents-section h3,
    .search-container h3 {
        font-family: 'Ria Sans', sans-serif;
        font-size: 20px;
        line-height: 30px;
        margin-bottom: 24px;
        letter-spacing: -0.8px;
        text-align: center;
    }

    .participant-section p {
        font-family: "Pretendard", sans-serif;
        font-size: 12px;
        line-height: 20px;
        color: #222;
        margin-bottom: 30px;
        font-weight: 500;
    }

    .participant-section .highlight {
        color: #2793c2;
        font-weight: 500;
    }

    .disease-info-box {
        background-color: #ededed;
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        padding: 16px;
        margin-top: 24px;
        gap: 8px;
        border-radius: 8px;
    }

    .disease-row {
        flex-direction: column;
        gap: 4px;
    }

    .disease-label {
        font-size: 12px;
        color: #222 !important;
        font-weight: 500;
        min-width: unset;
        line-height: 20px;
    }

    .disease-separator {
        display: none;
    }

    .disease-list {
        font-size: 12px;
        line-height: 20px;
        color: #222;
        font-weight: 400;
    }

    .disease-line {
        background-color: #d4d4d4;
        height: 1px;
        margin: 0;
        width: 100%;
    }

    .journey-section .legend {
        justify-content: center;
        gap: 24px;
        margin-bottom: 24px;
    }

    .journey-section .legend span {
        font-size: 12px;
        padding-right: 58px;
        padding-left: 0;
        color: #a1a1a1;
        display: flex;
        align-items: center;
        font-weight: 400;
    }

    .journey-section .legend span::after {
        width: 50px;
        height: 6px;
        border-radius: 999px;
        left: auto;
        right: 0;
    }

    .journey-section .legend span::before {
        display: none;
    }

    .journey-map {
        background-color: #fff;
        margin: 0 auto;
        width: 100%;
        max-width: 343px;
        /* height: 2200px 고정 제거 → 너비 비례 높이로 교체
            비율: 2200 / 343 = 원본 디자인 기준 (step7 여백 포함) */
        aspect-ratio: 343 / 2200;
    }

    .step-item {
        width: 78.7cqw;
        /* 270 / 343 × 100 — 너비 비례 확장/축소 */
        padding: 0;
        position: absolute;
        display: flex;
        flex-direction: column;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .step-item.items-end {
        text-align: right !important;
        align-items: flex-end !important;
    }

    .step-title {
        font-size: clamp(10px, 4.082cqw, 14px);
        font-weight: 700;
        color: #222;
        line-height: 22px;
        margin: 0;
    }

    .step-desc {
        font-size: clamp(8px, 3.5cqw, 12px);
        line-height: 20px;
        font-weight: 500;
        color: #222;
        margin: 0;
    }

    .bank-title {
        font-size: clamp(10px, 4.082cqw, 14px);
        font-weight: 700;
        color: #222;
        line-height: 22px;
        margin-top: 0;
    }

    .bank-desc {
        font-size: clamp(8px, 3.5cqw, 12px);
        line-height: 20px;
        font-weight: 500;
        color: #222;
        margin: 0;
    }

    .journey-btn {
        width: 7.08cqw;
        height: 7.08cqw;
        min-width: 20px;
        min-height: 20px;
        font-size: clamp(10px, 5.31cqw, 18px);
    }

    /* Figma-based mobile positions */
    .step-item.step1 {
        top: 2.5%;
        left: 15% !important;
    }

    .step-item.step2 {
        top: 14.5%;
        left: 10% !important;
    }

    .step-item.step3 {
        top: 27.5%;
        left: 15% !important;
    }

    .step-item.step4 {
        top: 37.5%;
        left: 6% !important;
    }

    .step-item.step-bank {
        top: 50%;
        left: 15% !important;
    }

    .step-item.step5 {
        top: 66%;
        left: 10%;
    }

    .step-item.step6 {
        top: 77%;
        left: 15% !important;
    }

    .step-item.step7 {
        top: 95%;
        left: 10% !important;
    }

    .step-details {
        width: calc(100vw - 200px);
        max-width: 426px;
        padding: 30px 12px 12px 12px;
        top: 0;
        left: 0;
        background-color: #efefef;
    }

    .step-details p {
        font-size: clamp(8px, 3.5cqw, 12px);
    }

    .step-item.items-end .step-details {
        top: 0;
        left: auto;
        right: 0;
    }

    .close-details {
        top: 0;
        left: 0;
        width: 7.08cqw;
        height: 7.08cqw;
        min-width: 20px;
        min-height: 20px;
        font-size: 5.31cqw;
    }

    /* Documents Section */
    .documents-section {
        background-color: #f4f4f4;
    }

    .document-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .document-item {
        background: rgba(252, 252, 252, 0.25);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        border: 1px solid #fcfcfc;
        border-radius: 16px;
        padding: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        box-shadow: none;
        width: 100%;
        box-sizing: border-box;
    }

    .document-item p {
        font-size: 16px;
        color: #222;
        font-weight: 600;
        margin-bottom: 0;
        text-align: center;
        line-height: 24px;
    }

    .document-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 384/544;
        object-fit: cover;
        border-radius: 8px;
    }

    /* Search Section */
    .search-section {
        background-color: #fff;
        padding: 80px 0px;
    }

    .search-container h3 {
        text-align: left;
        margin-bottom: 40px;
    }

    .search-box {
        border: 1px solid #d4d4d4 !important;
        border-radius: 24px;
        box-shadow: none;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .search-input-area {
        width: 100%;
        padding: 56px 32px;
        background: #fcfcfc;
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        border-radius: 24px 24px 0 0;
        box-sizing: border-box;
        border: none;
    }

    .search-input-area .top-area p {
        font-family: "Pretendard", sans-serif;
        font-size: 16px;
        line-height: 24px;
        margin: 0;
        font-weight: 600;
        text-align: center;
    }

    .search-input-area .top-area .highlight {
        color: #00754a;
    }

    .search-input-area .top-area .small-text {
        font-size: 12px;
        color: #a1a1a1;
        margin: 0;
        line-height: 20px;
        font-weight: 500;
        text-align: center;
    }

    .input-wrapper {
        border-bottom: 1px solid #d4d4d4;
        padding: 10px 12px;
        margin: 0;
    }

    .input-wrapper input {
        font-size: 14px;
    }

    .search-icon-btn {
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4d4d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    }

    .map-area {
        width: 100%;
        background: rgba(237, 237, 237, 0.7);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        border-radius: 0 0 24px 24px;
        border: none;
        padding: 32px;
        box-sizing: border-box;
    }

    .map-inner img {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    .map-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
}