:root {
  --bg: #F5F7FB;
  --card: #FFFFFF;
  --text: #172033;
  --muted: #68728A;
  --line: #E5EAF4;
  --primary: #0A31A8;
  --primary-2: #245BFF;
  --soft: #EEF3FF;
  --accent: #11A6A6;
  --danger: #E5484D;
  --warning: #F59E0B;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(22, 32, 51, .10);
  --shadow-soft: 0 10px 26px rgba(22, 32, 51, .07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: #fff;
}

a {
  color: inherit;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(280px, calc(100vw - 150px));
}

.lang {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 13px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: .15s background-color, .15s color;
}

.lang-link:hover {
  color: var(--primary);
}

.lang-link.on {
  background: var(--soft);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(36, 91, 255, .18);
}

.shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.hero {
  position: sticky;
  top: 26px;
  background: linear-gradient(160deg, #0A31A8 0%, #1E56F0 56%, #0CA7A4 100%);
  border-radius: 30px;
  color: #fff;
  padding: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 540px;
}

.hero:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, .11);
  filter: blur(2px);
  border-radius: 48px;
  left: -90px;
  bottom: -85px;
  transform: rotate(20deg);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.12;
  margin: 22px 0 12px;
  letter-spacing: -.045em;
}

.hero p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
  margin: 0 0 24px;
}

.benefits {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
}

.check {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
}

.benefit b {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.benefit span {
  display: block;
  color: rgba(255, 255, 255, .76);
  font-size: 12.5px;
  line-height: 1.45;
}

.help-card {
  margin-top: 24px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .13);
}

.help-card strong {
  font-size: 14px;
}

.help-card p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.form-card {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(229, 234, 244, .9);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.form-head {
  padding: 26px 30px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.form-head h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.035em;
}

.form-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

form {
  padding: 10px 30px 30px;
}

.section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.025em;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section-no {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field-gender {
  grid-column: 1 / -1;
}

@media (min-width: 901px) {
  .field-gender .radio-list.gender {
    max-width: 520px;
  }
}

label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.kr {
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
}

.req {
  font-size: 10.5px;
  font-weight: 900;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 3px 7px;
}

.opt {
  font-size: 10.5px;
  font-weight: 900;
  color: var(--muted);
  background: #F0F2F6;
  border-radius: 999px;
  padding: 3px 7px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #D9E0EC;
  background: #fff;
  border-radius: 15px;
  min-height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: .15s box-shadow, .15s border-color;
}

.phone-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}

textarea {
  min-height: 118px;
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(36, 91, 255, .12);
}

.hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.error-hint {
  color: var(--danger);
}

.error-banner {
  margin: 16px 30px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.error-banner ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #D9E0EC;
  border-radius: 999px;
  padding: 0 15px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 700;
  color: #334;
}

.chip input:checked + span {
  border-color: var(--primary-2);
  background: var(--soft);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary-2);
}

.language-chips {
  margin-bottom: 4px;
}

.other-language-box {
  margin-top: 12px;
}

.other-language-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #D9E0EC;
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
}

.radio-list {
  display: grid;
  gap: 10px;
}

