:root {
  --zpm-black: #19223e;
  --zpm-border: #dddddd;
  --zpm-input-bg: #fafbfc;
  --zpm-input-border: #cfd8e3;
  --zpm-input-border-focus: #7f8fa6;
  --zpm-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

.zpm-wrap {
  width: 100%;
  max-width: 680px;
  font-family: var(--zpm-font-family);
}

.zpm-wrap-auth {
  width: 100%;
  max-width: 480px;
}

.zpm-wrap-mypage {
  display: grid;
  gap: 16px;
}

.zpm-wrap input,
.zpm-wrap textarea,
.zpm-wrap select,
.zpm-wrap button {
  font: inherit;
}

.zpm-form {
  box-sizing: border-box;
  display: grid;
  gap: 16px;
  padding: 16px;
  border: none;
  background: #fff;
  color: var(--zpm-black);
}

.zpm-form label,
.zpm-form legend {
  font-weight: 600;
  font-size: 15px;
}

.zpm-label {
  display: inline-flex;
  align-items: flex-start;
}

.zpm-label-text {
  position: relative;
  display: inline-block;
}

.zpm-required .zpm-label-text {
  padding-right: 10px;
}

.zpm-required .zpm-label-text::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: #e03131;
}

.zpm-grid {
  display: grid;
  gap: 12px;
}

.zpm-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zpm-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zpm-field-group {
  display: grid;
  gap: 6px;
}

.zpm-consent-block {
  display: grid;
  gap: 8px;
}

.zpm-agreement-box {
  max-height: 150px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--zpm-input-border);
  background: var(--zpm-input-bg);
  color: #44556e;
  font-size: 13px;
  line-height: 14px;
  white-space: break-spaces;
}

.zpm-consent-header {
  align-items: flex-start;
  gap: 8px;
}

.zpm-consent-header input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--zpm-black);
}

.zpm-form input[type='text'],
.zpm-form input[type='email'],
.zpm-form input[type='password'],
.zpm-form input[type='tel'],
.zpm-form input[type='number'],
.zpm-form textarea,
.zpm-form select {
  box-sizing: border-box;
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--zpm-input-border);
  background: var(--zpm-input-bg);
  color: var(--zpm-black);
  height: 48px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.zpm-form input[readonly] {
  color: #66758a;
  background: #f1f4f8;
  cursor: not-allowed;
}

.zpm-form input::placeholder,
.zpm-form textarea::placeholder {
  color: #b0bac8;
  font-size: 15px;
  opacity: 1;
}

.zpm-form input:focus,
.zpm-form textarea:focus,
.zpm-form select:focus {
  outline: none;
  background: #fff;
  border-color: var(--zpm-input-border-focus);
  box-shadow: 0 0 0 3px rgba(17, 34, 64, 0.08);
}

.zpm-form textarea {
  padding: 10px;
  resize: vertical;
  min-height: 150px;
}

.zpm-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.zpm-password-wrap input {
  padding-right: 48px;
}

.zpm-password-toggle {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #6b7788;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zpm-password-toggle:hover,
.zpm-password-toggle:focus {
  color: var(--zpm-black);
}

.zpm-eye {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zpm-eye-off {
  display: none;
}

.zpm-password-toggle.is-visible .zpm-eye-on {
  display: none;
}

.zpm-password-toggle.is-visible .zpm-eye-off {
  display: block;
}

.zpm-password-guide {
  display: block;
  margin-top: -6px;
  color: #5b6573;
  font-size: 12px;
  line-height: 1.5;
}

.zpm-interest-guide {
  display: block;
  margin-top: 6px;
  color: #5b6573;
  font-size: 12px;
  line-height: 1.5;
}

.zpm-optional-checks {
  display: grid;
  gap: 10px;
  margin-top: -4px;
}

.zpm-optional-check {
  color: #364659;
  line-height: 1.5;
}

.zpm-optional-check input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--zpm-black);
}

.zpm-phone-group {
  display: grid;
  grid-template-columns: minmax(72px, 88px) 12px minmax(68px, 1fr) 12px minmax(68px, 1fr);
  gap: 6px;
  align-items: center;
}

.zpm-digits4 {
  text-align: center;
  letter-spacing: 0.03em;
}

.zpm-form select.zpm-phone-prefix {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-align: center;
  text-align-last: center;
  padding: 0 24px 0 8px;
  background-image:
    linear-gradient(45deg, transparent 50%, #6f8096 50%),
    linear-gradient(135deg, #6f8096 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.zpm-form select.zpm-phone-prefix:focus {
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;
}

.zpm-phone-hyphen {
  width: 12px;
  text-align: center;
  color: #7a8698;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  user-select: none;
}

.zpm-form fieldset {
  border: 1px solid var(--zpm-border);
  padding: 12px;
}

.zpm-form .zpm-interest-fieldset {
  border: 1px dashed var(--zpm-border);
}

.zpm-mypage-options {
  display: grid;
  gap: 10px;
}

.zpm-mypage-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: #5b6573;
}

.zpm-mypage-status .zpm-log-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  min-width: 84px;
  padding: 0 8px;
  border: 1px solid #cfd8e3;
  background: #f6f8fb;
  color: #536277;
  font-size: 15px;
  font-weight: 600;
}

.zpm-mypage-status .zpm-log-status--success {
  border-color: #b8d8c0;
  background: #effaf2;
  color: #236a35;
}

.zpm-mypage-status .zpm-log-status--partial {
  border-color: #d9cda9;
  background: #fff9e8;
  color: #7a5a1c;
}

.zpm-mypage-status small {
  font-size: 12px;
  line-height: 1.5;
}

.zpm-withdraw-form {
  box-sizing: border-box;
  width: 100%;
  border: 0 !important;
  background: #fff !important;
}

