/* 요금제 페이지 스타일 - ai-diagnosis.css와 동일한 구조 */

/* 요금제 히어로 비주얼 - SVG 일러스트 */
.pricing-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.pricing-image {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

/* 반응형 히어로 이미지 */
.pricing-hero-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .pricing-hero-image {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .pricing-hero-image {
        max-width: 200px;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 요금제 그리드 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 요금제 카드 스타일 - 깔끔한 디자인 */
.pricing-plan-card {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pricing-plan-card.popular {
    border: 2px solid #05b981;
    background: #f9fafb;
}

.pricing-plan-card.highlight {
    border: 2px solid #05b981;
    background: #f0fdf4;
}

.popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #05b981;
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

/* 카드 헤더 - 깔끔한 디자인 */
.card-header {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0;
    flex-shrink: 0;
    background: transparent;
}

.plan-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #05b981;
}

.pricing-plan-card.popular .plan-icon {
    background: #05b981;
    color: white;
    border-color: #05b981;
}

.plan-info {
    flex: 1;
}

.plan-title-section {
    /* 플랜 제목 섹션 */
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-align: left;
}

.plan-price {
    flex-shrink: 0;
    margin-left: 20px;
}

.price-amount {
    font-size: 1.2em;
    font-weight: 600;
    color: #05b981;
    white-space: nowrap;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.plan-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    text-align: left;
    display: block;
}

/* 카드 바디 - 깔끔한 디자인 */
.card-body {
    padding: 0 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    text-align: left;
}

.plan-features {
    flex-grow: 1;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.9rem;
    min-height: 44px;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-label {
    color: #374151;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
    text-align: left;
}

.feature-value {
    color: #6b7280;
    font-weight: 600;
    text-align: left;
    min-width: 60px;
    line-height: 1.4;
}

.feature-value.highlight {
    color: #05b981;
    font-weight: 600;
}

/* 카드 푸터 - 깔끔한 디자인 */
.card-footer {
    padding: 24px;
    flex-shrink: 0;
    background: transparent;
}

.card-footer .btn-primary,
.card-footer .btn-secondary {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.card-footer .btn-primary {
    background: #05b981;
    color: white;
}

.card-footer .btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 185, 129, 0.3);
}

.card-footer .btn-secondary {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.card-footer .btn-secondary:hover {
    background: #f9fafb;
    border-color: #05b981;
    color: #05b981;
    transform: translateY(-2px);
}

/* 플랜 추천 도우미 */
.plan-recommender {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 32px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.plan-recommender h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
}

.recommendation-options {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.recommend-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recommend-btn:hover {
    border-color: #05b981;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 185, 129, 0.15);
}

.recommend-btn.active {
    border-color: #05b981;
    background: #05b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 185, 129, 0.25);
}

.recommend-btn span {
    font-weight: 600;
    font-size: 1rem;
}

.recommend-btn small {
    font-size: 0.85rem;
    opacity: 0.8;
    text-decoration: underline;
}

/* 카드 하이라이트 효과 */
.pricing-plan-card.highlight {
    transform: scale(1.05);
    border-color: #05b981;
    box-shadow: 0 20px 40px rgba(5, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 20px 40px rgba(5, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 25px 50px rgba(5, 185, 129, 0.3);
    }
}

/* FAQ 프로세스 비주얼 */
.pricing-comparison-mockup {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    padding: 20px;
}

.mockup-plan {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease;
}

.mockup-plan.free {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #cbd5e1;
}

.mockup-plan.premium {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #3b82f6;
    transform: translateY(-5px);
}

.mockup-plan.unlimited {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
}

.mockup-plan-name {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.mockup-plan-price {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.mockup-features {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mockup-feature {
    font-size: 8px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}

/* FAQ 그리드 스타일 */
.pricing-faq-section {
    padding: 80px 0;
    background: #f8fafc;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid #05b981;
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #05b981;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* 대형 데스크톱 반응형 디자인 */
@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        padding: 0 24px;
    }

    .card-header {
        padding: 20px 0;
    }

    .card-body {
        padding: 0 28px 28px;
    }

    .card-footer {
        padding: 28px;
    }

    .diagnosis-feature-icon {
        width: 72px;
        height: 72px;
    }

    .plan-name {
        font-size: 1.6rem;
        margin: 0 0 10px 0;
    }

    .price-amount {
        font-size: 1.4em;
    }

    .feature-item {
        font-size: 0.95rem;
        padding: 14px 0;
        min-height: 48px;
    }
}

/* 태블릿 반응형 디자인 */
@media (max-width: 1024px) and (min-width: 769px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        padding: 0 16px;
    }

    .card-header {
        padding: 18px 0;
    }

    .card-body {
        padding: 0 20px 20px;
    }

    .card-footer {
        padding: 20px;
    }

    .diagnosis-feature-icon {
        width: 56px;
        height: 56px;
    }

    .plan-name {
        font-size: 1.3rem;
        margin: 0 0 8px 0;
    }

    .price-amount {
        font-size: 1.3em;
    }

    .feature-item {
        font-size: 0.85rem;
        padding: 10px 0;
        min-height: 40px;
    }
}

/* 모바일 반응형 디자인 */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }

    .pricing-plan-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .card-header {
        padding: 16px 0;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
    }

    .card-body {
        padding: 0 20px 20px;
    }

    .card-footer {
        padding: 20px;
    }

    .diagnosis-feature-icon {
        width: 56px;
        height: 56px;
    }

    .plan-name {
        font-size: 1.3rem;
        margin: 0 0 8px 0;
    }

    .price-amount {
        font-size: 1.3em;
    }

    .feature-item {
        font-size: 0.85rem;
        padding: 10px 0;
        min-height: 40px;
    }

    .plan-recommender {
        padding: 24px;
        margin: 30px 0;
    }

    .recommendation-options {
        flex-direction: column;
        gap: 12px;
    }

    .recommend-btn {
        min-width: auto;
        padding: 16px 20px;
    }

    .pricing-comparison-mockup {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .mockup-plan {
        min-width: 70px;
        padding: 12px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .faq-item {
        padding: 25px;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }
}

/* 소형 모바일 반응형 디자인 */
@media (max-width: 480px) {
    .pricing-grid {
        padding: 0 12px;
    }

    .card-header {
        padding: 14px 0;
    }

    .card-body {
        padding: 0 16px 16px;
    }

    .card-footer {
        padding: 16px;
    }

    .diagnosis-feature-icon {
        width: 48px;
        height: 48px;
    }

    .plan-name {
        font-size: 1.2rem;
        margin: 0 0 6px 0;
    }

    .price-amount {
        font-size: 1.2em;
    }

    /* 모바일 화면에서 요금제 카드 feature-item 레이아웃 조정 */
    @media (max-width: 480px) {
        .feature-item {
            /* 모바일에서도 같은 줄 유지 */
            flex-direction: row;
            align-items: center;
            gap: 8px;
            padding: 8px 0;
            min-height: 40px;
            flex-wrap: nowrap;
        }

        .feature-label {
            /* 라벨이 길어도 한 줄 유지 + 말줄임 */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            min-width: 0;
        }

        .feature-value {
            /* 값 줄바꿈 방지 */
            text-align: left;
            min-width: auto;
            white-space: nowrap;
        }
    }

    .faq-item {
        padding: 20px;
    }

    .faq-item h3 {
        font-size: 1rem;
    }

    .faq-item p {
        font-size: 0.9rem;
    }
}