.radio-list.gender {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.radio-list.marketing,
.radio-list.privacy {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radio-card {
  position: relative;
  display: block;
  min-width: 0;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #D9E0EC;
  border-radius: 15px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  color: #334;
  word-break: keep-all;
}

.radio-card input:checked + span {
  border-color: var(--primary-2);
  background: var(--soft);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary-2);
}

.sub-sns-list {
  display: grid;
  gap: 10px;
}

.sub-sns-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sub-sns-row input {
  flex: 1;
  min-width: 0;
}

.ghost {
  border: 1px dashed #B7C4D8;
  background: #FAFCFF;
  color: var(--primary);
  height: 48px;
  border-radius: 15px;
  padding: 0 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  flex-shrink: 0;
}

.ghost.danger {
  color: var(--danger);
  border-color: #F5C2C4;
  background: #FFF8F8;
}

.consent {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #FAFBFF;
  padding: 16px;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.consent p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.actions {
  position: sticky;
  bottom: 0;
  margin: 20px -30px -30px;
  padding: 18px 30px;
  background: rgba(255, 255, 255, .93);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
}

.submit {
  border: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  border-radius: 16px;
  height: 52px;
  min-width: 200px;
  padding: 0 32px;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 12px 22px rgba(10, 49, 168, .22);
  cursor: pointer;
}

.submit:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.mobile-note {
  display: none;
}

.complete-page {
  max-width: 560px;
  margin: 80px auto;
  padding: 40px 32px;
  text-align: center;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.complete-page h1 {
  margin: 0 0 12px;
  font-size: 26px;
}

.complete-page p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 28px;
}

.complete-page .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .page {
    padding: 28px 22px 80px;
  }

  .shell {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
  }

  .hero h1 {
    font-size: 30px;
  }
}

@media (max-width: 900px) {
  .page {
    padding: 20px 16px 100px;
  }

  .topbar {
    margin-bottom: 14px;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .hero {
    position: relative;
    top: auto;
    min-height: 0;
    border-radius: 25px;
    padding: 24px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .benefits {
    grid-template-columns: 1fr 1fr;
  }

  .help-card {
    display: none;
  }

  .form-card {
    border-radius: 25px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .mobile-note {
    display: block;
  }

  .section-title {
    align-items: flex-start;
  }

  .actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 12px 16px;
    box-shadow: 0 -10px 24px rgba(22, 32, 51, .08);
    z-index: 100;
  }

  .submit {
    width: 100%;
    min-width: 0;
  }

  form {
    padding-bottom: 90px;
  }
}

@media (max-width: 768px) {
  .phone-row {
    grid-template-columns: 1fr;
  }

  .sub-sns-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ghost {
    width: 100%;
  }

  .radio-list.gender {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .radio-list.marketing,
  .radio-list.privacy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .radio-card span {
    font-size: 13px;
    padding: 12px 14px;
  }
}

@media (min-width: 768px) {
  .brand-logo {
    height: 52px;
    max-width: min(320px, 42vw);
  }
}

@media (max-width: 560px) {
  .page {
    padding: 16px 12px 96px;
  }

  .brand-logo {
    height: 36px;
    max-width: min(220px, calc(100vw - 120px));
  }

  .lang {
    padding: 8px 11px;
  }

  .hero {
    padding: 22px 18px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-head {
    padding: 22px 18px 18px;
  }

  .form-head h2 {
    font-size: 22px;
  }

  form {
    padding: 4px 18px 90px;
  }

  .error-banner {
    margin: 12px 18px 0;
  }

  .section {
    padding: 22px 0;
  }

  .chip span {
    min-height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }

  .actions {
    padding: 11px 12px;
  }

  .submit {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .radio-list.gender {
    grid-template-columns: 1fr;
  }

  .radio-card span {
    min-height: 44px;
    padding: 12px 16px;
  }
}

@media (min-width: 1440px) {
  .page {
    max-width: 1240px;
  }

  .shell {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 28px;
  }
}

.country-select + .ts-wrapper {
  width: 100%;
  font: inherit;
  position: relative;
}

.country-select + .ts-wrapper .ts-control {
  position: relative;
  min-height: 48px;
  height: auto;
  padding: 10px 40px 10px 14px;
  border: 1px solid #D9E0EC;
  border-radius: 15px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  box-shadow: none;
  display: flex;
  align-items: center;
}

.country-select + .ts-wrapper.single .ts-control {
  background-image: none;
}

.country-select + .ts-wrapper .ts-control .item {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: keep-all;
}

.country-select + .ts-wrapper .ts-control input {
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  min-width: 0;
  height: 46px;
  padding: 0;
  margin: 0;
}

.country-select + .ts-wrapper.has-items .ts-control input {
  position: absolute;
  left: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.country-select + .ts-wrapper:not(.has-items) .ts-control input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.country-select + .ts-wrapper .ts-control::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid #68728A;
  border-bottom: 2px solid #68728A;
  transform: rotate(45deg);
  pointer-events: none;
}

.country-select + .ts-wrapper.focus .ts-control {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(36, 91, 255, .12);
}

.country-select + .ts-wrapper .ts-dropdown {
  border: 1px solid #D9E0EC;
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  z-index: 200;
  margin-top: 6px;
}

.country-select + .ts-wrapper .ts-dropdown .option {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  word-break: keep-all;
}

.country-select + .ts-wrapper .ts-dropdown .active {
  background: var(--soft);
  color: var(--primary);
}

