/* 전역 리셋 및 기본 설정 */
html, body {
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    font-family: "Noto Sans KR", sans-serif;
}

/* PC/태블릿 공용 스타일 */
div.main {
    margin-top: 0;
}

div.adimg {
    text-align: center;
    /*margin: 20px 0;*/
    width: 100%;
}
div.adimg img {
    max-width: 600px;
    width: 100%;
    height: auto;
    vertical-align: middle;
    /*border: 1px solid #eee;*/
    box-shadow: 0 10px 10px 0px rgba(0,0,0,0.1);
    /*border-radius: 5px;*/
}

div.adimg #img3 {
    cursor: pointer;
}

/**** 상단 고정 */
#fixedTop.fixedTop {
    width: calc(100% - 32px);
    max-width: 640px;
    margin: 32px auto 24px;
    padding: 18px 24px 20px;
    background: linear-gradient(135deg, #0f4c81 0%, #00a7e0 60%, #36d0d6 100%);
    color: #fff;
    box-shadow: 0 20px 40px rgba(15, 76, 129, 0.35);
    border-radius: 18px;
    box-sizing: border-box;
}

.fixedTop__inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fixedTop__headline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fixedTop__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 13px;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.fixedTop__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.fixedTop__subtitle {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.fixedTop__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fixedTop__countdown,
.fixedTop__progress {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 16px;
    position: relative;
}

.fixedTop__countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fixedTop__countdown::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.countdown-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.fixedTop__progress {
    background: #fff;
    color: #0f4c81;
    padding-bottom: 18px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(15, 76, 129, 0.7);
}

.progress-header strong {
    font-size: 18px;
    font-weight: 700;
    color: #0f4c81;
}

.progress-header em {
    font-style: normal;
    color: #00a7e0;
}

.progressbar {
    position: relative;
    width: 100%;
    height: 10px;
    background: rgba(15, 76, 129, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #00a7e0 0%, #42e6b0 100%);
    border-radius: inherit;
    transition: width 0.4s ease;
}

.progress-caption {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(15, 76, 129, 0.65);
    text-align: right;
}

.fixedTop__cta {
    grid-column: 1 / -1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    height: 52px;
    background: #fff;
    color: #0f4c81;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 18px rgba(15, 76, 129, 0.18);
}

.fixedTop__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(15, 76, 129, 0.24);
}

@media (max-width: 480px) {
    #fixedTop.fixedTop {
        width: calc(100% - 24px);
        margin: 24px auto 20px;
        padding: 16px;
        border-radius: 16px;
    }

    .fixedTop__grid {
        grid-template-columns: 1fr;
    }

    .fixedTop__cta {
        height: 48px;
    }

    .fixedTop__countdown .flipdown {
        max-width: 260px;
    }

    .fixedTop__countdown .flipdown .rotor {
        width: 30px;
        height: 50px;
        font-size: 2.4rem;
    }

    .fixedTop__countdown .flipdown .rotor-top,
    .fixedTop__countdown .flipdown .rotor-bottom {
        width: 30px;
        height: 25px;
    }

    .fixedTop__countdown .flipdown .rotor-leaf,
    .fixedTop__countdown .flipdown .rotor-leaf-front,
    .fixedTop__countdown .flipdown .rotor-leaf-rear {
        width: 30px;
        height: 50px;
    }

    .fixedTop__countdown .flipdown .rotor-leaf-front,
    .fixedTop__countdown .flipdown .rotor-top {
        line-height: 50px;
    }

    .fixedTop__countdown .flipdown .rotor-group:not(:last-child)::after {
        font-size: 1.8rem;
        right: 2px;
    }
}

/**** 하단 고정 */
#fixedBottom.fixedBottom {
    position: fixed;
    bottom: 0;
    left: 50%;         /* 화면 너비의 50% 지점에 위치 */
    transform: translateX(-50%);  /* 요소의 너비 절반만큼 왼쪽으로 이동 → 중앙 정렬 */
    height: 85px;
    z-index: 1000;
    width: 100%;
    max-width: 600px;
}

#fixedBottom.fixedBottom img {
    width: 100%;
    position: fixed;
    bottom: 0;
}

/* 카운트다운 */
#flipdown {
    margin: 0 auto;
}

.flipdown {
    transform: none;
    transform-origin: top center;
}

#flipdown.flipdown {
    width: auto;
    height: auto;
    margin: 0 auto;
}

#flipdown .rotor-group:first-child {
    display: none;
}

.rotor-group-heading {
    display: none;
}

.fixedTop__countdown .flipdown {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    overflow: hidden;
}

.fixedTop__countdown .flipdown .rotor-group {
    float: none;
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 14px;
}

.fixedTop__countdown .flipdown .rotor-group:last-child {
    padding-right: 0;
}

