﻿/* wwwroot/css/saas-billing.css */

/* Base styles and utilities */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Utility classes */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-8 {
    padding: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

/* Color utilities */
.text-gray-900 {
    color: #111827;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-white {
    color: #ffffff;
}

.text-blue-600 {
    color: #2563eb;
}

.text-green-500 {
    color: #10b981;
}

.text-yellow-800 {
    color: #92400e;
}

/* Background colors */
.bg-white {
    background-color: #ffffff;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-300 {
    background-color: #d1d5db;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-green-500 {
    background-color: #10b981;
}

.bg-yellow-50 {
    background-color: #fffbeb;
}

.bg-black {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Border utilities */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-blue-500 {
    border-color: #3b82f6;
}

.border-yellow-200 {
    border-color: #fde68a;
}

/* Layout utilities */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1 1 0%;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

/* Responsive grid */
@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gap-8 {
    gap: 2rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-md {
    max-width: 28rem;
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.-top-4 {
    top: -1rem;
}

.left-1\/2 {
    left: 50%;
}

.z-50 {
    z-index: 50;
}

/* Transform */
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-x-1\/2 {
    --tw-translate-x: -50%;
}

.scale-105 {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
}

/* Rounded corners */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Shadows */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Width and height */
.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-full {
    width: 100%;
}

/* Transitions */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

/* Main page styles */
.saas-billing-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
}

.billing-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: 2rem auto;
    max-width: 1200px;
}

.page-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 1rem 1rem 0 0;
    color: white;
}

    .page-header h1 {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 1rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .page-header p {
        font-size: 1.25rem;
        opacity: 0.9;
    }

/* Billing cycle toggle */
.billing-toggle {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.billing-toggle-container {
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 0.25rem;
}

.billing-toggle-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #64748b;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .billing-toggle-btn.active {
        background: #d1d5db;
        color: #3b82f6;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

    .billing-toggle-btn:hover:not(.active) {
        color: #1e293b;
        background: rgba(255, 255, 255, 0.5);
    }

.savings-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Plans grid */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.summary-section {
/*    margin-top: 1.5rem;*/
/*    padding-top: 1rem;*/
    border-top: 1px solid #eee;
    font-size: small;
}

    .summary-section h4 {
        margin-top: 0;
/*        margin-bottom: 1rem;*/
        color: #555;
    }

@media (min-width: 768px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Plan cards */
.plan-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .plan-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        border-color: #d1d5db;
    }

    .plan-card.popular {
        border-color: #3b82f6;
        transform: scale(1.05);
        box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.15);
    }

        .plan-card.popular:hover {
            transform: scale(1.05) translateY(-4px);
        }

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.plan-content {
    padding: 1rem;
}

.plan-name {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.plan-price {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.price-period {
    color: #6b7280;
    font-size: 1rem;
}

.init-fee-notice {
    margin-bottom: 0.4rem;
    padding: 0.2rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

    .init-fee-notice::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #f59e0b, #d97706);
    }

    .init-fee-notice p {
        color: #92400e;
        font-size: 0.875rem;
/*        font-weight: 500;*/
        margin: 0;
    }

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

    .features-list li {
        display: flex;
        align-items: center;
/*        margin-bottom: 0.75rem;*/
/*        color: #374151;*/
    }

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Nested list styling within features */
.features-list li ul {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem; /* Indent the nested list */
    display: grid;
    background-color:lightgray;
    
}

    .features-list li ul li {
        display: flex;
        align-items: center;
        margin-bottom: 0.0rem;
        color: #6b7280; 
        font-size: 0.9em;  
/*        margin-inline-start: 20px;*/
/*        margin-inline-end:10px;*/
    }

        /* Remove the checkmark icon for nested list items */
        .features-list li ul li .feature-icon {
            display: none;
        }

        /* Style for icons within nested list items */
        .features-list li ul li i {
            width: 1rem;
            height: 1rem;
            margin-right: 0.5rem;
            color: #3b82f6; /* Blue color for icons */
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Alternative: If you want to use a simple bullet instead of icons */
        .features-list li ul li::before {
            content: "•";
            color: #9ca3af;
            margin-right: 0.5rem;
            font-weight: bold;
        }

        /* If using icons, hide the bullet */
        .features-list li ul li:has(i)::before {
            display: none;
        }

        /* Fallback for browsers that don't support :has() */
        .features-list li ul li.with-icon::before {
            display: none;
        }


.select-plan-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

    .select-plan-btn.primary {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white;
        box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
    }

        .select-plan-btn.primary:hover:not(:disabled) {
            background: linear-gradient(135deg, #2563eb, #1e40af);
            transform: translateY(-1px);
            box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.5);
        }

    .select-plan-btn.secondary {
        background: linear-gradient(135deg, #1f2937, #111827);
        color: white;
        box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
    }

        .select-plan-btn.secondary:hover:not(:disabled) {
            background: linear-gradient(135deg, #374151, #1f2937);
            transform: translateY(-1px);
        }

    .select-plan-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none !important;
    }

/* Loading spinner */
.spinner {
    animation: spin 1s linear infinite;
    margin-right: 0.75rem;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Payment summary modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 32rem;
    width: 90%;
    margin: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-summary {
/*    margin-bottom: 1.5rem;*/
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
/*    margin-bottom: 0.75rem;*/
/*    padding: 0.5rem 0;*/
}

    .summary-row.total {
        border-top: 2px solid #e5e7eb;
        padding-top: 1rem;
        margin-top: 1rem;
        font-weight: 700;
        font-size: 1.125rem;
    }

.payment-notice {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #0c4a6e;
    font-size: 0.875rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

    .modal-btn.cancel {
        background: #f3f4f6;
        color: #374151;
    }

        .modal-btn.cancel:hover {
            background: #e5e7eb;
        }

    .modal-btn.primary {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white;
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    }

        .modal-btn.primary:hover:not(:disabled) {
            background: linear-gradient(135deg, #2563eb, #1e40af);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
        }

    .modal-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Responsive design */
@media (max-width: 767px) {
    .billing-content {
        margin: 1rem;
        border-radius: 0.5rem;
    }

    .page-header {
        padding: 2rem 1rem 1.5rem;
        border-radius: 0.5rem 0.5rem 0 0;
    }

        .page-header h1 {
            font-size: 2rem;
        }

    .plans-grid {
        padding: 1rem;
        gap: 1.5rem;
    }

    .plan-card.popular {
        transform: none;
    }

        .plan-card.popular:hover {
            transform: translateY(-4px);
        }

    .modal-content {
        margin: 0.5rem;
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .billing-content {
        background: #1f2937;
        color: white;
    }

    .plan-card {
        background: #374151;
        border-color: #4b5563;
    }

    .plan-name,
    .price-amount {
        color: white;
    }

    .features-list li {
        color: #d1d5db;
    }

    .modal-content {
        background: #1f2937;
        color: white;
    }

    .modal-header {
        color: white;
    }

    .summary-row {
        color: #d1d5db;
    }

        .summary-row.total {
            border-color: #4b5563;
            color: white;
        }

    .features-list li ul {
        background-color:black;
        border-radius:0.5rem;

    }
}

/* Payment Result Pages Styles */
.payment-result-container {
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .payment-result-container.success {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .payment-result-container.cancelled {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

.payment-result-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 800px;
    width: 100%;
    overflow: hidden;
}

.result-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    color: white;
}

    .result-header.success-header {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .result-header.cancelled-header {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

.success-icon, .cancelled-icon, .error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .success-icon svg, .cancelled-icon svg, .error-icon svg {
        width: 40px;
        height: 40px;
    }

.result-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.result-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.processing-section {
    text-align: center;
    padding: 3rem 2rem;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.success-details, .cancelled-details {
    padding: 2rem;
}

.confirmation-card, .info-card, .options-card, .help-card {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #10b981;
}

.info-card {
    border-left-color: #3b82f6;
}

.options-card, .help-card {
    border-left-color: #f59e0b;
}

    .confirmation-card h3, .info-card h3, .options-card h3, .help-card h3 {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #1f2937;
    }

.subscription-info {
    margin-top: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

    .info-row:last-child {
        border-bottom: none;
    }

    .info-row .label {
        font-weight: 600;
        color: #6b7280;
    }

    .info-row .value {
        font-weight: 700;
        color: #1f2937;
    }

.next-steps-card {
    border-left-color: #8b5cf6;
}

.next-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .next-steps-list li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: white;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

.step-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.next-steps-list strong {
    color: #1f2937;
    font-weight: 700;
}

.next-steps-list p {
    color: #6b7280;
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
}

.plan-highlights, .help-options {
    margin-top: 1.5rem;
}

.highlight-item, .help-option {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.highlight-icon, .help-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.reassurance-section {
    background: #f0f9ff;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem 0;
}

.reassurance-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

    .reassurance-item:last-child {
        margin-bottom: 0;
    }

.reassurance-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #2563eb, #1e40af);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.5);
    }

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

    .btn-secondary:hover {
        background: #e5e7eb;
        transform: translateY(-1px);
    }

.error-section {
    text-align: center;
    padding: 3rem 2rem;
}

    .error-section h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #dc2626;
        margin: 1rem 0;
    }

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.support-info {
    text-align: center;
    padding: 1.5rem 2rem;
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.875rem;
}

.support-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

    .support-link:hover {
        text-decoration: underline;
    }

/* Responsive design for payment pages */
@media (max-width: 767px) {
    .payment-result-content {
        margin: 1rem;
        border-radius: 0.5rem;
    }

    .result-header {
        padding: 2rem 1rem 1.5rem;
    }

        .result-header h1 {
            font-size: 2rem;
        }

    .success-details, .cancelled-details {
        padding: 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        justify-content: center;
    }

    .next-steps-list li, .highlight-item, .help-option {
        flex-direction: column;
        text-align: center;
    }

    .step-icon, .highlight-icon, .help-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* New styles for accordion and video modal */
.feature-toggle-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Space between buttons */
    margin-top: 1rem; /* Space above buttons */
    margin-bottom: 1.5rem; /* Space below buttons */
}

.feature-toggle-btn, .show-video-btn {
    background-color: #e5e7eb;
    color: #374151;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .feature-toggle-btn:hover, .show-video-btn:hover {
        background-color: #d1d5db;
        transform: translateY(-1px);
    }

.features-accordion-content {
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    margin-top: 0; /* Important for accordion transition */
    padding-top: 0; /* Important for accordion transition */
}

    .features-accordion-content.active {
        max-height: 2800px; /* Max height to allow smooth transition. Adjust if content is much taller. */
        opacity: 1;
        margin-bottom: 1.5rem; /* Add spacing below content when active */
    }

.video-modal-content {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 900px; /* Larger for video */
    width: 95%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

.video-player-placeholder {
    background-color: #000;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio for video */
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

    .video-player-placeholder iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

.video-modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

    .video-modal-close-btn:hover {
        color: #1f2937;
    }

/* Responsive design for video modal */
@media (max-width: 767px) {
    .video-modal-content {
        padding: 1rem;
        margin: 0.5rem;
    }

    .video-modal-close-btn {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.25rem;
    }
}
.feature-line-content {
    display: flex;
    align-items: flex-start; /* מיישר את האייקון עם תחילת הטקסט */
    /*gap: 0.75rem;*/ /* רווח בין האייקון לטקסט */
}
/* NEW: Styles for discounted price display */
.original-price {
    font-size: 1.2rem; /* Slightly smaller than main price */
    color: palevioletred; /* Gray out original price */
    text-decoration: line-through; /* Strikethrough effect */
    margin-right: 0.5rem; /* Space between original and discounted price */
}

.price-amount.discounted-price {
    color: gold; /* Red color for discounted price */
    font-weight: 800;
}

.save-badge {
    background-color: #fcd34d; /* Yellow background */
    color: #92400e; /* Dark brown text */
    padding: 0.2rem 0.5rem;
    border-radius: 9999px; /* Fully rounded */
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.75rem;
    white-space: nowrap; /* Prevent breaking into multiple lines */
}