

/* =============================================
   유튜브 카드 그리드
   ============================================= */
.law-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}

.law-board-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow .25s, transform .25s;
}

.law-board-card:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, .1);
    transform: translateY(0px);
}

/* 썸네일 영역 */
.law-board-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.law-board-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.law-board-card:hover .law-board-card-thumb img {
    transform: scale(1.04);
}

/* 재생 버튼 */
.law-board-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .25);
    transition: background .25s;
    cursor: pointer;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
}

.law-board-card-play i {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 0, .9);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    padding-left: 4px;
    transition: transform .2s, background .2s;
}

.law-board-card:hover .law-board-card-play {
    background: rgba(0, 0, 0, .35);
}

.law-board-card:hover .law-board-card-play i {
    transform: scale(1.1);
    background: #ff0000;
}

/* 카드 본문 */
.law-board-card-body {
    padding: 16px 18px 20px;
}

.law-board-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #fff0f0;
    color: #e00;
    border-radius: 4px;
    margin-bottom: 10px;
}

.law-board-card-body h3 {
    font-size: .95rem;
    font-weight: 600;
    color: #111;
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -.01em;
}

.law-board-card-date {
    font-size: .78rem;
    color: #999;
    margin: 0;
}

/* 빈 상태 */
.law-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.law-empty-state h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    margin: 0 0 10px;
}

.law-empty-state p {
    font-size: .9rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .law-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .law-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 유튜브 채널 바로가기 버튼 */
.yt-channel-link-wrap {
    text-align: center;
    margin-top: 48px;
}

.yt-channel-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #ff0000;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.yt-channel-link-btn i {
    font-size: 1.3rem;
}

.yt-channel-link-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    color: #fff;
}

/* 유튜브 모달 */
.yt-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.yt-modal[hidden] { display: none; }

.yt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    cursor: pointer;
    animation: ytBackdropIn .25s ease both;
}

@keyframes ytBackdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.yt-modal-box {
    position: relative;
    width: 100%;
    max-width: 900px;
    animation: ytBoxIn .28s cubic-bezier(.22, .61, .36, 1) both;
}

/* 쇼츠: 세로형 모달 */
.yt-modal-box--shorts {
    max-width: 360px;
}
.yt-modal-box--shorts .yt-modal-frame {
    aspect-ratio: 9 / 16;
}

@keyframes ytBoxIn {
    from { opacity: 0; transform: scale(.94) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.yt-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s ease;
}

.yt-modal-close:hover {
    background: rgba(255, 255, 255, .28);
}

.yt-modal-title {
    margin: 0 0 10px;
    font-size: .92rem;
    color: rgba(255, 255, 255, .8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yt-modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.yt-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 재생 버튼: button 태그 리셋 */
.law-board-card-play {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 100%;
    padding: 0;
}

.law-contact-card span {
    display: block;
    margin-bottom: 12px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ── 온라인상담 페이지 전용 ─────────────────────── */
.consult-steps-band {
    background: var(--bg-mid);
    padding: 52px 0;
}

.consult-steps {
    display: flex;
    align-items: stretch;
}

.consult-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px 28px;
    background: transparent;
    border-radius: 16px;
    transition: box-shadow .25s ease, background .25s ease;
}

.consult-step.is-active {
    background: #fff;
    box-shadow: 0 8px 28px rgba(13, 27, 51, .1);
}

.consult-step-arrow {
    display: flex;
    align-items: center;
    padding: 0 4px;
    color: #ddd;
    font-size: 1rem;
    flex-shrink: 0;
}

.consult-step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: var(--white);
}

.consult-step.is-active .consult-step-icon {
    background: var(--primary);
    color: #fff;
}

.consult-step-num {
    margin: 0 0 6px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--primary);
    text-transform: uppercase;
}

.consult-step strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.consult-step p:last-child {
    margin: 0;
    font-size: .84rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.consult-page-section {
    padding-top: 56px;
}

.consult-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
}

.consult-form-left,
.consult-form-right {
    display: flex;
    flex-direction: column;
}

.consult-form-right {
    border-left: 1px solid var(--border);
}

.consult-field-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.consult-field-row:last-child {
    border-bottom: none;
}

.consult-form-right .consult-field-row {
    align-items: stretch;
    flex: 1;
    border-bottom: none;
}

.consult-field-row label {
    flex-shrink: 0;
    width: 100px;
    padding: 0 16px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-dark);
    border-right: 1px solid var(--border);
}

