/* NIZU Cloud Onboarding - Professional Corporate Theme */

:root {
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --card-bg-light: rgba(255, 255, 255, 0.95);
    --card-border-light: rgba(229, 231, 235, 1);
    --input-bg-light: rgba(249, 250, 251, 1);
    --input-border-light: rgba(209, 213, 219, 1);

    /* Dark mode variables */
    --card-bg-dark: rgba(31, 41, 55, 0.95);
    --card-border-dark: rgba(75, 85, 99, 0.5);
    --input-bg-dark: rgba(17, 24, 39, 1);
    --input-border-dark: rgba(75, 85, 99, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease;
}

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark .dark-mode-toggle {
    background: #1f2937;
    border-color: #4b5563;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.dark-mode-toggle svg {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    transition: all 0.3s ease;
}

.dark .dark-mode-toggle svg {
    color: #60a5fa;
}

/* Progress Indicator */
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dark .progress-circle {
    background: #374151;
    border-color: #4b5563;
    color: #9ca3af;
}

.progress-step.active .progress-circle {
    background: var(--primary-gradient);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transform: scale(1.1);
}

.progress-step.completed .progress-circle {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.progress-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.dark .progress-label {
    color: #9ca3af;
}

.progress-step.active .progress-label {
    color: #1f2937;
}

.dark .progress-step.active .progress-label {
    color: #f9fafb;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 -10px;
    position: relative;
    top: -20px;
    z-index: 1;
}

.dark .progress-line {
    background: #4b5563;
}

/* Cards */
.card {
    background: var(--card-bg-light);
    border: 1px solid var(--card-border-light);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.dark .card {
    background: var(--card-bg-dark);
    border-color: var(--card-border-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.dark .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.dark .card-title {
    color: #f9fafb;
}

.card-description {
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 16px;
}

.dark .card-description {
    color: #9ca3af;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.dark .form-label {
    color: #d1d5db;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg-light);
    border: 1.5px solid var(--input-border-light);
    border-radius: 12px;
    color: #111827;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.dark .form-input {
    background: var(--input-bg-dark);
    border-color: var(--input-border-dark);
    color: #f9fafb;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.dark .form-input::placeholder {
    color: #6b7280;
}

/* Subdomain Input */
.subdomain-input-wrapper {
    position: relative;
}

.subdomain-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-weight: 500;
    pointer-events: none;
}

.dark .subdomain-suffix {
    color: #9ca3af;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #374151;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: 1.5px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dark .btn-secondary {
    background: #374151;
    color: #f9fafb;
    border-color: #4b5563;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.dark .btn-secondary:hover {
    background: #4b5563;
    border-color: #6b7280;
}

/* PIN Input */
.pin-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pin-input {
    width: 64px;
    height: 64px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    background: var(--input-bg-light);
    border: 2px solid var(--input-border-light);
    border-radius: 12px;
    color: #111827;
    transition: all 0.3s ease;
}

.dark .pin-input {
    background: var(--input-bg-dark);
    border-color: var(--input-border-dark);
    color: #f9fafb;
}

.pin-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

/* Pricing Cards */
.pricing-card {
    background: var(--card-bg-light);
    border: 2px solid var(--card-border-light);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dark .pricing-card {
    background: var(--card-bg-dark);
    border-color: var(--card-border-dark);
}

.pricing-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.pricing-card.selected {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.05);
}

.dark .pricing-card.selected {
    background: rgba(59, 130, 246, 0.1);
}

.pricing-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.dark .pricing-badge {
    background: #1e3a8a;
    color: #bfdbfe;
}

.pricing-badge.popular {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.pricing-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.dark .pricing-title {
    color: #f9fafb;
}

.pricing-amount {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
}

.dark .pricing-amount {
    color: #f9fafb;
}

.pricing-period {
    font-size: 16px;
    font-weight: 400;
    color: #6b7280;
}

.dark .pricing-period {
    color: #9ca3af;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.pricing-features li {
    color: #4b5563;
    margin-bottom: 8px;
    font-size: 14px;
}

.dark .pricing-features li {
    color: #d1d5db;
}

.btn-select-plan {
    width: 100%;
    padding: 12px 24px;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark .btn-select-plan {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.btn-select-plan:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.pricing-card.selected .btn-select-plan {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Add-ons */
.addon-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg-light);
    border: 2px solid var(--card-border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark .addon-card {
    background: var(--card-bg-dark);
    border-color: var(--card-border-dark);
}

.addon-card:hover {
    border-color: #93c5fd;
}

.addon-card:has(.addon-checkbox:checked) {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.dark .addon-card:has(.addon-checkbox:checked) {
    background: rgba(59, 130, 246, 0.1);
}

.addon-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.addon-content {
    flex: 1;
}

.addon-title {
    color: #111827;
    font-weight: 600;
    margin-bottom: 4px;
}

.dark .addon-title {
    color: #f9fafb;
}

.addon-price {
    color: #6b7280;
    font-size: 14px;
}

.dark .addon-price {
    color: #9ca3af;
}

/* Total Price */
.total-price-container {
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.dark .total-price-container {
    background: #1e3a8a;
    border-color: #1e40af;
}

/* Stripe Elements */
.stripe-card-element {
    background: var(--input-bg-light);
    border: 1.5px solid var(--input-border-light);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.3s ease;
}

.dark .stripe-card-element {
    background: var(--input-bg-dark);
    border-color: var(--input-border-dark);
}

.stripe-card-element:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Feedback Messages */
.feedback-message {
    font-size: 14px;
    margin-top: 8px;
}

.feedback-message.success {
    color: #10b981;
}

.feedback-message.error {
    color: #ef4444;
}

/* Message Container */
#messageContainer {
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 500;
}

#messageContainer.success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.dark #messageContainer.success {
    background: #064e3b;
    border-color: #065f46;
    color: #a7f3d0;
}

#messageContainer.error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.dark #messageContainer.error {
    background: #7f1d1d;
    border-color: #991b1b;
    color: #fecaca;
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay.hidden {
    display: none;
}

/* Success Icon */
.success-icon {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        padding: 24px;
    }

    .card-title {
        font-size: 24px;
    }

    .progress-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .progress-label {
        font-size: 12px;
    }

    .pin-input {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .pricing-amount {
        font-size: 28px;
    }

    .dark-mode-toggle {
        width: 48px;
        height: 48px;
        top: 16px;
        right: 16px;
    }

    .dark-mode-toggle svg {
        width: 20px;
        height: 20px;
    }
}