/**
 * TVPlus Payment Form - Wizard Styles
 * Extracted from inline styles for better caching and maintainability
 */

/* Alpine.js cloak */
[x-cloak] { display: none !important; }

/* Premium Card Interactions */
.payment-card,
.pricing-card,
.country-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effects */
.payment-card:hover:not(:disabled),
.pricing-card:hover,
.country-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.15), 0 4px 6px -2px rgba(59, 130, 246, 0.1);
    border-color: #93c5fd; /* brand-300 */
}

/* Selected State */
.payment-card.selected,
.pricing-card.selected,
.country-card.selected {
    border-color: #3b82f6; /* brand-500 */
    background-color: #eff6ff; /* brand-50 */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); /* Ring effect */
}

/* Step Indicator */
.step-indicator .step {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-indicator .step.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    transform: scale(1.1);
}

.step-indicator .step.completed {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

/* Smooth Fade In */
.fade-enter {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SDK Button containers */
#paypal-button-container,
#mercadopago-button-container {
    min-height: 50px;
}

/* Loading spinner */
.loading-spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive container */
.form-container {
    max-width: 28rem; /* max-w-md default */
    min-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .form-container {
        max-width: 36rem; /* max-w-xl */
        min-height: 600px;
    }
}

@media (min-width: 1024px) {
    .form-container {
        max-width: 42rem; /* max-w-2xl */
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        min-height: 620px;
    }

    .form-container h2 {
        font-size: 1.75rem; /* Larger headers */
        letter-spacing: -0.025em;
    }
}

@media (min-width: 1200px) {
    .form-container {
        max-width: 48rem; /* max-w-3xl */
    }
}

/* Custom Scrollbar for country list */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
