/* PHP 보안 업데이트 신청 - Baekho Design Studio (bhstudio.co.kr 컬러) */
:root {
    --navy: #020B15;
    --navy-2: #0E1A28;
    --yellow: #FED140;
    --yellow-soft: #FFF8DF;
    --yellow-line: #F2C94C;
    --bg: #F4F5F7;
    --white: #FFFFFF;
    --ink: #020B15;
    --ink-2: #3D4652;
    --muted: #7C8591;
    --line: #DDE1E6;
    --req: #E5484D;
    --r-lg: 24px;
    --r-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Spoqa Han Sans Neo", "Spoqa Han Sans", "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    word-break: keep-all;
}
a { color: inherit; }
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
[hidden] { display: none !important; }
em { font-style: normal; color: var(--req); margin-left: 2px; }
button, input, textarea { font-family: inherit; }

/* ---------- 상단 ---------- */
.gnb { background: var(--navy); color: #fff; }
.gnb__in {
    max-width: 1080px; margin: 0 auto; padding: 0 24px;
    height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
    margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.04em;
    color: #fff; text-decoration: none; line-height: 1;
}
.logo span { color: var(--yellow); }
.logo--sm { font-size: 22px; }
.gnb__tel { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.8); text-decoration: none; }
.gnb__tel:hover { color: var(--yellow); }

.hero { background: var(--navy); color: #fff; padding: 56px 0 120px; }
.hero__in { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--yellow); }
.hero__title { margin: 0; font-size: 52px; line-height: 1.2; font-weight: 700; letter-spacing: -0.04em; }
.hero__title .dot { color: var(--yellow); }
.hero__title .paren { font-size: .82em; letter-spacing: -0.03em; }
.notice-badge {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; margin: 0 0 20px; padding: 0 14px;
    border-radius: 999px;
    background: var(--yellow); color: var(--navy);
    font-size: 14px; font-weight: 700; line-height: 1;
}
.cve {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
    margin: 18px 0 0;
    font-size: 17px; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.85);
}
.cve i { width: 1px; height: 14px; background: rgba(255,255,255,.35); }
.hero__lead {
    margin: 36px 0 0; padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: 20px; font-weight: 700; color: var(--yellow);
}
.hero__lead + .hero__desc { margin-top: 8px; }
.hero__desc { margin: 20px 0 0; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.7); }
.flow {
    display: flex; flex-wrap: wrap; gap: 10px;
    list-style: none; margin: 36px 0 0; padding: 0;
}
.flow li {
    display: inline-flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 18px 0 8px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    font-size: 14px; font-weight: 500; color: rgba(255,255,255,.9);
}
.flow b {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 700;
}

/* ---------- 본문 ---------- */
.wrap { max-width: 860px; margin: -72px auto 0; padding: 0 24px 80px; position: relative; }
#applyForm {
    background: var(--white);
    border-radius: 32px;
    padding: 16px 56px 56px;
    box-shadow: 0 20px 60px rgba(2, 11, 21, .08);
}
.alert {
    margin: 0 0 16px; padding: 16px 20px;
    border-radius: var(--r-md);
    background: #FDECEC; color: #B4232A; font-size: 15px; font-weight: 500;
}

