/* 요금제 페이지 스타일 */
.pricing-hero {
    background: #3182f6;
    padding: 80px 0;
    color: white;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.pricing-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-options {
    padding: 60px 0;
}

.subscription-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.subscription-toggle button {
    padding: 12px 25px;
    border-radius: 30px;
    border: 2px solid #3182f6;
    background: white;
    color: #3182f6;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.subscription-toggle button.active {
    background: #3182f6;
    color: white;
}

.pricing-card {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    margin: 40px auto;
    max-width: 800px;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-header {
    background: #3182f6;
    padding: 30px;
    color: white;
    text-align: center;
}

.plan-name {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
}

.plan-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 400;
}

.price-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-right: 15px;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
    color: white;
}

.period {
    font-size: 1rem;
    color: white;
    font-weight: 400;
}

.original-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-right: 15px;
}

.discount-badge {
    background-color: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.pricing-body {
    padding: 30px;
}

.total-price {
    background-color: #f0f5ff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.2rem;
}

.total-amount {
    font-weight: 700;
    color: #3182f6;
}

.billing-period {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.features {
    margin-bottom: 30px;
}

.features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.features li i {
    color: #3182f6;
    margin-right: 10px;
}

.pricing-footer {
    padding: 30px;
    border-top: 1px solid #e0e0e0;
}

.promo-code {
    display: flex;
    margin-bottom: 15px;
}

.promo-code input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.promo-code button {
    padding: 12px 20px;
    background-color: #3182f6;
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.promo-code button:hover {
    background-color: #1e56cc;
}

.promo-message {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.promo-message.success {
    color: var(--success-color);
}

.promo-message.error {
    color: var(--danger-color);
}

.subscribe-btn {
    width: 100%;
    padding: 15px;
    background-color: #3182f6;
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-btn:hover {
    background-color: #1e56cc;
}

/* 결제 모달 스타일 */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 15% auto;
    padding: 0;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.modal-actions {
    display: flex;
    align-items: center;
}

.change-plan-btn {
    background: none;
    border: none;
    color: #3182f6;
    font-weight: 500;
    cursor: pointer;
    margin-right: 15px;
    font-size: 0.8rem;
    text-decoration: none;
}

.close-modal {
    font-size: 1.3rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.payment-form {
    padding: 15px 20px;
}

/* 결제 모달 내부 요소 스타일 */
.plan-details {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.plan-logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-logo img {
    max-width: 100%;
    max-height: 100%;
}

.plan-info {
    flex: 1;
}

.plan-info h3 {
    margin: 0 0 3px 0;
    font-size: 1.1rem;
    color: #333;
}

.plan-info p {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: #666;
}

.plan-price {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: #3182f6 !important;
    margin-top: 5px !important;
}

.payment-info-section {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.payment-info-section p {
    margin: 0 0 5px 0;
    font-size: 0.8rem;
    color: #666;
}

.payment-provider {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    background-color: #3182f6;
    padding: 15px 0;
    border-radius: 5px;
}

.toss-logo {
    max-width: 150px;
    height: auto;
    filter: brightness(1.1);
}

#process-payment {
    width: 100%;
    padding: 15px;
    background-color: #3182f6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#process-payment:hover {
    background-color: #2a70d8;
}

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

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
}

.payment-btn {
    width: 100%;
    padding: 15px;
    background-color: #3182f6;
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.payment-btn:hover {
    background-color: #2a70d8;
}

.payment-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.payment-result.success {
    background-color: #e8f5e9;
    color: var(--success-color);
}

/* 결제 알림 팝업 스타일 */
.payment-notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.notification-content {
    position: relative;
    background-color: #3182f6;
    color: white;
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.notification-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.notification-message {
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.notification-details {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
    text-align: left;
    font-size: 0.9rem;
}

.notification-confirm-btn {
    padding: 12px 30px;
    background-color: white;
    color: #3182f6;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-confirm-btn:hover {
    background-color: #f0f0f0;
}

.notification-content.success {
    background-color: #28a745;
}

.notification-content.error {
    background-color: #dc3545;
}

/* 추가 스타일 */
.benefits-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.benefit-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

/* 반응형 미디어 쿼리 */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
}

@media (max-width: 576px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
    }
}

.benefit-card i {
    font-size: 2.5rem;
    color: #3182f6;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.benefit-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.subscription-info {
    padding: 50px 0;
    background-color: white;
    text-align: center;
}

.subscription-info h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 2rem;
}

.info-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    text-align: left;
}

.info-card h3 {
    color: #3182f6;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.info-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.pricing-footer-cta {
    background: #3182f6;
    padding: 60px 0;
    text-align: center;
    color: white;
}

.pricing-footer-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.pricing-footer-cta .cta-button {
    background-color: white;
    color: #3182f6;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.pricing-footer-cta .cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.benefit-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: #3182f6;
    margin-bottom: 15px;
}

.benefit-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.benefit-description {
    color: #666;
    line-height: 1.5;
}

.subscription-cycle {
    padding: 60px 0;
    background-color: white;
}

.cycle-info {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cycle-points {
    margin-top: 30px;
}

.cycle-point {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.cycle-point h3 {
    color: #3182f6;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cycle-point p {
    color: #666;
    line-height: 1.5;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-info {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.pricing-info h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.info-section {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-section h3 {
    color: #3182f6;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-hero h1 {
        font-size: 2rem;
    }
    
    .pricing-footer-cta h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
}

.payment-result.error {
    background-color: #ffebee;
    color: var(--danger-color);
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 2rem;
    }
    
    .pricing-hero p {
        font-size: 1rem;
    }
    
    .subscription-toggle {
        flex-direction: column;
        align-items: center;
    }
    
    .subscription-toggle button {
        margin: 5px 0;
        width: 200px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
