/*
 * 에이전시 회원가입 (/auth/company/register) 디자인 시스템 오버라이드
 * 링크 순서: common.css → 페이지 인라인 <style> → 이 파일.
 * 스텝 상태(.step-indicator.active/.completed), 버튼 숨김(.hidden), 파일 카드 표시 등은 JS가 제어하므로 클래스 기준으로만 꾸민다.
 */

body.cr-page {
    --cr-control-h: 44px;
    --cr-radius: var(--tp-radius-lg);
    background: var(--tp-canvas);
}

body.cr-page .header.figma-header .tp-header-icon {
    box-shadow: none;
}

/* ---------- 카드 ---------- */
body.cr-page .signup-card {
    max-width: 760px;
    padding: 40px 44px;
    border: 1px solid var(--tp-border-default);
    border-radius: 16px;
    background: var(--tp-surface);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -6px rgba(0, 0, 0, 0.04);
}

body.cr-page .signup-card:hover {
    border-color: var(--tp-border-default);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -6px rgba(0, 0, 0, 0.04);
}

body.cr-page .signup-header {
    margin-bottom: 28px;
    padding-bottom: 0;
    border-bottom: none;
}

body.cr-page .signup-title {
    margin-bottom: 6px;
    gap: 10px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    color: var(--tp-text-strong);
}

body.cr-page .signup-title svg {
    width: 24px;
    height: 24px;
    stroke: var(--tp-color-accent);
}

body.cr-page .signup-subtitle {
    font-size: var(--tp-font-size-body);
    font-weight: 500;
    color: var(--tp-text-muted);
}

/* ---------- 1) Stepper ---------- */
body.cr-page .step-indicators {
    margin-bottom: 28px;
    padding: 0;
}

body.cr-page .step-indicators::before {
    display: none;
}

body.cr-page .step-indicator {
    gap: 8px;
}

/* 앞 단계와 이어지는 연결선: 현재·완료 단계까지 Accent로 채운다 */
body.cr-page .step-indicator + .step-indicator::before {
    content: "";
    position: absolute;
    top: 17px;
    right: calc(50% + 24px);
    left: calc(-50% + 24px);
    height: 2px;
    border-radius: var(--tp-radius-full);
    background: var(--tp-border-default);
    transition: background-color var(--tp-motion-fast);
}

body.cr-page .step-indicator.active::before,
body.cr-page .step-indicator.completed::before {
    background: var(--tp-color-accent-border);
}

body.cr-page .step-circle {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--tp-border-default);
    border-radius: 50%;
    background: var(--tp-surface);
    color: var(--tp-text-subtle);
    font-size: var(--tp-font-size-body);
    font-weight: 700;
    box-shadow: none;
    transform: none;
    transition: background-color var(--tp-motion-fast), border-color var(--tp-motion-fast), color var(--tp-motion-fast), box-shadow var(--tp-motion-fast);
}

body.cr-page .step-indicator.active .step-circle {
    border: 1.5px solid var(--tp-color-accent);
    background: var(--tp-color-accent);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.16), 0 4px 12px rgba(79, 70, 229, 0.28);
    transform: none;
}

body.cr-page .step-indicator.completed .step-circle {
    border: 1.5px solid var(--tp-color-accent-border);
    background: var(--tp-color-accent-subtle);
    color: var(--tp-color-accent);
    box-shadow: none;
}

/* 완료 단계: JS가 숫자를 비우면 체크 아이콘을 그린다 */
body.cr-page .step-indicator.completed .step-circle::after {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
    font-size: 0;
}

body.cr-page .step-label {
    font-size: var(--tp-font-size-micro);
    line-height: var(--tp-line-height-micro);
    font-weight: 500;
    color: var(--tp-text-subtle);
}

body.cr-page .step-indicator.active .step-label {
    font-weight: 700;
    color: var(--tp-color-accent);
}

body.cr-page .step-indicator.completed .step-label {
    font-weight: 600;
    color: var(--tp-text-default);
}

/* 모바일 콤팩트 스텝퍼 */
body.cr-page .cr-mini-steps {
    margin-bottom: 20px;
}

body.cr-page .cr-mini-count b {
    color: var(--tp-color-accent);
}

