/* Public Pages 공통 스타일 - 1446.kr */

/* Public 페이지 전용 스타일 */

.public-container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

/* 헤더 스타일 */
.public-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #1e40af;
    padding-bottom: 20px;
}

.public-title {
    color: #1e40af;
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 600;
}

.public-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* 섹션 스타일 */
.privacy-section,
.about-section,
.contact-section,
.sitemap-section {
    margin-bottom: 30px;
}

/* 텍스트 컨텐츠 */
.about-content {
    line-height: 1.8;
}

.about-content h2 {
    color: #2d3e50;
    border-left: 4px solid #1e40af;
    padding-left: 15px;
    margin-bottom: 20px;
}

.about-content h3 {
    color: #374151;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* 리스트 스타일 */
.service-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1e40af;
    list-style: none; /* 기본 도트 제거 */
    margin: 0;
}

.service-list li {
    margin-bottom: 10px;
    padding: 5px 0;
}

/* 그리드 레이아웃 */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.value-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.value-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.value-item h4 {
    color: #1e40af;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* 정보 박스 */
.contact-info {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.contact-info a {
    color: #1e40af;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* 프리포맷 텍스트 (약관, 개인정보처리방침용) */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-family: 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: #374151;
    overflow-x: auto;
}

/* 사이트맵 스타일 */
.sitemap-list {
    list-style: none;
    padding: 0;
}

.sitemap-list li {
    margin-bottom: 8px;
    padding: 8px 0;
    /* border-bottom: 1px solid #e5e7eb; */
}

.sitemap-list li:last-child {
    border-bottom: none;
}

.sitemap-list a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
}

.sitemap-list a:hover {
    text-decoration: underline;
}

.search-engine-info {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 6px;
    margin-top: 10px;
}

.search-engine-info p {
    margin-bottom: 10px;
}

.search-engine-info a {
    color: #1e40af;
    text-decoration: none;
}

.search-engine-info a:hover {
    text-decoration: underline;
}

/* 문의 폼 스타일 */
.contact-message {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
}

.contact-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form-wrapper {
    width: 100%;
}

.contact-form {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 25px;
}

/* 폼 행 레이아웃 (2열) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3e50;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    background-color: white;
}

/* 카테고리 설명 스타일 */
.category-description {
	margin-top: 10px;
	padding: 12px 15px;
	background: #f8f9fa;
	border-radius: 6px;
	border-left: 4px solid #1e40af;
}

.category-description p {
	margin: 0;
	color: #374151;
	font-size: 14px;
	line-height: 1.5;
}

/* 서비스 가이드 스타일 */
.service-guide {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 20px 0;
}

.guide-item {
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border-left: 4px solid #1e40af;
}

.guide-item h4 {
	margin: 0 0 10px 0;
	color: #1e40af;
	font-size: 1.1rem;
	font-weight: 600;
}

.guide-item p {
	margin: 0;
	color: #374151;
	line-height: 1.6;
}

.guide-item a {
	color: #1e40af;
	text-decoration: none;
	font-weight: 500;
}

.guide-item a:hover {
	text-decoration: underline;
}

.contact-submit-btn {
    width: 100%;
    padding: 15px;
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.contact-submit-btn:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
}

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

/* 푸터 스타일 */
.public-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.public-footer a {
    color: #1e40af;
    text-decoration: none;
}

.public-footer a:hover {
    text-decoration: underline;
}

/* Public 페이지 전용 검색 스타일 - style.css와 충돌 방지 */

/* 검색 섹션 스타일 */
.public-page .search-section {
    background: #fff;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}

.public-page .search-box {
    width: 100%;
    max-width: 480px; /* 컨테이너 전체 너비 활용 */
    display: flex;
}

.public-page .search-box form {
    width: 100%;
    display: flex;
}

.public-page .search-box input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d0d4da;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    outline: none;
}

.public-page .search-box button {
    padding: 12px 24px;
    border: none;
    background: #2d3e50;
    color: #fff;
    font-size: 1rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.public-page .search-box button:hover {
    background: #1a2533;
}

/* 조회 버튼 스타일 */
.check-btn {
    background: #059669 !important;
}

.check-btn:hover {
    background: #047857 !important;
}

/* 조회 결과 스타일 */
.check-result {
    margin: 20px auto 0;
    max-width: 600px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.check-result.available {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.check-result.exists {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.check-result.error {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.check-result strong {
    font-weight: 600;
}

.register-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.register-btn:hover {
    background: #047857;
}

.search-menu-section {
    margin: 60px 0 40px 0;
}

.search-menu {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.menu-item-search {
    flex: 1;
    min-width: 100px;
}


.menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #2d3e50;
    padding: 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    min-width: 120px;
}

.menu-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #1e40af;
}

.menu-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.menu-text {
    font-size: 1rem;
    font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .public-container {
        padding: 15px;
        margin: 10px auto;
        border-radius: 0;
    }
    
    .public-title {
        font-size: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* iOS 줌 방지 */
    }
    
    .search-menu {
        gap: 20px;
    }

    .menu-item-search {
        flex: 1;
        min-width: 120px;
    }
    
    .menu-item {
        min-width: 100px;
        /* max-width: 150px; */
    }
    
    .menu-link {
        padding: 15px;
        min-width: 100px;
    }
    
    .menu-icon {
        font-size: 1.5rem;
    }
    
    .menu-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .search-menu {
        flex-direction: column;
    }

    .menu-item-search {
        max-width: 90%;
    }
    
    .menu-link {
        flex-direction: row;
        text-align: left;
        min-width: auto;
        width: 100%;
    }
    
    .menu-icon {
        margin-bottom: 0;
        margin-right: 15px;
        font-size: 1.2rem;
    }
    
    .menu-text {
        font-size: 0.9rem;
    }
}