@charset "utf-8";

/* modal */
.ws-modal-open,
.ws-modal-open body { overflow: hidden; }

.ws-modal-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; position: fixed; top: 0; left: 0; z-index: 1000; width: 100%; height: 100%; overflow: hidden; background: rgba(0,0,0,.7); opacity: 0; transition: opacity 0.25s ease;}
.ws-modal-wrap.ws-modal-visible { opacity: 1; }
/* 보이지 않는(열리기 전/닫히는 중/잔존) 팝업 배경은 클릭을 가로채지 않는다 */
.ws-modal-wrap:not(.ws-modal-visible) { pointer-events: none; }
.ws-modal-wrap.ws-modal-leave { opacity: 0; }

.ws-modal-outer {position:relative; flex:0 0 auto; width:100%; max-height:100%; padding:20px; overflow:auto; -ms-overflow-style:none;/* IE and Edge */ scrollbar-width:none;/* Firefox */}
.ws-modal-outer::webkit-scrollbar {display:none;}

.ws-modal-inner { position: relative; width: 100%; max-width: 1015px; margin: 0 auto; background: #fff; overflow: hidden; opacity: 0; transform: scale(0.85); transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s; padding: 48px; border-radius: 32px; padding-top: 100px; }
.ws-modal-wrap.ws-modal-visible .ws-modal-inner { opacity: 1; transform: scale(1); }
.ws-modal-wrap.ws-modal-leave .ws-modal-inner { opacity: 0; transform: scale(0.85); transition-delay: 0s; }
.ws-modal-close { display: inline-block; width: 23px; height: 23px; background: url(../images/common/modal-close.png) center no-repeat; background-size: contain; border: none; position: absolute; right: 50px; top: 35px; }

/* ESG 제보 */
#wsEsg .esg-report {width:min(800px, calc(100% - 32px)); max-width:800px; max-height:calc(100dvh - 48px); padding:0; margin:0 auto; border:0; border-radius:24px; background:#fff; color:#2c2c2c; overflow:auto;}
.esg-report-modal__panel {flex-shrink: 0; width: 100%; max-width: 800px; padding: var(--space-30) 0 var(--space-40); background: #fff; border-radius: 24px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16); overflow: visible;}
.esg-report-modal__head {display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); padding: 0 var(--space-40) var(--space-24); border-bottom: 1px solid #eee;}
.esg-report-modal__title {margin: 0; font-size: var(--font-size-24); font-weight: 600; line-height:1.6667em; letter-spacing:-0.02em; color: #2c2c2c;}
.esg-report-modal__close {flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; background: transparent; border: none; cursor: pointer;}
.esg-report-modal__close img {display: block; width: 20px; height: 20px;}
.esg-report-modal__close:focus-visible {outline: none; box-shadow: 0 0 0 3px rgba(242,128,51,.3); border-radius: 4px;}
.esg-report-modal__body {padding: var(--space-30) var(--space-40) 0;}
.esg-report-modal__form {display: flex; flex-direction: column; gap: var(--space-30);}
.esg-report-modal__fields {display: flex; flex-direction: column; gap: var(--space-16); width: 100%;}
.esg-report-modal__row-3 {display: flex; gap: var(--space-18); align-items: flex-start; width: 100%;}
.esg-report-modal__col {flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-16);}
.esg-report-modal__col--name {gap: var(--space-12);}
.esg-report-modal__name-head {display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-20) var(--space-16);}
.esg-report-modal__block {display: flex; flex-direction: column; gap: var(--space-12); width: 100%;}
.esg-report-modal__label {font-size: var(--font-size-16); font-weight: 600; line-height:1.25em; letter-spacing:-0.02em; color: #2c2c2c;}
.esg-report-modal__req {color: var(--color-primary);}
.esg-report-modal__radios {display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-16);}
.esg-report-modal__radio {display: inline-flex; align-items: center; gap: var(--space-6); cursor: pointer;}
.esg-report-modal__radio input {position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;}
.esg-report-modal__radio-ui {position: relative; flex-shrink: 0; width: 18px; height: 18px; border: 1px solid #ddd; border-radius: 50%; background: #fff; box-sizing: border-box;}
.esg-report-modal__radio input:checked + .esg-report-modal__radio-ui {border-color: var(--color-primary);}
.esg-report-modal__radio input:checked + .esg-report-modal__radio-ui::after {content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: calc(var(--space-4) * -1) 0 0 calc(var(--space-4) * -1); background: var(--color-primary); border-radius: 50%;}
.esg-report-modal__radio-text {font-size: var(--font-size-16); font-weight: 500; line-height:1.5em; letter-spacing:-0.03em; color: #676767;}
.esg-report-modal__input, .esg-report-modal__textarea {width: 100%; box-sizing: border-box; font-family: inherit; font-size: var(--font-size-16); font-weight: 400; line-height:1.5em; letter-spacing:-0.02em; color: #2c2c2c; background: #fff; border: 1px solid #eee; border-radius: 8px;}
.esg-report-modal__input {height: 56px; padding: 0 var(--space-20);}
.esg-report-modal__input::placeholder, .esg-report-modal__textarea::placeholder {color: #a8a8a8;}
.esg-report-modal__textarea {height: 140px; padding: var(--space-20); resize: vertical;}
.esg-report-modal__input:focus-visible, .esg-report-modal__textarea:focus-visible {outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(236, 121, 35, 0.2);}
.esg-report-modal__file {display: flex; gap: var(--space-6); align-items: stretch; width: 100%;}
.esg-report-modal__file .file-input {position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0);}
.esg-report-modal__file-btn {flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 var(--space-20); font-family: inherit; font-size: var(--font-size-16); font-weight: 600; line-height:1.5em; letter-spacing:-0.02em; color: #fff; background: #121212; border: 0; border-radius: 8px; cursor: pointer;}
.esg-report-modal__file-name {flex: 1 1 0; min-width: 0; display: flex; align-items: center; height: 56px; padding: 0 var(--space-20); font-size: var(--font-size-16); font-weight: 400; line-height:1.5em; letter-spacing:-0.02em; color: #a8a8a8; background: #fff; border: 1px solid #dfdfdf; border-radius: 8px; cursor: pointer;}
.esg-report-modal__file-name.is-filled {color: #2c2c2c;}
.esg-report-modal__captcha {display: flex; gap: var(--space-6); align-items: stretch; width: 100%;}
/* 보안문자 이미지는 150x50(3:1)로 생성된다(module/board/captcha.php). cover 로 130x56 에 채우면 좌우가 잘려 끝 글자가 안 보였다(2026-10-01 검수) → contain */
.esg-report-modal__captcha-img {flex-shrink: 0; display: block; width: 130px; height: 56px; object-fit: contain; background: #fff; border: 1px solid #dfdfdf; border-radius: 8px; box-sizing: border-box;}
.esg-report-modal__input--captcha {flex: 1 1 0; min-width: 0;}
.esg-report-modal__foot {display: flex; flex-direction: column; gap: var(--space-20); width: 100%;}
.esg-report-modal__check {display: inline-flex; align-items: center; gap: var(--space-8); cursor: pointer;}
.esg-report-modal__check input {position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0);}
.esg-report-modal__check-ui {flex-shrink: 0; width: 18px; height: 18px; border: 1px solid #ddd; border-radius: 0; background: #fff; box-sizing: border-box;}
.esg-report-modal__check input:checked + .esg-report-modal__check-ui {border-color: var(--color-primary); background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5L4.5 8.5L11 1.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 10px no-repeat;}
.esg-report-modal__check-text {font-size: var(--font-size-14); font-weight: 500; line-height:1.1429em; letter-spacing:-0.02em; color: #2c2c2c;}
.esg-report-modal__agree-link {color: #a8a8a8; text-decoration: underline; text-underline-offset: 2px;}
.esg-report-modal__agree-link:hover {color: #676767;}
.esg-report-modal__submit {width: 100%; padding: var(--space-16) var(--space-28); font-size: var(--font-size-20); font-weight: 600; line-height:1.7em; letter-spacing:-0.02em; color: #fff; background: var(--color-primary); border: none; border-radius: 999px; cursor: pointer; font-family: inherit; transition: filter 0.2s ease;}
.esg-report-modal__submit:hover {filter: brightness(1.05);}
.esg-report-modal__submit:focus-visible {outline: none; box-shadow: 0 0 0 3px rgba(242,128,51,.3);}
.esg-report-modal__agree-link {border:0; padding:0; background:transparent; font:inherit; cursor:pointer;}
.esg-report-modal__file-name {overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}
.esg-report-modal__radio input:focus-visible + span, .esg-report-modal__check input:focus-visible + span, .esg-report-modal__file .file-button:focus-visible {outline:2px solid var(--color-primary); outline-offset:2px;}

/* 반응형 */
@media (max-width: 1024px) {
    .ws-modal-inner { padding: 25px 15px; border-radius: 5px; }
    .ws-modal-close { width: 16px; height: 16px; right: 20px; top: 20px; }
}
@media (max-width: 900px) {
	.esg-report-modal__head, .esg-report-modal__body {padding-left: var(--space-20); padding-right: var(--space-20);}
	.esg-report-modal__panel {border-radius: 16px;}
	.esg-report-modal__row-3 {flex-direction: column; gap: var(--space-16);}
	.esg-report-modal__col {gap: var(--space-12); width:100%; flex-basis:auto;}
	#wsEsg .esg-report {border-radius:16px;}
}
@media (max-width: 640px) {

}