@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
    --lg-pink: #e6007e;
    --lg-pink-dark: #b80064;
    --text-primary: #111;
    --text-secondary: #666;
    --text-muted: #888;
    --border-color: #ddd;
    --bg-form: #fafafa;
}

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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body.reservation-page {
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background: #fff;
    letter-spacing: -0.3px;
    -webkit-text-size-adjust: none;
}

.reservation-wrap {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 16px 24px;
}

/* 헤더 */
.reservation-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 0 12px;
    border-bottom: 1px solid #eee;
}

.reservation-header .header-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--lg-pink);
    line-height: 1.4;
    flex: 1;
}

.reservation-header .header-badge {
    flex-shrink: 0;
    background: var(--lg-pink);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 20px;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

/* 메인 타이틀 */
.page-title {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 0 8px;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* 폼 박스 */
.form-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-form);
    overflow: hidden;
    margin-bottom: 12px;
}

.form-row {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

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

.form-row label {
    flex: 0 0 100px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-row .field-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input.reservation-datetime {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    padding: 0;
    outline: none;
}

.form-row input::placeholder {
    color: #aaa;
    font-size: 15px;
}

.form-row input.reservation-datetime {
    min-height: 24px;
    cursor: pointer;
    padding-right: 28px;
}

.form-row .ico-calendar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0.5;
}

.form-row .ico-calendar svg {
    width: 100%;
    height: 100%;
}

.form-notice {
    font-size: 12px;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 0 2px;
}

/* 신청 안내 */
.service-info {
    margin-bottom: 20px;
}

.service-info-table {
    display: grid;
    grid-template-columns: max-content 1em max-content;
    column-gap: 10px;
    row-gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
}

.service-info-label {
    color: var(--lg-pink);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

.service-info-divider {
    color: var(--lg-pink);
    font-weight: 500;
    text-align: center;
}

.service-info-value {
    color: var(--text-secondary);
    text-align: left;
}

.service-info-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--lg-pink);
    line-height: 1.6;
    word-break: keep-all;
    text-align: center;
}

/* 개인정보 동의 */
.privacy-section {
    margin-bottom: 24px;
}

.privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.privacy-row input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--lg-pink);
}

.privacy-row .privacy-label {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.5;
}

.privacy-toggle {
    flex-shrink: 0;
    font-size: 15px;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
}

.privacy-toggle .arrow {
    display: inline-block;
    transition: transform 0.2s;
}

.privacy-toggle.open .arrow {
    transform: rotate(180deg);
}

.privacy-detail {
    display: none;
    margin-top: 12px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.privacy-detail.show {
    display: block;
}

/* 버튼 */
.btn-primary {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--lg-pink);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    letter-spacing: -0.5px;
}

.btn-primary:active {
    background: var(--lg-pink-dark);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 완료 화면 */
.screen-complete {
    display: none;
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
}

.screen-complete.active {
    display: flex;
}

.screen-form.hidden {
    display: none;
}

/* 접수 기간 종료 */
.screen-closed {
    display: none;
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
}

.screen-closed.active {
    display: flex;
}

.complete-service {
    font-size: 15px;
    font-weight: 500;
    color: var(--lg-pink);
    margin-bottom: 16px;
}

.complete-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.complete-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: auto;
    padding: 0 8px;
}

.complete-actions {
    margin-top: 40px;
    padding-bottom: 8px;
}

/* LG 분홍 알림 팝업 */
body.alert-open {
    overflow: hidden;
}

.lg-alert {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10002;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lg-alert.show {
    display: flex;
}

.lg-alert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.lg-alert-box {
    position: relative;
    width: 100%;
    max-width: 320px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    animation: lgAlertIn 0.25s ease;
}

@keyframes lgAlertIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lg-alert-header {
    background: var(--lg-pink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    padding: 14px 16px;
    letter-spacing: -0.3px;
}

.lg-alert-message {
    margin: 0;
    padding: 24px 20px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.65;
    text-align: center;
    word-break: keep-all;
}

.lg-alert-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 20px;
    padding: 14px;
    background: var(--lg-pink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.3px;
}

.lg-alert-btn:active {
    background: var(--lg-pink-dark);
}

/* 점검 희망일시 커스텀 피커 */
body.picker-open {
    overflow: hidden;
}

.dt-picker {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dt-picker.show {
    display: flex;
}

.dt-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.dt-picker-box {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    animation: lgAlertIn 0.25s ease;
}

.dt-picker-header {
    background: var(--lg-pink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    padding: 14px 16px;
    letter-spacing: -0.3px;
}

.dt-picker-body {
    padding: 16px 14px 12px;
}

.dt-picker-date-block {
    margin-bottom: 14px;
}

.dt-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dt-cal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.dt-cal-nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    color: var(--text-primary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}

.dt-cal-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.dt-cal-weekdays,
.dt-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.dt-cal-weekdays {
    margin-bottom: 6px;
}

.dt-cal-weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 0;
}

.dt-cal-weekdays .sun {
    color: #e6007e;
}

.dt-cal-day {
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-primary);
    cursor: pointer;
}

.dt-cal-day.other-month {
    color: #ccc;
}

.dt-cal-day.sunday,
.dt-cal-day.holiday {
    color: #e6007e;
}

.dt-cal-day:disabled,
.dt-cal-day.is-disabled {
    color: #d0d0d0;
    background: #f7f7f7;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.85;
}

.dt-cal-day.selected {
    background: var(--lg-pink);
    color: #fff;
    font-weight: 700;
}

.dt-cal-day.selected:disabled,
.dt-cal-day.selected.is-disabled {
    background: #f0f0f0;
    color: #bbb;
}

.dt-cal-day.today:not(.selected):not(:disabled):not(.is-disabled) {
    box-shadow: inset 0 0 0 1px var(--lg-pink);
}

.dt-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.dt-picker-row label {
    flex: 0 0 42px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.dt-picker-row select {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: #fff;
    outline: none;
}

.dt-picker-row select:focus {
    border-color: var(--lg-pink);
}

.dt-picker-time-fields {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dt-picker-time-fields select {
    flex: 1;
}

.dt-picker-colon {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
}

.dt-picker-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.55;
    text-align: center;
    word-break: keep-all;
}

.dt-picker-actions {
    display: flex;
    gap: 10px;
    padding: 8px 16px 18px;
}

.dt-picker-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: -0.3px;
}

.dt-picker-btn.cancel {
    background: #f0f0f0;
    color: var(--text-secondary);
}

.dt-picker-btn.confirm {
    background: var(--lg-pink);
    color: #fff;
}

.dt-picker-btn.confirm:active {
    background: var(--lg-pink-dark);
}
