/* TJP Stripe Payment Modal Styles */
.tjp-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px 0;
}

.tjp-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: tjpModalSlideIn 0.3s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes tjpModalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tjp-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.tjp-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.tjp-modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.tjp-modal-close:hover {
    opacity: 0.7;
}

.tjp-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 120px);
}

.tjp-subscription-summary {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    margin-bottom: 30px;
}

.tjp-subscription-summary h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.tjp-price {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
    margin: 10px 0;
}

.tjp-subscription-summary p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

.tjp-form-group {
    margin-bottom: 20px;
}

.tjp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.tjp-form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.tjp-form-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#tjp-card-element {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background-color: white;
    transition: border-color 0.3s;
}

#tjp-card-element.StripeElement--focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#tjp-card-element.StripeElement--invalid {
    border-color: #fa755a;
}

.tjp-payment-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.tjp-payment-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.tjp-payment-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tjp-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: tjpSpin 1s linear infinite;
    display: inline-block;
}

.tjp-spinner.hidden {
    display: none;
}

@keyframes tjpSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tjp-payment-security {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tjp-payment-security p {
    color: #666;
    font-size: 13px;
    margin: 0;
}

.tjp-payment-security i {
    color: #27ae60;
    margin-right: 5px;
}

.tjp-payment-success {
    text-align: center;
    padding: 40px 20px;
}

.tjp-payment-success i {
    font-size: 64px;
    color: #27ae60;
    margin-bottom: 20px;
}

.tjp-payment-success h4 {
    color: #27ae60;
    font-size: 24px;
    margin: 0 0 15px;
}

.tjp-payment-success p {
    color: #666;
    margin: 10px 0;
}

/* Subscription Plans Styling */
.tjp-subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.tjp-plan-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tjp-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.tjp-plan-card.tjp-plan-featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tjp-plan-card.tjp-plan-featured::before {
    content: "POPULAR";
    position: absolute;
    top: 15px;
    right: -30px;
    background: #ff6b6b;
    color: white;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
}

.tjp-plan-name {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px;
    text-align: center;
}

.tjp-plan-price {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.tjp-plan-price .currency {
    font-size: 24px;
    vertical-align: top;
}

.tjp-plan-period {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.8;
}

.tjp-plan-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.tjp-plan-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.tjp-plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.tjp-plan-card.tjp-plan-featured .tjp-plan-features li::before {
    color: #fff;
}

.tjp-purchase-plan {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tjp-plan-card:not(.tjp-plan-featured) .tjp-purchase-plan {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tjp-plan-card.tjp-plan-featured .tjp-purchase-plan {
    background: white;
    color: #667eea;
}

.tjp-purchase-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .tjp-modal {
        padding: 10px 0;
    }
    
    .tjp-modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 95vh;
    }

    .tjp-modal-header {
        padding: 15px 20px;
    }

    .tjp-modal-body {
        padding: 20px;
        max-height: calc(95vh - 100px);
    }

    .tjp-subscription-plans {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tjp-plan-card {
        margin-bottom: 15px;
    }

    .tjp-plan-price {
        font-size: 28px;
    }
}

/* Error styling */
#tjp-card-errors {
    color: #fa755a;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    display: none;
}

#tjp-card-errors.show {
    display: block;
} 