body.cr-page .cr-mini-name {
    font-size: 17px;
    color: var(--tp-text-strong);
}

body.cr-page .cr-mini-track {
    height: 6px;
    background: var(--tp-surface-muted);
}

body.cr-page .cr-mini-fill {
    background: var(--tp-color-accent);
}

/* ---------- 3) 안내 · 오류 메시지 ---------- */
body.cr-page .alert {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: var(--cr-radius);
    font-size: var(--tp-font-size-caption);
    line-height: 20px;
    font-weight: 500;
}

body.cr-page .alert::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    background: currentColor;
    -webkit-mask: var(--cr-alert-icon) center / contain no-repeat;
    mask: var(--cr-alert-icon) center / contain no-repeat;
}

body.cr-page .alert-success {
    --cr-alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
}

body.cr-page .alert-error {
    --cr-alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
    border-color: var(--tp-status-danger-border);
    background: var(--tp-status-danger-bg);
    color: var(--tp-status-danger-fg);
}

/* 5단계 "회원가입 완료 후" 안내 */
body.cr-page .cr-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: var(--cr-radius);
    background: #eff6ff;
    color: #1e40af;
}

body.cr-page .cr-info-box > svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

body.cr-page .cr-info-box__title {
    margin-bottom: 2px;
    font-size: var(--tp-font-size-body);
    font-weight: 700;
}

body.cr-page .cr-info-box__text {
    font-size: var(--tp-font-size-caption);
    line-height: 20px;
    font-weight: 500;
}

/* ---------- 2) 폼 ---------- */
body.cr-page .step-content {
    min-height: 0;
}

body.cr-page .step-title {
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tp-border-default);
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    color: var(--tp-text-strong);
}

body.cr-page .step-title svg {
    width: 20px;
    height: 20px;
    padding: 6px;
    border-radius: var(--tp-radius-md);
    background: var(--tp-color-accent-subtle);
    stroke: var(--tp-color-accent);
    box-sizing: content-box;
}

body.cr-page .form-group {
    margin-bottom: 18px;
}

body.cr-page .form-label {
    margin-bottom: 6px;
    gap: 4px;
    font-size: var(--tp-font-size-caption);
    line-height: var(--tp-line-height-caption);
    font-weight: 600;
    color: var(--tp-text-default);
}

body.cr-page .form-group > small,
body.cr-page .otp-panel > small {
    margin-top: 6px !important;
    font-size: var(--tp-font-size-micro) !important;
    line-height: var(--tp-line-height-micro);
    color: var(--tp-text-muted) !important;
}

body.cr-page .form-input {
    height: var(--cr-control-h) !important;
    padding: 0 14px;
    border: 1px solid var(--tp-border-default);
    border-radius: var(--cr-radius);
    background-color: var(--tp-surface);
    color: var(--tp-text-strong);
    font-size: var(--tp-font-size-body);
    font-weight: 400;
    box-shadow: none;
    transition: border-color var(--tp-motion-fast), box-shadow var(--tp-motion-fast), background-color var(--tp-motion-fast);
}

body.cr-page .form-input::placeholder {
    color: var(--tp-text-subtle);
    opacity: 1;
}

body.cr-page .form-input:hover:not(:disabled):not([readonly]) {
    border-color: #cbd5e1;
}

body.cr-page .form-input:focus {
    outline: none;
    border-color: var(--tp-color-accent);
    box-shadow: var(--tp-focus-ring);
}

body.cr-page .form-input:disabled {
    border-color: var(--tp-border-default);
    background-color: var(--tp-surface-muted) !important;
    color: var(--tp-text-subtle);
}

body.cr-page .form-input[readonly],
body.cr-page #companyAddress[readonly],
body.cr-page .cr-addr-row #companyPostcode {
    background-color: var(--tp-surface-hover);
}

body.cr-page select.form-input {
    padding-right: 40px;
    background-position: right 12px center;
    background-size: 18px 18px;
}

/* 비밀번호 토글 · 달력 버튼: 입력칸 안에서 수직 중앙 정렬 */
body.cr-page .cr-pw-wrap,
body.cr-page .cr-date-wrap {
    display: flex;
    align-items: center;
}

