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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.zpx-form select.zpx-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;
}

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

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

.zpx-form button[type='submit'] {
  appearance: none;
  border: 1px solid var(--zpx-black);
  border-radius: 0;
  background: var(--zpx-black);
  color: #fff;
  height: 48px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  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;
}

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

.zpx-form .zpx-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.zpx-consent-note {
  margin: 0;
  color: #5b6573;
  font-size: 13px;
  line-height: 1.6;
}

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

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

  .zpx-grid-2 {
    grid-template-columns: 1fr;
  }

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

  .zpx-form button[type='submit'] {
    width: 100%;
  }
}
