/* ==========================================================================
   유플러스 프리미엄 콘텐츠 디자인 고도화 CSS (Premium Content Design System)
   작업지시서 4-2 ~ 12 항목 반영
   ========================================================================== */

/* --------------------------------------------------------------------------
   4-2. 권장 색상 (:root Color System)
   -------------------------------------------------------------------------- */
:root {
    --premium-primary: #d81920;
    --premium-primary-dark: #a80f15;
    --premium-primary-light: #fff2f3;

    --premium-navy: #17233c;
    --premium-blue: #315f9f;
    --premium-sky: #eef5ff;

    --premium-text: #202735;
    --premium-text-sub: #5d6675;
    --premium-text-light: #7d8694;

    --premium-bg: #ffffff;
    --premium-bg-soft: #f7f9fc;
    --premium-bg-warm: #fff9f7;

    --premium-line: #e5e9f0;
    --premium-line-dark: #d5dae3;

    --premium-success: #23865c;
    --premium-warning: #d48716;

    --premium-shadow:
        0 12px 35px rgba(26, 37, 56, 0.08);
}

/* --------------------------------------------------------------------------
   7-1. 타이포그래피 기본 글꼴
   -------------------------------------------------------------------------- */
.premium-page-hero,
.premium-section,
.premium-container,
.premium-readable {
    font-family:
        "Pretendard",
        "Noto Sans KR",
        "Apple SD Gothic Neo",
        "Malgun Gothic",
        sans-serif;
    color: var(--premium-text);
    box-sizing: border-box;
}

.premium-page-hero *,
.premium-section * {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   5. 콘텐츠 최대 폭과 정렬
   -------------------------------------------------------------------------- */
.premium-container {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

.premium-readable {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .premium-container {
        width: min(100% - 36px, 1440px);
    }
}

@media (max-width: 768px) {
    .premium-container {
        width: min(100% - 28px, 1440px);
    }
}

@media (max-width: 480px) {
    .premium-container {
        width: min(100% - 20px, 1440px);
    }
}

/* --------------------------------------------------------------------------
   7-2. 글자 크기 기준 (PC & 모바일)
   -------------------------------------------------------------------------- */
.premium-page-title {
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.18;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--premium-navy);
    margin: 12px 0 20px 0;
    word-break: keep-all;
}

.premium-section-title {
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.28;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--premium-navy);
    margin: 8px 0 14px 0;
    word-break: keep-all;
}

.premium-card-title {
    font-size: 21px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--premium-navy);
    margin: 16px 0 10px 0;
}

.premium-body {
    font-size: 17px;
    line-height: 1.85;
    color: var(--premium-text);
    word-break: keep-all;
}

.premium-description {
    font-size: 16px;
    line-height: 1.75;
    color: var(--premium-text-sub);
    word-break: keep-all;
}

@media (max-width: 768px) {
    .premium-page-title {
        font-size: 30px;
    }

    .premium-section-title {
        font-size: 25px;
    }

    .premium-card-title {
        font-size: 19px;
    }

    .premium-body,
    .premium-description {
        font-size: 15px;
        line-height: 1.75;
    }
}

/* --------------------------------------------------------------------------
   6 & 16. 페이지 상단 인트로 영역 (.premium-page-hero & ::before 감성 장식)
   -------------------------------------------------------------------------- */
.premium-page-hero {
    position: relative;
    padding: 70px 0;
    background: linear-gradient(135deg, var(--premium-bg-soft) 0%, var(--premium-sky) 100%);
    border-bottom: 1px solid var(--premium-line);
    overflow: hidden;
}

.premium-page-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -100px;
    top: -130px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(216, 25, 32, 0.14),
            rgba(216, 25, 32, 0)
        );
    pointer-events: none;
}

.premium-page-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.premium-page-hero__content {
    flex: 1;
    max-width: 760px;
}

.premium-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--premium-primary);
    background: var(--premium-primary-light);
    border: 1px solid rgba(216, 25, 32, 0.2);
    padding: 6px 16px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.premium-page-summary {
    font-size: 19px;
    line-height: 1.65;
    color: var(--premium-text-sub);
    margin-bottom: 32px;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .premium-page-summary {
        font-size: 16px;
        margin-bottom: 24px;
    }
}