.consult-field-row input,
.consult-field-row select {
    flex: 1;
    padding: 18px 16px;
    border: none;
    outline: none;
    font-size: .9rem;
    background: #fff;
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}

.consult-field-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.consult-field-memo {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
}

.consult-field-memo label {
    width: auto;
    padding: 14px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
}

.consult-field-memo textarea {
    flex: 1;
    padding: 16px;
    border: none;
    outline: none;
    font-size: .9rem;
    resize: none;
    background: #fff;
    color: var(--text-dark);
    min-height: 160px;
    font-family: inherit;
    line-height: 1.65;
}

.consult-field-row input:focus,
.consult-field-row select:focus,
.consult-field-memo textarea:focus {
    background: #fafbff;
}

.consult-privacy-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 0;
    justify-content: center;
}

.consult-privacy-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: var(--text-mid);
    cursor: pointer;
}

.consult-privacy-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.consult-privacy-link {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: .8rem;
    color: var(--text-mid);
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}

.consult-privacy-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.consult-submit-btn {
    display: block;
    width: 100%;
    padding: 20px;
    background: var(--text-dark);
    color: #fff;
    border: none;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .25s ease;
    font-family: inherit;
}

.consult-submit-btn:hover {
    background: var(--text-mid);
}


@media (max-width: 900px) {
    
}
@media (max-width: 600px) {
    .pv {display: none;}
    
}

/* ==========================================
   Consultation Sequential Anim
   ========================================== */
.consult-seq-anim {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.consult-seq-anim.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .consult-steps {
        flex-wrap: wrap;
        gap: 12px;
    }
    .consult-step {
        flex: 0 0 calc(50% - 6px);
    }
    .consult-step-arrow {
        display: none;
    }
    .consult-form-grid {
        grid-template-columns: 1fr;
    }
    .consult-form-right {
        border-left: none;
        border-top: 1px solid var(--border);
    }
    .consult-field-memo textarea {
        min-height: 120px;
    }
    .consult-steps-band {
        padding: 10px 0;
    }
    .consult-step {        
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .consult-step {

    }
    .consult-step strong {
        font-size: 1.1rem;
    }
    .consult-step p:last-child {
        font-size: .8rem;
    }
}
/* ──────────────────────────────────────────────── */

.consultation-form-wrapper {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
    gap: 28px;
    padding: 34px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 18px 44px rgba(13, 27, 51, .06);
}

.consultation-form-copy h3 {
    margin: 0 0 12px;
    font-size: 2rem;
    color: var(--text-dark);
}

.consultation-form-copy p:last-of-type {
    margin: 0 0 20px;
    color: var(--text-mid);
}

.consultation-form-points {
    padding-left: 18px;
    margin: 0;
    color: var(--text-mid);
}

.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consultation-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.consultation-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.consultation-form label {
    font-size: .92rem;
    font-weight: 700;
    color: var(--text-dark);
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea,
.modal-consultation-form input,
.modal-consultation-form select,
.modal-consultation-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font: inherit;
    color: var(--text-dark);
    background: #fff;
}

.consultation-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-mid);
    font-size: .92rem;
}

.consultation-checkbox input {
    width: auto;
    margin-top: 3px;
}

.direct-contact {
    padding-top: 4px;
}

.phone-contact {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
    color: var(--primary);
}

.consultation-toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translate(-50%, 14px);
    padding: 14px 20px;
    border-radius: 999px;
    color: #fff;
    font-size: .92rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease, transform .24s ease;
    z-index: 2000;
}

.consultation-toast--success {
    background: #0f7a46;
}

.consultation-toast--error {
    background: #a53030;
}

.consultation-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
   
}

@media (max-width: 767px) {
    
}

/* ── 인사말 페이지 ─────────────────────────── */
.greeting-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 80px;
    margin-right: max(20px, calc(50vw - 700px));
}
.greeting-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    animation: greetingImgFadeIn 1.4s ease-out both;
}
@keyframes greetingImgFadeIn {
    from { opacity: 0; transform: scale(1.04); }
    to   { opacity: 1; transform: scale(1); }
}
.greeting-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.3) 35%, rgba(0,0,0,.3) 100%);
}
.greeting-hero-text {
    position: absolute;
    bottom: 60px;
    left: 60px;
    z-index: 1;
    color: #fff;
    line-height: 1.15;
}
.greeting-hero-text span {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

/* 인사말 본문 2단 레이아웃 */
.greeting-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}
.greeting-content-logo {
    padding-right: 48px;
    padding-top: 6px;
    border-right: 1px solid var(--border);
}
.greeting-content-logo img {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
}
.greeting-content-text {
    padding-left: 64px;
}
.greeting-content-text p {
    margin: 0 0 28px;
    font-size: .97rem;
    line-height: 2;
    color: var(--text-mid);
    word-break: keep-all;
}
.greeting-content-text p:last-child {
    margin-bottom: 0;
}
.greeting-promise-lead {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    font-size: 1.2rem !important;
    margin-bottom: 16px !important;
}
.greeting-promise-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.greeting-promise-list li {
    font-size: .97rem;
    line-height: 1.8;
    color: var(--text-mid);
    padding-left: 12px;
    border-left: 2px solid var(--primary);
    word-break: keep-all;
}
.greeting-promise-list li span {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 4px;
}

