* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
    background: #f6f1e8;
    color: #2e261d;
}

.wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 18px 70px;
}

.hero {
    padding: 52px 26px;
    border-radius: 28px;
    background: linear-gradient(135deg, #3b2c1f, #7b5b3a);
    color: #fff;
    text-align: center;
    box-shadow: 0 18px 45px rgba(60, 42, 24, 0.22);
}

.small-hero {
    padding: 34px 24px;
}

.badge {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    font-size: 14px;
    margin-bottom: 14px;
}

h1 {
    margin: 0;
    font-size: 38px;
    letter-spacing: -1px;
}

h2 {
    margin-top: 0;
    font-size: 24px;
}

.main-copy {
    font-size: 24px;
    line-height: 1.45;
    margin: 20px 0 8px;
    font-weight: 700;
}

.sub-copy {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.92;
}

.card {
    margin-top: 22px;
    padding: 28px;
    border-radius: 24px;
    background: #fffaf2;
    border: 1px solid rgba(80, 54, 28, 0.12);
    box-shadow: 0 14px 35px rgba(80, 54, 28, 0.08);
}

label {
    display: block;
    margin: 22px 0 8px;
    font-weight: 700;
}

input, select {
    width: 100%;
    padding: 15px 14px;
    border: 1px solid #d8c9b4;
    border-radius: 14px;
    font-size: 16px;
    background: #fff;
}

button {
    width: 100%;
    margin-top: 26px;
    padding: 17px 18px;
    border: 0;
    border-radius: 16px;
    background: #6f4e2f;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    background: #563b22;
}

.notice {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff1d6;
    color: #60401f;
    line-height: 1.6;
}

.price {
    font-size: 34px;
    font-weight: 900;
    color: #6f4e2f;
    margin: 12px 0;
}

.small {
    color: #6d6258;
    line-height: 1.7;
}

.result-card pre {
    white-space: pre-wrap;
    word-break: keep-all;
    font-family: inherit;
    font-size: 17px;
    line-height: 1.85;
}

.error {
    padding: 13px 14px;
    border-radius: 14px;
    background: #ffe1e1;
    color: #a52626;
    font-weight: 700;
    margin-bottom: 16px;
}

.back-link {
    display: inline-block;
    margin-top: 22px;
    color: #6f4e2f;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 640px) {
    h1 {
        font-size: 31px;
    }

    .main-copy {
        font-size: 21px;
    }

    .card {
        padding: 22px;
    }

    .hero {
        padding: 38px 22px;
    }
}

textarea {
    width: 100%;
    min-height: 140px;
    padding: 16px 14px;
    border: 1px solid #d8c9b4;
    border-radius: 14px;
    font-size: 18px;
    line-height: 1.6;
    resize: vertical;
    background: #fff;
}

.large-textarea {
    min-height: 150px;
    font-size: 19px;
}

/* 맛보기/상세 결과 본문 가독성 조정 */
.result-card pre {
    font-size: 21px !important;
    line-height: 1.55 !important;
    white-space: pre-line !important;
    word-break: keep-all !important;
    margin: 0 !important;
    color: #1f160f !important;
}

.result-card {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

@media (max-width: 640px) {
    .result-card pre {
        font-size: 19px !important;
        line-height: 1.55 !important;
    }
}
