/* 
 * Dentist Pro Payment Page Styles (Stripe-inspired)
 */

:root {
    --stripe-blue: #635bff;
    --stripe-blue-dark: #3a33d1;
    --stripe-text: #424770;
    --stripe-bg: #f6f9fc;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
}

.payment-plans-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--stripe-text);
}

.payment-header {
    text-align: center;
    margin-bottom: 50px;
}

.payment-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1a1f36;
}

.payment-header p {
    font-size: 1.1rem;
    color: #697386;
}

/* Tabs */
.payment-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.payment-tabs {
    display: inline-flex;
    background: #eeeeee;
    padding: 4px;
    border-radius: 100px;
}

.payment-tab {
    padding: 10px 24px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    color: #4f566b;
}

.payment-tab.active {
    background: #fff;
    color: var(--stripe-blue);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

.pricing-card.premium {
    border: 2px solid var(--stripe-blue);
}

.badge-pop {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--stripe-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
}

.plan-price {
    margin: 20px 0;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: top;
    font-weight: 600;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.price-period {
    color: #697386;
    font-weight: 500;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.plan-features li i {
    color: var(--stripe-blue);
    margin-right: 10px;
    font-size: 1.1rem;
}

.btn-stripe {
    display: block;
    width: 100%;
    background: var(--stripe-blue);
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-stripe:hover {
    background: var(--stripe-blue-dark);
}

/* Updated Styles for checkout interaction */
.step-hidden { display: none !important; }

/* Payment Methods Selector */
.method-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6ebf1;
}

.method-tab {
    flex: 1;
    padding: 12px;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4f566b;
}

.method-tab.active {
    border-color: var(--stripe-blue);
    box-shadow: 0 0 0 1px var(--stripe-blue);
    color: var(--stripe-blue);
}

.method-tab i { font-size: 1.2rem; }

/* Card Form */
.stripe-form-group {
    margin-bottom: 20px;
}

.stripe-input-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1f36;
}

.stripe-input-wrap {
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.stripe-input-wrap:focus-within {
    border-color: var(--stripe-blue);
    box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.2);
}

.stripe-input-wrap input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: #32325d;
}

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

/* PIX UI */
.pix-ui {
    text-align: center;
    padding: 20px;
}

.pix-qr-wrap {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid #e6ebf1;
    margin-bottom: 20px;
}

.pix-qr-placeholder {
    width: 200px;
    height: 200px;
    background: #f6f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #a3acb9;
    position: relative;
}

.pix-qr-placeholder::after {
    content: "QR CODE";
    font-weight: 800;
    letter-spacing: 2px;
}

.pix-copy-box {
    background: #f6f9fc;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pix-code {
    flex: 1;
    font-family: monospace;
    font-size: 0.85rem;
    color: #4f566b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

/* Loader Overlay */
.processing-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    backdrop-filter: blur(4px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e6ebf1;
    border-top: 3px solid var(--stripe-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-text {
    font-weight: 600;
    color: var(--stripe-blue);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pricing-card, .checkout-card {
    animation: fadeInUp 0.5s ease backwards;
}

.pricing-card:nth-child(2) { animation-delay: 0.1s; }
.pricing-card:nth-child(3) { animation-delay: 0.2s; }

/* Responsive */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
/* Subscription Info Card */
.sub-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e6ebf1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sub-info-card.status-active {
    border-left: 5px solid #28a745;
}

.sub-info-card.status-inactive {
    border-left: 5px solid #ffc107;
}

.sub-info-main {
    flex: 1;
}

.sub-badge {
    display: inline-block;
    background: #e1f5fe;
    color: #0288d1;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.status-active .sub-badge {
    background: #e8f5e9;
    color: #2e7d32;
}

.sub-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1f36;
    margin: 0 0 15px 0;
}

.sub-grid-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sub-details {
    display: flex;
    gap: 30px;
}

.sub-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-detail-item .label {
    font-size: 0.85rem;
    color: #697386;
    font-weight: 500;
}

.sub-detail-item .value {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1f36;
}

.status-tag {
    color: #28a745 !important;
}

.btn-sub-secondary {
    background: #f6f9fc;
    color: #4f566b;
    border: 1px solid #e6ebf1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sub-secondary:hover {
    background: #fff;
    border-color: #a3acb9;
    color: #1a1f36;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-sub-action {
    background: var(--stripe-blue);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-sub-action:hover {
    background: var(--stripe-blue-dark);
}

@media (max-width: 600px) {
    .sub-info-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .sub-details {
        flex-direction: column;
        gap: 15px;
    }
    .sub-info-actions {
        width: 100%;
    }
    .btn-sub-secondary {
        width: 100%;
        justify-content: center;
    }
}
