:root {
    --bg: #fff8f3;
    --ink: #111;
    --muted: #6b665e;
    --accent: #ff761a;
    --line: rgba(17, 17, 17, 0.18);
    --max: 1200px;
    --pad: clamp(16px, 3.2vw, 40px);
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "SUIT", "Suit", -apple-system, "Noto Sans KR", sans-serif;
    overflow-x: clip;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* contact 페이지 전체 폰트 통일 */
body,
button,
input,
textarea,
select,
label,
legend {
    font-family: "SUIT", "Suit", -apple-system, "Noto Sans KR", sans-serif;
}

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

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

.wrap {
    width: min(90%, calc(100% - 32px));
    max-width: 900px;
    margin: 0 auto;
}

.contact-page {
    padding: clamp(100px, 12vw, 180px) 0 clamp(48px, 8vw, 80px);
}

.contact__kicker {
    margin: 0 0 10px;
    font-size: clamp(15px, 1.3vw, 22px);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.contact__title {
    margin: 0 0 clamp(44px, 7vw, 86px);
    font-size: clamp(44px, 6vw, 78px);
    line-height: 0.95;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 32px);
    width: 100%;
    min-width: 0;
}

.contact-form__field {
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    min-width: 0;
}

.contact-form__field legend {
    margin-bottom: 14px;
    font-size: clamp(20px, 2.6vw, 32px);
    font-weight: 400;
}

.contact-type {
    border: 1px solid #9aa6b2;
    border-radius: 12px;
    background: #fff;
    padding: clamp(18px, 2.2vw, 28px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 30px;
    width: 100%;
    min-width: 0;
}

.contact-type label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    font-size: clamp(20px, 1.5vw, 28px);
    font-weight: 400;
    line-height: 1.3;
    cursor: pointer;
}

.contact-type label span {
    min-width: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.contact-type input[type="radio"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--accent);
}

.contact-form__label {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
    font-size: clamp(20px, 2.6vw, 32px);
    font-weight: 400;
    line-height: 1;
}

.contact-form__label input,
.contact-form__label textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid #9aa6b2;
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
    font-size: clamp(16px, 1.3vw, 24px);
    color: var(--ink);
    outline: none;
    font-family: inherit;
}

.contact-form__label textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form__label input:focus,
.contact-form__label textarea:focus {
    border-color: var(--accent);
}

.contact-form__submit {
    margin: clamp(8px, 1.2vw, 14px) auto 0;
    border: 0;
    background: transparent;
    font-size: clamp(36px, 3vw, 52px);
    font-weight: 400;
    letter-spacing: -0.01em;
    cursor: pointer;
}

.contact-form__privacy {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: clamp(14px, 3.6vw, 22px) !important;
    line-height: 1.4;
}

.contact-form__privacy input {
    flex-shrink: 0;
    width: auto;
    margin: 0;
}

.contact-form__privacy span {
    min-width: 0;
    flex: 1 1 12rem;
}

.contact-notice {
    margin: 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255, 118, 26, 0.1);
    color: var(--ink);
    line-height: 1.6;
}

.contact-notice.is-error {
    background: rgba(198, 40, 40, 0.08);
    color: #c62828;
}

@media (max-width: 1024px) {
    .contact-type {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding-top: clamp(88px, 22vw, 120px);
    }

    .contact__title {
        margin-bottom: 36px;
        font-size: clamp(34px, 9vw, 52px);
    }

    .contact-form__field legend,
    .contact-form__label {
        font-size: clamp(18px, 4.8vw, 26px);
    }

    .contact-type {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .contact-type label {
        font-size: clamp(16px, 4.2vw, 22px);
    }

    .contact-form__label input,
    .contact-form__label textarea {
        padding: 12px 14px;
        font-size: 16px;
    }

    .contact-form__submit {
        font-size: clamp(28px, 8vw, 40px);
    }
}

@media (max-width: 480px) {
    .wrap {
        width: min(92%, calc(100% - 24px));
    }
}