/* --------------------------------------------------------------------------
   15. 버튼 디자인 통일 (.premium-btn & .premium-page-actions)
   -------------------------------------------------------------------------- */
.premium-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.premium-btn {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 25px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
    box-sizing: border-box;
}

.premium-btn--primary {
    background:
        linear-gradient(
            135deg,
            var(--premium-primary),
            var(--premium-primary-dark)
        );
    color: #ffffff !important;
    box-shadow:
        0 12px 25px rgba(216, 25, 32, 0.25);
}

.premium-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 30px rgba(216, 25, 32, 0.32);
}

.premium-btn--outline {
    border-color: var(--premium-line-dark);
    background: #ffffff;
    color: var(--premium-text) !important;
}

.premium-btn--outline:hover {
    background: var(--premium-bg-soft);
    border-color: var(--premium-blue);
    color: var(--premium-blue) !important;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .premium-page-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .premium-btn {
        width: 100%;
    }
}

.premium-page-hero__visual {
    flex: 0 0 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: var(--premium-shadow);
    border: 8px solid rgba(255, 255, 255, 0.6);
}

.premium-page-hero__visual i {
    font-size: 110px;
    background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 992px) {
    .premium-page-hero__visual {
        flex: 0 0 180px;
        height: 180px;
    }
    .premium-page-hero__visual i {
        font-size: 70px;
    }
}

@media (max-width: 768px) {
    .premium-page-hero {
        padding: 45px 0;
    }
    .premium-page-hero__inner {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 24px;
    }
    .premium-page-hero__visual {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   8 & 9. 섹션 공통 구조 & 배경 구분 (.premium-section)
   -------------------------------------------------------------------------- */
.premium-section {
    padding: 90px 0;
    background: var(--premium-bg);
}

.premium-section:nth-of-type(even) {
    background: var(--premium-bg-soft);
}

.premium-section--white { background: var(--premium-bg) !important; }
.premium-section--soft  { background: var(--premium-bg-soft) !important; }
.premium-section--warm  { background: var(--premium-bg-warm) !important; }
.premium-section--dark  { background: var(--premium-navy) !important; color: #ffffff !important; }
.premium-section--dark .premium-section-title { color: #ffffff !important; }
.premium-section--dark .premium-section-description { color: var(--premium-line) !important; }

.premium-section-head {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 54px;
}

.premium-section-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--premium-primary);
    background: var(--premium-primary-light);
    border-radius: 16px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.03em;
}

.premium-section-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--premium-blue);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.premium-section-description {
    font-size: 17px;
    color: var(--premium-text-sub);
    margin: 0;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .premium-section {
        padding: 60px 0;
    }
    .premium-section-head {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 36px;
    }
    .premium-section-number {
        font-size: 24px;
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
}

/* --------------------------------------------------------------------------
   10-3. 아이콘 디자인 (.premium-icon)
   -------------------------------------------------------------------------- */
.premium-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background:
        linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
    border: 1px solid rgba(216, 25, 32, 0.12);
    box-shadow: 0 10px 25px rgba(216, 25, 32, 0.08);
    color: var(--premium-primary);
    font-size: 27px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   11. 카드형 콘텐츠 디자인 (.premium-card-grid & .premium-card)
   -------------------------------------------------------------------------- */
.premium-card-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.premium-card {
    position: relative;
    min-width: 0;
    padding: 34px;
    border: 1px solid var(--premium-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--premium-shadow);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-6px);
    border-color: rgba(216, 25, 32, 0.3);
    box-shadow:
        0 20px 45px rgba(26, 37, 56, 0.13);
}

.premium-card-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--premium-text-sub);
    margin: 0;
    word-break: keep-all;
}

@media (max-width: 1024px) {
    .premium-card-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .premium-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .premium-card {
        padding: 24px 20px;
        border-radius: 19px;
    }
}

/* --------------------------------------------------------------------------
   12. 핵심 강조 박스 & 주의사항 박스 (.premium-highlight-box, .premium-notice)
   -------------------------------------------------------------------------- */
.premium-highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px;
    background: var(--premium-sky);
    border: 1px solid rgba(49, 95, 159, 0.2);
    border-radius: 20px;
    margin: 24px 0;
}

