:root{
    --navy:#163a70;
    --navy-dark:#10294d;
    --blue:#2458a6;
    --blue-soft:#edf3fb;
    --primary:#2458a6;
    --primary-dark:#113f74;
    --primary-light:#edf3fb;
    --service:#318bdc;
    --service-dark:#2471b7;

    --bg:#f6f9fc;
    --light:#f7f8fa;
    --white:#fff;
    --text:#1f2937;
    --sub:#5f6b7a;
    --line:#d8e3ef;

    --shadow:none;
    --shadow-lg:none;
    --radius:8px;
    --container:1280px;
    --top-h:48px;
    --nav-h:84px;
}


/* 기본 설정 */
*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    padding:0;
}

body{
    min-height:100vh;
    font-family:'Noto Sans KR', sans-serif;
    color:var(--text);
    background:#fff;
    line-height:1.5;
}

a{
    color:inherit;
    text-decoration:none;
}

img{
    display:block;
    max-width:100%;
}

ul{
    margin:0;
    padding:0;
    list-style:none;
}

.container{
    width:min(calc(100% - 32px), var(--container));
    margin:0 auto;
}


/* 서브 비주얼 */
.sub-hero{
    position:relative;
    padding:50px 0 30px;
    color:#fff;
    overflow:hidden;
    background:
        linear-gradient(
            120deg,
            rgba(22,58,112,.95),
            rgba(36,88,166,.85)
        ),
        url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?q=80&w=1600&auto=format&fit=crop')
        center / cover no-repeat;
}

.sub-hero::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(255,255,255,.15),
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(255,255,255,.08),
            transparent 40%
        );
}

.sub-hero::after{
    content:"";
    position:absolute;
    right:0;
    bottom:0;
    left:0;
    height:80px;
    background:linear-gradient(
        to bottom,
        transparent,
        rgba(0,0,0,.15)
    );
}

.sub-hero .container{
    position:relative;
    z-index:2;
    max-width:1200px;
    text-align:left;
}

.sub-hero h1{
    margin:0 0 14px;
    font-size:44px;
    font-weight:800;
    letter-spacing:-.04em;
}

.sub-hero h1::after{
    content:"";
    display:block;
    width:40px;
    height:3px;
    margin-top:14px;
    background:#fff;
    opacity:.7;
}

.sub-hero p{
    margin:0 0 6px;
    font-size:17px;
    color:rgba(255,255,255,.85);
    letter-spacing:-.01em;
}


/* 브레드크럼 */
.breadcrumb-wrap{
    display:flex;
    justify-content:flex-end;
    margin-top:30px;
}

.breadcrumb-box{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 20px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:999px;
    color:#fff;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(10px);
    font-size:14px;
}

.breadcrumb-box i{
    font-size:13px;
    opacity:.8;
}


/* 본문 레이아웃 */
.sub-layout{
    padding:50px 0 80px;
}

.page-card{
    overflow:hidden;
    background:#fff;
    border:1px solid var(--line);
    border-radius:28px;
    box-shadow:var(--shadow);
}

