/* Contact 폼 보조 스타일 (기존 템플릿 CSS 위에 추가되는 최소 스타일) */

/* 허니팟: 사람에게는 보이지 않고 화면 밖에 위치 (display:none은 봇이 구분하기 쉬워 사용하지 않음) */
.hp-field {
    position: absolute !important;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 스크린리더 전용 라벨 (화면에는 기존 placeholder 디자인 유지) */
.sr-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-form .char-count {
    margin-top: 4px;
    font-size: 12px;
    text-align: right;
    color: #ffffff;
}

.contact-form .privacy-note {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #ffffff;
}

.contact-form .consent-row {
    margin-bottom: 14px;
    font-size: 14px;
    color: #ffffff;
}

.contact-form noscript p {
    color: #ffffff;
}

.contact-form .consent-row label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.contact-form .consent-row input[type="checkbox"] {
    flex: none;
    margin-top: 4px;
}

.contact-form .turnstile-box {
    min-height: 65px;
    margin-bottom: 14px;
}

.contact-form #contact-status {
    margin: 14px 0 0;
    text-align: left;
}

.contact-form input[type="submit"][disabled] {
    cursor: not-allowed;
    opacity: 0.65;
}

/* ===== 연락처 목록 (Tel / Email / Address) =====
   템플릿의 .lbl 이 max-width:55px 라서 "Address:" 가 칸을 넘쳐 글자에 붙던 문제를 고치고,
   긴 주소가 줄바꿈될 때 둘째 줄이 내용 시작 위치에 맞도록 flex 로 배치합니다.
   (선택자를 템플릿과 같은 깊이로 써서 우선 적용되게 함) */
.contact-section .contact-details ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.contact-section .contact-details ul li .icn {
    flex: none;
}

.contact-section .contact-details ul li .lbl {
    flex: none;
    width: 80px;
    max-width: none;
    margin-right: 10px;
}

.contact-section .contact-details ul li a,
.contact-section .contact-details ul li .val {
    flex: 1 1 0;
    min-width: 0;             /* 긴 글자가 칸을 밀어 잘리는 것을 방지 */
    word-break: keep-all;     /* 한글은 단어 단위로 줄바꿈 */
    overflow-wrap: anywhere;  /* 너무 긴 단어(이메일 등)는 강제 줄바꿈 */
}

/* 좁은 화면: 아이콘+라벨 다음 줄에 내용을 전체 폭으로 표시 */
@media (max-width: 480px) {
    .contact-section .contact-details ul li {
        flex-wrap: wrap;
    }
    .contact-section .contact-details ul li a,
    .contact-section .contact-details ul li .val {
        flex-basis: 100%;
        padding-left: 40px;   /* 아이콘(30px)+여백(10px) 만큼 들여써서 정렬 */
    }
}
