/* 수정: 공통 테마와 푸터 디자인에 맞춘 반응형 문의 페이지를 구성한다. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    background: var(--theme-background);
    color: var(--theme-normal-text);
    font-family: var(--mmz-ui-font);
    /* 수정: 문의 화면의 기본 글자를 브라우저 기본 가독성 크기로 명시한다. */
    font-size: 16px;
}

.contact-page {
    width: min(820px, calc(100% - 40px));
    min-height: 60vh;
    margin: 48px auto 80px;
}

.contact-intro {
    margin-bottom: 26px;
}

.contact-kicker {
    color: var(--theme-mmz);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
}

.contact-intro h1 {
    margin: 8px 0 10px;
    color: var(--theme-title-text);
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.18;
}

.contact-intro p {
    max-width: 680px;
    margin: 0;
    color: var(--theme-normal-desc-text);
    /* 수정: 문의 방법을 설명하는 첫 안내 문구를 쉽게 읽히도록 키운다. */
    font-size: 17px;
    line-height: 1.7;
}

.contact-result {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 18px 20px;
    background: var(--theme-panel-background);
}

.contact-result > span {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--theme-green);
    color: #fff;
    font-weight: 800;
}

.contact-result h2 {
    margin: 1px 0 5px;
    color: var(--theme-title-text);
    font-size: 17px;
}

.contact-result p,
.contact-result ul {
    margin: 0;
    color: var(--theme-normal-desc-text);
    font-size: 15px;
    line-height: 1.6;
}

.contact-result-error {
    border-color: var(--theme-danger-text);
}

.contact-result-error ul {
    padding-left: 20px;
}

.contact-panel {
    overflow: hidden;
    border: 1px solid var(--theme-panel-border);
    border-radius: 14px;
    background: var(--theme-panel-background);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .06);
}

.contact-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--theme-panel-border);
    padding: 22px 26px;
}

.contact-panel-heading h2 {
    margin: 0 0 4px;
    color: var(--theme-title-text);
    font-size: 20px;
}

.contact-panel-heading p {
    margin: 0;
    color: var(--theme-normal-desc-text);
    font-size: 14px;
}

.contact-panel-heading p span,
.contact-field label span {
    color: var(--theme-danger-text);
}

.contact-response-note {
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--theme-surface-soft);
    color: var(--theme-blue);
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 26px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.contact-field label,
.contact-label-row label {
    color: var(--theme-title-text);
    font-size: 16px;
    font-weight: 700;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-background);
    color: var(--theme-normal-text);
    padding: 11px 13px;
    font: inherit;
    font-size: 16px;
}

.contact-field textarea {
    min-height: 230px;
    line-height: 1.65;
    resize: vertical;
}

.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible,
.contact-consent input:focus-visible,
.contact-actions a:focus-visible,
.contact-actions button:focus-visible {
    outline: 3px solid var(--theme-blue);
    outline-offset: 2px;
}

.contact-field small {
    color: var(--theme-normal-desc-text);
    /* 수정: 입력란 아래 안내와 주의 문구를 모바일에서도 읽기 쉬운 크기로 올린다. */
    font-size: 14px;
    line-height: 1.5;
}

.contact-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.contact-label-row output {
    color: var(--theme-normal-desc-text);
    font-size: 13px;
}

.contact-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid var(--theme-border);
    border-radius: 9px;
    padding: 15px;
    cursor: pointer;
}

.contact-consent input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--theme-mmz);
}

.contact-consent span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.contact-consent strong {
    color: var(--theme-title-text);
    font-size: 15px;
    line-height: 1.5;
}

.contact-consent em {
    color: var(--theme-danger-text);
    font-size: 13px;
    font-style: normal;
}

.contact-consent small {
    color: var(--theme-normal-desc-text);
    font-size: 14px;
    line-height: 1.5;
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 2px;
}

.contact-actions a,
.contact-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 48px;
    border-radius: 7px;
    padding: 0 18px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.contact-actions a {
    border: 1px solid var(--theme-border);
    color: var(--theme-normal-text);
    background: transparent;
}

.contact-actions button {
    border: 1px solid var(--theme-mmz);
    background: var(--theme-mmz);
    color: #ffffff;
    cursor: pointer;
}

.contact-actions button small {
    display: none;
    color: inherit;
    font-size: inherit;
}

.contact-actions button.is-sending span {
    display: none;
}

.contact-actions button.is-sending small {
    display: inline;
}

.contact-actions button:disabled {
    cursor: wait;
    opacity: .75;
}

@media (max-width: 640px) {
    .contact-page {
        width: 100%;
        margin: 28px auto 58px;
        padding: 0 12px;
    }

    .contact-intro {
        padding: 0 4px;
    }

    .contact-intro p {
        /* 수정: 작은 화면에서도 안내 문구를 축소하지 않고 본문 크기를 유지한다. */
        font-size: 16px;
    }

    .contact-panel-heading,
    .contact-form {
        padding: 20px 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        display: grid;
        grid-template-columns: 1fr 1.35fr;
    }

    .contact-actions a,
    .contact-actions button {
        width: 100%;
        min-width: 0;
    }
}
