:root {
    color-scheme: light;
    --navy: #163f63;
    --navy-deep: #0d2d49;
    --blue: #1e6eaa;
    --orange: #ef7f3d;
    --orange-soft: #fff0e6;
    --ink: #172434;
    --muted: #647386;
    --line: #dce4eb;
    --surface: #ffffff;
    --canvas: #eef3f7;
    --danger: #c53c3c;
    --success: #1f7a56;
    --shadow: 0 24px 70px rgba(22, 63, 99, .16);
}

* { box-sizing: border-box; }

html { font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 15%, rgba(30, 110, 170, .13), transparent 30rem),
        linear-gradient(135deg, #f4f8fb 0%, var(--canvas) 100%);
}

button, input { font: inherit; }

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto;
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(520px, 1.22fr);
    background: var(--surface);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.brand-panel {
    position: relative;
    padding: clamp(40px, 6vw, 76px);
    color: #fff;
    background:
        linear-gradient(165deg, rgba(13, 45, 73, .1), rgba(13, 45, 73, .76)),
        linear-gradient(145deg, var(--blue), var(--navy-deep));
}

.brand-panel::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -110px;
    bottom: -70px;
    background: url("sungwon-mark.png") center / contain no-repeat;
    opacity: .1;
}

/* 로고는 홈으로 가는 링크다. 클릭 영역이 이미지에 정확히 맞도록 inline-block. */
.brand-home {
    display: inline-block;
    line-height: 0;
    border-radius: 10px;
    transition: opacity .15s ease, transform .15s ease;
}
.brand-home:hover { opacity: .82; transform: translateY(-1px); }
.brand-home:focus-visible { outline: 2px solid rgba(255,255,255,.85); outline-offset: 4px; }

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 38px;
}

