/* 기본 리셋 및 모바일 가로폭 제한 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Malgun Gothic', sans-serif;
    background-color: #f2f2f2;
}

.mobile-container {
    max-width: 480px; /* 핸드폰 화면 너비 기준 */
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding-bottom: 70px; /* 하단 고정 버튼 레이어 간격 확보 */
}

/* 1. 불편접수 상단 바 */
.top-bar {
    background: #f8d7da;
    text-align: right;
    padding: 6px 12px;
    font-size: 0.85em;
}
.top-bar a { color: #721c24; text-decoration: none; }

/* 2, (로고 ) */
.header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

/* 로고와 텍스트를 가로로 배치 */
.logo-link {
    display: flex;
    align-items: center;       /* 세로 중앙 정렬 */
    text-decoration: none;     /* 밑줄 제거 */
    color: #333;               /* 텍스트 기본 색상 */
}

/* 로고 이미지 크기 */
.logo-img {
    height: 32px;              /* 높이 조절 */
    width: auto;
    margin-right: 8px;         /* 이미지와 텍스트 사이 간격 */
}

/* 로고 옆 텍스트 스타일 */
.logo-text {
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;            /* 원하는 글자 색상으로 변경 가능 */
}

/* 3. 햄버거 네비 버튼 스타일 */
.menu-open-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    padding: 0;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #2c3e50;
    border-radius: 2px;
}

/* 전체 서비스 메뉴 오버레이 모달 (모바일 박스 기준에 맞게 수정) */
.full-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center; /* 가로 중앙 정렬로 변경하여 여백 제거 */
    align-items: center;     /* 세로 중앙 정렬 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 모달 활성화(열림) 상태 */
.full-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 메뉴 내부 내용 창 크기를 모바일 뷰(480px)에 정확히 맞춤 */
.full-menu-content {
    width: 100%;
    max-width: 480px; /* 핸드폰 최대 너비와 동일하게 설정 */
    height: 100%;     /* 혹은 필요에 따라 90vh 등로 조절 가능 */
    background-color: #ffffff;
    overflow-y: auto; 
    padding: 20px;
    box-sizing: border-box;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.full-menu-overlay.active .full-menu-content {
    transform: translateY(0);
}

/* 메뉴 상단 헤더 (제목 및 닫기 버튼) */
.full-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.full-menu-header h2 {
    font-size: 1.2em;
    margin: 0;
    color: #333;
}

.menu-close-btn {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

/* 서비스 카테고리 영역 */
.service-category {
    margin-bottom: 25px;
}

.service-category h3 {
    font-size: 1.05em;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* 카드 그리드 정렬 (2개씩 나란히) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* 개별 서비스 카드 스타일 (캡처 이미지 형태 반영) */
.service-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
    color: #333;
    position: relative;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    border-color: #3498db;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.15);
}

.service-title {
    font-size: 0.95em;
    font-weight: bold;
    color: #222;
    margin-bottom: 4px;
}

.service-desc {
    font-size: 0.75em;
    color: #777;
}

/* 카드 우측 하단 화살표 기호 */
.service-card .arrow {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 0.85em;
    color: #bbb;
}


/* 4. 페이지 이동메뉴 */
.main-nav {
    display: flex;
    justify-content: space-around;
    background: #333;
    padding: 10px 0;
}
.main-nav a { color: white; text-decoration: none; font-size: 0.9em; }

/* 각 섹션 공통 스타일 */
.section {
    padding: 20px 15px;
    border-bottom: 8px solid #f2f2f2;
}

/* 6. 견적 요청 폼 스타일 */
.estimate-quick {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.estimate-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.checkbox-group {
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* 보관이사 추가 스타일 */
.storage-check-wrap {
    background-color: #f1f7ff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d0e3ff;
}

.storage-check-wrap .checkbox-label {
    font-weight: bold;
    color: #0056b3;
}

.helper-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

#storageDateWrap {
    background-color: #fff8f8;
    padding: 10px;
    border-radius: 6px;
    border: 1px dashed #e74c3c;
}

#storageDateWrap label {
    color: #c0392b;
}

/* 7, 8, 9. 이사 과정 리스트 */
.process-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 8px;
}
.process-item .thumb {
    width: 90px;
    height: 90px;
    background: #e9ecef;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.process-item .desc { flex: 1; }

/* 6번 우측 하단 플로팅 버튼 */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}
.btn-float {
    padding: 10px 16px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
.call-btn { background-color: #28a745; }
.chat-btn { background-color: #ffc107; color: #333; }

/* 11. 모바일 달력 확대 및 터치 편의성 개선 */
.large-mobile-cal th, 
.large-mobile-cal td {
    padding: 14px 4px !important; /* 터치 영역 확대 */
    font-size: 1.1rem !important;
}

.large-mobile-cal .day-number {
    font-size: 1.15rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .calendar-table th, .calendar-table td {
        height: 50px; /* 모바일에서 셀 높이 확보 */
    }
}

/* 보관이사 및 폼 스타일 */
.storage-check-wrap {
    background-color: #f1f7ff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d0e3ff;
}

.storage-check-wrap .checkbox-label {
    font-weight: bold;
    color: #0056b3;
}

.helper-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

#storageDateWrap {
    background-color: #fff8f8;
    padding: 10px;
    border-radius: 6px;
    border: 1px dashed #e74c3c;
}

#storageDateWrap label {
    color: #c0392b;
}

/* 12. 가입 증명서 섹션 스타일 */
.cert-section {
    text-align: center;
    overflow: hidden;
}

.cert-slider-container {
    position: relative;
    max-width: 600px;
    margin: 15px auto 0 auto;
}

.cert-slides {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 15px; /* PC 화면에서의 간격 */
}

.cert-item {
    flex: 0 0 calc(50% - 7.5px); /* PC 화면에서 2장이 나란히 보이도록 설정 */
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    box-sizing: border-box;
}

.cert-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.cert-item span {
    display: block;
    margin-top: 8px;
    font-size: 0.85em;
    color: #555;
}

/* 명암이 있는 화살표 버튼 스타일 (기본 PC에서는 숨김) */
.slider-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); /* 명암 배경 */
    color: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* 📱 모바일 화면 기준 (768px 이하) */
@media (max-width: 768px) {
    .cert-slides {
        gap: 0;
    }
    
    .cert-item {
        flex: 0 0 100%; /* 모바일에서는 화면 당 1장씩 꽉 차게 표시 */
    }
    
    .slider-btn {
        display: block; /* 모바일에서만 화살표 버튼 표시 */
    }
}

/* ==========================================
   11. 이사 달력 섹션 스타일
========================================== */
.calendar-section {
    padding: 20px 10px;
    background-color: #fff;
}

.calendar-section .section-title {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 3) 상단 범례 안내 */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.82em;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color.no-hand-bg {
    width: 14px;
    height: 14px;
    background-color: #ffe8cc; /* 명암 톤 색상 */
    border: 1px solid #ffa94d;
    border-radius: 3px;
}

.legend-arrow-icon {
    color: #228be6;
    font-weight: bold;
    font-size: 1.1em;
}

/* 4) 상단 헤더 (연도 선택 & 월 이동) */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 5px;
}

