/**
 * Events Manager Multi-Step Form Styles
 * Designed to match SocialV Theme Aesthetics
 * 
 * Color Palette (SocialV Blue Theme):
 * - Primary Blue: #6c5ce7
 * - Secondary Blue: #a29bfe
 * - Dark Text: #1e1e1e
 * - Light Gray: #f8f9fa
 * - Border Gray: #e9ecef
 * - Success Green: #00b894
 */

:root {
    --em-primary-color: #6c5ce7;
    --em-primary-hover: #5b4cdb;
    --em-secondary-color: #a29bfe;
    --em-text-dark: #1e1e1e;
    --em-text-muted: #6c757d;
    --em-bg-light: #f8f9fa;
    --em-border-color: #e9ecef;
    --em-success-color: #00b894;
    --em-white: #ffffff;
    --em-shadow: 0 2px 10px rgba(108, 92, 231, 0.1);
    --em-shadow-hover: 0 4px 20px rgba(108, 92, 231, 0.2);
    --em-radius: 12px;
    --em-radius-sm: 8px;
    --em-transition: all 0.3s ease;
}

/* Main Wrapper */
.em-multistep-wrapper {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: var(--em-white);
    border-radius: var(--em-radius);
    box-shadow: var(--em-shadow);
}

/* =====================
   Step Navigation Bar
   ===================== */
.em-event-form-steps-nav {
    margin-bottom: 30px;
}

.em-steps-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.em-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    cursor: pointer;
    transition: var(--em-transition);
}

.em-step-item:last-child .em-step-connector {
    display: none;
}

.em-step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--em-bg-light);
    border: 2px solid var(--em-border-color);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    color: var(--em-text-muted);
    transition: var(--em-transition);
    position: relative;
    z-index: 2;
}

.em-step-title {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--em-text-muted);
    text-align: center;
    transition: var(--em-transition);
}

.em-step-connector {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--em-border-color);
    z-index: 1;
    transition: var(--em-transition);
}

/* Active Step */
.em-step-item.active .em-step-number {
    background: var(--em-primary-color);
    border-color: var(--em-primary-color);
    color: var(--em-white);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.em-step-item.active .em-step-title {
    color: var(--em-primary-color);
    font-weight: 600;
}

/* Completed Step */
.em-step-item.completed .em-step-number {
    background: var(--em-success-color);
    border-color: var(--em-success-color);
    color: var(--em-white);
}

.em-step-item.completed .em-step-number::after {
    content: '✓';
    position: absolute;
    font-size: 18px;
}

.em-step-item.completed .em-step-number span {
    display: none;
}

.em-step-item.completed .em-step-connector {
    background: var(--em-success-color);
}

.em-step-item.completed .em-step-title {
    color: var(--em-success-color);
}

/* Hover Effects */
.em-step-item:hover .em-step-number {
    border-color: var(--em-primary-color);
    transform: scale(1.05);
}

/* =====================
   Progress Bar
   ===================== */
.em-progress-bar-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.em-progress-bar {
    height: 6px;
    background: var(--em-bg-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.em-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--em-primary-color), var(--em-secondary-color));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.em-progress-text {
    font-size: 13px;
    color: var(--em-text-muted);
    font-weight: 500;
}

/* =====================
   Form Sections
   ===================== */
.em-form-sections-container {
    position: relative;
}

.em-form-section-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.em-form-section-step.current-step {
    display: block;
}

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

/* Step Header */
.em-step-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--em-border-color);
}

.em-step-heading {
    font-size: 22px;
    font-weight: 600;
    color: var(--em-text-dark);
    margin: 0 0 8px 0;
}

.em-step-description {
    font-size: 14px;
    color: var(--em-text-muted);
    margin: 0;
}

/* Step Content */
.em-step-content {
    padding: 10px 0 30px;
}

/* Form Elements Enhancement */
.em-step-content input[type="text"],
.em-step-content input[type="email"],
.em-step-content input[type="url"],
.em-step-content input[type="number"],
.em-step-content input[type="date"],
.em-step-content input[type="time"],
.em-step-content select,
.em-step-content textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--em-border-color);
    border-radius: var(--em-radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--em-transition);
    background: var(--em-white);
}

.em-step-content input:focus,
.em-step-content select:focus,
.em-step-content textarea:focus {
    outline: none;
    border-color: var(--em-primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.em-step-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--em-text-dark);
    font-size: 14px;
}

/* =====================
   Navigation Buttons
   ===================== */
.em-step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid var(--em-border-color);
    margin-top: 20px;
}

.em-nav-spacer {
    flex: 1;
}

.em-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--em-radius-sm);
    cursor: pointer;
    transition: var(--em-transition);
}

.em-btn-icon {
    font-size: 16px;
}

/* Primary Button (Next) */
.em-btn-primary {
    background: var(--em-primary-color);
    color: var(--em-white);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.em-btn-primary:hover {
    background: var(--em-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--em-shadow-hover);
}

.em-btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button (Previous) */
.em-btn-secondary {
    background: var(--em-bg-light);
    color: var(--em-text-dark);
    border: 1px solid var(--em-border-color);
}

.em-btn-secondary:hover {
    background: var(--em-border-color);
    border-color: var(--em-text-muted);
}

/* Submit Button Styling */
#em-event-form-submit {
    display: none;
    width: 100%;
    padding: 15px 30px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--em-primary-color), var(--em-secondary-color));
    color: var(--em-white);
    border: none;
    border-radius: var(--em-radius-sm);
    cursor: pointer;
    transition: var(--em-transition);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

#em-event-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.4);
}

#em-event-form-submit.em-show-submit {
    display: block;
}

/* =====================
   Responsive Design
   ===================== */
@media (max-width: 768px) {
    .em-multistep-wrapper {
        padding: 20px 15px;
        margin: 10px;
    }

    .em-steps-list {
        flex-wrap: wrap;
        gap: 15px;
    }

    .em-step-item {
        flex: 0 0 calc(50% - 10px);
    }

    .em-step-connector {
        display: none;
    }

    .em-step-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .em-step-title {
        font-size: 12px;
    }

    .em-step-heading {
        font-size: 18px;
    }

    .em-step-navigation {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .em-nav-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .em-nav-spacer {
        display: none;
    }
}

@media (max-width: 480px) {
    .em-step-item {
        flex: 0 0 100%;
    }

    .em-step-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* =====================
   Dark Mode Support
   ===================== */
@media (prefers-color-scheme: dark) {
    .em-multistep-wrapper {
        background: #1a1a2e;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .em-step-number {
        background: #16213e;
        border-color: #0f3460;
        color: #e0e0e0;
    }

    .em-step-title,
    .em-progress-text {
        color: #a0a0a0;
    }

    .em-step-heading {
        color: #ffffff;
    }

    .em-step-description {
        color: #a0a0a0;
    }

    .em-step-header,
    .em-step-navigation {
        border-color: #0f3460;
    }

    .em-progress-bar {
        background: #16213e;
    }

    .em-btn-secondary {
        background: #16213e;
        color: #e0e0e0;
        border-color: #0f3460;
    }

    .em-btn-secondary:hover {
        background: #0f3460;
    }

    .em-step-content input,
    .em-step-content select,
    .em-step-content textarea {
        background: #16213e;
        border-color: #0f3460;
        color: #e0e0e0;
    }
}