.premium-highlight-box__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--premium-blue);
    color: #ffffff;
    font-size: 22px;
    flex-shrink: 0;
}

.premium-highlight-box strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--premium-navy);
    margin-bottom: 6px;
}

.premium-highlight-box p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--premium-text-sub);
    margin: 0;
}

.premium-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px;
    border-radius: 16px;
    margin: 24px 0;
}

.premium-notice i {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.premium-notice strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.premium-notice p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.premium-notice--warning {
    background: #fff8eb;
    border: 1px solid rgba(212, 135, 22, 0.3);
    color: #8c5608;
}

.premium-notice--warning i {
    color: var(--premium-warning);
}

.premium-notice--success {
    background: #edf8f3;
    border: 1px solid rgba(35, 134, 92, 0.3);
    color: #145338;
}

.premium-notice--success i {
    color: var(--premium-success);
}

@media (max-width: 640px) {
    .premium-highlight-box {
        padding: 20px;
        gap: 14px;
    }
    .premium-notice {
        padding: 18px 20px;
        gap: 12px;
    }
}

/* --------------------------------------------------------------------------
   13. 상품 비교표 및 요금표 개선 (.premium-table-wrap & .premium-table)
   -------------------------------------------------------------------------- */
.premium-table-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--premium-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--premium-shadow);
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
}

