* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #2a2a2a;
    line-height: 1.6;
}

/* 상단 배너 */
.top-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.top-banner.hide-on-scroll {
    transform: translateY(-100%);
}

.top-banner .highlight-text {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-size: 17px;
}

/* 메인 컨테이너 */
.main-container {
    max-width: 576px;
    margin: 0 auto;
    background-color: white;
}

/* 콘텐츠 아이템 */
.content-item {
    width: 100%;
    display: block;
    line-height: 0;
}

.content-item img,
.content-item video {
    width: 100%;
    height: auto;
    display: block;
}

/* 폼 섹션 */
.form-section {
    padding: 120px 20px 40px;
    background-color: #f8f9fa;
}

/* 마지막 폼 섹션에 추가 패딩 */
.form-section:last-child {
    padding-bottom: 70px;
}

/* 폼 타이틀 */
.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-title h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
    font-weight: bold;
    line-height: 1.2;
}

.form-title h2 .highlight {
    color: #0066ff;
    font-size: 32px;
}

.form-title .subtitle {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

/* 버튼 그룹 */
.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.select-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    background-color: white;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-btn:hover {
    border-color: #667eea;
}

.select-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* 입력 필드 */
input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #667eea;
}

/* 개인정보 동의 */
.privacy-agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.privacy-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    font-weight: normal;
    flex: 1;
    line-height: 1.5;
}

.required-tag {
    color: #f5576c;
    font-weight: bold;
}

.privacy-link {
    color: #667eea;
    font-weight: bold;
    cursor: pointer;
    margin-left: 5px;
    font-size: 16px;
}

.privacy-link:hover {
    color: #764ba2;
}

/* 제출 버튼 */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 고정 버튼 */
.fixed-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    max-width: 200px;
    white-space: nowrap;
}

.fixed-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.fixed-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.fixed-btn:active {
    transform: translateY(0);
}

/* 반응형 - 모바일 */
@media (max-width: 720px) {
    .top-banner {
        font-size: 12px;
        padding: 10px 15px;
    }

    .form-section {
        padding: 130px 15px 130px;
    }

    /* 마지막 폼 섹션에 추가 패딩 (모바일) */
    .form-section:last-child {
        padding-bottom: 160px;
    }

    .fixed-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* 반응형 - 데스크톱 */
@media (min-width: 721px) {
    body {
        background-color: #2a2a2a;
    }

    .main-container {
        box-shadow: 0 0 50px rgba(0,0,0,0.5);
    }

    .fixed-btn {
        right: calc(50% - 360px + 30px);
    }
}

/* 로딩 상태 */
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 에러 메시지 */
.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    margin: 20px;
    padding: 0;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-body h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.modal-body p {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 12px;
}

.privacy-table th,
.privacy-table td {
    border: 1px solid #ddd;
    padding: 12px 8px;
    text-align: left;
}

.privacy-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.privacy-table td {
    color: #666;
    line-height: 1.6;
}

.notice {
    background-color: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.agreement-text {
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-top: 20px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: center;
}

.modal-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.modal-confirm:hover {
    transform: translateY(-2px);
}

.modal-confirm:active {
    transform: translateY(0);
}

/* 모바일 모달 조정 */
@media (max-width: 720px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header h3 {
        font-size: 15px;
    }
    
    .privacy-table {
        font-size: 11px;
    }
    
    .privacy-table th,
    .privacy-table td {
        padding: 8px 5px;
    }
}

/* 푸터 */
.footer {
    background-color: white;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    max-width: 576px;
    margin: 0 auto;
}

.footer-content {
    width: 100%;
}

.footer-content p {
    font-size: 11px;
    color: #666;
    margin: 5px 0;
    line-height: 1.6;
}

/* 모바일 푸터 */
@media (max-width: 768px) {
    .footer {
        padding: 25px 15px;
    }
    
    .footer-content p {
        font-size: 10px;
    }
}