.brand-hook {
    margin: 0;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .28);
    line-height: 1.35;
}
.brand-hook strong, .brand-hook span { display: block; }
.brand-hook strong { color: #fff; font-size: 15px; letter-spacing: -.02em; }
.brand-hook span { margin-top: 3px; color: rgba(255, 255, 255, .66); font-size: 12px; }

.brand-links {
    margin: 26px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .55);
}
.brand-links a {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    padding-bottom: 1px;
}
.brand-links a:hover { color: #fff; border-bottom-color: #fff; }
.brand-links span { margin: 0 8px; }

.brand-mark {
    width: 72px;
    height: 72px;
    display: block;
    margin-bottom: 0;
    object-fit: contain;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.brand-panel h1 {
    margin: 0;
    font-size: clamp(36px, 4vw, 55px);
    line-height: 1.12;
    letter-spacing: -.045em;
}

.brand-copy {
    max-width: 32ch;
    margin: 26px 0 44px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.75;
}

.brand-points { margin: 0; }
.brand-points div { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.brand-points dt { margin-bottom: 5px; color: rgba(255, 255, 255, .62); font-size: 12px; font-weight: 700; }
.brand-points dd { margin: 0; font-weight: 750; }

.form-panel { padding: clamp(30px, 5vw, 64px); }

.form-heading { margin-bottom: 34px; }
.form-heading h2 { margin: 12px 0 8px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; }
.form-heading p, .section-title-row p { margin: 0; color: var(--muted); font-size: 14px; }

.request-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}
.request-benefits li {
    padding: 7px 10px;
    color: var(--navy);
    background: #f0f6fa;
    border: 1px solid #dbe8f0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}
.request-benefits li::before { content: "✓"; margin-right: 5px; color: var(--blue); }

.step-badge, .recommend-pill, .required-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}
.step-badge { padding: 7px 11px; color: var(--blue); background: #e8f3fb; }
.recommend-pill { padding: 4px 8px; color: #a54b17; background: var(--orange-soft); vertical-align: 2px; }
.required-label { margin-left: 6px; padding: 2px 7px; color: #a54b17; background: var(--orange-soft); }
.required-dot { color: var(--orange); font-weight: 900; }

.field-group { margin-bottom: 22px; }
.field-group > label, fieldset > legend { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 800; }

input[type="text"], input[type="tel"], input[type="number"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 110, 170, .12); }
input[aria-invalid="true"] { border-color: var(--danger); }
.field-help, .quality-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.mode-picker { margin: 0 0 30px; padding: 0; border: 0; }
.mode-card { display: block; position: relative; margin-top: 10px; cursor: pointer; }
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card__body {
    display: block;
    padding: 17px 18px 17px 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.mode-card__body::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 17px;
    height: 17px;
    border: 2px solid #aebbc7;
    border-radius: 50%;
    transform: translateY(-50%);
}
.mode-card input:checked + .mode-card__body { border-color: var(--blue); background: #f1f8fd; box-shadow: inset 0 0 0 1px var(--blue); }
.mode-card input:checked + .mode-card__body::before { border: 5px solid var(--blue); }
.mode-card strong { display: flex; align-items: center; gap: 8px; }
.mode-card strong em { padding: 3px 7px; color: #a54b17; background: var(--orange-soft); border-radius: 999px; font-size: 11px; font-style: normal; }
.mode-card small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.55; }

.method-section { margin: 30px 0; padding: 24px; background: #f7fafc; border: 1px solid #e2eaf0; border-radius: 18px; }
.section-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-title-row h3 { margin: 0 0 6px; font-size: 19px; }
.photo-count { flex: 0 0 auto; padding: 6px 10px; color: var(--blue); background: #e7f2fa; border-radius: 999px; font-size: 12px; font-weight: 800; }

.upload-box {
    min-height: 156px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px;
    text-align: center;
    border: 2px dashed #b8cad8;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.upload-box:hover, .upload-box:focus-within { border-color: var(--blue); background: #f4faff; }
.upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 4px; color: #fff; background: var(--blue); border-radius: 50%; font-size: 24px; }
.upload-box small { color: var(--muted); }

.photo-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.preview-card { position: relative; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.preview-card img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; background: #e9eef2; }
.preview-meta { padding: 8px 9px 10px; }
.preview-meta strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.preview-meta small { color: var(--muted); font-size: 10px; }
.remove-photo { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; color: #fff; background: rgba(13, 29, 43, .76); border: 0; border-radius: 50%; cursor: pointer; }

.material-card { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.material-card summary { padding: 16px 18px; font-weight: 850; cursor: pointer; }
.material-card[open] summary { border-bottom: 1px solid var(--line); }
.material-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; padding: 18px; }
.material-grid .field-group { margin-bottom: 15px; }
.span-2 { grid-column: span 3; }

.consent-row { margin: 30px 0 20px; }
.consent-row label { display: flex; align-items: flex-start; gap: 10px; color: #465669; font-size: 13px; line-height: 1.6; cursor: pointer; }
.consent-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); }

.field-error, .form-message { min-height: 20px; margin: 8px 0 0; color: var(--danger); font-size: 13px; font-weight: 700; }
.form-message { margin: 0 0 10px; text-align: center; }

.submit-button {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    border: 0;
    border-radius: 15px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(22, 63, 99, .2);
}
.submit-button:hover { filter: brightness(1.05); }
.submit-button:disabled { cursor: wait; opacity: .72; }
.submit-note { margin: 12px auto 0; max-width: 48ch; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.submit-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.submit-button.is-loading .submit-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-panel { min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.success-panel[hidden] { display: none; }
.success-icon { width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: 24px; color: #fff; background: var(--success); border-radius: 50%; font-size: 38px; }
.success-panel .eyebrow { color: var(--success); }
.success-panel h2 { margin: 4px 0 12px; font-size: 30px; letter-spacing: -.04em; }
.success-panel > p:not(.eyebrow):not(.quote-id) { max-width: 34ch; color: var(--muted); line-height: 1.7; }
.quote-id { margin: 22px 0; padding: 10px 14px; color: var(--navy); background: #edf4f8; border-radius: 10px; font-family: ui-monospace, monospace; font-size: 13px; }
.home-link { color: var(--blue); font-weight: 800; }

.bot-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

@media (max-width: 860px) {
    .page-shell { width: min(720px, calc(100% - 24px)); grid-template-columns: 1fr; margin: 12px auto; border-radius: 22px; }
    .brand-panel { padding: 34px 30px; }
    .brand-lockup { margin-bottom: 24px; }
    .brand-panel h1 { font-size: 36px; }
    .brand-copy { margin: 18px 0 24px; }
    .brand-points { display: none; }
    .form-panel { padding: 34px 28px 44px; }
}

@media (max-width: 560px) {
    .page-shell { width: 100%; margin: 0; border-radius: 0; }
    .brand-panel { padding: 28px 22px; }
    .brand-lockup { gap: 12px; margin-bottom: 18px; }
    .brand-mark { width: 58px; height: 58px; }
    .brand-hook { padding-left: 12px; }
    .brand-hook strong { font-size: 13px; }
    .brand-hook span { font-size: 11px; }
    .brand-panel h1 { font-size: 31px; }
    .brand-copy { font-size: 14px; }
    .form-panel { padding: 30px 20px 42px; }
    .method-section { padding: 18px 14px; }
    .photo-preview { grid-template-columns: repeat(2, 1fr); }
    .material-grid { grid-template-columns: 1fr 1fr; gap: 0 10px; padding: 15px; }
    .span-2 { grid-column: span 2; }
    .section-title-row { gap: 10px; }
}
