/* bitelabs.kr - apply.css : service application wizard (loaded only by apply.php). Ported from legacy landing #apply section. */
:root { --red: #EF4444; }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.wizard-container {
    max-width: 720px; margin: 0 auto;
    background: white; border: 1px solid var(--g200);
    border-radius: var(--r-xl); padding: 48px;
    box-shadow: 0 4px 40px rgba(0,0,0,0.04);
}
.wizard-progress {
    display: flex; justify-content: space-between; margin-bottom: 48px; position: relative;
}
.wizard-progress::before {
    content: ''; position: absolute; top: 20px; left: 40px; right: 40px;
    height: 2px; background: var(--g200);
}
.wizard-step-indicator { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 1; }
.step-circle {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter'; font-weight: 700; font-size: 14px;
    background: var(--g100); color: var(--g400);
    border: 1px solid var(--g200); transition: all 0.4s;
}
.step-circle.active { background: var(--orange); color: white; border-color: var(--orange); box-shadow: 0 0 20px rgba(255,143,0,0.2); }
.step-circle.done { background: rgba(33,167,69,0.1); color: var(--green); border-color: rgba(33,167,69,0.3); }
.step-label { font-size: 12px; color: var(--g400); font-weight: 500; }
.step-label.active { color: var(--orange); }
.step-label.done { color: var(--green); }

.wizard-panel { display: none; animation: fadeUp 0.4s ease; }
.wizard-panel.active { display: block; }
.wizard-panel h3 { font-size: 24px; font-weight: 800; color: var(--navy-deep); margin-bottom: 8px; }
.wizard-panel .panel-desc { font-size: 14px; color: var(--g500); margin-bottom: 32px; }

.service-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-select-card {
    padding: 24px; border-radius: 16px; cursor: pointer;
    background: var(--g50); border: 1px solid var(--g200);
    transition: all 0.3s; position: relative;
}
.service-select-card:hover { border-color: var(--orange); }
.service-select-card.selected { border-color: var(--orange); background: rgba(255,143,0,0.04); }
.service-select-card .card-check {
    position: absolute; top: 12px; right: 12px;
    width: 24px; height: 24px; border-radius: 8px;
    background: var(--g100); border: 1px solid var(--g200);
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.service-select-card.selected .card-check { background: var(--orange); border-color: var(--orange); }
.service-select-card .card-icon { margin-bottom: 12px; }
.service-select-card .card-icon svg { width: 28px; height: 28px; }
.service-select-card h4 { font-size: 16px; font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; }
.service-select-card p { font-size: 13px; color: var(--g500); line-height: 1.5; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--g600); margin-bottom: 8px; }
.form-label .req { color: var(--orange); margin-left: 2px; }
.form-input {
    width: 100%; padding: 14px 18px; border-radius: 12px;
    background: var(--g50); border: 1px solid var(--g200);
    color: var(--navy-deep); font-size: 15px; font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.3s; outline: none;
}
.form-input:focus { border-color: var(--orange); }
.form-input::placeholder { color: var(--g400); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
select.form-input { appearance: none; cursor: pointer; }

.consent-list { display: flex; flex-direction: column; gap: 12px; }
.consent-item {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px;
    border-radius: 14px; background: var(--g50);
    border: 1px solid var(--g200); cursor: pointer; transition: all 0.3s;
}
.consent-item:hover { border-color: var(--g300); }
.consent-item.checked { border-color: rgba(33,167,69,0.4); background: rgba(33,167,69,0.03); }
.consent-toggle {
    width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
    background: var(--g100); border: 1px solid var(--g300);
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.consent-item.checked .consent-toggle { background: var(--green); border-color: var(--green); }
.consent-toggle svg { width: 12px; height: 12px; opacity: 0; transition: opacity 0.3s; }
.consent-item.checked .consent-toggle svg { opacity: 1; }
.consent-info { flex: 1; }
.consent-title { font-size: 14px; font-weight: 600; color: var(--navy-deep); }
.consent-desc { font-size: 12px; color: var(--g500); margin-top: 2px; }
.consent-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.consent-badge.required { background: rgba(255,143,0,0.1); color: var(--orange); }
.consent-badge.optional { background: var(--g100); color: var(--g500); }
.cms-notice {
    background: rgba(255,143,0,0.04); border: 1px solid rgba(255,143,0,0.15);
    border-radius: 12px; padding: 16px 20px; margin-top: 24px;
    display: flex; align-items: flex-start; gap: 12px;
}
.cms-notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--orange); }
.cms-notice p { font-size: 13px; color: var(--g600); line-height: 1.6; }

.wizard-nav {
    display: flex; justify-content: space-between; margin-top: 36px;
    padding-top: 24px; border-top: 1px solid var(--g200);
}
.wizard-btn {
    padding: 14px 32px; border-radius: 12px; font-size: 15px;
    font-weight: 700; cursor: pointer; transition: all 0.3s;
    font-family: 'Noto Sans KR', sans-serif; border: none;
}
.wizard-btn.back { background: var(--g100); color: var(--g600); }
.wizard-btn.back:hover { background: var(--g200); }
.wizard-btn.next { background: var(--orange); color: white; box-shadow: 0 4px 20px rgba(255,143,0,0.2); }
.wizard-btn.next:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,143,0,0.3); }

