:root {
    --navy: #21458f;
    --navy-deep: #173878;
    --ink: #151922;
    --muted: #646b78;
    --line: #dce1ea;
    --soft: #f5f7fb;
    --danger: #b42318;
}

* { box-sizing: border-box; }
html { background: #fff; }
body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f7f9fc 0, #fff 300px);
    font-family: Pretendard, "Malgun Gothic", sans-serif;
}
button, input, textarea, select { font: inherit; }

.inquiry-header {
    display: flex;
    width: min(1180px, calc(100% - 40px));
    min-height: 92px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--navy);
}
/* 흰 바탕 위 로고 잠금. 엠블럼은 배경 없는 남색 판을 쓴다. */
.inquiry-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
.inquiry-brand img { object-fit: contain; }
.inquiry-brand span { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.back-link { color: var(--navy); font-size: 14px; font-weight: 750; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.inquiry-layout {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(480px, 1.14fr);
    gap: 72px;
    width: min(1120px, calc(100% - 40px));
    margin: 70px auto 100px;
    align-items: start;
}
.inquiry-intro { position: sticky; top: 28px; }
.eyebrow { margin: 0 0 10px; color: var(--navy); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
h1 { margin: 0; color: var(--navy-deep); font-family: Georgia, "Nanum Myeongjo", serif; font-size: clamp(38px, 5vw, 58px); line-height: 1.15; }
.intro-copy { margin: 22px 0 32px; color: #4e5664; font-size: 17px; line-height: 1.8; word-break: keep-all; }
.spec-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.spec-grid article { padding: 19px 20px; background: #fff; }
.spec-grid span { color: var(--muted); font-size: 12px; font-weight: 750; }
.spec-grid strong { display: block; margin-top: 6px; color: var(--navy-deep); font-size: 18px; }
.spec-grid p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.promotion-rules { margin-top: 28px; padding-top: 26px; border-top: 2px solid var(--navy); }
.promotion-rules h2 { margin: 0; color: var(--navy-deep); font-size: 21px; }
.promotion-rules dl { display: grid; margin: 18px 0 0; border-top: 1px solid var(--line); }
.promotion-rules dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.promotion-rules dt { color: var(--navy-deep); font-size: 13px; font-weight: 800; }
.promotion-rules dd { margin: 0; color: #555e6d; font-size: 13px; line-height: 1.65; }
.template-note { margin-top: 24px; padding: 20px; background: #edf2fb; border-left: 3px solid var(--navy); }
.template-note h2 { margin: 0 0 8px; color: var(--navy-deep); font-size: 15px; }
.template-note p { margin: 0; color: #4e596b; font-size: 13px; line-height: 1.7; }

.inquiry-form-section { padding: 36px 38px 40px; background: #fff; border: 1px solid var(--line); box-shadow: 0 22px 58px rgba(25, 49, 96, .09); }
.section-heading { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; color: var(--navy-deep); font-size: 27px; }
.section-heading > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.section-heading span, label > span, .consent-row b { color: var(--danger); }
fieldset { margin: 0; padding: 28px 0; border: 0; border-bottom: 1px solid var(--line); }
legend { margin-bottom: 18px; color: var(--navy-deep); font-size: 16px; font-weight: 850; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label:not(.image-upload):not(.consent-row) { display: grid; gap: 8px; margin-top: 16px; color: #343a46; font-size: 13px; font-weight: 750; }
fieldset label:first-of-type { margin-top: 0; }
input, textarea, select {
    width: 100%;
    border: 1px solid #cfd5df;
    border-radius: 2px;
    padding: 12px 13px;
    color: var(--ink);
    background: #fff;
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; line-height: 1.65; }
input:focus, textarea:focus, select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(33, 69, 143, .11); }
.field-help { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.image-upload {
    display: grid;
    min-height: 170px;
    place-items: center;
    align-content: center;
    gap: 7px;
    color: var(--navy);
    background: var(--soft);
    border: 1px dashed #9ba8bf;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s ease, border-color .15s ease;
}
.image-upload:hover { background: #eef2f9; border-color: var(--navy); }
.image-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-plus { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 24px; font-weight: 300; }
.image-upload strong { font-size: 14px; }
.image-upload small { color: var(--muted); font-size: 12px; }
.image-preview { display: grid; grid-template-columns: 96px 1fr; gap: 16px; margin-top: 14px; padding: 14px; align-items: center; background: var(--soft); }
.image-preview img { width: 96px; height: 136px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.image-preview div { display: grid; gap: 6px; min-width: 0; }
.image-preview strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.image-preview span { color: var(--muted); font-size: 12px; }
.image-preview button { width: fit-content; padding: 0; color: var(--navy); background: none; border: 0; font-size: 12px; font-weight: 750; cursor: pointer; }
.banner-format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.banner-format-card { min-width: 0; padding: 14px; border: 1px solid var(--line); background: #fff; }
.banner-format-heading { display: grid; gap: 4px; margin-bottom: 10px; }
.banner-format-heading strong { color: var(--ink); font-size: 14px; }
.banner-format-heading strong span { color: var(--danger); }
.banner-format-heading small { color: var(--muted); font-size: 12px; }
.banner-format-card .image-upload { min-height: 170px; }
.banner-format-card .image-upload.is-mobile { min-height: 118px; }
.banner-format-card .image-preview { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 10px; }
.banner-format-card .image-preview img { width: 78px; height: 78px; }
.consent-row { display: flex; gap: 10px; margin: 24px 0 0; align-items: flex-start; color: #4e5664; font-size: 12px; line-height: 1.65; cursor: pointer; }
.consent-row input { width: 17px; height: 17px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--navy); }
.submit-status { min-height: 22px; margin: 18px 0 8px; color: var(--navy); font-size: 13px; font-weight: 700; }
.submit-status.error { color: var(--danger); }
.submit-button {
    width: 100%;
    min-height: 52px;
    color: #fff;
    background: var(--navy);
    border: 1px solid var(--navy);
    font-weight: 800;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}
.submit-button:hover { background: var(--navy-deep); }
.submit-button:active { transform: translateY(1px); }
.submit-button:disabled { opacity: .55; cursor: wait; }

@media (max-width: 820px) {
    .inquiry-header { width: min(100% - 28px, 680px); min-height: 76px; }
    .inquiry-brand img { width: 38px; height: 38px; }
    .back-link { font-size: 12px; }
    .inquiry-layout { display: block; width: min(100% - 28px, 680px); margin: 42px auto 70px; }
    .inquiry-intro { position: static; }
    .inquiry-form-section { margin-top: 34px; padding: 28px 20px 32px; }
}
@media (max-width: 520px) {
    .form-grid.two { grid-template-columns: 1fr; }
    .banner-format-grid { grid-template-columns: 1fr; }
    .inquiry-brand span { font-size: 16px; }
    .back-link { max-width: 92px; text-align: right; }
    .promotion-rules dl > div { grid-template-columns: 1fr; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
