/* Contact Page Styles */

/* 공통 헤더 스타일 리셋 - style.css 오버라이드 */
body #header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
    transition: none !important;
    transform: none !important;
    padding: 0 !important;
}

/* 헤더 scrolled 클래스 무효화 */
body #header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    transform: none !important;
}

body #header .inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 60px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transition: none !important;
}

body #header.scrolled .inner {
    height: 60px !important;
}

/* 서브페이지 로고 스타일 완전 재정의 */
body #header h1.logo {
    margin: 0 !important;
    height: 35px !important;
    position: relative !important;
}

body #header .logo {
    height: 35px !important;
    margin: 0 !important;
    transform: none !important;
    margin-top: 0 !important;
    position: relative !important;
}

body #header.scrolled .logo {
    transform: none !important;
    margin-top: 0 !important;
}

body #header .logo a {
    display: block !important;
    height: 100% !important;
    position: relative !important;
}

body #header .logo img {
    height: 100% !important;
    width: auto !important;
    display: block !important;
    opacity: 1 !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

body #header .logo img.logo-white {
    display: none !important;
    filter: none !important;
}

body #header .logo img.logo-color {
    display: block !important;
    opacity: 1 !important;
    position: relative !important;
}

/* gnb 메뉴 스타일 */
#header .gnb {
    margin-left: auto;
    transform: none !important;
    margin-top: 0 !important;
}

#header .gnb ul {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#header .gnb > ul > li {
    position: relative;
}

#header .gnb > ul > li > a {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    padding: 10px 0;
    transition: color 0.3s;
    position: relative;
}

#header .gnb > ul > li:hover > a {
    color: var(--primary-color);
}

/* 드롭다운 메뉴 - 위치 및 스타일 수정 */
#header .dropdown {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    margin-top: 0;
}

/* 마지막 두 메뉴(CONTACT, PPL)의 드롭다운은 오른쪽 정렬 */
#header .gnb > ul > li:nth-last-child(1) .dropdown,
#header .gnb > ul > li:nth-last-child(2) .dropdown {
    left: auto;
    right: 0;
    transform: translateX(0);
}

/* CONTACT 메뉴도 약간 조정 */
#header .gnb > ul > li:nth-child(4) .dropdown {
    left: auto;
    right: -20px;
    transform: translateX(0);
}

#header .gnb > ul > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

#header .dropdown li {
    list-style: none;
}

#header .dropdown a {
    display: block;
    padding: 10px 25px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

#header .dropdown a:hover {
    color: var(--primary-color);
    background: rgba(233, 75, 53, 0.05);
}

/* 헤더 오른쪽 부분 */
#header .header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    transform: none !important;
}

/* 헤더 다운로드 버튼 */
#header .header-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    transform: none !important;
}

#header .header-download:hover {
    background: #d84030;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(233, 75, 53, 0.3);
}

#header .header-download i {
    font-size: 16px;
}

/* 모바일 메뉴 버튼 */
#header .mobile-menu-btn {
    display: none;
    width: 30px;
    height: 30px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

#header .mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

#header .mobile-menu-btn span:nth-child(1) {
    top: 6px;
}

#header .mobile-menu-btn span:nth-child(2) {
    top: 14px;
}

#header .mobile-menu-btn span:nth-child(3) {
    top: 22px;
}

/* 반응형 디자인 - 헤더 */
@media (max-width: 768px) {
    #header {
        height: 60px;
    }

    #header .gnb {
        display: none;
    }

    #header .header-download {
        display: none;
    }

    #header .mobile-menu-btn {
        display: block;
    }
}

/* 서비스 네비게이션 */
.service-nav {
    background: #f8f8f8;
    border-bottom: none;
    position: sticky;
    top: 60px;
    z-index: 100;
}

.service-nav .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-nav li {
    margin: 0 20px;
}

.service-nav a {
    display: block;
    padding: 20px 10px;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
}

.service-nav a:hover {
    color: #007AFF;
}

.service-nav a.active {
    color: #007AFF;
    font-weight: 600;
}

/* active 상태 밑줄 제거 */
.service-nav a::after,
.service-nav a.active::after,
.service-nav a::before,
.service-nav a.active::before {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
}

.service-nav {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.service-nav::after,
.service-nav::before {
    display: none !important;
    content: none !important;
}

@media (max-width: 768px) {
    .service-nav {
        top: 60px;
    }
    
    .service-nav li {
        margin: 0 10px;
    }
    
    .service-nav a {
        padding: 15px 5px;
        font-size: 14px;
    }
}

/* 섹션 기본 스타일 */
.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-section .inner {
    max-width: 800px;
    margin: 0 auto;
}

/* 섹션 헤더 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 폼 래퍼 */
.contact-form-wrapper {
    background: #f9f9f9;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

/* 폼 행 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-group.full-width {
    width: 100%;
    margin-bottom: 30px;
}

/* 라벨 */
.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-group label.required::after {
    content: '*';
    color: #4ECDC4;
    margin-left: 4px;
    font-size: 18px;
}

/* 입력 필드 */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: #4ECDC4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 체크박스 그룹 */
.service-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-item {
    flex: 0 0 calc(33.333% - 7px);
    position: relative;
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-item label {
    display: block;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.checkbox-item input[type="checkbox"]:checked + label,
.checkbox-item.active label {
    background: #4ECDC4;
    color: #fff;
    border-color: #4ECDC4;
}

.checkbox-item:hover label {
    border-color: #4ECDC4;
    color: #4ECDC4;
}

.checkbox-item input[type="checkbox"]:checked + label:hover,
.checkbox-item.active label:hover {
    background: #2C5F7C;
    color: #fff;
}

/* 폼 안내 */
.form-notice {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.form-notice i {
    margin-right: 5px;
    color: #4ECDC4;
}

/* 개인정보 동의 */
.privacy-agree {
    display: flex;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.privacy-agree input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.privacy-agree label {
    flex: 1;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    margin: 0;
}

.btn-privacy {
    padding: 8px 20px;
    background: #666;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-privacy:hover {
    background: #555;
}

/* 제출 버튼 */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    display: inline-block;
    padding: 18px 60px;
    background: #4ECDC4;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #2C5F7C;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px;
    }
    
    .contact-section .inner {
        max-width: 100%;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-desc {
        font-size: 16px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .checkbox-item {
        flex: 0 0 calc(50% - 5px);
    }
    
    .checkbox-item label {
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .privacy-agree {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .privacy-agree label {
        font-size: 14px;
    }
    
    .btn-submit {
        width: 100%;
        padding: 16px 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .checkbox-item {
        flex: 0 0 100%;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .contact-form-wrapper {
        padding: 20px 15px;
    }
}

/* 파일 첨부 안내 및 개인정보 동의 스타일 */
.form-guide {
    text-align: center;
    margin: 20px 0 15px;
}

.form-guide span {
    color: #666;
    font-size: 14px;
}

.form-agree {
    text-align: center;
    margin: 15px 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.form-agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-agree label {
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

.form-agree button {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 15px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.form-agree button:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}