/* ──────────────────────────────────────────
   styles.css (모바일 퍼스트 + 데스크탑 패딩)
────────────────────────────────────────── */

/* 1) 기본 리셋 & 박스 사이징 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2) body 초기화 */
body {
    margin: 0;
    padding: 0; /* 모바일: 꽉 채움 */
    background-color: rgb(246, 246, 246);
}

/* 3) 이미지 반응형 처리 */
img {
    display: block;
    width: 100%;
    height: auto;
}

/* 4) 태블릿 이상(480px+)에서 좌·우 패딩 */
@media screen and (min-width: 480px) {
    body {
        padding: 0 16px;
    }
}

/* 5) 큰 데스크탑(1024px+) 중앙 정렬 & 최대 너비 */
@media screen and (min-width: 1024px) {
    body {
        max-width: 800px;
        margin: 0 auto;
        padding: 0 80px;
    }
}

/* ──────────────────────────────────────────
   section6 이미지 위에 슬라이더 오버레이
────────────────────────────────────────── */

/* 1) 컨테이너를 기준으로 내부 절대배치 */
.section6-container {
    position: relative;
    overflow: hidden; /* 넘치는 부분 숨김 */
}

/* 2) section6 배경 이미지는 일반 흐름대로 */
.section6-container .section6-image {
    position: relative;
    z-index: 0;
}

/* 3) 슬라이더(.making)를 이미지 위에 오버레이 */
.section6-container .making {
    /* 이미지 높이의 25% 위치에 슬라이더 배치 */
    position: absolute;
    top: 44%;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 1;
    pointer-events: none;
}

/* 4) making_inner로 전체 크기 확보 */
.section6-container .making_inner {
    width: 100%;
    height: 100%;
}

/* 5) 슬라이드 크기 고정 & 이미지 object-fit */
.section6-container .making .swiper-slide {
    width: 220px !important;
    height: 170px;
}

.section6-container .making .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 슬라이드 간격이 제대로 적용되도록 wrapper에 flex */
.mySwiper .swiper-wrapper {
    display: flex;
    align-items: center;
}

/* 1) 최상단 파란 배경 & 가운데 정렬 */
#dbform {
    background-color: #23abe1; /* skyblue */
    padding: 60px 20px 40px; /* 위쪽 여유 확보 */
    text-align: center;
}

/* 2) 타이틀 이미지 중앙 정렬 */
#dbform > img {
    display: block;
    margin: 0 auto 24px;
    max-width: 500px; /* 필요에 따라 조정 */
    width: 100%;
    height: auto;
}

/* 3) 흰색 내부 컨테이너 */
#dbform .db_cont {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px 32px;
    max-width: 360px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: left;
}

/* 4) 각 필드 그룹 간격 */
#dbform .input-wrap ul {
    list-style: none;
}
#dbform .input-wrap li {
    margin-bottom: 20px;
}

/* 5) 라벨 스타일 */
#dbform label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333333;
    font-weight: 500;
}

/* 6) 텍스트/셀렉트 기본 스타일 */
#dbform input[type='text'],
#dbform input[type='tel'],
#dbform select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.4;
    color: #333333;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    background-color: #fafafa;
    outline: none;
    transition: border-color 0.2s;
}
#dbform input[type='text']:focus,
#dbform input[type='tel']:focus,
#dbform select:focus {
    border-color: #1545a0;
    background-color: #fff;
}

/* 7) 전화번호 칸은 flex + 간격 */
#dbform .tel_span {
    display: flex;
    gap: 12px;
}
#dbform .tel_span span {
    flex: 1;
}

/* 8) 개인정보 동의 */
#dbform .agree-wrap p {
    font-size: 13px;
    color: #666666;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    line-height: 1.2;
}
#dbform .agree-wrap input[type='checkbox'] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #1545a0;
}
#dbform .agree-wrap .agree-link {
    color: #1545a0;
    text-decoration: underline;
    margin-left: 4px;
}

/* 9) 제출 버튼 */
#dbform .db-btn-wrap button {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background-color: #1545a0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}
#dbform .db-btn-wrap button:hover {
    background-color: #0f367f;
}

/* 버튼 배경 하늘색, 호버 시 한 톤 어둡게 */
/* ──────────────────────────────────────────
   버튼 배경 고정 + 텍스트만 깜빡임
────────────────────────────────────────── */

/* 1) 버튼 배경 고정, 텍스트 색만 애니메이션 */
#dbform .db-btn-wrap button {
    background-color: #6bbfef; /* 하늘색 고정 */
    color: #ffffff; /* 초기 텍스트는 흰색 */
    animation: text-blink 1s infinite;
    font-weight: bold;
}

/* 2) 호버 시 배경만 살짝 어둡게 (텍스트 애니는 계속) */
#dbform .db-btn-wrap button:hover {
    background-color: #6bbfef;
}

/* 3) 텍스트 색상 깜빡임 애니메이션 */
@keyframes text-blink {
    0%,
    100% {
        color: #ffffff; /* 흰색 */
        background-color: #6bbfef;
    }
    50% {
        color: #ffff00; /* 노랑색 */
        background-color: #067bbf;
    }
}
/* ──────────────────────────────────────────
   #site-footer 스타일
────────────────────────────────────────── */
#site-footer {
    background-color: #333333; /* 짙은 회색 */
    color: #ffffff; /* 흰색 텍스트 */
    text-align: center;
    padding: 24px 16px;
    font-size: 14px;
    line-height: 1.6;
}

#site-footer p {
    margin: 4px 0;
}

#site-footer a {
    color: #ffffff;
    text-decoration: underline;
}
