/* Registration Wizard Styles - Enhanced Visuals */

.wizard-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    /* Deeper shadow */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    /* Glassmorphism hint */
    z-index: 10;
    /* Ensure it is above hero background shapes */
    height: 100%;
    /* Fill column */
}

/* Add a subtle top border gradient for premium feel */
[data-theme="light"] .wizard-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #a8a9ff);
}

/* Utilities / Overrides */
/* Removed .register-hero-layout grid styles */

.register-hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    /* Full screen feel */
    display: flex;
    flex-direction: column;
    /* Stack vertical */
    align-items: center;
    justify-content: center;
    gap: 2rem;
    /* Space between title and form */
}

/* Abstract Background Shapes for Hero */
/* Abstract Background Shapes Removed for Interaction Safety */
/* .register-hero::before, .register-hero::after removed */

.landing-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.landing-hero__title {
    font-size: 1.8rem;
    /* Markedly smaller from 2.5rem */
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.landing-hero__subtitle {
    font-size: 1.05rem;
    /* Slightly smaller */
    color: var(--text-secondary);
    line-height: 1.5;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-danger {
    color: var(--danger);
}

.d-none {
    display: none !important;
}

.d-flex-gap {
    display: flex;
    gap: var(--space-sm);
}

.whitespace-nowrap {
    white-space: nowrap;
}

.uppercase {
    text-transform: uppercase;
}

.is-invalid {
    border-color: var(--danger) !important;
}

.is-valid {
    border-color: var(--success) !important;
    background-color: rgba(40, 167, 69, 0.05);
}

.divider {
    margin: var(--space-xl) 0;
    border: 0;
    border-top: 1px solid var(--border-light);
}

.terms-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.terms-label a {
    color: var(--primary);
    font-weight: 500;
}

.terms-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Wizard Content */
.wizard-content {
    padding: 1.5rem;
    /* Reduced from 2rem */
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
    max-width: 800px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.step-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    /* Reduced */
    font-size: 0.95rem;
}

.section-subtitle {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Inputs & Form */
.form-group {
    margin-bottom: 1rem;
    /* Compact margin */
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
    /* Tighter label */
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    /* Use tertiary for subtle look */
    margin-top: 0.5rem;
    line-height: 1.4;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    /* Slightly taller */
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth bezel */
    background: var(--bg-secondary);
    /* Slight contrast from card bg */
    color: var(--text-primary);
}

.form-input:hover {
    border-color: var(--text-tertiary);
    /* Hover hint */
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    /* Pop out on focus */
    box-shadow: 0 0 0 4px rgba(99, 100, 255, 0.1);
    transform: translateY(-1px);
    /* Micro-lift */
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 640px) {

    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.btn-wizard {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-prev {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn-prev:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-next {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 100, 255, 0.3);
}

.btn-next:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 100, 255, 0.4);
}

/* OTP Modal */
.wizard-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.wizard-modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.wizard-modal-content {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.wizard-modal-title-danger {
    color: var(--danger);
}

.wizard-modal-message {
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.w-100 {
    width: 100%;
}

.wizard-modal-overlay.active .wizard-modal-content {
    transform: scale(1);
}

.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 2rem 0;
}

.otp-digit {
    width: 45px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: bold;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.otp-digit:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(99, 100, 255, 0.15);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.msg-verified {
    color: var(--success, #28a745);
    font-weight: 500;
    align-self: center;
}

/* Success & Pending Screen Styles (CSP Compliant) */
.success-screen-container {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 20px rgba(40, 167, 69, 0.2));
}

.pending-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.success-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 800;
}

.pending-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.success-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #a8a9ff);
    margin: 0 auto 2rem auto;
    border-radius: 2px;
}

.pending-divider {
    width: 60px;
    height: 4px;
    background: #fbbf24;
    margin: 0 auto 2rem auto;
    border-radius: 2px;
}

.success-message {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.success-email {
    color: var(--primary);
    font-weight: bold;
}

.pending-status {
    color: #d97706;
    font-weight: 600;
}

.btn-success-home {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(99, 100, 255, 0.3);
}

.btn-pending-home {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

/* Radio Group Styles */
.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-radio {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-primary);
}

.form-radio:hover {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.form-radio input[type="radio"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-radio input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--primary);
}

.form-radio span {
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

/* Capacity Checkbox Group - Horizontal Layout */
.capacity-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
}

.capacity-checkbox-item {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.capacity-checkbox-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.capacity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.capacity-check-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.capacity-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.capacity-input-section {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.capacity-field-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin: 0;
}

.capacity-input {
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
}

.capacity-input:disabled {
    background-color: var(--bg-secondary);
    opacity: 0.5;
    cursor: not-allowed;
}

.capacity-input:disabled + .capacity-field-label,
.capacity-input-section:has(.capacity-input:disabled) .capacity-field-label {
    opacity: 0.5;
}

.capacity-input:not(:disabled) {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.capacity-input:not(:disabled) + .capacity-field-label,
.capacity-input-section:has(.capacity-input:not(:disabled)) .capacity-field-label {
    color: var(--primary);
}

/* Property Type Radio Cards */
.property-type-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.property-type-option {
    cursor: pointer;
    display: block;
}

.property-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.property-type-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-surface);
    transition: all 0.3s ease;
    cursor: pointer;
}

.property-type-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

.property-type-option input[type="radio"]:checked + .property-type-card {
    border-color: var(--primary);
    background-color: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.property-type-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.125rem;
}

.property-type-content {
    flex: 1;
}

.property-type-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.property-type-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.property-type-option input[type="radio"]:checked + .property-type-card .property-type-title {
    color: var(--primary);
}

/* Dark mode adjustments */
[data-theme="dark"] .property-type-card {
    background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .property-type-option input[type="radio"]:checked + .property-type-card {
    background-color: rgba(59, 130, 246, 0.12);
}

/* VAT Number Validation Feedback */
.input-with-status {
    position: relative;
    display: flex;
    align-items: center;
}

.input-status-icon {
    position: absolute;
    right: 12px;
    font-size: 1.25rem;
    pointer-events: none;
}

.input-status-icon.loading::after {
    content: '⏳';
    animation: pulse 1s ease-in-out infinite;
}

.input-status-icon.valid::after {
    content: '✓';
    color: #10b981;
}

.input-status-icon.invalid::after {
    content: '✗';
    color: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.vat-feedback {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    display: none;
}

.vat-feedback.show {
    display: block;
}

.vat-feedback.error {
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem;
}

.vat-feedback.success {
    color: #10b981;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 0.75rem;
}

.vat-feedback.warning {
    color: #f59e0b;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.75rem;
}

.vat-feedback strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.vat-feedback a {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
}

.vat-feedback a:hover {
    text-decoration: none;
}

/* Responsive: Stack on mobile */
@media (max-width: 640px) {
    .capacity-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .capacity-input-section {
        width: 100%;
        margin-top: 0.75rem;
        padding-left: 32px;
    }
}

/* Alert styles */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.alert .icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
    font-size: 1.25rem;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 0.5rem;
}

/* Info alert */
.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

/* Dark mode for alerts */
[data-theme="dark"] .alert-info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

/* Form hint with reduced top margin */
.form-hint-tight {
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}