@charset "euc-kr";

/* ??濡??? ???댁??泥? ????李? ?ㅽ???? */
/* pub- ?ㅼ???ㅽ???댁?? ?ъ?⑹?쇰? 湲곗〈 ?ㅽ???쇨낵 寃⑸━ */

/* ???? ?ㅽ?? 以? ???? 怨??? 硫??? ?④? (紐⑤??? ?곗??) */
/* m54_2?? ???? ????: ?????? ???? 怨??? 硫??? ?④? */
body.popup-open .fixed-bottom-menu,
body.popup-open .footer-content,
body.popup-open #footer,
body.popup-open #b_copy { display: none !important; }

/* ???? ?ㅻ????? */
.pub-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pub-popup-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* ???? 而⑦???대?? */
.pub-popup-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.pub-popup-overlay.show .pub-popup-container {
    transform: scale(1);
}

/* ???? ?ㅻ?? */
.pub-popup-header {
    background: linear-gradient(135deg, #ff4200, #ff6b3d);
    color: #ffffff;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pub-popup-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}



/* ???? 諛??? */
.pub-popup-body {
    padding: 30px;
}

/* ?? ?ㅽ???? */
.pub-consultation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pub-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pub-form-group.nested {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pub-conditional-group {
    border: 1px dashed #f59e0b;
    border-radius: 12px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.06);
}

.pub-form-group.nested {
    margin-top: 0.4em;
}

.pub-help-text {
    margin: 0.4em 0 0;
    font-size: 0.85rem;
    color: #666;
}

.pub-form-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.pub-form-input {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* 필수 입력 미충족 시에도 배경 고정 */
.pub-form-input:invalid {
    background: #ffffff;
    box-shadow: none;
}

.pub-form-group.nested > label {
    display: block;
}

.pub-form-group.nested .pub-form-input {
    width: 100%;
}

.pub-form-input {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.pub-form-input:focus {
    outline: none;
    border-color: #ff4200;
    box-shadow: 0 0 0 3px rgba(255, 66, 0, 0.1);
}

.pub-form-input::placeholder {
    color: #999;
}

/* textarea ?ㅽ???? */
textarea.pub-form-input {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.5;
}

/* ?쇰???? 踰??? 洹몃９ */
.pub-radio-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 15px 18px;
	background: #f8f9fa;
	border-radius: 12px;
	border: 2px solid #e1e5e9;
}

.pub-radio-label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	padding: 8px 0;
}

.pub-form-radio {
    width: 18px;
    height: 18px;
    accent-color: #ff4200;
}

.pub-radio-text {
    font-size: 0.9rem;
    color: #333;
}

/* 泥댄?щ??? 洹몃９ */
.pub-checkbox-group {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 18px;
	background: #f8f9fa;
	border-radius: 12px;
	border: 2px solid #e1e5e9;
}

.pub-checkbox-label {
	font-size: 0.9rem;
	color: #555555;
}

.pub-form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #ff4200;
    margin-top: 2px;
    flex-shrink: 0;
}

.pub-terms-link {
    color: #ff4200;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.pub-terms-link:hover {
    text-decoration: underline;
}

.pub-form-note {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

/* ?? ?≪?? 踰??? */
.pub-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.pub-submit-btn {
    flex: 1;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ff4200, #ff6b3d);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 66, 0, 0.3);
}

.pub-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 66, 0, 0.4);
}

.pub-submit-btn:active {
    transform: translateY(0);
}

.pub-cancel-btn {
    flex: 1;
    padding: 14px 24px;
    background: #6c757d;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pub-cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.pub-cancel-btn:active {
    transform: translateY(0);
}

/* 紐⑤??? 諛????? */
@media screen and (max-width: 768px) {
    .pub-popup-container {
        width: 95%;
        margin: 20px;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .pub-popup-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .pub-popup-header {
        padding: 20px 25px;
    }
    
    .pub-popup-title {
        font-size: 1.3rem;
    }
    
    .pub-popup-body {
        padding: 25px;
    }
    
    .pub-form-input,
    textarea.pub-form-input {
        padding: 12px 15px;
        font-size: 16px; /* 紐⑤??쇱???? ???? ???? 諛⑹? */
    }
    
    .pub-submit-btn,
    .pub-cancel-btn {
        padding: 16px 25px;
        font-size: 1rem;
    }
    
    .pub-form-actions {
        flex-direction: row;
        gap: 15px;
    }
    
    .pub-consultation-form {
        gap: 20px;
    }
    
    .pub-form-group {
        gap: 8px;
    }
}

/* ?곗?ㅽ?ы?? 理????? */
@media (min-width: 1024px) {
    .pub-popup-container {
        max-width: 600px;
    }
    
    .pub-popup-title {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 480px) {
    .pub-popup-container {
        width: 98%;
        margin: 10px;
        border-radius: 15px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .pub-popup-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .pub-popup-header {
        padding: 18px 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .pub-popup-title {
        font-size: 1.2rem;
    }
    
    .pub-popup-body {
        padding: 20px;
    }
    
    .pub-form-group {
        gap: 6px;
    }
    
    .pub-form-input,
    textarea.pub-form-input {
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .pub-checkbox-group {
        padding: 12px 15px;
        border-radius: 8px;
    }
    
    .pub-consultation-form {
        gap: 20px;
    }
    
    .pub-submit-btn {
        padding: 14px 20px;
        border-radius: 10px;
    }
}

/* ??洹쇱?? 媛??? */
.pub-popup-overlay:focus {
    outline: none;
}

.pub-popup-overlay[aria-modal="true"] {
    outline: 2px solid #ff4200;
    outline-offset: 2px;
}

/* ????硫??댁?? */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pub-popup-overlay.show .pub-popup-container {
    animation: fadeIn 0.3s ease-out;
}

/* ???쇱꺼遺? ?ㅽ???? */
.pub-file-upload-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pub-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pub-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #ffb347;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ee 0%, #fffaf5 100%);
    box-shadow: 0 6px 16px rgba(255, 132, 0, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.pub-file-label:hover {
    border-color: #ff7a1a;
    background: #fff2e6;
    box-shadow: 0 8px 18px rgba(255, 122, 26, 0.16);
}

.pub-file-icon {
    width: 20px;
    height: 20px;
    position: relative;
    display: inline-block;
}

.pub-file-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff7a1a, #ff4200);
    border-radius: 4px;
}

.pub-file-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 12px;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 0 0 1px #d35400;
}

.pub-file-text {
    color: #d35400;
    font-size: 0.95rem;
    font-weight: 700;
}

.pub-file-name {
    min-height: 20px;
    padding: 4px 0;
}

.pub-file-selected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #28a745;
    font-size: 0.85rem;
    font-weight: 500;
}

.pub-file-selected::before {
    content: '';
    color: #28a745;
    font-weight: bold;
}

/* 紐⑤??? 諛????? ???쇱꺼遺? */
@media (max-width: 768px) {
    .pub-file-label {
        padding: 10px 14px;
        min-height: 44px;
    }
    
    .pub-file-icon {
        width: 18px;
        height: 18px;
    }
    
    .pub-file-text {
        font-size: 0.85rem;
    }
    
    .pub-file-selected {
        font-size: 0.8rem;
    }
}

/* ?ㅽ?щ·諛? ?ㅽ???쇰? */
.pub-popup-container::-webkit-scrollbar {
    width: 8px;
}

.pub-popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.pub-popup-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.pub-popup-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