.fixedTop__countdown .flipdown .rotor {
    width: 34px;
    height: 56px;
    margin: 0 3px 0 0;
    font-size: 2.8rem;
}

.fixedTop__countdown .flipdown .rotor:last-child {
    margin-right: 0;
}

.fixedTop__countdown .flipdown .rotor-top,
.fixedTop__countdown .flipdown .rotor-bottom {
    width: 34px;
    height: 28px;
}

.fixedTop__countdown .flipdown .rotor-leaf,
.fixedTop__countdown .flipdown .rotor-leaf-front,
.fixedTop__countdown .flipdown .rotor-leaf-rear {
    width: 34px;
    height: 56px;
}

.fixedTop__countdown .flipdown .rotor-leaf-front,
.fixedTop__countdown .flipdown .rotor-top {
    line-height: 56px;
}

.fixedTop__countdown .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):before,
.fixedTop__countdown .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):after {
    display: none;
}

.fixedTop__countdown .flipdown .rotor-group:not(:last-child)::after {
    content: ':';
    position: absolute;
    top: 50%;
    right: 4px;
    font-size: 2rem;
    font-weight: 600;
    color: rgba(15, 76, 129, 0.85);
    transform: translate(0, -52%);
}

/**** TAB ****/
/* 탭 버튼 영역 */
.tab-buttons {
    display: flex;              /* 버튼들을 가로로 배치 */
    justify-content: space-between;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;  /* 탭 버튼 뒤 배경색(원하시면 변경 가능) */
    padding: 0;
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 10px 0px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;                    /* 탭 버튼들을 균등 너비로 분배 */
    text-align: center;
    font-weight: bold;
    background: transparent;
    color: #333;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 0;            /* 세로 여백(높이) */
    transition:
            background 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Hover 효과 */
.tab-btn:hover {
    background: #e6f4fa;
}

/* 활성화된 탭 버튼 */
.tab-btn.active {
    background: #00a7e0;  /* 메인 컬러 */
    color: #fff;
    transform: scale(1.05); /* 살짝 확대 */
}

/* 탭 내용 영역 */
.tab-content {
    display: none; /* 기본적으로 숨김 */
    padding-top: 30px;
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
    background-color: #fff;
}

.tab-content.active {
    display: block; /* 활성화된 탭만 표시 */
}
/***** 슬라이드 *****/
.my-slider {
    position: relative;
    width: 600px;         /* 원하는 슬라이더 너비로 조정 */
    margin: 0 auto;       /* 중앙 정렬 (필요시) */
    overflow: hidden;     /* 트랙이 벗어나는 부분은 숨기기 */
    background-color: #fff;
    box-shadow: 0 10px 10px 0px rgba(0,0,0,0.1);

}

.my-slider .slide img {
    padding: 80px;
    box-shadow: none;
}

/* 버튼(이전/다음) 공통 스타일 */
.my-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 16px;
}

/* 왼쪽 버튼 (prev) */
.prev-btn {
    left: 10px;
}

/* 오른쪽 버튼 (next) */
.next-btn {
    right: 10px;
}

/* 슬라이더 래퍼: 오버플로우 hidden으로 가시 범위 한정 */
.slider-wrapper {
    overflow: hidden;
    width: 100%;
}

/* 슬라이더 트랙: 슬라이드들을 가로로 나열 */
.slider-track {
    display: flex;
    transition: transform 0.3s ease; /* 좌우 이동 애니메이션 */
}

/* 개별 슬라이드 */
.slide {
    flex: 0 0 100%;  /* 한 번에 하나만 보이도록 (슬라이더 너비 = 100%) */
    box-sizing: border-box;
    text-align: center;
    padding: 10px;
}

/* 슬라이드 내부 예시 스타일 */
.slide img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.slide p {
    font-weight: bold;
    margin-bottom: 5px;
}

.slide span {
    font-size: 0.9rem;
    color: #666;
}

/***** 접수 테이블 현황판 *****/
.receipt-table-wrap {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 10px;
    background-color: #fff;
    box-sizing: border-box;
    /* 테이블이 움직여도 외부로 튀어나가지 않게 */
    overflow: hidden; /* 필요한 경우 */
}

