@charset "euc-kr";

/* 새로운 상담신청 팝업창 스타일 */
/* pub- 네임스페이스 사용으로 기존 스타일과 격리 */

/* 팝업 오버레이 */
.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-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.pub-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 팝업 바디 */
.pub-popup-body {
    padding: 30px;
}

/* 폼 스타일 */
.pub-consultation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.pub-form-input,
.pub-form-textarea {
    padding: 15px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

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

/* 주소 입력박스 스타일 */
.pub-form-input[readonly] {
	cursor: pointer;
	background-color: #ffffff !important;
}

.pub-form-input[readonly]:hover {
	border-color: #ff4200;
	background-color: #fff8f6 !important;
}

.pub-form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* 라디오 버튼 그룹 */
.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;
	cursor: pointer;
}

.pub-radio-text {
	font-size: 0.95rem;
	color: #333333;
	font-weight: 500;
}

/* 체크박스 그룹 */
.pub-checkbox-group {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 15px 18px;
	background: #f8f9fa;
	border-radius: 12px;
	border: 2px solid #e1e5e9;
}

.pub-form-checkbox {
	width: 20px;
	height: 20px;
	accent-color: #ff4200;
	cursor: pointer;
	flex: 0 0 auto;
	margin-top: 2px;
}

.pub-checkbox-label {
	font-size: 0.9rem;
	color: #555555;
	cursor: pointer;
	line-height: 1.5;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.pub-checkbox-label span {
	display: inline-block;
	line-height: 1.5;
	word-break: keep-all;
}

.pub-terms-link {
	color: #ff4200;
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 2px 8px;
	border: 1px solid #ff4200;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.pub-terms-link:hover {
	background: #ff4200;
	color: #ffffff;
}



/* 폼 노트 */
.pub-form-note {
	font-size: 0.85rem;
	color: #666666;
	margin-top: 5px;
	line-height: 1.4;
}

.pub-form-note.pub-required {
	color: #dc3545;
	font-weight: 600;
}

/* 개인정보 수집 동의 섹션 */
.pub-privacy-info {
	background: #f8f9fa;
	border: 2px solid #e1e5e9;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 15px;
}

.pub-privacy-item {
	margin-bottom: 12px;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #555555;
}

.pub-privacy-item:last-child {
	margin-bottom: 0;
}

.pub-privacy-item strong {
	color: #333333;
	font-weight: 600;
}

.pub-privacy-note {
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	border-radius: 8px;
	padding: 12px;
	margin-top: 15px;
	font-size: 0.9rem;
	color: #856404;
	font-weight: 600;
	text-align: center;
}

/* 제출 버튼 */
.pub-form-actions {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.pub-submit-btn {
    flex: 1;
    padding: 18px 30px;
    background: linear-gradient(135deg, #ff4200, #ff6b3d);
    color: #ffffff;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(255, 66, 0, 0.3);
}

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

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

.pub-cancel-btn {
    flex: 1;
    padding: 18px 30px;
    background: #6c757d;
    color: #ffffff;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.pub-cancel-btn:hover {
    transform: translateY(-2px);
    background: #5a6268;
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.4);
}

.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,
    .pub-form-textarea {
        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;
    }
}

@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,
    .pub-form-textarea {
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .pub-checkbox-group {
        padding: 12px 15px;
        border-radius: 8px;
    }
    
    .pub-submit-btn {
        padding: 14px 20px;
        border-radius: 10px;
    }
}

/* 애니메이션 효과 */
@keyframes pubPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pub-popup-overlay.show .pub-popup-container {
    animation: pubPopupSlideIn 0.4s ease-out;
}

/* 스크롤바 스타일링 */
.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: #ff4200;
    border-radius: 4px;
}

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