/* 의뢰 신청 화면 */
.order-page { padding: 40px 0 96px; }
.order-head { margin-bottom: 28px; }
.order-head h1 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.3rem); }
.order-head p { margin-top: 10px; color: var(--ink-2); max-width: 60ch; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 20px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.legend-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }

/* 상품 고르기 (라디오 카드) */
.choice-list { display: grid; gap: 10px; }
.choice { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease); }
.choice:hover { border-color: var(--ink-3); }
.choice input { margin: 4px 0 0; width: 16px; height: 16px; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice .title { font-weight: 700; }
.choice .desc { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.choice .amt { font-weight: 700; white-space: nowrap; }
.choice .tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 5px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 700; vertical-align: 2px; }

/* 부가 상품 */
.addon-rows { display: grid; gap: 0; }
.addon-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.addon-row:first-child { border-top: 0; padding-top: 4px; }
.addon-row .title { font-weight: 600; }
.addon-row .desc { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 18px; font-weight: 600; color: var(--ink-2); }
.stepper button:hover { background: var(--surface-2); color: var(--ink); }
.stepper button:disabled { color: var(--line-2); cursor: default; background: transparent; }
.stepper output { min-width: 44px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }

/* 테마 */
.theme-pick { display: grid; grid-template-columns: 1fr 220px; gap: 20px; align-items: start; }
.theme-preview { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); aspect-ratio: 1280 / 1077; }
.theme-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.theme-preview .empty { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 13.5px; color: var(--ink-3); padding: 16px; text-align: center; }

/* 입력 */
.field { display: grid; gap: 6px; margin-top: 16px; }
.field:first-of-type { margin-top: 0; }
.field label { font-weight: 600; font-size: 14.5px; }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field .req { color: var(--accent); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #7a8597; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36, 86, 200, 0.18); }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%235d6a7e'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.field.invalid .input, .field.invalid .textarea { border-color: var(--danger); }
.error { font-size: 13.5px; color: var(--danger); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14.5px; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; color: var(--ink-2); }
.notice .icon { color: var(--accent); margin-top: 3px; }

/* 합계 (오른쪽) */
.summary { position: sticky; top: calc(var(--nav-h) + 20px); }
.summary h2 { font-size: 17px; }
.summary-items { margin-top: 14px; display: grid; gap: 8px; font-size: 14.5px; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.summary-items li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.summary-items .empty { color: var(--ink-3); }
.summary-total { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.summary-total .label { font-weight: 600; }
.summary-total .amount { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.summary .btn { margin-top: 18px; }
.summary-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.form-error { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--danger-soft); color: var(--danger); font-size: 14px; }
.form-error:empty { display: none; }

/* 접수 뒤 안내 */
.result { max-width: 760px; }
.result-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.result h1 { margin-top: 14px; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); }
.result .lead { margin-top: 10px; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin-top: 8px; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; }
.kv dd.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.bank-box { margin-top: 20px; }
.bank-box h2 { font-size: 16px; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.bank-row:first-of-type { border-top: 0; }
.bank-row .k { color: var(--ink-3); font-size: 14px; }
.bank-row .v { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.bank-row .copy { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); font-size: 13px; }
.bank-row .copy:hover { border-color: var(--ink-3); }
.bank-pending { padding: 18px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); font-size: 14.5px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.result-actions .link { font-size: 14px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; }
.result-msg { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14.5px; color: var(--ink-2); }
.items-list { margin-top: 6px; display: grid; gap: 4px; font-size: 14.5px; }
.items-list li { display: flex; justify-content: space-between; gap: 12px; }
[hidden] { display: none !important; }

@media (max-width: 1024px) {
  .order-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 768px) {
  .order-page { padding: 24px 0 64px; }
  .card { padding: 20px 16px; }
  .choice { grid-template-columns: 22px 1fr; }
  .choice .amt { grid-column: 2; }
  .theme-pick { grid-template-columns: 1fr; }
  .theme-preview { max-width: 260px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .bank-row { flex-wrap: wrap; }
}

/* 승인 뒤 카카오톡 안내 */
.kakao { margin-top: 20px; padding: 24px; border-radius: var(--r-md); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.kakao h2 { font-size: 19px; }
.kakao p { margin-top: 8px; color: var(--ink-2); }
.kakao strong { color: var(--ink); }
.kakao .btn { margin-top: 16px; }
.kakao-url { margin-top: 10px; font-size: 14px; color: var(--ink-3); word-break: break-all; }

/* 환불 계좌 3칸 */
.grid-refund { display: grid; grid-template-columns: 1.1fr 1.2fr 0.9fr; gap: 12px 16px; }
.grid-refund .field { margin-top: 0; }
/* 허니팟: 사람은 못 본다 (CSS 로 숨김, 화면 낭독기에도 숨김) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 768px) { .grid-refund { grid-template-columns: 1fr; } }
