/* contact.css */

/* 1. 기본 설정 */
.contact-body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: #101012; /* 토스 매트 블랙 */
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   [Header 오버라이딩] 다크 모드 적용
   ========================================= */
.contact-body .header {
    /* 배경을 어둡게 변경 (기존 흰색 덮어쓰기) */
    background-color: rgba(16, 16, 18, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.contact-body .logo {
    color: #ffffff !important; /* 로고 흰색 */
}

.contact-body .nav-link {
    color: #B0B8C1 !important; /* 메뉴 연한 회색 */
}

.contact-body .nav-link:hover,
.contact-body .nav-link.active {
    color: #ffffff !important; /* 호버 시 흰색 */
}

/* =========================================
   [Footer 오버라이딩] 배경색 및 정렬 수정
   ========================================= */
.contact-body .footer {
    /* 배경을 페이지 색과 맞춤 */
    background-color: #101012 !important;
    /* 상단에 얇은 구분선 추가 */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* 텍스트 색상 보정 */
    color: #8B95A1 !important; 
}

/* 왼쪽 쏠림 해결: 내부 컨테이너를 중앙 정렬 */
.contact-body .footer .container {
    width: 100%;
    max-width: 1200px; /* header.css와 동일한 너비 */
    margin: 0 auto;    /* 좌우 여백 자동 (중앙 정렬) */
    padding: 0 20px;   /* 모바일 여백 */
}

.contact-body .footer-logo {
    color: #ffffff !important;
}

.contact-body .divider {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* =========================================
   [Contact Main Content]
   ========================================= */
.contact-wrapper {
    flex: 1; /* 푸터를 바닥으로 밀기 */
    width: 100%;
    padding-top: 50px; /* 헤더 높이만큼 여백 */
    padding-bottom: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    width: 100%;
    max-width: 720px;
    padding: 0 24px;
}

/* 타이틀 */
.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact-desc {
    font-size: 1.125rem;
    color: #B0B8C1;
    font-weight: 400;
    word-break: keep-all;
}

/* 폼 스타일 */
.form-box {
    background: transparent; 
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #B0B8C1;
}

label span {
    color: #3182F6; /* 토스 블루 */
    margin-left: 2px;
}

/* 입력창 디자인 */
input, textarea {
    width: 100%;
    background-color: #191F28; /* 다크 네이비 배경 */
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

input::placeholder, textarea::placeholder {
    color: #4E5968;
}

input:focus, textarea:focus {
    background-color: #191F28;
    border-color: #3182F6;
    box-shadow: 0 0 0 1px #3182F6;
}

textarea {
    resize: none;
    min-height: 180px;
}

/* 체크박스 */
.checkbox-group {
    margin-top: 20px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #B0B8C1;
}

.checkbox-item input {
    width: 20px;
    height: 20px;
    accent-color: #3182F6;
    cursor: pointer;
    margin: 0;
    background-color: #191F28;
}

/* 버튼 */
.btn-submit {
    width: 100%;
    padding: 18px;
    background-color: #3182F6;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #1B64DA;
}

/* 반응형 */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-title {
        font-size: 2rem;
    }

    .contact-wrapper {
        padding-top: 90px;
    }
}