@charset "utf-8";
/* ==========================================================================
   [리뉴얼 서브] 서비스 선택 — theme/grape5.5/mobile/apply2.php
   헤더·푸터·모달 틀은 common2.css (b2-), 이 파일은 본문만 (ap2- 접두어)
   ========================================================================== */

.ap2-main { padding-top: var(--b2-header-h); background: #fcfdfd; }
.ap2-section { padding: 60px 0 80px; }
.ap2-inner { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* 상단 제목 + 안내 + 버튼 */
.ap2-top { margin-bottom: 36px; }
.ap2-title {
    margin-bottom: 22px;
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #000;
    text-wrap: balance;
}
.ap2-sub-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ap2-desc { font-size: 15px; line-height: 1.6; font-weight: 500; color: #475569; }
.ap2-desc-point { font-weight: 700; color: #e5484d; }
.ap2-actions { display: flex; align-items: center; gap: 24px; flex: 0 0 auto; }
.ap2-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 800;
    color: #0e1c4e !important;
    white-space: nowrap;
    transition: color .2s;
}
.ap2-link:hover { color: var(--b2-blue) !important; }
.ap2-link svg { width: 22px; height: 22px; }
.ap2-next svg,
.ap2-confirm svg { width: 18px; height: 18px; }
.ap2-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 26px;
    border: 0;
    background: #1656f0;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    transition: background .2s, transform .15s;
}
.ap2-next:hover { background: #0e1c4e; transform: translateY(-1px); }
.ap2-divider { height: 1.5px; margin-top: 20px; background: #cbd5e1; }

/* 4열 카드 */
.ap2-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ap2-col {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 24px 10px;
    cursor: pointer;
    transition: background .25s;
}
.ap2-col:hover { background: #f1f6ff; }
.ap2-col:has(.ap2-check-input:checked) { background: #edf4ff; }
.ap2-check-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ap2-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 290px;
    aspect-ratio: 3 / 4.3;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(14, 28, 78, .08);
    transition: transform .25s, box-shadow .25s;
}
.ap2-col:hover .ap2-card,
.ap2-check-input:checked + .ap2-card { transform: translateY(-8px); box-shadow: 0 16px 36px rgba(22, 86, 240, .22); }
.ap2-check-input:focus-visible + .ap2-card { outline: 3px solid var(--b2-blue); outline-offset: 3px; }
.ap2-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 48px;
    padding: 0 14px;
    background: #0e1c4e;
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    letter-spacing: .02em;
    white-space: nowrap;
}
.ap2-badge-sub { font-size: 11px; font-weight: 700; opacity: .9; }
.ap2-check {
    position: absolute;
    top: 58px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: transparent;
    transition: background .2s, border-color .2s, color .2s;
}
.ap2-check svg { width: 16px; height: 16px; stroke-width: 3; }
.ap2-check-input:checked + .ap2-card .ap2-check { border-color: #1656f0; background: #1656f0; color: #fff; }
.ap2-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px;
    overflow: hidden;
}
.ap2-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.ap2-col:hover .ap2-photo img { transform: scale(1.04); }
.ap2-photo-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 1.5px dashed #cbd5e1;
    background: #f8fafc;
    font-size: 13px;
    color: #94a3b8;
}
.ap2-text { display: flex; flex-direction: column; gap: 5px; padding: 16px 14px 22px; text-align: center; }
.ap2-card-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: #0e1c4e; }
.ap2-card-desc { font-size: 14px; font-weight: 500; color: #0e1c4e; }

/* 카드 아래 큰 다음 버튼 (PC) */
.ap2-next-wrap { display: flex; justify-content: center; margin-top: 40px; }
.ap2-next.ap2-next-lg { width: 360px; max-width: 100%; height: 64px; gap: 10px; font-size: 20px; }
.ap2-next.ap2-next-lg svg { width: 22px; height: 22px; }
.ap2-next-mobile { display: none; }

/* 모달 공통 하단 */
.ap2-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    border-top: 1.5px solid #0e1c4e;
    background: #fff;
}
.ap2-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 32px;
    border: 0;
    background: #0e1c4e;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    transition: background .2s;
}
.ap2-confirm:hover { background: #1656f0; }

/* 절차 6단계 */
.ap2-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    background: #cbd5e1;
    list-style: none;
}
.ap2-step { display: flex; flex-direction: column; gap: 6px; min-height: 190px; padding: 28px; background: #fff; transition: background .2s; }
.ap2-step:hover { background: #f8faff; }
.ap2-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; padding-bottom: 20px; }
.ap2-step-no { font-size: 28px; font-weight: 900; color: #1656f0; }
.ap2-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f1f6ff;
    color: #0e1c4e;
    transition: background .2s, color .2s;
}
.ap2-step-icon svg { width: 22px; height: 22px; }
.ap2-step:hover .ap2-step-icon { background: #0e1c4e; color: #fff; }
.ap2-step-name { font-size: 20px; font-weight: 900; line-height: 1.25; color: #0e1c4e; }
.ap2-step-sub { font-size: 14px; line-height: 1.4; color: #64748b; }

/* 비용 4칸 */
.ap2-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5px; background: #cbd5e1; }
.ap2-price-block { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 22px 24px 20px; background: #fff; }
.ap2-price-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 19px; font-weight: 900; color: #0e1c4e; }
.ap2-bullet { width: 8px; height: 8px; background: #1656f0; }
.ap2-price-table { width: 100%; border-collapse: collapse; }
.ap2-price-table th,
.ap2-price-table td { padding: 9px 12px; border: 1px solid #e2e8f0; text-align: left; }
.ap2-price-table th { background: #f1f5f9; font-size: 14.5px; font-weight: 800; color: #0e1c4e; }
.ap2-price-table td { font-size: 15px; font-weight: 600; color: #334155; }
.ap2-price-table th:last-child,
.ap2-price-table td:last-child { text-align: right; }
.ap2-price-table td:last-child { font-weight: 900; color: #0e1c4e; white-space: nowrap; }
.ap2-price-note { margin-top: 8px; font-size: 13px; font-weight: 600; line-height: 1.45; color: #64748b; }
.ap2-track { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ap2-track-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ap2-track-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ap2-track-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 7px; color: #fff; text-align: center; }
.ap2-track-item svg { width: 19px; height: 19px; }
.ap2-track-no {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    font-size: 11.5px;
    font-weight: 900;
}
.ap2-track-name { font-size: 12.5px; font-weight: 800; line-height: 1.25; }
.ap2-track-c1 { background: #5bc6d6; } .ap2-track-c1 .ap2-track-no { color: #5bc6d6; }
.ap2-track-c2 { background: #32b5e2; } .ap2-track-c2 .ap2-track-no { color: #32b5e2; }
.ap2-track-c3 { background: #1a9ee6; } .ap2-track-c3 .ap2-track-no { color: #1a9ee6; }
.ap2-track-c4 { background: #0377dc; } .ap2-track-c4 .ap2-track-no { color: #0377dc; }
.ap2-track-c5 { background: #0e1c4e; } .ap2-track-c5 .ap2-track-no { color: #0e1c4e; }

/* --------------------------------------------------------------------------
   반응형
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
    .ap2-title { font-size: 52px; }
    .ap2-sub-bar { flex-direction: column; align-items: flex-start; }
    .ap2-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 1024px) {
    .ap2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap2-price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .ap2-section { padding: 36px 0 60px; }
    .ap2-inner { padding: 0 16px; }
    .ap2-title { margin-bottom: 14px; font-size: 34px; }
    .ap2-desc { font-size: 14px; }
    .ap2-desc br { display: none; }
    .ap2-actions { flex-wrap: wrap; justify-content: flex-start; gap: 12px 18px; }
    .ap2-link { font-size: 16px; }
    .ap2-link svg { width: 18px; height: 18px; }
    .ap2-next-wrap { display: none; }
    .ap2-grid { gap: 10px; }
    .ap2-col { padding: 12px 4px; }
    .ap2-badge { height: 40px; padding: 0 10px; font-size: 11px; }
    .ap2-badge-sub { display: none; }
    .ap2-check { top: 48px; right: 8px; }
    .ap2-text { padding: 12px 8px 16px; }
    .ap2-card-title { font-size: 17px; }
    .ap2-card-desc { font-size: 12.5px; }
    /* 다음 버튼은 화면 아래에 고정 */
    .ap2-next-mobile {
        position: sticky;
        bottom: 0;
        z-index: 5;
        display: block;
        margin: 20px -16px 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 -6px 18px rgba(14, 28, 78, .08);
    }
    .ap2-next-mobile .ap2-next { width: 100%; height: 50px; font-size: 16px; }
    .ap2-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap2-step { min-height: 0; padding: 18px; }
    .ap2-step-top { padding-bottom: 12px; }
    .ap2-step-no { font-size: 22px; }
    .ap2-step-name { font-size: 17px; }
    .ap2-step-sub { font-size: 13px; }
    .ap2-price-block { padding: 18px 16px; }
    .ap2-price-title { font-size: 17px; }
    .ap2-price-table th,
    .ap2-price-table td { padding: 8px; font-size: 13.5px; }
    .ap2-price-table td:last-child { white-space: normal; }
    .ap2-modal-foot { flex-direction: column; align-items: stretch; padding: 16px; }
    .ap2-confirm { width: 100%; }
}

@media (max-width: 480px) {
    .ap2-title { font-size: 28px; }
    .ap2-step-grid { grid-template-columns: 1fr; }
    .ap2-track-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ap2-track-name { font-size: 11.5px; }
}

@media (max-width: 360px) {
    .ap2-grid { grid-template-columns: 1fr; }
    .ap2-card { max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
    .ap2-main *,
    .ap2-main *::before,
    .ap2-main *::after { transition-duration: .01s !important; transition-delay: 0s !important; animation: none !important; }
    .ap2-col:hover .ap2-card,
    .ap2-check-input:checked + .ap2-card,
    .ap2-col:hover .ap2-photo img { transform: none; }
}

/* [261109] 신청 단계 공통 상단 — 구분선 아래 "신청 항목 : ..." (좌측정렬) / theme mobile/apply2_top.php */
.ap2-picked {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.5;
    text-align: left;
    color: #0e1c4e;
}
.ap2-picked-label { flex: 0 0 auto; font-weight: 900; }
.ap2-picked-text { font-weight: 700; color: #1656f0; word-break: keep-all; }
.ap2-picked-text.is-empty { font-weight: 500; color: #94a3b8; }
@media (max-width: 768px) {
    .ap2-picked { margin-top: 12px; font-size: 15px; }
}
