:root {
  color: var(--ds-ink);
  background: #f7f9fd;
  font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

/* display를 지정한 요소도 hidden이면 숨긴다 (접수 후 폼 숨김 등) */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: #f7f9fd;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--ds-line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(100% - 48px, 1180px);
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 760;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ds-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7482;
  font-size: 14px;
}

.header-status strong {
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--ds-tint);
  color: var(--ds-primary);
  font-size: 12px;
}

.intro {
  border-bottom: 1px solid var(--ds-line);
  background: linear-gradient(180deg, var(--ds-surface) 0%, #fff 100%);
}

.intro-inner {
  width: min(100% - 48px, 880px);
  margin: 0 auto;
  padding: 86px 0 64px;
}

.eyebrow {
  margin: 0;
  color: var(--ds-primary);
  font-size: 13px;
  font-weight: 780;
  letter-spacing:0;
}

.intro h1 {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 66px;
  font-weight: 800;
  line-height:112%;
  letter-spacing:0;
  word-break: keep-all;
}

.intro-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--ds-text);
  font-size: 18px;
  line-height:170%;
  word-break: keep-all;
}

.process {
  display: flex;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.process li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e1e6f0;
  border-radius: 10px;
  background: #fff;
  color: #6b7482;
  font-size: 14px;
  font-weight: 650;
}

.process span {
  color: #8a93a3;
  font-size: 12px;
}

.process .active {
  border-color: #b9cbff;
  color: var(--ds-primary);
  background: var(--ds-tint);
}

.process .active span {
  color: var(--ds-primary);
}

.form-section {
  width: min(100% - 48px, 880px);
  margin: 0 auto;
  padding: 64px 0 112px;
}

.intake-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e1e6f0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 60px rgb(11 18 32 / 7%);
}

.form-group {
  padding: 42px 46px 46px;
  border-bottom: 1px solid #e8ecf3;
}

.group-heading {
  display: flex;
  gap: 18px;
  margin-bottom: 30px;
}

.group-heading > span {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ds-tint);
  color: var(--ds-primary);
  font-size: 13px;
  font-weight: 800;
}

.group-heading h2 {
  margin: 1px 0 0;
  font-size: 23px;
  line-height:130%;
  letter-spacing:0;
}

.group-heading p {
  margin: 7px 0 0;
  color: #6b7482;
  font-size: 15px;
  line-height:160%;
  word-break: keep-all;
}

.field-grid {
  display: grid;
  gap: 18px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 22px;
}

.field-grid .field {
  margin-top: 0;
}

.field > span,
.choice-field legend {
  color: #273140;
  font-size: 15px;
  font-weight: 700;
}

.field em,
.consent em {
  color: var(--ds-primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.field i,
.choice-field i {
  color: #8a93a3;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--ds-input-line);
  border-radius: 11px;
  background: #fff;
  color: var(--ds-ink);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input,
.field select {
  height: 52px;
  padding: 0 15px;
}

.field textarea {
  min-height: 96px;
  padding: 14px 15px;
  line-height:160%;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgb(27 92 255 / 12%);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--ds-danger);
}

.field small {
  color: #8a93a3;
  font-size: 13px;
  line-height:150%;
}

.field-error {
  min-height: 0;
  color: var(--ds-danger) !important;
}

.field .file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
  pointer-events: none;
}

.file-drop {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed #b9c2d2;
  border-radius: 12px;
  background: #f9fafe;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.file-drop:hover {
  border-color: var(--ds-primary);
  background: var(--ds-surface);
}

.file-drop strong {
  color: var(--ds-primary);
  font-size: 15px;
}

.file-drop span {
  color: #8a93a3;
  font-size: 13px;
}

.file-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e6f0;
  border-radius: 10px;
  background: #f7f9fd;
}