.premium-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.premium-table thead th {
    padding: 20px 18px;
    background: var(--premium-navy, #17233c) !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    border-bottom: 2px solid var(--premium-navy, #17233c);
}

.premium-table tbody th {
    padding: 19px 18px;
    background: var(--premium-bg-soft, #f7f9fc) !important;
    color: var(--premium-navy, #17233c) !important;
    border-bottom: 1px solid var(--premium-line, #e5e9f0);
    border-right: 1px solid var(--premium-line, #e5e9f0);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    vertical-align: middle;
    word-break: keep-all;
}

.premium-table td {
    padding: 19px 18px;
    border-bottom: 1px solid var(--premium-line);
    color: var(--premium-text);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    vertical-align: middle;
}

.premium-table tbody tr:nth-child(even) td,
.premium-table tbody tr:nth-child(even) th {
    background: #fafbfc !important;
}

.premium-table tbody tr:hover td,
.premium-table tbody tr:hover th {
    background: var(--premium-primary-light, #fff2f3) !important;
}

@media (max-width: 768px) {
    .premium-table thead th,
    .premium-table tbody th,
    .premium-table td {
        padding: 14px 12px;
        font-size: 14px;
    }
}

/* --------------------------------------------------------------------------
   14. 상담 폼 프리미엄 디자인 (.premium-form)
   -------------------------------------------------------------------------- */
.premium-form {
    width: 100%;
}

.premium-form input[type="text"],
.premium-form input[type="tel"],
.premium-form input[type="email"],
.premium-form input[type="date"],
.premium-form select,
.premium-form textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid #dce1e9;
    border-radius: 13px;
    background: #ffffff;
    color: var(--premium-text);
    font-size: 16px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    box-sizing: border-box;
}

.premium-form textarea {
    min-height: 140px;
    resize: vertical;
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    border-color: var(--premium-primary);
    box-shadow:
        0 0 0 4px rgba(216, 25, 32, 0.1);
}

.premium-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.premium-form-full {
    grid-column: span 2 / span 2;
}

@media (max-width: 768px) {
    .premium-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .premium-form-full {
        grid-column: span 1 / span 1;
    }
    .premium-form input[type="text"],
    .premium-form input[type="tel"],
    .premium-form input[type="email"],
    .premium-form input[type="date"],
    .premium-form select {
        min-height: 52px;
    }
    .premium-form input[type="checkbox"],
    .premium-form input[type="radio"] {
        transform: scale(1.2);
        margin-right: 8px;
    }
    .premium-form label {
        padding: 6px 0;
        display: inline-block;
    }
}

/* --------------------------------------------------------------------------
   17. 프로세스 콘텐츠 디자인 (.premium-process)
   -------------------------------------------------------------------------- */
.premium-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    position: relative;
    margin: 30px 0;
}

.premium-process-item {
    position: relative;
    padding: 32px 28px;
    background: #ffffff;
    border: 1px solid var(--premium-line);
    border-radius: 24px;
    box-shadow: var(--premium-shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.premium-process-item:hover {
    transform: translateY(-5px);
    border-color: rgba(216, 25, 32, 0.3);
    box-shadow: 0 18px 40px rgba(26, 37, 56, 0.12);
}

.premium-process-number {
    font-size: 15px;
    font-weight: 800;
    color: var(--premium-primary);
    background: var(--premium-primary-light);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.premium-process-item h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--premium-navy);
    margin: 14px 0 8px 0;
}

.premium-process-item p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--premium-text-sub);
    margin: 0;
}

@media (max-width: 768px) {
    .premium-process {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .premium-process-item {
        padding: 24px 22px;
    }
}

/* --------------------------------------------------------------------------
   18. 하단 상담 CTA 영역 (.premium-bottom-cta)
   -------------------------------------------------------------------------- */
.premium-bottom-cta {
    padding: 76px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    color: var(--premium-text, #202735);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--premium-line, #e5e9f0);
    border-bottom: 1px solid var(--premium-line, #e5e9f0);
}

.premium-bottom-cta::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -5%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(216, 25, 32, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.premium-bottom-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.premium-bottom-cta__label {
    display: inline-block;
    padding: 6px 16px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.premium-bottom-cta h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--premium-navy, #17233c);
    margin: 0 0 12px 0;
    line-height: 1.35;
    word-break: keep-all;
}

.premium-bottom-cta p {
    font-size: 17px;
    color: var(--premium-text-sub, #5d6675);
    margin: 0;
    line-height: 1.6;
    word-break: keep-all;
}

.premium-bottom-cta__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.premium-bottom-cta .premium-btn--primary {
    background: linear-gradient(135deg, var(--premium-primary, #d81920) 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(216, 25, 32, 0.22) !important;
}

.premium-bottom-cta .premium-btn--outline {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--premium-navy, #17233c) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.premium-bottom-cta .premium-btn--outline:hover {
    background: var(--premium-navy, #17233c) !important;
    border-color: var(--premium-navy, #17233c) !important;
    color: #ffffff !important;
}

@media (max-width: 992px) {
    .premium-bottom-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
    .premium-bottom-cta__actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .premium-bottom-cta__actions .premium-btn {
        flex: 1;
        min-width: 200px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .premium-bottom-cta {
        padding: 52px 0;
        margin-top: 40px;
    }
    .premium-bottom-cta h2 {
        font-size: 23px;
    }
    .premium-bottom-cta p {
        font-size: 15px;
    }
    .premium-bottom-cta__actions .premium-btn {
        width: 100%;
        min-width: 100%;
        flex: none;
    }
}

/* --------------------------------------------------------------------------
   19. 모바일 최적화 및 반응형 공통 규칙
   -------------------------------------------------------------------------- */
.premium-content-page,
.premium-content-page *,
.premium-content-page *::before,
.premium-content-page *::after {
    box-sizing: border-box;
}

.premium-content-page img {
    max-width: 100%;
    height: auto;
}

.premium-content-page {
    overflow-x: hidden;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   20. 애니메이션 모션 감소 설정 (prefers-reduced-motion)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .premium-content-page *,
    .premium-content-page *::before,
    .premium-content-page *::after,
    .telephone-ars-page *,
    .telephone-ars-page *::before,
    .telephone-ars-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   21. 접근성 개선 (키보드 포커스 스타일 등)
   -------------------------------------------------------------------------- */
.premium-content-page a:focus-visible,
.premium-content-page button:focus-visible,
.premium-content-page input:focus-visible,
.premium-content-page select:focus-visible,
.premium-content-page textarea:focus-visible,
.telephone-ars-page a:focus-visible,
.telephone-ars-page button:focus-visible,
.telephone-ars-page input:focus-visible,
.telephone-ars-page select:focus-visible,
.telephone-ars-page textarea:focus-visible,
.premium-bottom-cta a:focus-visible,
.premium-bottom-cta button:focus-visible {
    outline: 3px solid rgba(216, 25, 32, 0.35);
    outline-offset: 3px;
}

