﻿/* CSS Custom Properties */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --success-color: #10b981;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --light-color: #f9fafb;
}

/* Registration Wizard Styles */

.registration-body {
    background-color: #f8fafc;
    min-height: 100vh;
}

.registration-header-nav {
    background: white;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.brand-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

    .brand-link:hover {
        color: var(--primary-color);
        text-decoration: none;
    }

.registration-main {
    padding: 2rem 0;
}

.registration-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Horizontal Progress Bar - Force horizontal layout */
.registration-header {
    margin-bottom: 3rem;
}

.progress-bar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
    width: 100%;
}

    .progress-bar::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 15%;
        right: 15%;
        height: 3px;
        background: var(--border-color);
        z-index: 1;
    }

.step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    position: relative;
    z-index: 2;
    min-width: 120px;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: white;
    border: 3px solid var(--border-color);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.step-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Remove the connecting lines between steps - they might be causing issues */
.step:not(:last-child)::after {
    display: none;
}

.step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step.completed .step-title {
    color: var(--success-color);
    font-weight: 600;
}

.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.step.active .step-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Cards */
.registration-content .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-body {
    padding: 3rem !important;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Plan Cards - Fixed layout to prevent bleeding */
.plan-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    overflow: hidden; /* Prevent content bleeding */
}

    .plan-card:hover {
        border-color: var(--primary-color);
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .plan-card.selected {
        border-color: var(--primary-color);
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
    }

    .plan-card.popular {
        border-color: var(--primary-color);
        transform: scale(1.02);
    }

        .plan-card.popular::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
            border-radius: 16px 16px 0 0;
        }

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 3;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.plan-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-size: 0.875rem;
}

.plan-features {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.4;
}

.plan-features li i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.plan-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 1rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
}

.form-check-label {
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.875rem;
    display: block;
    text-align: center;
}

.form-check-label:hover {
    background-color: var(--light-color);
    border-color: var(--border-color);
}

/* Staff Management */
.staff-member-form {
    background: var(--light-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.remove-staff {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Review Section */
.review-section {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.info-item {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

    .info-item label {
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .info-item span {
        color: var(--text-primary);
        font-weight: 500;
    }

.selected-plan-card {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.plan-price-large {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.plan-features-compact .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.team-members-list {
    max-height: 300px;
    overflow-y: auto;
}

.team-member-item {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.member-info strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* Success Page */
.success-animation {
    animation: checkmark 0.8s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design for Horizontal Progress Bar */
@media (max-width: 768px) {
    .registration-main {
        padding: 1rem 0;
    }

    .card-body {
        padding: 2rem !important;
    }

    .progress-bar {
        max-width: 500px;
        padding: 0 1rem;
        flex-wrap: nowrap;
    }

    .step {
        min-width: 80px;
    }

    .step-title {
        font-size: 0.75rem;
        max-width: 80px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .plan-card {
        padding: 1.25rem;
        min-height: 450px;
    }

    .plan-price {
        font-size: 1.5rem;
    }

    .plan-header h3 {
        font-size: 1.125rem;
    }

    .plan-card.popular {
        transform: none;
        margin-top: 1rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .progress-bar {
        max-width: 400px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 0.5rem;
    }

    .step {
        min-width: 60px;
        flex-shrink: 0;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .step-title {
        font-size: 0.65rem;
        max-width: 60px;
    }

    .plan-card {
        padding: 1rem;
        min-height: 400px;
    }

    .plan-price {
        font-size: 1.25rem;
    }

    .plan-header h3 {
        font-size: 1rem;
    }

    .popular-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
}
