/**
 * Updated Pricing Table CSS for 4 columns
 * File: assets/css/pricing-table.css
 */

/* =============================================================================
   BASE CONTAINER
   ============================================================================= */

.avt-pricing-container {
    max-width: 1400px; /* Increased for 4 columns */
    margin: 0 auto;
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.avt-pricing-wrapper {
    width: 100%;
}

/* =============================================================================
   HEADER SECTION
   ============================================================================= */

.avt-pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.avt-pricing-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000000 !important;
    background: none !important;
}

.avt-pricing-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =============================================================================
   PLANS GRID - 4 COLUMNS
   ============================================================================= */

.avt-pricing-plans {
    display: grid;
    gap: 20px;
    margin-bottom: 60px;
    padding-top: 55px;
}

/* 4 columns on desktop */
.avt-plans-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .avt-plans-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .avt-plans-grid-4 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =============================================================================
   PLAN CARDS
   ============================================================================= */

.avt-plan-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px 24px;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 550px;
}

.avt-plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.avt-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Featured/Popular Plan */
.avt-plan-card.featured {
    transform: scale(1.05);
    z-index: 2;
}

.avt-plan-card.featured::before {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.avt-plan-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Current Plan */
.avt-plan-card.current-plan::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* =============================================================================
   BADGES
   ============================================================================= */

.avt-popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    z-index: 10;
    white-space: nowrap;
}

.avt-current-plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* =============================================================================
   PLAN HEADER
   ============================================================================= */

.avt-plan-header {
    text-align: center;
    margin-bottom: 24px;
}

.avt-plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
}

.avt-plan-description {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* =============================================================================
   PRICING SECTION
   ============================================================================= */

.avt-plan-pricing {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.avt-price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.avt-currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4f46e5;
}

.avt-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.avt-price-period {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.avt-price-note {
    font-size: 0.875rem;
    color: #059669;
    font-weight: 900;
}

/* =============================================================================
   FEATURES LIST
   ============================================================================= */

.avt-plan-features {
    margin-bottom: auto; /* Push CTA to bottom */
    flex-grow: 1;
}

.avt-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.avt-features-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #475569;
    line-height: 1.5;
}

.avt-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1rem;
}

.avt-features-list strong {
    color: #1e293b;
    font-weight: 600;
}

.avt-feature-note {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
    margin-left: 24px;
    margin-top: 2px;
}

/* =============================================================================
   CTA BUTTONS
   ============================================================================= */

.avt-plan-cta {
    margin-top: 24px;
}

.avt-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.avt-cta-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.avt-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.avt-cta-secondary {
    background: white;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.avt-cta-secondary:hover {
    background: #4f46e5;
    color: white;
}

.avt-btn-disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.avt-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 1200px) {
    .avt-pricing-container {
        max-width: 900px;
    }
    
    .avt-plan-card.featured {
        transform: none;
    }
    
    .avt-plan-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .avt-pricing-header h1 {
        font-size: 2rem;
    }
    
    .avt-plan-card {
        min-height: auto;
    }
    
    .avt-price-amount {
        font-size: 2rem;
    }
}

/**
 * Registration Modal CSS
 * Add this to your pricing-table.css or create a new file
 */

/* =============================================================================
   MODAL STYLES
   ============================================================================= */

.avt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.avt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.avt-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.avt-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.avt-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Prevent body scroll when modal is open */
body.avt-modal-open {
    overflow: hidden;
}

/* =============================================================================
   MODAL HEADER
   ============================================================================= */

.avt-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.avt-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.avt-modal-header p {
    color: #64748b;
    font-size: 0.95rem;
}

#avt-selected-plan-name {
    color: #4f46e5;
    font-weight: 600;
}

/* =============================================================================
   FORM STYLES
   ============================================================================= */

.avt-form {
    margin: 0;
}

.avt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.avt-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #1e293b;
    font-weight: 500;
    font-size: 0.9rem;
}

.avt-form-group label .required {
    color: #ef4444;
}

.avt-form-group input[type="text"],
.avt-form-group input[type="email"],
.avt-form-group input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.avt-form-group input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.avt-form-group small {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Checkbox groups */
.avt-checkbox-group {
    margin-bottom: 15px;
}

.avt-checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.avt-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    cursor: pointer;
}

.avt-checkbox-group a {
    color: #4f46e5;
    text-decoration: underline;
}

.avt-checkbox-group a:hover {
    color: #7c3aed;
}

/* =============================================================================
   FORM ACTIONS
   ============================================================================= */

.avt-form-actions {
    margin-top: 25px;
}

#avt-register-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#avt-register-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

#avt-register-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.avt-form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.avt-form-footer p {
    color: #64748b;
    font-size: 0.9rem;
}

.avt-login-link {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.avt-login-link:hover {
    text-decoration: underline;
}

/* =============================================================================
   MESSAGES
   ============================================================================= */

.avt-error-message,
.avt-success-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.avt-error-message {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.avt-success-message {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #6ee7b7;
}

/* =============================================================================
   PRICING PAGE ADDITIONS
   ============================================================================= */

.avt-logged-in-notice {
    margin-top: 10px;
    color: #10b981;
    font-weight: 500;
}

.avt-login-prompt {
    margin-top: 10px;
    color: #64748b;
}

.avt-login-prompt a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.avt-login-prompt a:hover {
    text-decoration: underline;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 600px) {
    .avt-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .avt-form-row {
        grid-template-columns: 1fr;
    }
    
    .avt-modal-header h2 {
        font-size: 1.5rem;
    }
}