.year-select-wrap select {
    padding: 6px 10px;
    font-size: 0.95em;
    font-weight: bold;
    border: 1px solid #ced4da;
    border-radius: 6px;
    color: #333;
}

.month-nav-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-month {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    min-width: 45px;
    text-align: center;
}

.cal-nav-btn {
    background: #e9ecef;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
}

.cal-nav-btn:hover {
    background: #2c3e50;
    color: #fff;
}

/* 1) 핸드폰 화면에서도 크게 보이는 달력 테이블 */
.calendar-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar-table th {
    padding: 10px 0;
    font-size: 0.9em;
    color: #495057;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
}

.calendar-table th.sun { color: #e03131; }
.calendar-table th.sat { color: #1971c2; }

.calendar-table td {
    height: 52px; /* 셀 높이를 넉넉하게 확장 */
    vertical-align: top;
    text-align: center;
    padding: 4px 0 0 0;
    border: 1px solid #dee2e6;
    position: relative;
    box-sizing: border-box;
}

.day-number {
    font-size: 0.95em;
    font-weight: 600;
    display: block;
}

.calendar-table td.sun .day-number { color: #e03131; }
.calendar-table td.sat .day-number { color: #1971c2; }

/* 3-1) 손없는 날: 칸 색상 명암 강조 */
.calendar-table td.no-hand-day {
    background-color: #fff4e6; /* 명암 톤 */
}

.calendar-table td.no-hand-day .day-number {
    color: #d9480f;
}

/* 3-2) 학군이사 기간: 숫자 아래 범위 바/화살표 표시 */
.school-range-bar {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    height: 6px;
    background-color: #339af0;
    z-index: 2;
}

/* 기간 시작/중간/끝 화살표 및 연결 형태 */
.school-range-start {
    left: 15%;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.school-range-end {
    right: 15%;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.school-range-start::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -2px;
    border-right: 6px solid #339af0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.school-range-end::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -2px;
    border-left: 6px solid #339af0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* 오늘 날짜 배너 스타일 */
.calendar-today-banner {
    text-align: center;
    background-color: #e7f5ff;
    color: #1864ab;
    font-size: 0.9em;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #74c0fc;
}

/* 13. 푸터 */
.footer-area {
    padding: 25px 15px;
    background: #343a40;
    color: #aaa;
    font-size: 0.8em;
    text-align: center;
}

.footer-title {
    font-size: 1.05em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.footer-links {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #495057;
    display: inline-block;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    margin: 0 8px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-details {
    line-height: 1.6;
    color: #999;
    font-size: 0.9em;
}

/* 📱 모바일 화면 기준 (768px 이하) */
@media (max-width: 768px) {
    .cert-slides {
        gap: 0;
    }
    
    .cert-item {
        flex: 0 0 100%; /* 모바일에서는 1장씩 꽉 차게 표시 */
    }
    
    .slider-btn {
        display: block; /* 모바일에서만 화살표 노출 */
    }
}