/* CLEVENT page module: customer_register.php */

.customer-register { max-width: var(--cl-layout-content); margin: 0 auto; padding-bottom: var(--space-24); }
    .customer-register__card { padding: var(--space-24); border-radius: var(--radius-card); background: var(--surface-raised); box-shadow: var(--shadow-raised); }
    .customer-register__card h1 { margin: 0; }
    .customer-register__eyebrow { margin: 0 0 var(--space-8); color: var(--color-accent); font-size: var(--cl-type-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
    .customer-register__hint { color: var(--color-muted); line-height: var(--cl-leading-body); }
    .customer-register__step-caption { margin: var(--space-8) 0 0; color: var(--color-muted); font-size: var(--cl-type-lead); }
    .customer-register__progress { display: grid; gap: var(--space-8); margin-bottom: var(--space-24); }
    .customer-register__progress-meta { display: flex; justify-content: space-between; gap: var(--space-8); color: var(--color-muted); font-size: var(--cl-type-small); }
    .customer-register__progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--surface-pressed); box-shadow: var(--shadow-inset); }
    .customer-register__progress-value { display: block; height: 100%; border-radius: inherit; background: var(--color-accent); transition: width .2s ease; }
    .customer-register__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-16); min-width: 0; margin-top: var(--space-24); }
    .customer-register__form > * { min-width: 0; max-width: 100%; }
    .customer-register__form > label { width: 100%; }
    .customer-register__form label { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); min-width: 0; font-weight: 600; }
    .customer-register__form input { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
    .customer-register__form input[type="date"] { min-height: 48px; }
    .customer-register__field-hint { margin: calc(var(--cl-space-2xs) * -1) 0 0; color: var(--color-muted); font-size: var(--cl-type-meta); line-height: var(--cl-leading-body); }
    .customer-register__errors { margin: 0; padding: var(--space-12) var(--space-16); color: var(--color-danger-strong); background: var(--color-danger-soft); border-radius: var(--radius-base); }
    .customer-register__errors li + li { margin-top: var(--space-8); }
    .customer-register__consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: var(--space-12) !important; font-weight: 400 !important; line-height: var(--cl-leading-body); }
    .customer-register__consent input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; margin: 2px 0 0; accent-color: var(--color-accent); }
    .customer-register__actions { display: flex; gap: var(--space-8); align-items: center; width: 100%; min-width: 0; }
    .customer-register__actions .btn { flex: 1 1 0; min-width: 0; min-height: 48px; }
    .customer-register__submit.is-loading { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); pointer-events: none; opacity: .9; }
    .customer-register__submit.is-loading::before { content: ''; width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid color-mix(in srgb, var(--btn-text) 42%, transparent); border-top-color: var(--btn-text); border-radius: var(--cl-radius-circle); animation: customer-register-submit-spin .75s linear infinite; }
    @keyframes customer-register-submit-spin { to { transform: rotate(360deg); } }
    .customer-register__summary { display: grid; gap: var(--space-8); margin: var(--space-16) 0 0; padding: var(--space-16); border-radius: var(--radius-base); background: var(--surface-pressed); box-shadow: var(--shadow-inset); color: var(--color-muted); }
    .customer-register__summary strong { color: var(--color-text); }
    .customer-register__avatar-card { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-16); width: 100%; box-sizing: border-box; padding: var(--space-16); border-radius: var(--radius-base); background: var(--surface-pressed); box-shadow: var(--shadow-inset); text-align: center; }
    .customer-register__avatar-preview { width: 112px; height: 112px; overflow: hidden; border-radius: var(--cl-radius-circle); background: var(--surface-raised); box-shadow: var(--shadow-raised); }
    .customer-register__avatar-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .customer-register__avatar-copy { display: grid; justify-items: center; gap: var(--space-8); min-width: 0; width: 100%; }
    .customer-register__avatar-title { margin: 0; color: var(--color-text); font-weight: 700; }
    .customer-register__avatar-copy p { margin: 0; color: var(--color-muted); font-size: var(--cl-type-meta); line-height: var(--cl-leading-body); }
    .customer-register__file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
    .customer-register__file-button { display: inline-flex !important; width: fit-content !important; min-height: var(--cl-control-height-sm); align-items: center; justify-content: center; padding: 0 var(--space-12); border-radius: var(--radius-control); color: var(--color-text); background: var(--surface-raised); box-shadow: var(--shadow-soft); cursor: pointer; font-size: var(--cl-type-meta); font-weight: 600 !important; }
    .customer-register__file-name { max-width: 100%; overflow: hidden; color: var(--color-muted); font-size: var(--cl-type-caption) !important; text-overflow: ellipsis; white-space: nowrap; }
    @media (max-width: 520px) {
      .customer-register { padding-inline: 0; }
      .customer-register__card { padding: var(--space-16); }
      .customer-register__actions { flex-direction: column-reverse; }
      .customer-register__actions .btn { width: 100%; }
    }
