/* 알파콜라보 앱 apply-visit.html 의 화면 CSS 를 그대로 가져온 것(원본 데스크탑 앱, 2026-09-21). 고치지 말 것 — 앱이 바뀌면 _review/extract-app-css.py 를 다시 돌린다. */

        /* Apply Page Styles */
        .apply-container {
            padding: 16px;
            background: var(--bg-default);
            min-height: 100vh;
        }

        /* Progress Bar */
        .progress-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            margin-bottom: 24px;
            padding: 0 8px;
        }
        .progress-step {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--bg-sunken);
            color: var(--fg-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px; line-height: 16px;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        .progress-step.active {
            background: var(--bg-inverse);   /* 빨강 → 검정, 시스템 스테퍼 채움형 통일 (26-08-30) */
            color: var(--fg-inverse);
        }
        .progress-step.completed {
            background: var(--bg-inverse);   /* 초록 → 검정, 완료·성공 마크 (26-08-30) */
            color: var(--fg-inverse);
        }
        .progress-line {
            flex: 1;
            height: 2px;
            background: var(--bg-sunken);
            max-width: 24px;
        }
        .progress-line.active {
            background: var(--bg-inverse);   /* 초록 → 검정, 완료·성공 마크 (26-08-30) */
        }

        /* Step Container */
        .step-container {
            display: none;
        }
        .step-container.active {
            display: block;
        }

        /* Section Title */
        .section-title {
            font-size: 18px; line-height: 24px;
            font-weight: 700;
            color: var(--fg-primary);
            margin-bottom: 16px;
        }
        .section-subtitle {
            font-size: 14px; line-height: 20px;
            color: var(--fg-secondary);
            margin-bottom: 20px;
        }

        /* Terms Section */
        .terms-list {
            background: var(--bg-muted);
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 16px;
        }
        .term-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-subtle);
        }
        .term-item:last-child {
            border-bottom: none;
        }
        .term-checkbox {
            width: 20px;
            height: 20px;
            border: 2px solid var(--border-control);
            border-radius: 2px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }
        .term-checkbox.checked {
            background: var(--bg-brand);
            border-color: var(--fg-brand);
        }
        .term-checkbox .icon {
            color: var(--fg-inverse);
            font-size: 16px;
            display: none;
        }
        .term-checkbox.checked .icon {
            display: block;
        }
        .term-text {
            font-size: 14px;
            color: var(--fg-primary);
            line-height: 20px;
        }
        .agree-all {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px;
            background: var(--bg-muted);   /* 빨강 면 → 회색 면, 체크만 빨강 (26-08-30 승격) */
            border: 1px solid var(--border-subtle);
            border-radius: 8px;
            margin-bottom: 24px;
            cursor: pointer;
        }
        .agree-all-text {
            font: var(--t-label);
            color: var(--fg-primary);
        }

        /* SNS Selection */
        .sns-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .sns-option {
            display: flex;
            align-items: center;
            gap: var(--space-content);
            padding: 16px;
            border: 1px solid var(--border-subtle);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .sns-option:hover {
            border-color: var(--border-control);
        }
        /* 선택 = 검정 테두리 + 회색 면 — 빨강은 CTA·배지·오류만 (26-09-12 승격) */
        .sns-option.selected {
            border-color: var(--fg-primary);
            background: var(--bg-muted);
            box-shadow: inset 0 0 0 1px var(--fg-primary);
        }
        .sns-option.is-off {
            cursor: default;
        }
        .sns-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px; line-height: 28px;
        }
        .sns-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: var(--fg-inverse); }
        .sns-icon.tiktok { background: #000000; color: var(--fg-inverse); }
        .sns-icon.twitter { background: #000000; color: var(--fg-inverse); }
        .sns-name {
            font-size: 16px;
            line-height: 24px;
            font-weight: 500;
            color: var(--fg-primary);
        }
        /* 체크·Connect 는 오른쪽 끝 같은 자리 — 아이콘 열이 모든 줄에서 맞는다 (26-09-12) */
        .sns-option .ctl {
            flex: none;
            min-height: 40px;
        }
        .sns-option .btn-sm {
            flex: none;
        }
        .sns-option-body {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .sns-option-sub {
            display: flex;
            align-items: center;
            gap: 4px;
            font: var(--t-caption);
            color: var(--fg-secondary);
            white-space: nowrap;
            overflow: hidden;
        }
        .sns-option-state {
            color: var(--fg-success);
            font-weight: 500;
        }
        .sns-pick-count {
            margin-top: var(--space-content);
            font: var(--t-label);
            color: var(--fg-primary);
            font-variant-numeric: tabular-nums;
        }

        /* Language Selection */
        .language-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .language-option {
            padding: 16px;
            border: 1px solid var(--border-subtle);
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px; line-height: 20px;
            font-weight: 500;
            color: var(--fg-primary);
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .language-option:hover {
            border-color: var(--border-control);
            background: var(--bg-muted);
        }
        /* 선택 = 검정 테두리 + 회색 면 + 검정 글자 — 빨강은 CTA·배지·오류만, .sns-option.selected 와 같은 색 (26-09-12) */
        .language-option.selected {
            border-color: var(--fg-primary);
            background: var(--bg-muted);
            color: var(--fg-primary);
            box-shadow: inset 0 0 0 1px var(--fg-primary);
        }
        .language-option .radio-circle {
            width: 20px;
            height: 20px;
            border: 2px solid var(--border-control);
            border-radius: 50%;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        .language-option.selected .radio-circle {
            border-color: var(--fg-primary);
        }
        .language-option .radio-circle::after {
            content: '';
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: transparent;
            transition: all 0.2s ease;
        }
        .language-option.selected .radio-circle::after {
            background: var(--bg-inverse);
        }

        /* Form Input - uses shared forms.css */
        .form-group {
            margin-bottom: 20px;
        }
        .form-hint {
            margin-top: 8px;
        }

        /* Treatment Text Box (Plain Text Display) */
        .treatment-text-box {
            background: var(--bg-muted);
            border-radius: 8px;
            overflow: hidden;
        }
        .treatment-text-label {
            background: var(--bg-inverse);
            color: var(--fg-inverse);
            padding: 12px 16px;
            font-size: 14px; line-height: 20px;
            font-weight: 500;
        }
        .treatment-text-content {
            padding: 16px;
            font-size: 14px;
            color: var(--fg-primary);
            line-height: 20px;
            white-space: pre-line;
        }

        /* Schedule Slots */
        .schedule-slots {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .schedule-item {
            background: var(--bg-muted);
            border-radius: 8px;
            padding: 16px;
        }
        .schedule-label {
            font-size: 14px; line-height: 20px;
            font-weight: 500;
            color: var(--fg-primary);
            margin-bottom: 4px;
        }
        .schedule-sublabel {
            font-size: 12px; line-height: 16px;
            color: var(--fg-secondary);
            margin-bottom: 12px;
        }
        .schedule-item .form-input {
            height: 44px;
            margin-bottom: 12px;
        }
        .time-options {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .time-option {
            padding: 8px 14px;
            background: var(--bg-default);
            border: 1px solid var(--border-subtle);
            border-radius: var(--r-4);   /* 6 폐기 → 칩 4 (26-09-02) */
            font-size: 14px; line-height: 20px;
            color: var(--fg-primary);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .time-option:hover {
            border-color: var(--border-control);
        }
        /* 선택 = 검정 면 — 빨강은 CTA·배지·오류만. schedule-change.css 같은 칩과 같은 값 (26-09-12) */
        .time-option.selected {
            background: var(--bg-inverse);
            border-color: var(--bg-inverse);
            color: var(--fg-inverse);
        }
        /* 1·6단계 오류 문구가 칸 바로 아래 붙도록 칸 아래 여백을 문구 쪽으로 넘긴다 (26-09-12 신청 검증) */
        .agree-all.is-invalid {
            margin-bottom: 0;
            border-color: var(--border-brand);
        }
        .agree-all + .form-hint.error {
            margin: var(--space-control) 0 var(--space-section);
        }
        .schedule-item .form-input.is-invalid {
            margin-bottom: 0;
        }
        .schedule-item .form-input + .form-hint.error {
            margin: var(--space-control) 0 var(--space-content);
        }

        /* Success Screen */
        .success-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            text-align: center;
        }
        .success-icon {
            width: 80px;
            height: 80px;
            background: var(--bg-inverse);   /* 초록 → 검정, 완료·성공 마크 (26-08-30) */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 24px;
        }
        .success-icon .icon {
            width: 40px;
            height: 40px;
            color: var(--fg-inverse);
        }
        .success-title {
            font-size: 24px; line-height: 32px;
            font-weight: 700;
            color: var(--fg-primary);
            margin-bottom: 12px;
        }
        .success-message {
            font-size: 14px;
            color: var(--fg-secondary);
            line-height: 20px;
            margin-bottom: 32px;
        }

        /* Bottom Buttons */
        .bottom-buttons {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 16px;
            background: var(--bg-default);
            border-top: 1px solid var(--border-subtle);
            display: flex;
            gap: 12px;
        }
        /* 하단 고정 CTA = L56 · 700 16/24, 같은 바의 Previous 도 56. 비활성은 buttons.css 단일 스펙 (26-09-12 스타일 통일) */
        .btn-prev {
            flex: 1;
            height: 56px;
            background: var(--bg-default);
            border: 1px solid var(--border-subtle);
            border-radius: 8px;
            font-size: 16px;
            line-height: 24px;
            font-weight: 700;
            color: var(--fg-primary);
            cursor: pointer;
        }
        .btn-next {
            flex: 2;
            height: 56px;
            background: var(--bg-brand);
            border: none;
            border-radius: 8px;
            font-size: 16px;
            line-height: 24px;
            font-weight: 700;
            color: var(--fg-inverse);
            cursor: pointer;
        }
        .btn-next:disabled {
            background: var(--bg-sunken);
            color: var(--fg-secondary);
            cursor: not-allowed;
        }

    
