/**
 * PixelStream Registration Styles
 */

/* Reset and Base Styles */
.pixelstream-form-container * {
    box-sizing: border-box;
}

.pixelstream-form-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Form Header */
.pixelstream-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pixelstream-form-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Progress Bar */
.pixelstream-progress-bar {
    margin: 2rem 0;
}

.pixelstream-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
}

.pixelstream-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.pixelstream-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 1rem;
}

.pixelstream-progress-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.pixelstream-progress-step.active .pixelstream-progress-step-number {
    background: #3498db;
    color: white;
}

.pixelstream-progress-step.completed .pixelstream-progress-step-number {
    background: #27ae60;
    color: white;
}

.pixelstream-progress-step-label {
    font-size: 0.875rem;
    text-align: center;
    color: #666;
}

.pixelstream-progress-step.active .pixelstream-progress-step-label {
    color: #3498db;
    font-weight: 600;
}

.pixelstream-progress-step.completed .pixelstream-progress-step-label {
    color: #27ae60;
    font-weight: 600;
}

/* Form Steps */
.pixelstream-step {
    display: none;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.pixelstream-step.active {
    display: block;
}

.pixelstream-step h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

/* Form Elements */
.pixelstream-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pixelstream-form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.pixelstream-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.pixelstream-form-group .required {
    color: #e74c3c;
}

.pixelstream-form-group input,
.pixelstream-form-group select,
.pixelstream-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.pixelstream-form-group input:focus,
.pixelstream-form-group select:focus,
.pixelstream-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.pixelstream-field-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.pixelstream-field-error.show {
    display: block;
}

/* VAT Validation */
.pixelstream-vat-validation-result {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.pixelstream-vat-validation-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pixelstream-vat-validation-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Pricing Plans */
.pixelstream-pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pixelstream-pricing-plan {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.pixelstream-pricing-plan:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pixelstream-pricing-plan.selected {
    border-color: #27ae60;
    background: #f8fff8;
}

.pixelstream-pricing-plan.highlighted {
    border-color: #3498db;
    background: #f8f9ff;
}

.pixelstream-pricing-plan.highlighted::before {
    content: 'Most Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #3498db;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pixelstream-plan-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.pixelstream-plan-price {
    margin-bottom: 1.5rem;
}

.pixelstream-currency {
    font-size: 1.25rem;
    vertical-align: top;
}

.pixelstream-amount {
    font-size: 3rem;
    font-weight: bold;
    color: #3498db;
}

.pixelstream-period {
    font-size: 1rem;
    color: #666;
}

.pixelstream-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pixelstream-plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.pixelstream-plan-features li:last-child {
    border-bottom: none;
}

.pixelstream-plan-features i {
    color: #27ae60;
    margin-right: 0.5rem;
}

/* Payment Form */
.pixelstream-payment-form {
    margin-top: 2rem;
}

.pixelstream-payment-amount {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.pixelstream-payment-amount h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.pixelstream-amount-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #27ae60;
}

.pixelstream-payment-methods {
    margin-bottom: 2rem;
}

.pixelstream-payment-options {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.pixelstream-payment-option {
    flex: 1;
    position: relative;
}

.pixelstream-payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.pixelstream-payment-option-label {
    display: block;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pixelstream-payment-option input[type="radio"]:checked + .pixelstream-payment-option-label {
    border-color: #3498db;
    background: #f8f9ff;
}

.pixelstream-payment-option-label i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Stripe Elements */
.pixelstream-stripe-element {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background: white;
}

.pixelstream-stripe-element:focus {
    border-color: #3498db;
}

/* Buttons */
.pixelstream-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.pixelstream-btn-primary {
    background: #3498db;
    color: white;
}

.pixelstream-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.pixelstream-btn-secondary {
    background: #95a5a6;
    color: white;
}

.pixelstream-btn-secondary:hover {
    background: #7f8c8d;
}

.pixelstream-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Actions */
.pixelstream-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* Messages */
.pixelstream-messages {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

.pixelstream-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pixelstream-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pixelstream-messages.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading States */
.pixelstream-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.pixelstream-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: pixelstream-spin 1s linear infinite;
    display: inline-block;
}

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

/* Confirmation Step */
.pixelstream-confirmation-content {
    text-align: center;
    padding: 2rem;
}

.pixelstream-success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.pixelstream-confirmation-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.pixelstream-registration-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pixelstream-form-container {
        margin: 0 1rem;
    }
    
    .pixelstream-progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pixelstream-progress-steps::before {
        display: none;
    }
    
    .pixelstream-form-row {
        flex-direction: column;
    }
    
    .pixelstream-pricing-plans {
        grid-template-columns: 1fr;
    }
    
    .pixelstream-payment-options {
        flex-direction: column;
    }
    
    .pixelstream-form-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Icons */
.pixelstream-icon-check::before { content: '✓'; }
.pixelstream-icon-credit-card::before { content: '💳'; }
.pixelstream-icon-ideal::before { content: '🏦'; }
/* .pixelstream-icon-paypal removed with the PayPal option it decorated (Ticket 5). */
.pixelstream-icon-user::before { content: '👤'; }
.pixelstream-icon-email::before { content: '✉️'; }
.pixelstream-icon-server::before { content: '🖥️'; }
.pixelstream-icon-check-circle::before { content: '✅'; }
.pixelstream-icon-clock::before { content: '⏰'; }