.greeting-messages {
    max-width: 720px;
    padding-bottom: 100px;
}
.greeting-message-item {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}
.greeting-message-item:last-child {
    border-bottom: none;
}
.greeting-message-item p {
    font-size: .96rem;
    line-height: 2;
    color: var(--text-mid);
    margin: 0 0 14px;
    word-break: keep-all;
}
.greeting-message-item p:last-of-type {
    margin-bottom: 0;
}
.greeting-sig {
    margin-top: 36px;
    font-size: .85rem;
    color: var(--text-mid);
    letter-spacing: .02em;
}
.greeting-sig strong {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .greeting-hero { height: 320px; margin-bottom: 0; margin-right: 20px; }
    .greeting-hero-text { bottom: 32px; left: 24px; }
    .greeting-hero-text span { font-size: 1.5rem; }
    .greeting-messages { padding-bottom: 60px; }
    .greeting-message-item { padding: 40px 0; }
    .greeting-content {
        grid-template-columns: 1fr;
        padding: 48px 0 64px;
    }
    .greeting-content-logo {
        padding-right: 0;
        padding-bottom: 28px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        margin-bottom: 32px;
        display: flex;
        justify-content: center;
    }
    .greeting-content-logo img { max-width: 200px; }
    .greeting-content-text { padding-left: 0; }
}

@media (max-width: 520px) {
    .greeting-hero {
        height: 230px;
    }
    .greeting-hero-text span { font-size: 1.1rem; }

    .greeting-content-text p {
        font-size: .9rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {

}

/* ── 오시는길 탭 ───────────────────────────── */
.root_daum_roughmap .cont {
    display: none;
}

.location-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 32px;
}
.location-tab-btn {
    position: relative;
    padding: 14px 32px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-mid);
    background: none;
    border: none;
    cursor: pointer;
    transition: color .2s;
    letter-spacing: -0.01em;
}
.location-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width .3s ease;
}
.location-tab-btn:hover { color: var(--primary-dark); }
.location-tab-btn.active { color: var(--primary-dark); font-weight: 600; }
.location-tab-btn.active::after { width: 100%; }

.location-tab-panel { display: none; }
.location-tab-panel.active { display: block; }

/* 지도 풀너비 */
.location-map-wrap {
    width: 100%;
    height: 460px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

/* 모바일 지도 드래그 차단 오버레이 */
.location-map-shield {
    display: none;
}

@media (max-width: 768px) {
    .location-map-shield {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        inset: 0;
        z-index: 10;
        background: rgba(0, 0, 0, .28);
        transition: opacity .3s;
        cursor: pointer;
    }

    .location-map-shield span {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: rgba(0, 0, 0, .55);
        color: #fff;
        font-size: .7rem;
        border-radius: 24px;
        backdrop-filter: blur(4px);
        pointer-events: none;
    }

    .location-map-shield.dismissed {
        opacity: 0;
        pointer-events: none;
    }
}
.root_daum_roughmap .wrap_controllers {
    display: none;
}

.location-map-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}
/* 카카오맵 퍼가기 컨테이너 풀너비 */
.location-map-wrap .root_daum_roughmap {
    width: 100% !important;
    height: 100% !important;
}
.location-map-wrap .root_daum_roughmap iframe {
    width: 100% !important;
    height: 100% !important;
}
/* 카카오맵 컨테이너 overflow 클리핑 */
.location-map-wrap .root_daum_roughmap {
    position: relative;
    overflow: hidden;
}