.preview-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.preview-item span {
  display: block;
  padding: 9px;
  overflow: hidden;
  color: var(--ds-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.choice-field legend {
  margin-bottom: 10px;
}

.choice-field label {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e1e6f0;
  border-radius: 11px;
  cursor: pointer;
}

.choice-field input,
.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ds-primary);
  flex: 0 0 auto;
}

.choice-field label > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #6b7482;
  font-size: 14px;
  line-height:150%;
}

.choice-field strong {
  color: #1e2734;
  font-size: 15px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  color: var(--ds-muted);
  font-size: 14px;
  line-height:155%;
  cursor: pointer;
}

.consent-error {
  display: block;
  margin: 8px 0 0 28px;
}

.submit-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 46px;
  background: #f9fafe;
}

.submit-area > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.submit-area strong {
  font-size: 14px;
}

.submit-area span {
  color: #7a8494;
  font-size: 13px;
  line-height:150%;
}

.submit-button {
  min-width: 190px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  background: var(--ds-primary);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.submit-button:hover {
  background: var(--ds-hover);
}

.submit-button:disabled {
  cursor: wait;
  opacity:65%;
}

.submit-error {
  margin: 14px 46px 30px;
  padding: 14px 16px;
  border: 1px solid #d8a99e;
  border-radius: 8px;
  background: #fff5f2;
  color: #8e3021;
  font-size: 14px;
  line-height:150%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.file-drop:focus-within {
  outline: 3px solid rgb(27 92 255 / 28%);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .header-inner,
  .intro-inner,
  .form-section {
    width: min(100% - 36px, 880px);
  }

  .intro-inner {
    padding: 62px 0 48px;
  }

  .intro h1 {
    font-size: 54px;
  }

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

  .process li {
    justify-content: center;
    padding: 0 8px;
    font-size: 12px;
  }

  .form-section {
    padding: 38px 0 72px;
  }

  .form-group {
    padding: 32px 22px 36px;
  }

  .plan-card {
    margin-left: 0;
  }

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

  .submit-area {
    align-items: stretch;
    flex-direction: column;
    padding: 26px 22px;
  }

  .submit-button {
    width: 100%;
  }

  .submit-error {
    margin: 12px 22px 26px;
  }

  .request-result {
    padding: 32px 22px;
  }

  .more-details > summary {
    gap: 12px;
    padding: 28px 22px;
  }

  .more-index {
    display: none;
  }

  .more-text strong {
    font-size: 19px;
  }

  .more-body {
    padding: 0 22px 32px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .brand > span:last-child,
  .header-status > span {
    display: none;
  }

  .intro h1 br {
    display: none;
  }

  .file-preview {
    grid-template-columns: minmax(0, 1fr);
  }
}

.consent a {
  color: var(--ds-primary);
  text-decoration: underline;
}

/* 선택한 패키지 */
.plan-card {
  margin: 0 0 6px;
  padding: 16px 18px;
  border: 1px solid #d5e0ff;
  border-radius: 12px;
  background: var(--ds-tint);
}

.plan-card > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.plan-card strong {
  color: var(--ds-ink);
  font-size: 16px;
  font-weight: 800;
}

.plan-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ds-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}

.plan-card p {
  margin: 6px 0 0;
  color: var(--ds-muted);
  font-size: 14px;
  line-height: 150%;
  word-break: keep-all;
}

.plan-card .plan-upsell {
  color: var(--ds-primary);
  font-weight: 650;
}

/* 자세히 알려주기 (선택) */
.more-details {
  padding: 0;
}

.more-details > summary {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 34px 46px;
  cursor: pointer;
  list-style: none;
}

.more-details > summary::-webkit-details-marker {
  display: none;
}

.more-details > summary:hover {
  background: #fafbfe;
}

.more-index {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1f3f8;
  color: #6b7482;
  font-size: 13px;
  font-weight: 800;
}

.more-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
}

.more-text strong {
  margin-top: 3px;
  font-size: 21px;
  line-height: 130%;
}

.more-text i {
  margin-left: 4px;
  white-space: nowrap;
  color: #8a93a3;
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
}

.more-text small {
  color: #6b7482;
  font-size: 15px;
  line-height: 160%;
  word-break: keep-all;
}

.more-toggle {
  flex: 0 0 auto;
  min-width: 64px;
  margin-top: 4px;
  padding: 7px 12px;
  border: 1px solid #d5dbe7;
  border-radius: 999px;
  color: #3a4452;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.more-toggle::before {
  content: "펼치기";
}

.more-details[open] .more-toggle::before {
  content: "접기";
}

.more-body {
  padding: 0 46px 46px;
}

/* 해야 하는 일 선택 */
.goal-field {
  margin: 26px 0 0;
  padding: 0;
  border: 0;
}

.goal-field legend {
  margin-bottom: 12px;
  padding: 0;
  color: #273140;
  font-size: 15px;
  font-weight: 700;
  line-height: 150%;
}

.goal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.goal-options label {
  position: relative;
  cursor: pointer;
}

.goal-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.goal-options span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--ds-input-line);
  border-radius: 999px;
  background: #fff;
  color: #3a4452;
  font-size: 14px;
  font-weight: 650;
}