body.cr-page .cr-pw-wrap .form-input,
body.cr-page .cr-date-wrap .form-input {
    padding-right: 48px;
}

body.cr-page .cr-pw-toggle,
body.cr-page .cr-date-btn {
    top: 50%;
    right: 6px;
    width: 34px;
    height: 34px;
    border-radius: var(--tp-radius-md);
    color: var(--tp-text-subtle);
    transform: translateY(-50%);
    transition: background-color var(--tp-motion-fast), color var(--tp-motion-fast);
}

body.cr-page .cr-pw-toggle:hover,
body.cr-page .cr-date-btn:hover {
    background: var(--tp-surface-muted);
    color: var(--tp-text-strong);
}

body.cr-page .cr-date-btn {
    color: var(--tp-color-accent);
}

body.cr-page .cr-date-btn:hover {
    background: var(--tp-color-accent-subtle);
    color: var(--tp-color-accent-hover);
}

body.cr-page .cr-pw-toggle i,
body.cr-page .cr-pw-toggle svg,
body.cr-page .cr-date-btn i,
body.cr-page .cr-date-btn svg {
    width: 18px;
    height: 18px;
}

body.cr-page .cr-pw-toggle:focus-visible,
body.cr-page .cr-date-btn:focus-visible {
    outline: none;
    box-shadow: var(--tp-focus-ring);
}

/* 주소 검색: Muted Secondary */
body.cr-page .cr-addr-row {
    gap: 8px;
    align-items: center;
}

body.cr-page .cr-addr-btn {
    height: var(--cr-control-h);
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--cr-radius);
    background: var(--tp-surface-muted);
    color: var(--tp-text-default);
    font-size: var(--tp-font-size-body);
    font-weight: 600;
    transition: background-color var(--tp-motion-fast), color var(--tp-motion-fast);
}

body.cr-page .cr-addr-btn:hover {
    background: #e2e8f0;
    color: var(--tp-text-strong);
    filter: none;
    transform: none;
}

body.cr-page .cr-addr-btn i,
body.cr-page .cr-addr-btn svg {
    width: 16px;
    height: 16px;
    color: var(--tp-text-muted);
}

body.cr-page #companyAddress {
    margin-top: 8px !important;
}

/* 담당자 휴대폰 인증 패널 */
body.cr-page .otp-panel {
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--tp-border-default);
    border-radius: var(--cr-radius);
    background: var(--tp-surface-hover);
}

body.cr-page .otp-send-btn {
    height: 36px;
    border-radius: var(--tp-radius-md);
}

body.cr-page .otp-send-btn.ready {
    border-color: var(--tp-color-accent);
    background: var(--tp-color-accent);
    color: #ffffff;
}

body.cr-page .otp-send-btn.ready:hover {
    background: var(--tp-color-accent-hover);
    filter: none;
}

body.cr-page .otp-verify-btn {
    height: var(--cr-control-h);
}

body.cr-page .otp-success-badge {
    color: var(--tp-status-success-fg);
}

/* 커스텀 체크박스 (지점 여부 · 약관) */
body.cr-page input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: var(--tp-surface);
    cursor: pointer;
    transition: background-color var(--tp-motion-fast), border-color var(--tp-motion-fast), box-shadow var(--tp-motion-fast);
}

body.cr-page input[type="checkbox"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity var(--tp-motion-fast), transform var(--tp-motion-fast);
}

body.cr-page input[type="checkbox"]:hover {
    border-color: var(--tp-color-accent);
}

body.cr-page input[type="checkbox"]:checked {
    border-color: var(--tp-color-accent);
    background: var(--tp-color-accent);
}

body.cr-page input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: scale(1);
}

body.cr-page input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: var(--tp-focus-ring);
}

body.cr-page .form-label:has(#hasBranch) {
    gap: 10px !important;
    margin-bottom: 0;
    font-size: var(--tp-font-size-body);
    font-weight: 600 !important;
    color: var(--tp-text-strong);
    cursor: pointer;
}

