:root {
    --primary: #2563eb;
    --secondary: #64748b;
    --danger: #dc2626;
    --success: #16a34a;
    --bg-light: #f9fafb;
    --gray-light: #e5e7eb;
    --text-dark: #111827;
    --text-light: #6b7280;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
}

.content {
    padding: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.registration-container {
    background: #fff;
    border-radius: 1rem;
    padding: var(--spacing-xl);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.step-indicator {
    margin-bottom: var(--spacing-xl);
}

.step-container {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-light);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-circle {
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    z-index: 2;
}

.step.active .step-circle {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step-label {
    margin-top: var(--spacing-sm);
    font-size: 14px;
    color: var(--text-light);
    position: relative;
    z-index: 3;
}

.step.active .step-label {
    color: var(--text-dark);
}

.form-section {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.form-section.active {
    display: block;
}

.form-row {
    display: flex;
    gap: var(--spacing-md);
}

.form-group {
    flex: 1;
    margin-bottom: var(--spacing-md);
}

input, select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--gray-light);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #fff;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.alert {
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    margin-top: var(--spacing-md);
}

.alert-success {
    background-color: #ecfdf5;
    color: var(--success);
    border: 1px solid #10b981;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}
.btn-loading .spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 3px solid #fff;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
}

.loading-overlay .spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

.btn[disabled] {
    opacity: 0.6;
    pointer-events: none;
}


/*  Payment  */
#paymentForm {
    max-width: 600px;
    margin: auto;
}

#payment-form .form-label {
    font-weight: 500;
}

.pricing-summary .pricing-item {
    font-size: 1rem;
}

.pricing-summary .total {
    font-size: 1.1rem;
}

.trial-notice i {
    font-size: 1.3rem;
}
#card-element {
    transition: border-color 0.3s ease;
}

#card-element:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

#submit-payment:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
