@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
    --primary-blue: #0066cc;
    --dark-blue: #0a1931;
    --light-blue: #f0f7ff;
    --text-dark: #333333;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    --popup-width: 550px;
    --popup-height: 850px;
}

body.survey-popup-page {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: transparent;
    overflow: hidden;
    width: 100%;
    /* 고정 너비 제거 */
    height: 100vh;
    /* 뷰포트 높이 사용 */
}

@media (min-width: 769px) {
    body.survey-popup-page {
        width: var(--popup-width);
        height: var(--popup-height);
    }
}

.survey-popup-container {
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header Section */
.survey-header {
    background: #0a1931;
    /* 기본 배경색 */
    background-image:
        radial-gradient(circle at 100% 0%, rgba(26, 60, 110, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(10, 25, 49, 1) 0%, transparent 50%);
    padding: 15px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.survey-header::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: transparent;
    border: 40px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    z-index: 1;
}

.survey-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(30, 112, 214, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    /* 마진 추가 축소 */
}

.logo img {
    height: 30px;
    /* 로고 크기 약간 축소 */
    filter: brightness(0) invert(1);
}

.ir-notice-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    display: inline-block;
    /* 추가 */
    cursor: pointer;
    /* 추가 */
    position: relative;
    /* 추가 */
    z-index: 10;
    /* 추가: 배경 장식보다 위로 */
    transition: background 0.2s;
}

.ir-notice-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.header-content {
    position: relative;
    z-index: 2;
    /* 패턴보다 위로 */
}

.header-content h4 {
    font-size: 12px;
    /* 14px -> 12px */
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 10px;
    opacity: 0.5;
    /* 0.8 -> 0.5 */
}

.header-content h1 {
    font-size: 28px;
    /* 폰트 크기 약간 축소 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.header-content h1 span {
    color: #80eaff;
    /* 요청하신 하늘색/민트색 계열 */
}

.header-content p {
    font-size: 13px;
    /* 14px -> 13px */
    opacity: 0.7;
    margin: 0;
}

/* Body Section */
.survey-body {
    flex: 1;
    padding: 20px 25px;
    /* 패딩 축소 */
    background-color: #fff;
    overflow-y: auto;
}

.info-card {
    background-color: #f8faff;
    border-radius: 12px;
    padding: 15px 20px;
    /* 패딩 축소 */
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    /* 마진 축소 */
}

.info-icon {
    width: 48px;
    height: 48px;
    background-color: #0a1931;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #fff;
    font-size: 18px;
}

.info-text .label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.info-text .value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* Steps */
.method-section {
    margin: 15px 0;
    /* 마진 축소 */
    text-align: center;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    /* 마진 축소 */
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #eee;
}

.section-divider span {
    padding: 0 15px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #333;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.step-item {
    flex: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    background-color: #0a1931;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    font-size: 15px;
}

.step-item p {
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    margin: 0;
}

.step-arrow {
    color: var(--primary-blue);
    font-size: 12px;
}

/* Button */
.cta-button {
    background: linear-gradient(90deg, #0a3d82 0%, #1e70d6 100%);
    color: #fff;
    width: 100%;
    padding: 15px;
    /* 패딩 축소 */
    border-radius: 12px;
    border: none;
    font-size: 18px;
    /* 폰트 크기 축소 */
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 15px;
    /* 마진 축소 */
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.cta-button .icon-left {
    font-size: 24px;
    opacity: 0.9;
}

.cta-button .icon-right {
    font-size: 18px;
    opacity: 0.7;
}

/* Gift Card */
.gift-card {
    background: linear-gradient(135deg, #1a325a 0%, #0a1931 100%);
    border-radius: 12px;
    padding: 15px;
    /* 패딩 축소 */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.gift-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.gift-icon {
    font-size: 40px;
    margin-right: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.gift-info h5 {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.gift-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gift-info p {
    font-size: 12px;
    opacity: 0.6;
    margin: 0;
}

/* Notice List */
.notice-box {
    background-color: #f5f8fc;
    border-radius: 12px;
    padding: 15px;
    /* 패딩 축소 */
    margin-top: 15px;
    /* 마진 축소 */
}

.notice-box h6 {
    font-size: 13px;
    /* 폰트 크기 축소 */
    font-weight: 700;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    /* 마진 축소 */
    color: #1e70d6;
}

.notice-box h6::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background-color: #1e70d6;
    margin-right: 8px;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
}

.notice-list li::before {
    content: '※';
    position: absolute;
    left: 0;
    top: 0;
}

.notice-list li strong {
    color: #333;
}

/* Integrated Bottom Bar */
.privacy-info-bar {
    background-color: #0d1b32;
    padding: 10px 25px;
    display: flex;
    flex-direction: column;
    /* 세로로 배치하여 슬림하게 조정 */
    gap: 8px;
    color: #fff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.privacy-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    /* 12px -> 8px */
}

.privacy-left p {
    font-size: 11px;
    margin: 0 0 4px 0;
    opacity: 0.5;
    letter-spacing: -0.2px;
}

.privacy-left a {
    font-size: 11px;
    color: #3e8ede;
    text-decoration: underline;
    opacity: 0.8;
}

.privacy-right {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.2;
}

.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-group {
    display: flex;
    gap: 12px;
}

.dont-show-checkbox {
    display: flex;
    align-items: center;
    font-size: 11px;
    /* 12px -> 11px */
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    user-select: none;
}

.dont-show-checkbox input {
    margin-right: 5px;
    width: 13px;
    height: 13px;
    accent-color: #3e8ede;
}

.close-link {
    font-size: 12px;
    color: #fff;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-weight: 500;
    opacity: 0.8;
}

.close-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .survey-header {
        padding: 15px 20px;
    }

    .header-content h1 {
        font-size: 22px;
    }

    .survey-body {
        padding: 15px 20px;
    }

    .info-card {
        padding: 10px 15px;
    }

    .info-icon {
        width: 32px;
        /* 36px -> 32px */
        height: 32px;
        font-size: 13px;
        margin-right: 10px;
    }

    .info-text .label {
        font-size: 11px;
        /* 13px -> 11px */
    }

    .info-text .value {
        font-size: 13px;
        /* 14px -> 13px */
    }

    .step-item p {
        font-size: 10px;
    }

    .cta-button {
        padding: 12px;
        font-size: 16px;
    }

    .gift-icon {
        font-size: 30px;
        margin-right: 15px;
    }

    .gift-info h4 {
        font-size: 15px;
    }

    .privacy-info-bar {
        padding: 10px 15px;
    }

    .privacy-right {
        font-size: 11px;
    }
}

/* Custom Scrollbar */
.survey-body::-webkit-scrollbar {
    width: 6px;
}

.survey-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.survey-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.survey-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}