/* 1. 전체 레이아웃 제어 */
html, body {
    height: 100%; /* 전체 높이 확보 */
    overflow: hidden; /* 스크롤바 방지 */
    background-image: url('../images/digital-search-portal2.png');
    background-size: cover;
}

body {
    display: flex;
    flex-direction: column; /* 위(main)에서 아래(footer)로 배치 */
    font-family: 'Pretendard', -apple-system, sans-serif;
    line-height: 1.5; /* reset.css의 1을 보정 */
}

/* 2. 메인 컨테이너 영역 */
.main-container {
    flex: 1; /* 푸터를 제외한 남는 모든 공간을 차지 */
    display: flex;
    flex-direction: column;
}

/* 3. 상단 배경 섹션 (Hero) */
.hero-section {
    flex: 1; /* 메인 컨테이너 안에서도 꽉 차게 확장 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.title-group {
    display: flex;
    flex-direction: column;
}
.title-group h1 {
    font-size: clamp(2rem, 5vw, 3rem); /* 반응형 폰트 크기 */
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.title-group p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* 검색창 영역 */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 18px 100px 18px 30px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    font-size: 1.1rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
}

/* 빠른 바로가기 버튼 */
.quick-links {
    display: flex;
    gap: 15px;
}

.link-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    transition: background 0.3s;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- 푸터 (Footer) --- */
.main-footer {
    background-color: #333645; /* 다크 네이비/그레이 */
    color: #ccc;
    padding: 40px 0;
    font-size: 12px;
}

.footer-content {
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    width: 1280px;
    justify-content: center;
    align-items: center;
    gap: 128px;
}

/* 푸터 왼쪽 */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.footer-logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    margin-bottom: 10px;
}

.footer-address {
    color: #FFF;
    font-family: "Elice DigitalBaeum OTF";
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 19.5px */
    letter-spacing: -0.52px;
}

.footer-ul {
    list-style: none;
}

.footer-links {
    display: flex;
    gap: 63px;
    margin-top: 10px;
    color: #B6B6B6;
    font-family: SUITE;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 19.5px */
    letter-spacing: -0.52px;
}

.footer-links a {
    color: #B6B6B6;
    text-decoration: none;
}

/* 푸터 오른쪽 */
.footer-right {
    display: flex;
    width: 570px;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.customer-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cc-title {
    align-self: stretch;
    color: #FFF;
    font-family: "Elice DigitalBaeum OTF";
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 19.5px */
    letter-spacing: -0.52px;
}

.cc-info-div {
    display: flex;
    gap: 33px;
    align-items: center;
    align-self: stretch;
}

.cc-info-ul {
    list-style: none;
}

.cc-info-title {
    align-self: stretch;
    color: #FFF;
    font-family: "Elice DigitalBaeum OTF";
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 19.5px */
    letter-spacing: -0.52px;
}

.cc-info-tel {
    align-self: stretch;
    color: #FFF;
    font-family: SUITE;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 33px */
}

.portal-popup {
    display: none;
    position: absolute;
    top: 30%;
    right: 10%;
    flex-direction: column;
    background: #FFF;
    z-index: 9999;
}

.popup-content img {
    width: 100%;
    display: block; /* 하단 여백 제거 */
}

.popup-footer {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #C8C8D0;
}

.popup-footer input[type="checkbox"] {
    /* reset.css가 없애버린 기본 브라우저 스타일(네모 칸) 강제 복구 */
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;

    /* 지워진 테두리와 배경 초기화 (브라우저 기본값 따름) */
    background: initial !important;
    border: initial !important;

    /* 크기와 위치 잡기 */
    display: inline-block !important;
    width: 13px !important;
    height: 13px !important;
    vertical-align: middle;
    margin-right: 5px;
    cursor: pointer;
}

.popup-close-btn {
    background-color: #86868E;
    height: 40px;
    min-width: 80px;
    color: #fff;
    border: none;
    padding: 0px 16px;
    cursor: pointer;
    border-radius: 6px;

    font-size: 16px;
    font-weight: 700;
    line-height: 150%;
}

.service-locked {
    pointer-events: none !important;
    opacity: 0.5 !important;
    filter: grayscale(100%);
    user-select: none;
    cursor: not-allowed;
}
