body {
    background: linear-gradient(135deg, #080c18 0%, #0c2771 100%);
    overflow-x: hidden;
    color: #f6eedf;
    position: relative;
    z-index: 1;
}

/* Base styles for all step containers */
#preFormPage, #surveyPage, #paymentPlanPage, #mainForm, .question-slide {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    pointer-events: none;
    display: none;
}

#preFormPage, #surveyPage, #paymentPlanPage, .question-slide {
    height: 60%;
}

/* Initial state for first page */
#preFormPage {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    display: block;
}

/* Active state for all containers */
#preFormPage.active, #surveyPage.active, #paymentPlanPage.active, #mainForm.active, .question-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    display: block;
}

#surveyPage.active {
    height: 40%;
}

/* Sliding out state for all containers */
.sliding-out-left {
    opacity: 0 !important;
    transform: translateX(-100%) !important;
    pointer-events: none !important;
}

/* Sliding in from left state */
.sliding-in-left {
    transform: translateX(-100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.step-container {
    display: none;
    height: 100%;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}

.step-container.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
}

.slide-container {
    min-height: calc(100vh - 100px);
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.question-slide {
    display: none;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    background: rgba(13, 17, 38, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(191, 137, 230, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.question-slide.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
}

/* Ensure proper visibility of survey steps */
#surveyPage {
    min-height: 400px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#surveyPage.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Style all form elements consistently */
.form-control {
    background: rgba(18, 25, 56, 0.8) !important;
    border: 1px solid rgba(191, 137, 230, 0.15) !important;
    color: #f6eedf !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
}

.form-control:focus {
    background: rgba(20, 30, 65, 0.9) !important;
    border-color: #bf89e6 !important;
    box-shadow: 0 0 0 3px rgba(191, 137, 230, 0.25) !important;
}

/* Navigation buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.navigation-buttons.center {
    justify-content: center;
}

.btn {
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-primary {
    background: linear-gradient(135deg, #bf89e6 0%, #9b67be 100%) !important;
    border: none !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(191, 137, 230, 0.3) !important;
}

.payment-slide {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

.selected-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: linear-gradient(90deg, #9b67be 0%, #bf89e6 100%);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 576px) {
    .navigation-buttons {
        flex-direction: column;
        align-items: center;
    }

    .navigation-buttons button {
        width: 100%;
        margin: 5px 0;
    }
}

.position-relative {
    position: relative;
}

.d-inline-block {
    display: inline-block;
}

.tooltip-custom {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(13, 17, 38, 0.95);
    color: #f6eedf;
    border: 1px solid rgba(191, 137, 230, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.position-relative:hover .tooltip-custom {
    visibility: visible;
    opacity: 1;
}

.tooltip-custom::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(13, 17, 38, 0.95) transparent transparent transparent;
}

.password-field-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(246, 238, 223, 0.6);
    z-index: 10;
}

.card-header {
    background: linear-gradient(90deg, rgba(13, 17, 38, 0.95) 0%, rgba(15, 20, 45, 0.9) 100%);
    color: #f6eedf;
}

.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: 1000;
    background-color: rgba(13, 17, 38, 0.5);
}

.progress-bar-container {
    height: 100%;
    width: 100%;
    background-color: transparent;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3aa89e 0%, #bf89e6 100%);
    transition: width 0.5s ease-in-out;
}

.bg-gradient-primary {
    background: linear-gradient(90deg, #9b67be 0%, #bf89e6 100%);
}

.bg-gradient-info {
    background: linear-gradient(90deg, #2d857d 0%, #3aa89e 100%);
}

.text-white {
    color: #f6eedf;
}
