/* 민주누리터 예약 - 1920px 기준 레이아웃 (좁은 화면은 fit.js에서 축소) */

:root {
    --color-primary: #259de8;
    --color-primary-text: #3b82eb;
    --color-heading: #0646a6;
    --color-body: #5a5a5a;
    --color-text: #222222;
    --color-line: #a9c1d7;
    --color-line-soft: #d5d5d5;
    --color-muted: #80a4c6;
    --color-outline-text: #6696c2;
    --color-placeholder: #aaaaaa;
    --color-page: #e4f0fb;
    --color-disabled-bg: #d8e5f5;
    --color-disabled-text: #9bb0c8;
    --color-check: #256ef4;
    --font-base: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

/* 축소 처리하므로 가로 스크롤 없음. 스크롤바 생길 때 폭 변하지 않게 자리 확보 */
html {
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

body {
    min-width: 1920px;
    background: #ffffff;
    color: var(--color-body);
    font-family: var(--font-base);
    letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased;
}

body.page { background: var(--color-page); }

p, h1, h2, h3, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; }
button, input { font: inherit; letter-spacing: inherit; color: inherit; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

[hidden] { display: none !important; }

.stage {
    position: relative;
    width: 1920px;
    height: 1080px;
    margin: 0 auto;
    overflow: hidden;
}

/* 내용만큼 세로로 늘어나는 화면 */
.stage-flow {
    height: auto;
    min-height: 1080px;
    padding: 140px 0 180px;
    overflow: visible;
}

.stage-flow.result,
.stage-flow.lookup { padding-top: 190px; }

/* 제목 */

.page-tit { text-align: center; }

.page-tit h1 {
    color: var(--color-heading);
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
}

.page-tit p {
    margin-top: 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 20px;
}

/* 버튼 */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn:focus-visible,
.day:focus-visible,
.calendar-nav:focus-visible,
.link-resend:focus-visible,
.link-detail:focus-visible {
    outline: 3px solid var(--color-heading);
    outline-offset: 3px;
}

.btn:disabled { cursor: default; }

.btn-pill {
    width: 210px;
    height: 50px;
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0;
}

.btn-pill:hover { background: #1b8fd8; }

.btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
}

/* 이전 / 다음 */
.btn-prev,
.btn-next {
    width: 180px;
    height: 46px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    line-height: 19px;
    letter-spacing: 0;
}

.btn-prev {
    border: 1px solid var(--color-line);
    background: #ffffff;
    color: var(--color-outline-text);
}

.btn-prev:hover { background: #f3f8fc; }

.btn-next {
    background: var(--color-heading);
    color: #ffffff;
}

.btn-next:hover { background: #053a8a; }

.btn-next:disabled {
    background: var(--color-disabled-bg);
    color: rgba(155, 176, 200, 0.4);
}

.btn-prev .chevron,
.btn-next .chevron {
    position: absolute;
    top: 13px;
}

.btn-prev .chevron { left: 21px; }
.btn-next .chevron { right: 0; }
.btn-next span { margin-left: 2px; }

.btn-wide { width: 214px; padding-right: 15px; }

.btn-sm {
    width: 134px;
    height: 34px;
    border: 1px solid var(--color-line);
    border-radius: 100px;
    background: #ffffff;
    color: var(--color-outline-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    letter-spacing: 0;
}

.btn-sm:hover { background: #f3f8fc; }

.btn-side {
    flex: 0 0 120px;
    height: 60px;
    border-radius: 8px;
    background: var(--color-heading);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    letter-spacing: 0;
}

.btn-side:hover { background: #053a8a; }

.btn-side:disabled {
    background: var(--color-disabled-bg);
    color: rgba(155, 176, 200, 0.4);
}

/* 카드 */

.card {
    width: 980px;
    margin: 0 auto;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: #ffffff;
}

/* 메인 */

.home {
    background: url("/images/entry-bg-7f6bdbf927d3b554f92911d8e7891e0b.jpg") center / 1920px 1080px no-repeat;
}

.home-welcome {
    position: absolute;
    left: 582px;
    top: 342px;
    width: 758px;
    color: var(--color-primary-text);
    font-size: 30px;
    font-weight: 400;
    line-height: 36px;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.home-title {
    position: absolute;
    left: 588px;
    top: 403px;
}

.home-lead {
    position: absolute;
    left: 582px;
    top: 500px;
    width: 758px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.home-btn-reserve,
.home-btn-lookup {
    position: absolute;
    top: 634px;
}

.home-btn-reserve { left: 732px; }
.home-btn-lookup { left: 978px; }

/* 날짜·회차 선택 */

.calendar {
    margin-top: 22px;
    padding: 36px 151px 31px;
}

.calendar-month {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.calendar-month h2 {
    min-width: 76px;
    color: var(--color-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

.calendar-nav {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    color: #838383;
}

.calendar-nav .chevron { width: 24px; height: 24px; stroke-width: 2; }
.calendar-nav.is-disabled { color: #d5d5d5; }

.calendar-grid {
    display: block;
    width: 676px;
    margin-top: 16px;
    border-collapse: collapse;
}

.calendar-grid thead,
.calendar-grid tbody { display: block; }

.calendar-grid tr {
    display: grid;
    grid-template-columns: repeat(7, 90px);
    column-gap: 8px;
}

.calendar-grid thead tr {
    height: 50px;
    border-top: 2px solid #6fade4;
    border-bottom: 1px solid #c5dcf1;
    background: #f3f8fc;
}

.calendar-grid th {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
}

.calendar-grid tbody { margin-top: 8px; }
.calendar-grid td { padding: 0; }

.day {
    display: flex;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    text-decoration: none;
}

a.day:hover { background: #eef5fc; }

/* 오늘 뱃지: 숫자 줄 맞춤에 영향 없게 칸 위쪽에 띄움 */
.day { position: relative; }
.today-badge {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 6px;
    border-radius: 6px;
    background: #e4f0fb;
    color: var(--color-heading);
    font-size: 10px;
    font-weight: 700;
    line-height: 12px;
    white-space: nowrap;
}
.day.is-selected .today-badge { background: #ffffff; }
.day.is-disabled { color: #d5d5d5; }

.day.is-selected,
a.day.is-selected:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.program-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.program-list .btn-group { margin-top: 28px; }

.program { padding: 41px 115px; }

.program-empty {
    padding: 41px 115px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
}

.program-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-head h2 {
    color: var(--color-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
}

.divider {
    width: 1px;
    height: 14px;
    background: var(--color-muted);
}

.program-meta,
.slot-count {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
}

.program-desc {
    margin-top: 6px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
}

.slot-row {
    display: flex;
    gap: 6px;
    margin-top: 16px;
}

.slot-empty {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 48px;
}

.slot-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.slot-count {
    font-size: 12px;
    line-height: 14px;
}

.slot {
    position: relative;
    display: flex;
    width: 120px;
    height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-line-soft);
    border-radius: 5px;
    background: #ffffff;
    cursor: pointer;
}

.slot:hover { border-color: var(--color-primary); }

.slot input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slot:focus-within {
    outline: 3px solid var(--color-heading);
    outline-offset: 2px;
}

.slot-round {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
}

.slot-time {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
}

.slot.is-selected {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.slot.is-selected .slot-round,
.slot.is-selected .slot-time { color: #ffffff; }

.slot.is-disabled {
    border-color: #f6f6f6;
    background: #f6f6f6;
    cursor: default;
}

.slot.is-disabled .slot-round,
.slot.is-disabled .slot-time { color: #d5d5d5; }

/* 예약자 정보 입력 */

.summary {
    width: 780px;
    margin: 24px auto 0;
    padding: 24px 115px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
}

.summary li {
    position: relative;
    padding-left: 21px;
    color: #7390aa;
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
}

.summary li + li { margin-top: 4px; }

.summary li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 7px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

.info-form {
    width: 568px;
    margin: 24px auto 0;
}

.field-row {
    display: flex;
    gap: 16px;
    width: 568px;
}

.field-row + .field-row { margin-top: 8px; }

.field {
    display: flex;
    width: 432px;
    height: 62px;
    flex: 0 0 432px;
    align-items: center;
    gap: 40px;
    padding: 0 27px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: #ffffff;
}

.field:focus-within { border-color: var(--color-primary); }

.field-label {
    flex: 0 0 91px;
    color: var(--color-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 500;
    line-height: 20px;
}

.field input::placeholder { color: var(--color-placeholder); opacity: 1; }
.field input:disabled { color: var(--color-placeholder); }
.field.is-locked { background: var(--color-disabled-bg); }

.code-hint {
    display: flex;
    width: 432px;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 4px 0 8px;
}

.code-hint p {
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
}

.hint-sep { margin: 0 6px; }

.link-resend,
.link-detail {
    border: 0;
    padding: 0;
    background: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    cursor: pointer;
}

.link-resend {
    padding: 4px 0;
    border-bottom: 1px solid var(--color-heading);
    color: var(--color-heading);
}

.link-detail {
    margin-left: 10px;
    color: var(--color-body);
}

.link-detail:hover { text-decoration: underline; }

.consent {
    display: flex;
    align-items: center;
    margin-top: 56px;
    padding-left: 8px;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    cursor: pointer;
}

.checkbox input {
    position: absolute;
    opacity: 0;
}

.checkbox-box {
    position: relative;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    background: #ffffff;
}

.checkbox input:checked + .checkbox-box {
    border-color: var(--color-check);
    background: var(--color-check);
}

.checkbox input:checked + .checkbox-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg);
}

.checkbox input:focus-visible + .checkbox-box {
    outline: 3px solid var(--color-heading);
    outline-offset: 2px;
}

.info-form .btn-group { margin-top: 40px; }

/* 예약 내역 (완료, 조회 상세 공용) */

.info-box {
    width: 780px;
    margin: 45px auto 0;
    padding: 24px 115px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: #ffffff;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-list > div {
    display: flex;
    gap: 24px;
}

.info-list dt {
    position: relative;
    flex: 0 0 118px;
    padding-left: 25px;
    color: var(--color-heading);
    font-size: 17px;
    font-weight: 500;
    line-height: 20px;
}

.info-list dt::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 9px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

.info-list dt::after {
    content: "";
    position: absolute;
    right: 0;
    top: 3px;
    width: 1px;
    height: 14px;
    background: var(--color-muted);
}

.info-list dd {
    color: var(--color-text);
    font-size: 17px;
    font-weight: 500;
    line-height: 20px;
}

.info-line { display: block; }

.result .btn-group { margin-top: 32px; }

.btn-plain { padding: 0; }

/* 예약 조회 */

.lookup-form { margin: 60px 0 0 739px; width: 432px; }

.field-group { display: block; }
.field-group + .field-group { margin-top: 16px; }

.field-group-label {
    display: block;
    padding: 8px 20px;
    color: var(--color-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 20px;
}

.lookup-form .field { gap: 0; }

.lookup-form .btn-group {
    width: 376px;
    margin: 80px 0 0 33px;
}

/* 팝업 */

.dim {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
}

.popup {
    position: absolute;
    left: 50%;
    top: 325px;
    display: flex;
    width: 536px;
    min-height: 228px;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px 27px 20px;
    transform: translateX(-50%);
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(6, 70, 166, 0.2);
    text-align: center;
}


.popup-title {
    color: var(--color-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 20px;
}

.popup-message {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
}

.popup-details {
    margin-top: 12px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* 개인정보 수집·이용 동의 (Figma 206:623: 536x242, 위 318, 간격 16) */
.popup-consent {
    top: 318px;
    min-height: 0;
    gap: 16px;
}

.popup-consent .popup-title {
    font-size: 14px;
    line-height: 17px;
    letter-spacing: -0.28px;
}

.consent-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    color: #5a5a5a;
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    letter-spacing: -0.28px;
    text-align: left;
}

.consent-list {
    margin: 0;
    padding-left: 21px;
    list-style: disc;
}

.consent-list li::marker { font-size: 10px; }

/* 오류 */

.error-box { margin-top: 45px; text-align: center; }
.error-box p { font-size: 17px; font-weight: 500; }

/* 개발용 인증번호 표시 */