.zpm-form .zpm-withdraw-fieldset {
  box-sizing: border-box;
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--zpm-border);
  background: #fffafa;
}

.zpm-withdraw-copy {
  display: grid;
  gap: 4px;
  color: var(--zpm-black);
}

.zpm-withdraw-copy p {
  margin: 0;
  color: #6f4a4a;
  font-size: 13px;
  line-height: 1.5;
}

.zpm-file-upload {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px dashed var(--zpm-border);
  background: #fafbfc;
}

.zpm-file-input {
  width: 100%;
  height: auto;
  padding: 6px;
  border: 1px solid var(--zpm-border);
  background: var(--zpm-input-bg);
}

.zpm-file-input::file-selector-button {
  appearance: none;
  border: 1px solid var(--zpm-black);
  background: var(--zpm-black);
  color: #fff;
  padding: 8px 14px;
  margin-right: 10px;
  font-size: 13px;
  cursor: pointer;
}

.zpm-file-help {
  color: #556;
  font-size: 12px;
}

.zpm-file-selected {
  color: #112240;
  font-size: 13px;
  word-break: break-all;
}

.zpm-interest-fieldset legend {
}

.zpm-checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.zpm-interest-list {
  gap: 10px;
}

.zpm-interest-list .zpm-checkbox {
  border: 1px solid #d2dbe6;
  background: #fff;
  padding: 8px 12px;
  min-height: 42px;
  gap: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.zpm-interest-list .zpm-checkbox:hover {
  border-color: #a9b9ca;
  background: #f9fbfe;
}

.zpm-interest-list .zpm-checkbox input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--zpm-black);
}

.zpm-interest-list .zpm-checkbox input[type='checkbox']:checked + span {
  color: var(--zpm-black);
  font-weight: 600;
}

.zpm-checkbox,
.zpm-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.zpm-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.zpm-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zpm-auth-links {
  gap: 6px 14px;
}

.zpm-reset-back-link {
  margin-left: 16px;
}

.zpm-text-link {
  color: #7f8792;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.zpm-text-link:hover,
.zpm-text-link:focus {
  color: #5f6772;
  text-decoration: underline;
}

.zpm-form button[type='submit'],
.zpm-wrap .button.button-secondary {
  appearance: none;
  border: 1px solid var(--zpm-black);
  border-radius: 0;
  background: var(--zpm-black);
  color: #fff;
  height: 48px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 46px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.zpm-auth-toggle-button {
  appearance: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  min-height: 48px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.zpm-auth-toggle-button:hover,
.zpm-auth-toggle-button:focus {}

.zpm-form button[type='submit']:hover,
.zpm-form button[type='submit']:focus,
.zpm-wrap .button.button-secondary:hover,
.zpm-wrap .button.button-secondary:focus {
  background: #fff;
  color: var(--zpm-black);
  border-color: var(--zpm-black);
}

.zpm-form button.zpm-danger-button {
  border-color: #9f2f2f;
  background: #9f2f2f;
}

.zpm-form button.zpm-danger-button:hover,
.zpm-form button.zpm-danger-button:focus {
  background: #fff;
  color: #9f2f2f;
  border-color: #9f2f2f;
}

.zpm-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
}

.zpm-notice ul {
  margin: 0;
  padding-left: 18px;
}

.zpm-notice li + li {
  margin-top: 4px;
}

.zpm-state-card {
  box-sizing: border-box;
  border: 1px solid #d6dde6;
  background: #f8fafc;
  padding: 14px 16px;
  margin: 0 16px 12px;
}

.zpm-state-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #1d2c42;
}

.zpm-state-card p {
  margin: 0;
  color: #44556e;
  font-size: 13px;
}

.zpm-state-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5a6f88;
  display: inline-block;
}

.zpm-state-card--success {
  border-color: #b9dcbf;
  background: #f3fcf5;
}

.zpm-state-card--success .zpm-state-dot {
  background: #2e7d32;
}

.zpm-state-card--error {
  border-color: #e3c1c1;
  background: #fff7f7;
}

.zpm-state-card--error .zpm-state-dot {
  background: #c0392b;
}

.zpm-success {
  background: #e8f8ec;
  border: 1px solid #8fd1a1;
  color: #155724;
}

.zpm-error {
  background: #fdecec;
  border: 1px solid #ef9a9a;
  color: #8a1f1f;
}

.zpm-password-match {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  padding: 8px 10px;
  border: 1px solid transparent;
  background: #f6f8fb;
}

.zpm-password-match:empty {
  display: none;
}

.zpm-password-match.ok {
  color: #215f34;
  border-color: #b8dcbf;
  background: #eef9f0;
}

.zpm-password-match.fail {
  color: #a63131;
  border-color: #efc1c1;
  background: #fff1f1;
}

.zpm-recaptcha-wrap {
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .zpm-wrap,
  .zpm-wrap-auth {
    max-width: none;
  }

  .zpm-wrap.zpm-wrap-auth {
    width: 100%;
    max-width: 100%;
  }

  .zpm-wrap.zpm-wrap-auth .zpm-form {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .zpm-form {
    padding: 12px;
  }

  .zpm-state-card {
    margin: 0 12px 12px;
  }

  .zpm-grid-3,
  .zpm-grid-2 {
    grid-template-columns: 1fr;
  }

  .zpm-phone-group {
    grid-template-columns: minmax(64px, 74px) 10px minmax(62px, 1fr) 10px minmax(62px, 1fr);
    gap: 4px;
  }

  .zpm-form button[type='submit'],
  .zpm-wrap .button.button-secondary,
  .zpm-auth-toggle-button {
    width: 100%;
  }

  .zpm-auth-links {
    width: 100%;
    justify-content: flex-start;
  }
}