.q { padding: 48px 0; border-bottom: 1px solid #EEF0F3; }
.q--last { border-bottom: 0; padding-bottom: 0; }
.q__title {
    margin: 0 0 24px;
    font-size: 22px; font-weight: 700; line-height: 1.45; letter-spacing: -0.03em;
}
.q__title label { cursor: default; }
.q__title small { font-size: 14px; font-weight: 400; color: var(--muted); }
.q__no { color: var(--ink); }
.q__sub { margin: -12px 0 20px; font-size: 15px; color: var(--muted); }
.q__sub--after { margin: 16px 0 0; }
.q__sub a { color: var(--ink); font-weight: 700; }

/* 입력창 */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field > label {
    display: block; margin: 0 0 8px;
    font-size: 14px; font-weight: 700; color: var(--ink-2);
}
input[type=text], input[type=tel], input[type=email], textarea {
    display: block; width: 100%;
    height: 56px; padding: 0 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    background: var(--white);
    color: var(--ink); font-size: 16px;
    transition: border-color .15s, box-shadow .15s, background .15s;
    -webkit-appearance: none; appearance: none;
}
textarea { height: auto; min-height: 160px; padding: 16px 18px; line-height: 1.6; resize: vertical; }
input::placeholder, textarea::placeholder { color: #A8AFB8; }
input:hover, textarea:hover { border-color: #C3C9D1; }
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(254, 209, 64, .35); }
.field.has-error input[type=text], .field.has-error input[type=tel],
.field.has-error input[type=email], .field.has-error textarea { border-color: var(--req); }
.err { display: none; margin: 8px 0 0; font-size: 14px; font-weight: 500; color: var(--req); }
.field.has-error > .err, .field.has-error .err { display: block; }

/* 알약형 선택 */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; display: inline-flex; cursor: pointer; }
.pill input, .card input, .agree input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pill span {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 22px;
    line-height: 1.2; text-align: center;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-size: 15px; font-weight: 500; color: var(--ink-2);
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
}
.pill span::before {
    content: ""; width: 0; height: 16px; overflow: hidden;
    background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23020B15' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    transition: width .15s;
}
.pill:hover span { border-color: #B9C0C9; }
.pill input:checked + span {
    border: 2px solid var(--navy);
    background: var(--yellow-soft);
    color: var(--navy); font-weight: 700;
    padding: 0 21px;
}
.pill input:checked + span::before { width: 16px; margin-right: 6px; }
.pill input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.field.has-error .pill span { border-color: #F3B9BB; }

/* 라운드 카드 선택 (긴급도) */
.cards { display: grid; gap: 12px; }
.card {
    position: relative; display: flex; align-items: center; gap: 16px;
    padding: 22px 24px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--white);
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.card:hover { border-color: #B9C0C9; }
.card--badge { margin-top: 14px; }
.card__radio {
    flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid #C9CED5; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.card__body { display: flex; flex-direction: column; gap: 2px; }
.card__title { font-size: 18px; font-weight: 700; color: var(--ink); }
.card__desc { font-size: 14px; color: var(--muted); }
.card.is-checked {
    border: 2px solid var(--navy);
    background: var(--yellow-soft);
    padding: 21.5px 23.5px;
}
.card input:checked + .card__radio { border: 7px solid var(--navy); }
.card input:focus-visible + .card__radio { outline: 3px solid var(--yellow); outline-offset: 2px; }
.badge {
    position: absolute; top: -14px; left: 20px;
    display: inline-flex; align-items: center; height: 28px; padding: 0 14px;
    border-radius: 999px; background: var(--yellow); color: var(--navy);
    font-size: 13px; font-weight: 700;
}
.field.has-error .card { border-color: #F3B9BB; }

/* 안내 박스 */
.box {
    display: flex; gap: 12px; align-items: flex-start;
    margin-top: 20px; padding: 18px 20px;
    border-radius: var(--r-md);
    background: var(--bg); color: var(--ink-2); font-size: 15px;
}
.box p { margin: 0; }
.box strong { color: var(--ink); }
.box--warn { background: var(--yellow-soft); border: 1.5px solid #F7E3A1; }
.box__ico { flex: 0 0 auto; margin-top: 1px; color: var(--navy); }

/* 체크 리스트 */
.checks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.checks li {
    position: relative; padding-left: 34px;
    font-size: 16px; color: var(--ink-2); line-height: 1.5;
}
.checks li::before {
    content: ""; position: absolute; left: 0; top: 0;
    width: 24px; height: 24px; border-radius: 50%;
    border: 1.5px solid var(--navy);
    background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23020B15' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.checks strong { color: var(--ink); }

/* 개인정보 */
.privacy {
    padding: 24px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
}
.privacy__title { margin: 0 0 14px; font-size: 17px; font-weight: 700; }
.privacy dl { display: grid; grid-template-columns: 80px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; color: var(--ink-2); }
.privacy dt { font-weight: 700; color: var(--ink); }
.privacy dd { margin: 0; }
.privacy__note { margin: 12px 0 18px; font-size: 13px; color: var(--muted); }
.agree-row {
    display: flex; align-items: center; gap: 12px;
    min-height: 52px; padding: 0 12px 0 18px;
    border-radius: var(--r-md); background: var(--bg);
}
.field label.agree, .agree {
    position: relative; flex: 0 1 auto; display: flex; align-items: center; gap: 12px;
    min-height: 52px; margin: 0;
    color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer;
}
.agree__more {
    flex: 0 0 auto;
    height: 34px; padding: 0 14px;
    border: 1.5px solid var(--navy); border-radius: 999px;
    background: var(--white); color: var(--navy);
    font-size: 13px; font-weight: 700; line-height: 1;
    cursor: pointer; transition: background .15s, color .15s;
}
.agree__more:hover { background: var(--navy); color: var(--yellow); }
.agree__more:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.agree__box {
    flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px;
    border: 2px solid #C9CED5; background: #fff no-repeat center / 16px;
    transition: background-color .15s, border-color .15s;
}
.agree input:checked + .agree__box {
    border-color: var(--navy); background-color: var(--navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23FED140' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.agree input:focus-visible + .agree__box { outline: 3px solid var(--yellow); outline-offset: 2px; }
.field.has-error .agree-row { box-shadow: inset 0 0 0 1.5px var(--req); }

/* 팝업 */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal__dim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(2, 11, 21, .6); }
.modal__panel {
    position: relative; display: flex; flex-direction: column;
    width: 100%; max-width: 640px; max-height: min(80vh, 720px);
    border-radius: var(--r-lg); background: var(--white);
    box-shadow: 0 24px 64px rgba(2, 11, 21, .3);
    overflow: hidden;
}
.modal__panel:focus { outline: none; }
.modal__head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 20px 18px 28px;
    border-bottom: 2px solid var(--yellow);
}
.modal__title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.modal__close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: transparent; color: var(--ink); cursor: pointer;
}
.modal__close:hover { background: var(--bg); }
.modal__body {
    flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 24px 28px; font-size: 15px; line-height: 1.75; color: var(--ink-2);
}
.modal__body p { margin: 0 0 12px; }
.modal__body h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 700; color: var(--ink); }
.modal__body ul { margin: 0; padding-left: 20px; }
.modal__body li { margin-bottom: 4px; }
.modal__date { font-weight: 700; color: var(--ink); }
.modal__foot { padding: 16px 28px 24px; }
.modal__ok {
    width: 100%; height: 52px; border: 0; border-radius: 999px;
    background: var(--navy); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
}
.modal__close:focus-visible, .modal__ok:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
body.modal-open { overflow: hidden; }

/* 신청 버튼 */
.cta {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 100%; height: 68px; margin-top: 32px;
    border: 0; border-radius: 999px;
    background: linear-gradient(90deg, var(--navy) 0%, #1B2A3D 100%);
    color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -0.02em;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(2, 11, 21, .22);
    transition: transform .15s, box-shadow .15s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(2, 11, 21, .28); }
.cta:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.cta__arrow {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--yellow); color: var(--navy);
}
.cta[disabled] { opacity: .7; cursor: wait; transform: none; }

/* 하단 */
.foot { background: var(--navy); color: rgba(255,255,255,.6); font-size: 13px; }
/* 신청서 카드(.wrap)와 같은 폭으로 맞춤 */
.foot__in { max-width: 860px; margin: 0 auto; padding: 32px 24px; display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.foot__in p { margin: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--yellow); }

/* 스팸 방지 숨김 필드 */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 완료 화면 */
.done {
    text-align: center; padding: 56px 56px 48px;
    background: var(--white); border-radius: 32px;
    box-shadow: 0 20px 60px rgba(2, 11, 21, .08);
}
.done__badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--yellow); color: var(--navy); margin-bottom: 24px;
}
.done__title { margin: 0 0 12px; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.done__desc { margin: 0; color: var(--ink-2); }
.done__no {
    display: inline-flex; flex-direction: column; gap: 4px;
    margin: 32px 0 12px; padding: 20px 40px;
    border: 2px solid var(--navy); border-radius: var(--r-lg);
    background: var(--yellow-soft);
}
.done__no span { font-size: 13px; font-weight: 700; color: var(--muted); }
.done__no strong { font-size: 24px; letter-spacing: .02em; color: var(--navy); }
.done__hint { margin: 0 0 28px; font-size: 14px; color: var(--muted); }
.done .box { justify-content: center; text-align: center; }
.done .cta { max-width: 360px; margin: 28px auto 0; text-decoration: none; }

/* ---------- 모바일 ---------- */
@media (max-width: 767px) {
    body { font-size: 15px; }
    .gnb__in { height: 60px; padding: 0 16px; }
    .logo { font-size: 24px; }
    .gnb__tel { font-size: 13px; }
    .hero { padding: 36px 0 88px; }
    .hero__in { padding: 0 16px; }
    .hero__title { font-size: 28px; font-size: clamp(22px, 7vw, 28px); }
    .notice-badge { height: 30px; font-size: 13px; margin-bottom: 16px; }
    .cve { font-size: 14px; gap: 6px 12px; margin-top: 14px; }
    .hero__lead { font-size: 17px; margin-top: 28px; padding-top: 22px; }
    .hero__desc { font-size: 15px; }
    .pc { display: none; }
    .flow { margin-top: 28px; gap: 8px; }
    .flow li { height: 40px; font-size: 13px; padding-right: 14px; }
    .flow b { width: 26px; height: 26px; font-size: 11px; }
    .wrap { margin-top: -56px; padding: 0 12px 48px; }
    #applyForm { border-radius: 24px; padding: 4px 20px 32px; }
    .q { padding: 36px 0; }
    .q__title { font-size: 19px; margin-bottom: 20px; }
    .grid { grid-template-columns: 1fr; gap: 16px; }
    .pills { gap: 8px; }
    .pill span { min-height: 48px; padding: 0 18px; font-size: 15px; }
    .pill input:checked + span { padding: 0 17px; }
    .card { padding: 18px; gap: 14px; }
    .card.is-checked { padding: 17.5px; }
    .card__title { font-size: 17px; }
    .privacy { padding: 20px 18px; }
    .privacy dl { grid-template-columns: 1fr; gap: 0; }
    .privacy dd { margin-bottom: 8px; }
    .cta { height: 62px; font-size: 18px; }
    .cta__arrow { width: 44px; height: 44px; right: 9px; }
    .done { padding: 40px 20px 32px; }
    .done__title { font-size: 25px; }
    .foot__in { padding: 24px 16px; }
    .agree-row { flex-wrap: wrap; padding: 12px 14px 14px; gap: 6px; }
    .field label.agree, .agree { flex: 1 1 100%; min-height: 32px; font-size: 14px; gap: 10px; }
    .agree__more { height: 32px; margin-left: 34px; padding: 0 12px; font-size: 12px; }
    .modal { padding: 16px; }
    .modal__head { padding: 16px 12px 14px 20px; }
    .modal__title { font-size: 18px; }
    .modal__body { padding: 20px; font-size: 14px; }
    .modal__foot { padding: 12px 20px 20px; }
}