.goal-options input:checked + span {
  border-color: var(--ds-primary);
  background: var(--ds-tint);
  color: var(--ds-primary);
}

.goal-options input:focus-visible + span {
  outline: 3px solid rgb(27 92 255 / 28%);
  outline-offset: 2px;
}

.goal-detail {
  width: 100%;
  margin-top: 10px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--ds-input-line);
  border-radius: 11px;
  background: #fff;
  color: var(--ds-ink);
}

.consent-group .consent {
  margin-top: 0;
}

/* 접수 완료 */
.request-result {
  scroll-margin-top: 96px;
  padding: 46px;
  border: 1px solid #e1e6f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgb(11 18 32 / 7%);
}

.request-result:focus {
  outline: none;
}

.result-eyebrow {
  margin: 0;
  color: var(--ds-primary);
  font-size: 12px;
  font-weight: 800;
}

.request-result h2 {
  margin: 10px 0 0;
  font-size: 32px;
  line-height: 130%;
}

.result-lead {
  margin: 12px 0 0;
  color: var(--ds-text);
  font-size: 17px;
  line-height: 165%;
  word-break: keep-all;
}

.result-lead strong {
  color: var(--ds-ink);
}

.result-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.result-steps li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #edf0f6;
}

.result-steps li > span {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f3f8;
  color: #6b7482;
  font-size: 12px;
  font-weight: 800;
}

.result-steps li.done > span {
  background: var(--ds-primary);
  color: #fff;
}

.result-steps strong {
  display: block;
  font-size: 15px;
}

.result-steps small {
  display: block;
  margin-top: 3px;
  color: #6b7482;
  font-size: 14px;
  line-height: 150%;
}

.result-next {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f7f9fd;
  color: var(--ds-muted);
  font-size: 14px;
  line-height: 160%;
  word-break: keep-all;
}

.result-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  color: #7a8494;
  font-size: 13px;
  line-height: 150%;
  word-break: keep-all;
}

.result-meta strong {
  margin-left: 4px;
  color: var(--ds-ink);
  font-weight: 750;
}

.result-meta a {
  color: var(--ds-primary);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.result-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 48px;
  padding: 0 20px;
  border-radius: 11px;
  background: var(--ds-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.result-button:hover {
  background: var(--ds-hover);
}

.result-button.secondary {
  border: 1px solid #d5dbe7;
  background: #fff;
  color: var(--ds-ink);
}

.result-button.secondary:hover {
  border-color: var(--ds-ink);
  background: #fff;
}

/* 화면 이미지 또는 Figma 링크 첨부 */
.attach-field input[name="figmaUrl"] {
  margin-top: 4px;
}

/* 자동 등록 프로그램을 걸러내는 칸. 사람에게는 보이지 않는다. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
