/* Wizard Signup Styles - Shared across all wizard steps */

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
}

/* Body Background */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* Wizard Container */
.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Wizard Header */
.wizard-header {
    background: #111c43;
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-header-octv {
    background: #111c43 !important;
    color: white !important;
    padding: 2.5rem 2rem !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.wizard-container .wizard-header-octv,
div.wizard-container .wizard-header-octv,
.wizard-container div.wizard-header-octv {
    background: #111c43 !important;
    color: white !important;
}

.wizard-header h1,
.wizard-header-octv h1,
.wizard-container .wizard-header-octv h1,
div.wizard-container .wizard-header-octv h1 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    color: white !important;
}

.wizard-header p,
.wizard-header-octv p,
.wizard-container .wizard-header-octv p,
div.wizard-container .wizard-header-octv p {
    font-size: 1rem !important;
    opacity: 0.9 !important;
    color: white !important;
}

/* Wizard Progress */
.wizard-progress {
    padding: 1.5rem 2rem;
    background: rgba(249, 250, 251, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.progress-steps::before {
    display: none;
}

.step-indicator {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.step-indicator::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    z-index: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.step-indicator:last-child::after {
    display: none;
}

.step-indicator.completed::after {
    background: var(--success-color);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111c43;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid #111c43;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease;
}

.step-circle-octv {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #111c43 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid #111c43 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.3s ease;
}

.wizard-container .step-circle-octv,
div.wizard-container .step-circle-octv,
.wizard-container .step-indicator .step-circle-octv {
    background: #111c43 !important;
    border-color: #111c43 !important;
    color: white !important;
}

.step-indicator.active .step-circle,
.step-indicator.active .step-circle-octv,
.wizard-container .step-indicator.active .step-circle-octv,
div.wizard-container .step-indicator.active .step-circle-octv {
    background: #111c43 !important;
    border-color: #111c43 !important;
    color: white !important;
}

.step-indicator.completed .step-circle,
.step-indicator.completed .step-circle-octv,
.wizard-container .step-indicator.completed .step-circle-octv,
div.wizard-container .step-indicator.completed .step-circle-octv {
    background: rgba(16, 185, 129, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(16, 185, 129, 1) !important;
    color: white !important;
}

.step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.3s ease;
}

.step-indicator.active .step-label {
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
}

.step-indicator.completed .step-label {
    color: var(--success-color);
    font-weight: 600;
}

/* Wizard Body */
.wizard-body {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

/* Field Labels - WHITE */
.form-label {
    display: block;
    font-weight: 600;
    color: white !important;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-label .required {
    color: var(--danger-color);
    margin-left: 2px;
}

/* Field Input Text - WHITE */
.form-control,
.form-control input,
.form-control textarea,
input.form-control,
textarea.form-control,
select.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white !important;
}

/* Field Placeholder - WHITE */
.form-control::placeholder,
input.form-control::placeholder,
textarea.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1;
}

.form-control:-ms-input-placeholder,
input.form-control:-ms-input-placeholder,
textarea.form-control:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.form-control::-ms-input-placeholder,
input.form-control::-ms-input-placeholder,
textarea.form-control::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.form-control:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    color: white !important;
}

.form-control.is-invalid {
    border-color: rgba(239, 68, 68, 0.8);
    background: rgba(239, 68, 68, 0.1);
    color: white !important;
}

.form-control.is-valid {
    border-color: rgba(16, 185, 129, 0.8);
    background: rgba(16, 185, 129, 0.1);
    color: white !important;
}

/* Subdomain Input Group */
.subdomain-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.subdomain-input-group .form-control {
    padding-right: 8rem;
}

.subdomain-suffix {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.subdomain-check-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success-color);
    font-size: 1.1rem;
    z-index: 2;
    display: none;
}

.subdomain-input-group.has-check .subdomain-check-icon {
    display: block;
}

.subdomain-input-group.has-check .subdomain-suffix {
    right: 2.5rem;
}

.subdomain-status {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subdomain-status.available {
    color: rgba(16, 185, 129, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.subdomain-status.taken {
    color: rgba(239, 68, 68, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.subdomain-status.checking {
    color: rgba(255, 255, 255, 0.7);
}

/* File Upload Area - WHITE TEXT AND ICONS */
.logo-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white !important;
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.logo-upload-area:hover {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(99, 102, 241, 0.15);
}

.logo-upload-area.has-image {
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.15);
}

.logo-upload-area.drag-over {
    border-color: rgba(99, 102, 241, 0.8);
    background: rgba(99, 102, 241, 0.25);
    transform: scale(1.02);
}

/* Upload Icon - WHITE */
.logo-upload-area svg,
.logo-upload-area #upload-text svg,
.wizard-container [class*="upload"] svg,
.wizard-container [class*="dropzone"] svg {
    color: white !important;
    stroke: white !important;
    fill: none !important;
}

/* Upload Placeholder Text - WHITE */
.logo-upload-area #upload-text,
.logo-upload-area #upload-text p,
.logo-upload-area #upload-text strong,
.wizard-container [class*="upload"] p,
.wizard-container [class*="dropzone"] p {
    color: white !important;
}

.logo-upload-area #upload-text p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.logo-upload-area #upload-text p strong {
    color: white !important;
    font-weight: 600;
}

.logo-preview {
    max-width: 100%;
    max-height: 200px;
    margin: 0 auto 1rem;
    display: none;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.logo-preview img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: rgba(99, 102, 241, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: rgba(79, 70, 229, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary {
    background: rgba(107, 114, 128, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(107, 114, 128, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Wizard Footer */
.wizard-footer {
    padding: 1.5rem 2.5rem;
    background: rgba(249, 250, 251, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.wizard-footer.justify-between {
    justify-content: space-between;
}

/* Help Text - Grey (visible on dark background) */
.help-text {
    font-size: 0.875rem;
    color: #d1d5db !important;
    margin-top: 0.25rem;
}

.wizard-container .help-text,
.wizard-body .help-text,
.form-group .help-text,
.wizard-container .form-group .help-text {
    color: #d1d5db !important;
}

/* Feedback Messages */
.invalid-feedback {
    display: block;
    color: rgba(239, 68, 68, 1);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.valid-feedback {
    display: block;
    color: rgba(16, 185, 129, 1);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Placeholder Content */
.placeholder-content {
    padding: 3rem 2rem;
}

.placeholder-content h2 {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.placeholder-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-body {
        padding: 1.5rem;
    }

    .wizard-header {
        padding: 2rem 1.5rem;
    }

    .wizard-header h1 {
        font-size: 1.5rem;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Ensure all text in wizard is white */
.wizard-container,
.wizard-container * {
    color: inherit;
}

.wizard-body,
.wizard-body * {
    color: inherit;
}

/* General upload area styling */
.wizard-container [class*="upload"],
.wizard-container [class*="dropzone"] {
    color: white !important;
}

.wizard-container [class*="upload"] svg,
.wizard-container [class*="dropzone"] svg {
    color: white !important;
    stroke: white !important;
    fill: none !important;
}

.wizard-container [class*="upload"] p,
.wizard-container [class*="dropzone"] p {
    color: white !important;
}

.wizard-container [class*="upload"] strong,
.wizard-container [class*="dropzone"] strong {
    color: white !important;
}