.receipt-table {
    border-radius: 10px;
    border: 10px solid #00a7e0;
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table.receipt-table tr>th:first-child,
table.receipt-table tr>td:first-child,
table.receipt-table tr>th:last-child,
table.receipt-table tr>td:last-child {
    text-align: center;
}

.receipt-table th {
    background-color: #f9f9f9;
    font-weight: bold;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.receipt-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.receipt-table tr:last-child td {
    border-bottom: none;
}

/* 부드러운 전환 효과 (slideUp/slideDown 시 자연스러운 애니메이션) */
.receipt-table tr {
    transition: all 0.5s ease;
}

/***** FORM *****/
.inquiry-form-wrap {
    width: 100%;
    max-width: 600px; /* 폼 전체 너비 (필요 시 조정) */
    margin: 40px auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff;       /* 배경을 흰색으로 두어 폼을 좀 더 강조 */
}

.inquiry-form-wrap h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #00a7e0;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.checkbox-wrap {
    margin-bottom: 15px;
}

.checkbox-wrap label {
    margin-left: 5px;
    color: #555;
}

.checkbox-wrap .info {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    background: #00a7e0;       /* 메인 컬러 적용 */
    color: #fff;
    font-size: 1rem;
    padding: 14px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #0088cc;       /* 조금 더 어두운 블루 계열로 hover 강조 */
}

.terms-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    margin-left: 8px;
    font-size: 0.9rem;
    color: #00a7e0;
    background: #e6f4fa;
    border: 1px solid #bde3f2;
    border-radius: 4px;
    cursor: pointer;
}

.terms-open:hover {
    background: #d6edf7;
}

.terms-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.terms-modal.is-open {
    display: flex;
}

.terms-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.terms-modal__content {
    position: relative;
    width: 90%;
    max-width: 540px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    padding: 24px;
    box-sizing: border-box;
    z-index: 1;
    max-height: 80vh;
    overflow-y: auto;
}

.terms-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.terms-modal__header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #0f4c81;
}

.terms-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px;
}

.terms-modal__body p {
    margin: 0 0 14px;
    color: #333;
    line-height: 1.5;
}

/***** 회사 정보 *****/
.brand-info {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 140px;
    padding: 20px 18px;
    box-sizing: border-box;
    text-align: center;
    background: #0f4c81;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.brand-info__label {
    margin: 0 0 6px;
    font-size: 14px;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

.brand-info__name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* 모바일 사이즈 대응 */
@media (max-width: 767px) {
    /* 부모 컨테이너 여백 제거 */
    div.adimg {
        margin: 0;
        padding: 0;
        text-align: center; /* 부모도 가운데 정렬 유지 */
    }

    /* 이미지를 화면 폭에 맞추면서도 가운데 정렬 */
    div.adimg img {
        border: none;
        box-shadow: none;
        border-radius: 0;
        display: block;
        margin: 0 auto;    /* 블록 요소 중앙 정렬 */
        width: 100%;   /* 화면 폭에 맞게 확장 */
        height: auto;
    }

    .terms-modal__content {
        width: 92%;
        padding: 20px 16px;
        max-height: 70vh;
    }

    .brand-info {
        margin: 0 auto 120px;
        padding: 18px 14px;
        border-radius: 10px;
    }

    .brand-info__label {
        font-size: 13px;
    }

    .brand-info__name {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .my-slider {
        width: 100%;
        border-radius: 0;
    }
}

/* 상담 신청 성공 페이지 */
.inquiry-success {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 16px;
    background: linear-gradient(180deg, rgba(15, 76, 129, 0.08) 0%, rgba(0, 167, 224, 0.08) 100%);
    box-sizing: border-box;
}

.inquiry-success__card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 24px 45px rgba(15, 76, 129, 0.18);
    text-align: center;
    color: #0f2d3f;
}

.inquiry-success__badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e8faf5;
    color: #0f8a5f;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
}

.inquiry-success__title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.inquiry-success__desc {
    margin: 0 0 28px;
    font-size: 15px;
    color: rgba(15, 45, 63, 0.75);
}

.inquiry-success__status {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 167, 224, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 32px;
    text-align: left;
}

.inquiry-success__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f8a5f 0%, #42e6b0 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}

.inquiry-success__icon svg {
    width: 24px;
    height: 24px;
}

.inquiry-success__status-text {
    font-size: 14px;
    color: rgba(15, 45, 63, 0.7);
    margin: 0;
}

.inquiry-success__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.inquiry-success__button {
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f4c81 0%, #00a7e0 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-success__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 76, 129, 0.32);
}

.inquiry-success__countdown {
    margin: 0;
    font-size: 14px;
    color: rgba(15, 45, 63, 0.65);
}

.inquiry-success__countdown strong {
    font-size: 20px;
    color: #0f4c81;
}

.inquiry-success__note {
    margin: 0;
    font-size: 13px;
    color: rgba(15, 45, 63, 0.55);
}

@media (max-width: 480px) {
    .inquiry-success {
        padding: 60px 16px;
    }

    .inquiry-success__card {
        padding: 32px 24px;
    }

    .inquiry-success__status {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .inquiry-success__icon {
        width: 44px;
        height: 44px;
    }

    .inquiry-success__icon svg {
        width: 20px;
        height: 20px;
    }
}
