
/* Noto Sans KR 폰트 임포트 */
@import url('//fonts.googleapis.com/earlyaccess/notosanskr.css');

/* Aggravo 폰트 정의 */
@font-face {
    font-family: 'Aggravo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroL.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Aggravo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroM.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Aggravo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

/* 기본 리셋 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    /* 기본 폰트는 Pretendard 유지 (배너 제외) */
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/* 메인 레이아웃 래퍼 */
.main-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative; /* 모달 위치 기준 */
}

/* 요청하신 CSS 추가 */
.section > img {
    display: block;
    width: 100%;
}

/* ----------------------------------------------------
   SECTION 1: 상단 애니메이션 배너
   ---------------------------------------------------- */
.banner-section {
    width: 100%;
    height: 350px;
    position: relative;
    background-color: #ffe650;
    overflow: hidden;
}

#scene {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* 애니메이션 키프레임 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.floating-item {
    position: absolute;
    user-select: none;
    pointer-events: none;
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
}

/* 배너 텍스트 컨테이너 */
.content-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 0 20px;

    /* 배너 영역 전용 폰트 적용 (기본 Aggravo) */
    font-family: 'Aggravo', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 라벨 스타일 */
.banner-label {
    display: inline-block;
    background-color: #ffb800; /* 진한 노란색/오렌지 */
    color: #1a1a1a;
    font-size: 0.9rem;
    /* 요청사항: Noto Sans KR 적용 */
    font-family: 'Aggravo', sans-serif;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 999px; /* 둥근 캡슐 형태 */
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 텍스트 공통 스타일 */
.banner-text {
    color: #000;
    line-height: 1.25;
    white-space: nowrap; /* 줄바꿈 방지 */
    word-break: keep-all;
}

/* 첫 번째 줄: 누구나 최대! 160만원 */
.text-line-1 {
    font-size: 1.6rem;
    /* 요청사항: font-weight 300 */
    font-weight: 300;
}

.highlight-purple {
    color: #7c3aed; /* 보라색 */
    font-weight: 700; /* Bold */
    font-style: italic; /* 기울임 */
    margin-left: 4px;
}

/* 두 번째 줄: 거짓말 같은 */
.text-line-2 {
    font-size: 2rem;
    /* 요청사항: font-weight 500 */
    font-weight: 500;
    margin-top: 4px;
}

/* 세 번째 줄: 현금 지원금 혜택! */
.text-line-3 {
    font-size: 2.2rem;
    /* 요청사항: font-weight 500 */
    font-weight: 500;
    margin-top: 4px;
}

/* PC 반응형 (글자 크기 키움) */
@media (min-width: 768px) {
    .banner-label {
        font-size: 1.1rem;
        padding: 8px 20px;
        margin-bottom: 16px;
    }
    .text-line-1 { font-size: 2.5rem; }
    .text-line-2 { font-size: 3rem; margin-top: 8px; }
    .text-line-3 { font-size: 3.5rem; margin-top: 8px; }
}


/* ----------------------------------------------------
   SECTION 2: 하단 폼 영역
   ---------------------------------------------------- */
.form-section {
    width: 100%;
    background-color: #fff;
}

/* 탭 메뉴 */
.tab-menu {
    display: flex;
    width: 100%;
}

.tab-item {
    flex: 1;
    padding: 20px 10px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tab-item:first-child a {
    color:#000;
}
.tab-item a,.tab-item a:hover,.tab-item a:active {
    font-family: 'Aggravo', sans-serif;
    text-decoration: none;
    color: white;
}

/* 모바일 폰트 사이즈 조정 */
@media (max-width: 480px) {
    .tab-item { font-size: 0.9rem; padding: 15px 5px; }
}

.tab-orange {
    background-color: #ffaa00; /* 오렌지색 */
}
.tab-black {
    background-color: #000; /* 검정색 */
}

/* 폼 컨테이너 */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 1rem;
    color: #888;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input::placeholder {
    color: #ccc;
}

.form-input:focus {
    border-color: #ffaa00;
}

/* 약관 동의 영역 */
.terms-group {
    margin-bottom: 30px;
}

.terms-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.terms-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #ffaa00;
    cursor: pointer;
}

.required-text {
    color: #ffaa00;
    margin-right: 4px;
}

.btn-detail {
    margin-left: 8px;
    background-color: #eee;
    border: none;
    border-radius: 2px;
    font-size: 0.75rem;
    padding: 2px 6px;
    color: #888;
    cursor: pointer;
}

/* 확인 버튼 */
.submit-btn {
    width: 100%;
    padding: 20px;
    background-color: #ffde00; /* 쨍한 노란색 */
    border: none;
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #facc15;
}

/* ----------------------------------------------------
   MODAL: 약관 상세 팝업
   ---------------------------------------------------- */
.modal-overlay {
    display: none; /* 기본 숨김 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
    z-index: 1000; /* 최상단 */
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    max-height: 80vh; /* 화면 높이의 80%까지만 */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: #888;
}

.modal-body {
    padding: 20px;
    overflow-y: auto; /* 내용 넘치면 스크롤 */
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    white-space: normal; /* 자동 줄바꿈 */
    word-break: break-all; /* 긴 단어 강제 줄바꿈 */
}

/* ----------------------------------------------------
   MODAL: 커스텀 알림 팝업 (Alert)
   ---------------------------------------------------- */
.alert-modal-content {
    background-color: white;
    width: 320px; /* 좁은 너비 */
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 20px 20px;
    text-align: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.alert-message {
    font-size: 1rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
    word-break: keep-all;
    font-weight: 500;
}

.alert-btn {
    background-color: #ffaa00;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    width: 100%;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.alert-btn:hover {
    background-color: #e69900;
}

.section > img {
    display:block;
    width: 100%;
}