/* Contact Page Styles */

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

.service-nav .inner {
    max-width: 600px;  /* 탭이 2개뿐이므로 너비를 줄여서 중앙 정렬 효과 */
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

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

.service-nav li {
    flex: 1;  /* 균등하게 분배 */
    max-width: 300px;
}

.service-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 30px;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.service-nav a:hover {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.05);
    border-bottom-color: #007AFF;
}

.service-nav a.active {
    color: #007AFF;
    font-weight: 600;
    border-bottom-color: #007AFF;
    background: rgba(0, 122, 255, 0.05);
}

/* 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;
        height: 50px;
    }

    .service-nav .inner {
        max-width: 100%;  /* 모바일에서는 전체 너비 사용 */
        padding: 0 15px;
    }

    .service-nav ul {
        width: 100%;
    }

    .service-nav li {
        flex: 1;
        max-width: none;
    }

    .service-nav a {
        padding: 0 15px;
        font-size: 14px;
        height: 50px;
    }
}

/* 섹션 기본 스타일 */
.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: 18px;
    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: #DB1419;
    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: #DB1419;
    outline: none;
    box-shadow: 0 0 0 3px rgba(219, 20, 25, 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: #DB1419;
    color: #fff;
    border-color: #DB1419;
}

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

.checkbox-item input[type="checkbox"]:checked + label:hover,
.checkbox-item.active label:hover {
    background: #c11118;
    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: #DB1419;
}

/* 개인정보 동의 */
.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: #DB1419;
    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: #c11118;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(219, 20, 25, 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;
}