.page-card-top{
    padding:34px 38px 20px;
    border-bottom:1px solid #eef2f7;
    background:linear-gradient(to bottom, #fbfcfe, #fff);
}

.page-title{
    margin:0;
    color:#172554;
    font-size:32px;
    font-weight:800;
    letter-spacing:-.03em;
}

.page-desc{
    margin:10px 0 0;
    color:var(--sub);
    font-size:15px;
}

.page-card-body{
    padding:34px 38px 44px;
}


/* 학원 검색 영역 */
.academy-check-wrap{
    max-width:980px;
    margin:0 auto;
}

.academy-check-box{
    padding:56px 60px 46px;
    background:#fff;
    border:1px solid #d9e1ea;
    border-radius:24px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.academy-check-notice{
    margin-bottom:34px;
    color:#d64541;
    font-size:20px;
    font-weight:800;
    text-align:center;
    letter-spacing:-.02em;
    word-break:keep-all;
}

.academy-form{
    max-width:640px;
    margin:0 auto;
}

.academy-row{
    display:grid;
    grid-template-columns:160px minmax(0, 1fr);
    align-items:center;
    gap:18px;
    margin-bottom:14px;
}



.academy-label{
    color:#1f2937;
    font-size:18px;
    font-weight:700;
    text-align:right;
    letter-spacing:-.02em;
}

.academy-input,
.academy-select{
    width:100%;
    height:46px;
    padding:0 14px;
    color:#111827;
    background:#fff;
    border:1px solid #cfd8e3;
    border-radius:6px;
    outline:none;
    font-family:'Noto Sans KR', sans-serif;
    font-size:16px;
}

.academy-input:focus,
.academy-select:focus{
    border-color:var(--navy);
    box-shadow:0 0 0 3px rgba(22,58,112,.08);
}


/* 연락처 입력 */
.academy-phone{
    display:grid;
    grid-template-columns:84px 1fr 1fr;
    align-items:center;
    gap:10px;
    max-width:420px;
}


/* 구분선 */
.academy-divider{
    max-width:760px;
    margin:30px auto 26px;
    border-top:3px dotted #cfd3d8;
}


/* 학원 검색 버튼 */
.academy-btn-wrap{
    text-align:center;
}

.academy-btn{
    min-width:220px;
    height:54px;
    padding:0 28px;
    color:#1f2937;
    background:#fff;
    border:1px solid #cfd8e3;
    border-radius:6px;
    cursor:pointer;
    font-family:'Noto Sans KR', sans-serif;
    font-size:18px;
    font-weight:800;
    letter-spacing:-.02em;
    transition:.2s ease;
}

.academy-btn:hover{
    color:#fff;
    background:var(--navy);
    border-color:var(--navy);
}


/* 재난코드 입력창 + 조회 버튼 */
.disaster-code-group{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
}

.disaster-code-input{
    width:350px;
    flex:0 0 350px;
}


.btn-disaster-code{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;

    min-width:130px;
    height:46px;
    padding:0 16px;

    background-color:#2458a6 !important;
    color:#ffffff !important;
    border:1px solid #2458a6 !important;
    border-radius:6px;

    font-family:'Noto Sans KR', sans-serif;
    font-size:14px;
    font-weight:700;
    white-space:nowrap;
    cursor:pointer;
}

.btn-disaster-code:hover{
    background-color:#163a70 !important;
    color:#ffffff !important;
    border-color:#163a70 !important;
}

.btn-disaster-code i{
    color:#ffffff !important;
}


/* 태블릿 */
@media (max-width:991px){

    .academy-check-box{
        padding:34px 26px 30px;
        border-radius:18px;
    }

    .academy-check-notice{
        margin-bottom:24px;
        font-size:18px;
    }

    .academy-row{
        grid-template-columns:1fr;
        gap:8px;
        margin-bottom:16px;
    }

    .academy-label{
        font-size:16px;
        text-align:left;
    }

    .academy-phone{
        max-width:none;
    }
}


/* 모바일 */
@media (max-width:767px){

    .sub-hero{
        padding:36px 0 24px;
    }

    .sub-hero h1{
        font-size:32px;
    }

    .sub-hero p{
        font-size:15px;
    }

    .page-card-top{
        padding:26px 22px 18px;
    }

    .page-card-body{
        padding:26px 22px 32px;
    }

    .page-title{
        font-size:26px;
    }

    .academy-check-box{
        padding:26px 18px 24px;
    }

    .academy-check-notice{
        font-size:17px;
        line-height:1.5;
    }

    .academy-input,
    .academy-select{
        height:44px;
        font-size:15px;
    }

    .academy-phone{
        grid-template-columns:72px 1fr 1fr;
        gap:8px;
    }

    .academy-divider{
        margin:24px auto 20px;
    }

    .academy-btn{
        width:100%;
        min-width:0;
        height:50px;
        font-size:17px;
    }

    /* 재난코드 버튼을 입력창 아래에 배치 */
    .disaster-code-group{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }

    .disaster-code-input{
        width:100%;
        flex:0 0 auto;
    }

    .btn-disaster-code{
        width:100%;
        height:44px;
    }
}


/* 작은 모바일 */
@media (max-width:480px){

    .container{
        width:calc(100% - 24px);
    }

    .page-card{
        border-radius:18px;
    }

    .page-card-top{
        padding:22px 18px 16px;
    }

    .page-card-body{
        padding:22px 18px 28px;
    }

    .academy-phone{
        grid-template-columns:1fr;
    }

    .academy-phone .academy-select,
    .academy-phone .academy-input{
        width:100%;
    }
}

.academy-ceo-input {
    width: 500px !important;
    max-width: 500px !important;
}

.academy-tel-input {
    width: 195px !important;
    max-width: 195px !important;
}

@media (max-width: 768px) {
    .academy-ceo-input {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===============================
   휴대폰 로그인 옵션
=============================== */

.phone-login-option {
    margin-bottom: 28px;
    padding: 18px 20px;
    background: #f5f8fc;
    border: 1px solid #d9e3ef;
}

.phone-login-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #163a70;
    cursor: pointer;
}

.phone-login-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.phone-login-help {
    margin: 8px 0 0 27px;
    font-size: 13px;
    color: #6b7280;
}


/* ===============================
   아이디 중복확인
=============================== */

.id-check-area {
    display: flex;
    gap: 8px;
    width: 100%;
}

.id-check-area .academy-input {
    flex: 1;
    min-width: 0;
}

.id-check-btn {
    width: 100px;
    height: 42px;
    border: 1px solid #2458a6;
    background: #fff;
    color: #2458a6;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.id-check-btn:hover {
    background: #2458a6;
    color: #fff;
}


/* ===============================
   확인 메시지
=============================== */

.check-message {
    margin-top: 7px;
    font-size: 13px;
    min-height: 18px;
}

.check-message.success {
    color: #16794b;
}

.check-message.error {
    color: #d93025;
}


/* ===============================
   자동입력 상태
=============================== */

.academy-input.auto-value {
    background: #f5f6f8;
    color: #374151;
}


/* 모바일 */
@media (max-width: 600px) {

    .id-check-area {
        gap: 5px;
    }

    .id-check-btn {
        width: 85px;
        font-size: 13px;
    }

    .phone-login-option {
        padding: 15px;
    }

    .phone-login-help {
        margin-left: 0;
    }
}