/* 하단 정보바 */
.location-infobar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.location-infobar-address {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 28px;
    border-right: 1px solid var(--border);
    font-size: .9rem;
    color: var(--text-dark);
    white-space: nowrap;
    flex-shrink: 0;
}
.location-infobar-address i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}
.location-infobar-contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
    padding: 0 28px;
    flex: 1;
    min-width: 0;
}
.location-infobar-contacts span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    color: var(--text-dark);
    white-space: nowrap;
}
.location-infobar-contacts em {
    font-style: normal;
    color: var(--text-light);
    font-size: .82rem;
}
.location-infobar-contacts a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color .2s;
}
.location-infobar-contacts a:hover { color: var(--primary); }

.location-infobar-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    padding-left: 24px;
    border-left: 1px solid var(--border);
}
.location-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s;
}
.location-map-btn:hover { opacity: 1; filter: brightness(.92); }
.location-map-btn--naver { background: #03C75A; color: #fff; }
.location-map-btn--naver:hover { background: #03C75A; color: #fff; }
.location-map-btn--kakao { background: #FEE500; color: #3A1D1D; }
.location-map-btn--kakao:hover { background: #FEE500; color: #3A1D1D; }

@media (max-width: 1024px) {
    .location-map-wrap { height: 360px; }
    .location-infobar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px 0;
    }
    .location-infobar-address {
        border-right: none;
        padding-right: 0;
        white-space: normal;
    }
    .location-infobar-contacts {
        padding: 0;
        gap: 6px 16px;
    }
    .location-infobar-btns {
        border-left: none;
        padding-left: 0;
        width: 100%;
    }
    .location-map-btn { flex: 1; justify-content: center; }
}
@media (max-width: 768px) {
    .location-map-wrap { height: 320px; }
    .location-tab-btn { padding: 12px 20px; font-size: .88rem; }
}

/* =============================================
   수강 문의 페이지 (apply)
   ============================================= */
.apply-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 60px;
}

/* 문의 폼 카드 */
.apply-card {
    background: #f5f6f8;
    border-radius: 10px;
    padding: 40px 44px;
}

.apply-card-head {
    margin-bottom: 28px;
}

.apply-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    letter-spacing: -.02em;
}

.apply-card-desc {
    font-size: .9rem;
    color: #888;
    margin: 0;
}

/* 폼 레이아웃 */
.apply-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.apply-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.apply-field input,
.apply-field textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: .93rem;
    color: #111;
    background: #fff;
    border: 1px solid #e2e4e8;
    border-radius: 10px;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
    font-family: inherit;
}

.apply-field input::placeholder,
.apply-field textarea::placeholder {
    color: #bbb;
}

.apply-field input:focus,
.apply-field textarea:focus {
    border-color: var(--primary, #2563eb);
}

.apply-field textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.7;
}

/* 개인정보 동의 */
.apply-privacy {
    display: flex;
    align-items: center;
}

.apply-privacy-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: #666;
    cursor: pointer;
}

.apply-privacy-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-dark);
    flex-shrink: 0;
    cursor: pointer;
}

.apply-privacy-link {
    color: var(--primary-dark);
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 메시지 */
.apply-msg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .88rem;
    line-height: 1.5;
}

.apply-msg--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.apply-msg--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* 제출 버튼 */
.apply-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    padding: 16px 24px;
    background: #111;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s, transform .2s;
    letter-spacing: -.01em;
}

.apply-submit-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.apply-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* 연락처 카드 그리드 */
.apply-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.apply-info-card {
    background: #f5f6f8;
    border-radius: 10px;
    padding: 28px 32px;
}

.apply-info-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary, #2563eb);
    margin-bottom: 14px;
}

.apply-info-value {
    font-size: .95rem;
    color: #333;
    margin: 0;
    line-height: 1.7;
}

.apply-info-value a {
    color: inherit;
    text-decoration: none;
}

.apply-info-value a:hover {
    color: var(--primary, #2563eb);
}

/* 감사 메시지 */
.apply-success[hidden] { display: none; }

.apply-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 24px 32px;
    animation: applySuccessIn .5s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes applySuccessIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.apply-success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 1.8rem;
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(34, 197, 94, .35);
}

.apply-success-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 14px;
    letter-spacing: -.02em;
}

.apply-success-desc {
    font-size: .92rem;
    color: #666;
    line-height: 1.85;
    margin: 0 0 32px;
}

.apply-success-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: .88rem;
    color: #555;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.apply-success-reset:hover {
    border-color: #aaa;
    color: #111;
}

/* 반응형 */
@media (max-width: 640px) {
    .apply-card {
        padding: 28px 24px;
    }

    .apply-row {
        grid-template-columns: 1fr;
    }

    .apply-submit-btn {
        max-width: 100%;
    }

    .apply-info-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .apply-info-cards {
        grid-template-columns: 1fr;
    }
}