* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Floating bubbles animation */
.bubble {
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    opacity: 0.6;
    animation: rise 20s infinite ease-in;
    z-index: 0;
}

@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-1200px) scale(1.3); opacity: 0; }
}

/* Main Application Container */
.app-container {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95); /* High opacity for readability */
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 950px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-header {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Back Link Styling */
.back-link {
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-link:hover {
    color: #0d6efd !important; /* Bootstrap primary color */
    transform: translateX(-5px); 
}

/* Mobile Responsive Adjustment */
@media (max-width: 768px) {
    .position-absolute.top-0.start-0 {
        position: relative !important;
        padding: 0 0 15px 0 !important;
        text-align: left;
    }
}

.app-header h2 {
    font-weight: 600;
    color: #2c5364;
}

/* Step Wizard Styling */
.step-wizard {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.step-wizard::before {
    content: "";
    position: absolute;
    top: 20px; /* Aligned with circle center */
    left: 0;
    width: 100%;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 16%;
}

.step-item .circle {
    height: 40px;
    width: 40px;
    background: #fff;
    border: 3px solid #e0e0e0;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-item.active .circle {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 0 10px rgba(13,110,253,0.4);
    transform: scale(1.1);
}

.step-item.completed .circle {
    background: #198754; /* Green for completed */
    border-color: #198754;
    color: #fff;
}

.step-item small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    line-height: 1.2;
}

.step-item.active small {
    color: #0d6efd;
}

/* Form Card Styling */
.step-card {
    display: none;
}

.step-card.active {
    display: block;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Controls Overrides */
.form-control, .form-select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .app-container {
        padding: 20px;
    }
    .step-item small {
        display: none; /* Hide labels on mobile to save space */
    }
    .step-wizard::before {
        top: 50%;
        transform: translateY(-50%);
    }
}