/* ---------- 3) 서류 업로드: Drop Zone ---------- */
body.cr-page .file-upload-area {
    min-height: 0;
    padding: 28px 20px;
    gap: 2px;
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--cr-radius);
    background: var(--tp-surface-hover);
    transition: border-color var(--tp-motion-fast), background-color var(--tp-motion-fast), box-shadow var(--tp-motion-fast);
}

body.cr-page .file-upload-area:hover {
    border-color: var(--tp-color-accent);
    background: var(--tp-color-accent-subtle);
    box-shadow: none;
    transform: none;
}

body.cr-page .file-upload-area:focus-visible {
    outline: none;
    border-color: var(--tp-color-accent);
    box-shadow: var(--tp-focus-ring);
}

body.cr-page .file-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--tp-surface);
    box-shadow: var(--tp-shadow-xs);
    transition: background-color var(--tp-motion-fast);
}

body.cr-page .file-upload-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--tp-text-muted);
    transition: stroke var(--tp-motion-fast);
}

body.cr-page .file-upload-area:hover .file-upload-icon svg {
    stroke: var(--tp-color-accent);
}

body.cr-page .file-upload-area > div:not(.file-upload-icon) {
    font-size: var(--tp-font-size-micro) !important;
    color: var(--tp-text-muted) !important;
}

body.cr-page .file-upload-area > div:nth-child(2) {
    font-size: var(--tp-font-size-body) !important;
    color: var(--tp-text-strong) !important;
}

body.cr-page .cr-file-cam-btn {
    margin-top: 8px;
    padding: 0 16px;
    height: var(--cr-control-h);
    gap: 6px;
    border: 1px solid var(--tp-border-default);
    border-radius: var(--cr-radius);
    background: var(--tp-surface);
    color: var(--tp-text-default);
    font-size: var(--tp-font-size-body);
    font-weight: 600;
}

body.cr-page .cr-file-cam-btn:hover {
    border-color: #cbd5e1;
    background: var(--tp-surface-hover);
}

body.cr-page .cr-file-cam-btn i,
body.cr-page .cr-file-cam-btn svg {
    width: 18px;
    height: 18px;
    color: var(--tp-text-muted);
}

body.cr-page .cr-file-card {
    gap: 12px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--tp-border-default);
    border-radius: var(--cr-radius);
    box-shadow: var(--tp-shadow-xs);
}

body.cr-page .cr-file-card__thumb {
    border-radius: var(--tp-radius-md);
    background: var(--tp-surface-muted);
}

body.cr-page .cr-file-card__name {
    font-size: var(--tp-font-size-body);
    color: var(--tp-text-strong);
}

body.cr-page .cr-file-card__meta {
    font-size: var(--tp-font-size-micro);
    color: var(--tp-text-muted);
}

body.cr-page .cr-file-card__btn {
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--tp-border-default);
    border-radius: var(--tp-radius-md);
    background: var(--tp-surface);
    color: var(--tp-text-default);
    font-size: var(--tp-font-size-micro);
}

body.cr-page .cr-file-card__btn:hover {
    border-color: #cbd5e1;
    background: var(--tp-surface-hover);
}

body.cr-page .cr-file-card__btn.danger:hover {
    border-color: var(--tp-status-danger-border);
    background: var(--tp-status-danger-bg);
    color: var(--tp-status-danger-fg);
}

/* ---------- 약관 ---------- */
body.cr-page .terms-section {
    padding: 8px 18px 16px;
    border: 1px solid var(--tp-border-default);
    border-radius: var(--cr-radius);
    background: var(--tp-surface);
    box-shadow: none;
}

body.cr-page .terms-section h4 {
    margin: 12px 0 4px !important;
    font-size: var(--tp-font-size-body-strong);
    font-weight: 700;
    color: var(--tp-text-strong);
}

