:root {
    --ink: #1a1a1a;
    --gold: #e2a800;
    --yellow: #ffe14a;
    --bar: #ffd400;
    --cream: #fffdf8;
    --field: #f4f4f4;
    --muted: #8a8a8a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    letter-spacing: -0.03em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

img { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

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

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 22px max(20px, calc((100% - 1100px) / 2)) 14px;
    background: #fff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand img { width: 168px; height: auto; }

.brand span {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.badge {
    margin: 0;
    padding: 7px 12px;
    border: 1px solid #3aaa4a;
    border-radius: 6px;
    color: #249336;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.badge span { font-weight: 600; }

.landing {
    width: min(460px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 36px;
    text-align: center;
}

.landing h1 {
    margin: 18px 0 0;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.25;
}

.sub {
    margin: 14px 0 0;
    color: #444;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.55;
}

.card {
    margin-top: 28px;
    padding: 26px 22px 18px;
    text-align: left;
    background: #fff;
    border: 2px solid #f3c431;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(180, 140, 20, 0.08);
}

.card h2 {
    margin: 0 0 18px;
    color: #e0a400;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.04em;
}

.card label,
.label {
    display: block;
    margin: 14px 0 6px;
    font-size: 14px;
    font-weight: 700;
}

.card > label > span,
.label > span { color: #e23b3b; }

.card input,
.card select,
.card textarea {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: var(--field);
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
}

.card input::placeholder,
.card textarea::placeholder { color: #b0b0b0; }

.card input:focus,
.card select:focus,
.card textarea:focus { box-shadow: inset 0 0 0 1.5px #f3c431; }

.card select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: var(--field);
}

.card textarea { min-height: 96px; resize: vertical; }

.tel {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.tel span { color: #888; text-align: center; }

.tel input { text-align: center; }

.check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.check input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.check i {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    border: 1.5px solid #d7d7d7;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.check i::after {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(0, -1px);
    opacity: 0;
}

.check input:checked + i { background: #f0b400; border-color: #f0b400; }

.check input:checked + i::after { opacity: 1; }

.check input:focus-visible + i { box-shadow: 0 0 0 3px rgba(240, 180, 0, 0.28); }

.agree-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
}

.agree span { font-size: 13px; color: #555; font-weight: 600; }

.view {
    border: 0;
    background: none;
    color: #9a9a9a;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
}

.error { margin: 10px 0 0; color: #d92d20; font-size: 13px; text-align: center; }

.done { margin: 10px 0 0; font-size: 13px; text-align: center; }

.submit {
    width: 100%;
    margin-top: 14px;
    border: 0;
    border-radius: 8px;
    background: var(--yellow);
    color: #1a1a1a;
    padding: 14px 12px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 0 #e6c200;
}

.submit:hover { background: #ffd400; }

.fine {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 74px;
    padding: 12px 20px;
    background: var(--bar);
}

.bar-call {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.bar-call svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

.bar p {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.legal {
    padding: 22px 20px 28px;
    color: #777;
    background: #fff;
    text-align: center;
}

.legal nav { display: flex; justify-content: center; gap: 16px; margin-bottom: 10px; }

.legal button {
    border: 0;
    background: none;
    color: #666;
    padding: 0;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.legal p { margin: 0 auto 6px; max-width: 760px; font-size: 12px; line-height: 1.7; }

.copy { color: #999; }

.up {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 21;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #3a3a3a;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.up svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.modal {
    width: min(480px, calc(100% - 32px));
    border: 0;
    border-radius: 16px;
    padding: 24px;
}

.modal::backdrop { background: rgba(0, 0, 0, 0.45); }

.modal h3 { margin: 0 0 12px; font-size: 18px; }

.modal p { margin: 0; color: #333; font-size: 15px; line-height: 1.6; }

.modal button {
    margin-top: 16px;
    border: 0;
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
}

@media (max-width: 760px) {
    .top { padding: 16px 14px 12px; }

    .brand span { font-size: 16px; }

    .brand img { width: 120px; }

    .badge { font-size: 11px; padding: 6px 8px; }
    .badge span { display: none; }

    .landing h1 { font-size: 32px; }

    .sub { font-size: 16px; }

    .card h2 { font-size: 22px; }

    .bar {
        flex-direction: column;
        gap: 2px;
        min-height: 64px;
        padding: 10px 12px;
    }

    .bar-call { font-size: 20px; }
    .bar-call svg { width: 18px; height: 18px; }
    .bar p { font-size: 14px; text-align: center; }

    .up { bottom: 108px; }
}
