* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --text: #111;
    --line: #111;
    --button: #cfcfcf;
    --button-hover: #b9b9b9;
    --error: #d33a2c;
    --accent: #2b8fc9;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
    color: var(--text);
    -webkit-text-size-adjust: 100%;
}

body { background: #e9e9ea; }

.page {
    max-width: 595px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { display: block; width: 100%; height: auto; }

/* 인사말 */
.intro {
    padding: 16px 30px 0;
    font-size: 15px;
    line-height: 1.6;
    word-break: keep-all;
}

/* 폼 */
form { padding: 28px 30px 0; flex: 1; }

form h2 { font-size: 18px; font-weight: 700; margin-bottom: 22px; }

.field { margin-bottom: 24px; }

.field-row { display: flex; align-items: center; gap: 12px; }

.field-row label {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 700;
    min-width: 80px;
}

.field-row input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid var(--line);
    border-radius: 0;
    font: inherit;
    font-size: 16px;
    background: #fff;
}

.question {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    margin: 8px 0 8px;
    word-break: keep-all;
}

.select { position: relative; }

.select select {
    width: 100%;
    height: 36px;
    padding: 0 40px 0 12px;
    border: 1.5px solid var(--line);
    border-radius: 0;
    font: inherit;
    font-size: 15px;
    background: #fff;
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -6px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 13px solid var(--line);
    pointer-events: none;
}

input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.has-error input, .has-error select { border-color: var(--error); }

.error { color: var(--error); font-size: 13px; margin-top: 6px; }
.field-row + .error { padding-left: 92px; }
.error.center { text-align: center; margin-bottom: 12px; }

.submit {
    display: block;
    width: 240px;
    max-width: 100%;
    height: 50px;
    margin: 36px auto 30px;
    border: 0;
    border-radius: 25px;
    background: var(--button);
    color: var(--text);
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.submit:hover { background: var(--button-hover); }

@media (max-width: 420px) {
    .intro { padding: 14px 18px 0; font-size: 14px; }
    form { padding: 24px 18px 0; }
    .field-row { flex-direction: column; align-items: stretch; gap: 6px; }
    .field-row label { min-width: 0; }
    .field-row input { flex: none; }
    .field-row + .error { padding-left: 0; }
    .question { font-size: 14px; }
}

/* 안내/완료 */
.form-guide { font-size: 14px; margin: -12px 0 22px; color: #444; }

.notice {
    margin: 28px 30px 40px;
    padding: 28px 20px;
    border: 1.5px solid var(--line);
    text-align: center;
    word-break: keep-all;
}
.notice h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.notice p { font-size: 15px; line-height: 1.6; }

.submit:disabled { opacity: .6; cursor: default; }

@media (max-width: 420px) {
    .notice { margin: 24px 18px 32px; }
}
