/* =============================================
   모바일 전용 추가 CSS - PC 레이아웃 변경 없음
   ============================================= */

/* ── 필수/선택 뱃지 ── */
.required-badge {
    display: inline-block;
    background: #718096;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.optional-badge {
    display: inline-block;
    background: #e2e8f0;
    color: #718096;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── 금액 한글 변환 표시 ── */
.money-display {
    margin-top: 6px;
    padding: 6px 12px;
    background: linear-gradient(90deg, #ebf8ff, #e3f2fd);
    border-left: 3px solid #0066cc;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #0066cc;
}

/* ── 법적고지 섹션 ── */
.legal-notice-section {
    background: #1a202c;
    border-top: 3px solid #e53e3e;
    padding: 24px 0;
    color: #e2e8f0;
}
.legal-notice-section .container { padding: 0 20px; }
.legal-notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.legal-notice-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.legal-notice-items li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e0;
    line-height: 1.7;
}
.legal-notice-items li::before {
    content: "•";
    color: #e53e3e;
    font-size: 16px;
    line-height: 1.4;
    flex-shrink: 0;
}

/* ── 완전무료 박스: 기본 숨김 ── */
.free-cta-box { display: none; }

/* ── PC 버튼 효과 ── */
@keyframes heroPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,200,0,0.6); transform: scale(1); }
    50% { box-shadow: 0 0 0 14px rgba(255,200,0,0); transform: scale(1.03); }
}
.hero-calc-btn {
    animation: heroPulse 2s ease-in-out infinite;
}

/* ============================================
   PC에서 법적고지 섹션 숨김 (footer-legal 사용)
   ============================================ */
@media (min-width: 769px) {
    .legal-notice-section { display: none; }
    .free-cta-box { display: none; }
}

/* ============================================
   모바일 전용 (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

    #about { display: none; }

    /* ── Hero ── */
    .hero { padding: 28px 16px 24px; }
    .hero-title {
        font-size: 26px;
        line-height: 1.4;
        margin-bottom: 12px;
        word-break: keep-all;
    }
    .hero-subtitle {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 8px;
        word-break: keep-all;
        white-space: normal;
    }
    .hero-keywords {
        font-size: 12px;
        margin-bottom: 20px;
        line-height: 1.8;
        word-break: keep-all;
        white-space: normal;
    }

    /* Hero CTA 버튼 */
    @keyframes ctaPulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(255,200,0,0.7); transform: scale(1); }
        50% { box-shadow: 0 0 0 12px rgba(255,200,0,0); transform: scale(1.04); }
    }
    .hero .btn-primary {
        animation: ctaPulse 2s ease-in-out infinite;
        font-size: 17px;
        padding: 15px 28px;
    }

    /* ── 계산기 ── */
    .calculator { padding: 20px 0 32px; }
    .section-title { font-size: 20px; margin-bottom: 14px; }

    /* ── 탭 버튼 ── */
    .tabs { flex-direction: column; gap: 10px; margin-bottom: 16px; padding: 0 4px; }
    .tab-button {
        width: 100%;
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 10px;
        justify-content: center;
    }
    .tab-button[data-tab="before"] { border: 2px solid #0066cc; color: #0066cc; background: #f0f7ff; }
    .tab-button[data-tab="before"].active { background: #0066cc; color: #fff; border-color: #0066cc; }
    .tab-button[data-tab="after"] { border: 2px solid #e53e3e; color: #e53e3e; background: #fff5f5; font-weight: 800; }
    .tab-button[data-tab="after"].active { background: #e53e3e; color: #fff; border-color: #e53e3e; }

    .tab-content { padding: 16px; border-radius: 12px; }

    /* ── 완전무료 박스 (반짝이 효과 포함) ── */
    @keyframes shinePulse {
        0% { box-shadow: 0 4px 12px rgba(255,183,0,0.3); }
        50% { box-shadow: 0 4px 24px rgba(255,183,0,0.8), 0 0 0 6px rgba(255,215,0,0.2); }
        100% { box-shadow: 0 4px 12px rgba(255,183,0,0.3); }
    }
    .free-cta-box {
        display: block;
        background: linear-gradient(135deg, #ffd700, #ffb700);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        text-align: center;
        color: #222;
        font-weight: 700;
        animation: shinePulse 2s ease-in-out infinite;
    }
    .free-cta-box .free-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
    .free-cta-box ul { list-style: none; padding: 0; margin: 0; font-size: 14px; font-weight: 600; }
    .free-cta-box ul li { margin: 4px 0; }
    .free-cta-box ul li::before { content: "✓ "; color: #0066cc; }

    /* 파란 안내 배너 숨김 */
    .free-service-notice { display: none; }

    /* ── 폼 ── */
    .form-section { margin-bottom: 20px; }
    .form-section-title { font-size: 15px; line-height: 1.5; }
    .form-grid { gap: 14px; }
    .form-group label { font-size: 14px; margin-bottom: 6px; display: block; }
    .form-group input,
    .form-group select {
        padding: 12px 13px;
        font-size: 15px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    .form-help { font-size: 12px; margin-top: 4px; color: #888; }

    /* ── 금액 표시 ── */
    .money-display { font-size: 13px; padding: 5px 10px; margin-top: 5px; }

    /* ── 제출 버튼 ── */
    .btn-block.btn-large {
        font-size: 17px;
        padding: 16px;
        border-radius: 10px;
        margin-top: 8px;
        width: 100%;
    }

    /* ── 법적고지 모바일 ── */
    .legal-notice-section { display: block; padding: 20px 0; }
    .legal-notice-header { font-size: 15px; }
    .legal-notice-items li { font-size: 12px; }

    /* ── 푸터 ── */
    .footer { padding: 24px 16px 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 20px; }
    .footer-legal { font-size: 11px; padding: 14px; line-height: 1.8; }

    /* ── 대장TV 채널 링크 색상 ── */
    .footer-backlinks a { padding-left: 14px !important; border-radius: 8px; margin-bottom: 4px; }
    .footer-backlinks a:nth-child(1) { color: #ff0000 !important; border-left: 3px solid #ff0000; } /* YouTube */
    .footer-backlinks a:nth-child(2) { color: #FEE500 !important; border-left: 3px solid #FEE500; } /* 무료상담 */
    .footer-backlinks a:nth-child(3) { color: #00c73c !important; border-left: 3px solid #00c73c; } /* 무료설명회 */
    .footer-backlinks a:nth-child(4) { color: #03c75a !important; border-left: 3px solid #03c75a; } /* 공식카페 */
    .footer-backlinks a:nth-child(5) { color: #0066cc !important; border-left: 3px solid #0066cc; } /* 대장옥션 */

    /* ── 진행바 ── */
    .progress-container { margin-bottom: 16px; }

    /* ── 결과 섹션 ── */
    .loan-cards { grid-template-columns: 1fr !important; gap: 16px; }
    .result-summary { grid-template-columns: 1fr 1fr; gap: 10px; }
    .result-cta { padding: 20px 16px; }
}