.wizard-complete { text-align: center; padding: 40px 0; }
.complete-icon {
    width: 80px; height: 80px; border-radius: 24px;
    background: rgba(33,167,69,0.1); display: flex; align-items: center;
    justify-content: center; margin: 0 auto 24px;
}
.complete-icon svg { width: 36px; height: 36px; color: var(--green); }
.wizard-complete h3 { font-size: 28px; font-weight: 800; color: var(--navy-deep); margin-bottom: 12px; }
.wizard-complete p { font-size: 15px; color: var(--g500); line-height: 1.7; }

/* ═══════ TERMS MODAL ═══════ */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    z-index: 2000; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal-box {
    background: white; border-radius: var(--r-xl); max-width: 640px; width: 100%;
    max-height: 80vh; display: flex; flex-direction: column;
    box-shadow: 0 40px 120px rgba(0,0,0,0.3);
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 32px; border-bottom: 1px solid var(--g200);
}
.modal-header h3 { font-size: 20px; font-weight: 800; color: var(--navy-deep); }
.modal-close {
    width: 36px; height: 36px; border-radius: 10px; border: none;
    background: var(--g100); cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: background 0.2s;
}
.modal-close:hover { background: var(--g200); }
.modal-close svg { width: 18px; height: 18px; color: var(--g500); }
.modal-body {
    padding: 32px; overflow-y: auto; flex: 1;
}
.modal-body h4 {
    font-size: 15px; font-weight: 700; color: var(--navy-deep);
    margin: 24px 0 10px; padding-top: 16px; border-top: 1px solid var(--g100);
}
.modal-body h4:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.modal-body p, .modal-body li {
    font-size: 13.5px; color: var(--g600); line-height: 1.8;
}
.modal-body ul, .modal-body ol {
    padding-left: 20px; margin: 8px 0;
}
.modal-body li { margin-bottom: 4px; }
.modal-body .terms-meta {
    font-size: 12px; color: var(--g400); margin-bottom: 20px;
    padding-bottom: 16px; border-bottom: 1px solid var(--g100);
}
.modal-footer {
    padding: 16px 32px; border-top: 1px solid var(--g200);
    text-align: right;
}
.modal-confirm {
    background: var(--orange); color: white; border: none; padding: 12px 32px;
    border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer;
    transition: all 0.3s; font-family: 'Noto Sans KR', sans-serif;
}
.modal-confirm:hover { background: #E68200; }

.consent-view-btn {
    font-size: 12px; color: var(--orange); font-weight: 600; cursor: pointer;
    text-decoration: underline; background: none; border: none; padding: 0;
    white-space: nowrap; font-family: 'Noto Sans KR', sans-serif;
}
.consent-view-btn:hover { color: #E68200; }

/* ═══════ BIZ TYPE / PAY METHOD SELECT ═══════ */
.type-select { display: flex; gap: 10px; margin-bottom: 20px; }
.type-btn {
    flex: 1; padding: 14px; border-radius: 12px; border: 1px solid var(--g200);
    background: white; cursor: pointer; text-align: center; transition: all 0.3s;
    font-family: 'Noto Sans KR', sans-serif;
}
.type-btn:hover { border-color: var(--g300); }
.type-btn.active { border-color: var(--orange); background: rgba(255,143,0,0.04); }
.type-btn .type-icon { font-size: 20px; margin-bottom: 4px; }
.type-btn .type-label { font-size: 14px; font-weight: 700; color: var(--navy-deep); }
.type-btn .type-desc { font-size: 11px; color: var(--g500); margin-top: 2px; }
.type-btn.active .type-label { color: var(--orange); }
.conditional-field { display: none; }
.conditional-field.show { display: block; }

/* ═══════ SIGNATURE PAD ═══════ */
.sig-wrap {
    border: 1px solid var(--g200); border-radius: 12px; overflow: hidden;
    background: var(--g50); position: relative;
}
.sig-wrap canvas { display: block; width: 100%; height: 160px; cursor: crosshair; touch-action: none; }
.sig-actions {
    display: flex; justify-content: space-between; padding: 8px 12px;
    border-top: 1px solid var(--g200); background: white;
}
.sig-actions button {
    font-size: 12px; padding: 4px 14px; border-radius: 6px; border: 1px solid var(--g200);
    background: white; color: var(--g600); cursor: pointer; font-family: inherit;
}
.sig-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    font-size: 13px; color: var(--g300); pointer-events: none; font-weight: 500; }
.notice-box {
    background: rgba(255,143,0,0.04); border: 1px solid rgba(255,143,0,0.15);
    border-radius: 10px; padding: 14px 16px; margin-bottom: 20px;
    font-size: 13px; color: var(--g600); line-height: 1.7;
}
.notice-box strong { color: var(--orange); }

/* ═══════ SPINNER ═══════ */
@keyframes spin { to { transform: rotate(360deg); } }

/* responsive (from legacy 768px block) */
@media (max-width: 768px) {
  .service-select-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .wizard-container { padding: 28px 20px; }
}
/* v2 style.css .card-icon (46px box) override for service cards */
.service-select-card .card-icon { width: auto; height: auto; background: none; display: block; margin-bottom: 12px; color: var(--orange); }
.service-select-card .card-icon svg { width: 28px; height: 28px; }
.wizard-container .form-row { gap: 16px; }
.wizard-container { margin-top: -24px; }