/*
 Theme Name:   Kadence Child
 Template:     kadence
 Version:      1.0.0
*/

.esewa-redirect-page {
    font-family: 'Segoe UI', Arial, sans-serif;
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #667eea 0%, #322c5c 100%);
    color: white;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.esewa-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.esewa-container h2 {
    margin-bottom: 20px;
    font-weight: 300;
}

.esewa-container p {
    margin: 10px 0;
    opacity: 0.9;
}

.manual-submit {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background 0.3s;
}

.manual-submit:hover {
    background: #218838;
}

/* Subscription Plans Styles */
.subscription-plans {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.plan-card {
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
}
.plan-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* push content + button apart */
}

.plan-features {
    flex-grow: 1; /* lets features stretch */
}

.plan-selection-form {
    margin-top: auto; /* forces button section to bottom */
}


.plan-card:hover {
    border-color: #007cba;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,124,186,0.1);
}
.plan-card.featured {
    border-color: #007cba;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,124,186,0.1);
}

.plan-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.plan-price {
    margin-bottom: 30px;
}

.plan-price .amount {
    font-size: 48px;
    font-weight: bold;
    color: #007cba;
}

.plan-price .currency,
.plan-price .duration {
    font-size: 18px;
    color: #666;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.plan-features li:last-child {
    border-bottom: none;
}

.btn-purchase {
    background: #007cba;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-purchase:hover {
    background: #005a87;
}

/* Updated Checkout Form Styles */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.selected-plan-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    border-left: 4px solid #007cba;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
}

.checkout-left {
    border-right: 1px solid #e1e5e9;
    padding-right: 30px;
}

.checkout-right {
    padding-left: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 5px rgba(0,124,186,0.3);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.payment-option:hover {
    border-color: #007cba;
    background: #f8f9fa;
}

.payment-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.payment-option.selected {
    border-color: #007cba;
    background: #e6f3ff;
}

.payment-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.payment-icon img {
    max-width: 35px;
    max-height: 35px;
    object-fit: contain;
}

.payment-icon.esewa-icon {
    background: #60bb46;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.payment-icon.bank-icon {
    background: #2c3e50;
    color: white;
    font-size: 18px;
}

.payment-text {
    flex: 1;
}

.payment-text .payment-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 3px;
}

.payment-text .payment-desc {
    font-size: 13px;
    color: #666;
}

.policy-agreement {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e1e5e9;
}

.policy-agreement label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.policy-agreement input[type="checkbox"] {
    margin-top: 3px;
    transform: scale(1.1);
}

.policy-agreement a {
    color: #007cba;
    text-decoration: none;
}

.policy-agreement a:hover {
    text-decoration: underline;
}

.btn-checkout {
    background: #28a745;
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.btn-checkout:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.btn-checkout:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checkout-form {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .checkout-left {
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
        padding-right: 0;
        padding-bottom: 30px;
    }
    
    .checkout-right {
        padding-left: 0;
        padding-top: 0;
    }
}

/* Success Page Styles */
.success-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.success-icon {
    margin-bottom: 30px;
}

.checkmark {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    font-size: 50px;
    line-height: 80px;
    border-radius: 50%;
}

.success-container h2 {
    color: #28a745;
    margin-bottom: 20px;
}

.success-container p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.btn-home {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 30px;
    transition: background 0.3s ease;
}

.btn-home:hover {
    background: #005a87;
}

/* Failed Page Styles */
.failed-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.failed-icon {
    margin-bottom: 30px;
}

.cross {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: #dc3545;
    color: white;
    font-size: 50px;
    line-height: 80px;
    border-radius: 50%;
}

.failed-container h2 {
    color: #dc3545;
    margin-bottom: 20px;
}

.failed-container p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.action-buttons {
    margin-top: 30px;
}

.btn-retry,
.btn-plans {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: background 0.3s ease;
}

.btn-retry {
    background: #28a745;
    color: white;
}

.btn-retry:hover {
    background: #218838;
}

.btn-plans {
    background: #007cba;
    color: white;
}

.btn-plans:hover {
    background: #005a87;
}
.status-paid, .status-active {
    color: #28a745;
    font-weight: bold;
    background: #d4edda;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.status-pending {
    color: #856404;
    font-weight: bold;
    background: #fff3cd;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.status-failed {
    color: #721c24;
    font-weight: bold;
    background: #f8d7da;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.wp-list-table th,
.wp-list-table td {
    padding: 12px 8px;
}

.wp-list-table td {
    font-size: 13px;
}

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
    .plans-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .plan-card {
        padding: 20px;
    }

    .checkout-form {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .checkout-left {
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .checkout-right {
        padding-left: 0;
    }

    .btn-checkout {
        font-size: 16px;
        padding: 15px 20px;
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .esewa-container {
        padding: 20px;
        max-width: 90%;
    }

    .esewa-container h2 {
        font-size: 20px;
    }

    .loading {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .plans-container {
        grid-template-columns: 1fr;
    }

    .plan-card {
        padding: 20px;
    }

    .plan-price .amount {
        font-size: 36px;
    }

    .checkout-container {
        padding: 15px;
    }

    .checkout-form {
        padding: 20px;
        gap: 20px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"] {
        font-size: 14px;
        padding: 10px;
    }

    .payment-option {
        padding: 12px;
    }

    .payment-icon {
        width: 35px;
        height: 35px;
    }

    .payment-icon img {
        max-width: 25px;
        max-height: 25px;
    }

    .btn-checkout,
    .btn-purchase,
    .manual-submit {
        font-size: 14px;
        padding: 12px 18px;
    }

    .success-container,
    .failed-container {
        margin: 20px;
        padding: 20px;
    }

    .checkmark,
    .cross {
        width: 60px;
        height: 60px;
        font-size: 36px;
        line-height: 60px;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    .esewa-redirect-page {
        padding: 20px 10px;
    }

    .esewa-container {
        padding: 15px;
    }

    .esewa-container h2 {
        font-size: 18px;
    }

    .plans-container {
        gap: 15px;
    }

    .plan-card {
        padding: 15px;
    }

    .plan-price .amount {
        font-size: 28px;
    }

    .btn-checkout,
    .btn-purchase,
    .manual-submit {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .checkout-form {
        padding: 15px;
    }

    .section-title {
        font-size: 18px;
    }

    .success-container,
    .failed-container {
        padding: 15px;
        margin: 15px;
    }

    .btn-home,
    .btn-retry,
    .btn-plans {
        display: block;
        width: 100%;
        margin: 10px 0;
        padding: 12px;
        font-size: 14px;
    }
}
.subscription-plans h2 {
    text-align: center;
    position: relative;
    align-items: center;
}