body.cr-page .checkbox-label {
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

body.cr-page .checkbox-label span {
    font-size: var(--tp-font-size-body);
    line-height: 20px;
    color: var(--tp-text-default);
}

body.cr-page .checkbox-label.required span {
    font-weight: 600;
    color: var(--tp-text-strong);
}

body.cr-page .checkbox-label:has(#agreeAll) {
    margin: 0 -10px;
    padding: 12px 10px;
    border-radius: var(--tp-radius-md);
    background: var(--tp-color-accent-subtle);
}

body.cr-page .checkbox-label:has(#agreeAll) span {
    font-weight: 700;
    color: var(--tp-text-strong);
}

body.cr-page .terms-link {
    flex-shrink: 0;
    margin-left: 0;
    padding: 2px 8px;
    border-radius: var(--tp-radius-full);
    background: var(--tp-surface-muted);
    color: var(--tp-text-muted);
    font-size: var(--tp-font-size-micro);
    font-weight: 600;
}

body.cr-page .terms-link:hover {
    background: var(--tp-color-accent-subtle);
    color: var(--tp-color-accent);
}

body.cr-page .terms-section hr {
    margin: 6px 0;
    border-top: 1px solid var(--tp-border-default);
}

body.cr-page .terms-section hr + hr {
    display: none;
}

body.cr-page .terms-error {
    padding: 10px 12px;
    border: 1px solid var(--tp-status-danger-border);
    border-radius: var(--tp-radius-md);
    background: var(--tp-status-danger-bg);
    color: var(--tp-status-danger-fg);
    font-size: var(--tp-font-size-caption);
}

/* ---------- 4) 하단 CTA ---------- */
body.cr-page .button-group {
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--tp-border-default);
}

body.cr-page .button-group .btn-primary,
body.cr-page .button-group .btn-secondary {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 24px;
    border-radius: var(--cr-radius);
    font-size: var(--tp-font-size-body-strong);
    font-weight: 700;
    transform: none;
}

body.cr-page .button-group .btn-secondary {
    min-width: 120px;
    margin-right: auto;
    border: 1px solid transparent;
    background: var(--tp-surface-muted);
    color: var(--tp-text-default);
}

body.cr-page .button-group .btn-secondary:hover {
    border-color: transparent;
    background: #e2e8f0;
    color: var(--tp-text-strong);
    transform: none;
}

body.cr-page .btn-primary {
    border: 1px solid var(--tp-color-accent);
    background: var(--tp-color-accent);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.24);
    transition: background-color var(--tp-motion-fast), box-shadow var(--tp-motion-fast), transform var(--tp-motion-fast);
}

body.cr-page .button-group .btn-primary {
    min-width: 180px;
}

body.cr-page .btn-primary:hover {
    border-color: var(--tp-color-accent-hover);
    background: var(--tp-color-accent-hover);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
    transform: translateY(-1px);
}

body.cr-page .btn-primary:active {
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.24);
    transform: translateY(0);
}

body.cr-page .btn-primary:focus-visible,
body.cr-page .btn-secondary:focus-visible,
body.cr-page .cr-addr-btn:focus-visible,
body.cr-page .cr-file-cam-btn:focus-visible {
    outline: none;
    box-shadow: var(--tp-focus-ring);
}

body.cr-page .signup-link {
    margin-top: 20px;
    font-size: var(--tp-font-size-caption);
    color: var(--tp-text-muted);
}

body.cr-page .signup-link a {
    color: var(--tp-color-accent);
}

/* ---------- 반응형 ---------- */
@media (max-width: 768px) {
    body.cr-page {
        --cr-control-h: 48px;
    }

    body.cr-page .signup-card {
        padding: 24px 20px;
        border-radius: var(--tp-radius-lg);
    }

    body.cr-page .form-input {
        font-size: 16px;
    }

    body.cr-page .cr-pw-toggle,
    body.cr-page .cr-date-btn {
        height: 36px;
    }

    body.cr-page .cr-addr-btn {
        height: var(--cr-control-h);
    }

    body.cr-page .button-group {
        border-top: 1px solid var(--tp-border-default);
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
    }

    body.cr-page .button-group .btn-primary,
    body.cr-page .button-group .btn-secondary {
        flex: 1;
        min-width: 0;
        margin-right: 0;
        padding: 0 12px;
    }

    body.cr-page .file-upload-area {
        padding: 22px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.cr-page .step-circle,
    body.cr-page .form-input,
    body.cr-page .file-upload-area,
    body.cr-page .btn-primary,
    body.cr-page input[type="checkbox"],
    body.cr-page input[type="checkbox"]::after {
        transition: none;
    }

    body.cr-page .btn-primary:hover {
        transform: none;
    }
}
