:root {
    --primary: #80ed99;
    --primary-dark: #57cc99;
    --bg-dark: #05070a;
    --card-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #0f172a, #05070a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.container {
    width: 500px;
    min-height: 600px; /* Increased height to prevent clipping */
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.heading {
    padding: 10px 0 20px;
    font-weight: 800;
    text-align: center;
    font-size: 2.2em;
    letter-spacing: -1px;
    background: linear-gradient(to right, #80ed99, #c7f9cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.steps-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    height: 60px;
    margin-bottom: 30px;
    width: 100%;
}

.steps-container > hr {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 28px;
    position: absolute;
    z-index: 0;
    border: none;
}

.steps-container > .active {
    background: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
}

.steps-container > .steps {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background-color: rgba(30, 41, 59, 0.8);
    color: #94a3b8;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--glass-border);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps-container > .steps::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps-container > .steps.PassedStep {
    color: #0f172a;
    border-color: var(--primary);
}

.steps-container > .steps.PassedStep::after {
    opacity: 1;
    transform: scale(1);
}

.steps-container > .steps > span {
    z-index: 3;
}

.input-slide-container {
    width: 100%;
    flex: 1;
    display: flex;
    margin-top: 10px;
    overflow: hidden;
}

#scroller {
    width: fit-content;
    display: flex;
    margin-left: 0px;
    transition: margin-left 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.input-slide {
    width: 440px; /* adjusted for container padding */
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 0 5px;
}

.input-slide > h3 {
    margin-bottom: 5px;
    font-weight: 700;
}

.input-slide > p {
    font-size: 0.85em;
    color: #94a3b8;
    margin-bottom: 20px;
}

.input-slide > .rules {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px; /* Reduced margin */
}

.input-slide > .rules > li {
    padding: 6px 0;
    font-size: 0.85em;
    color: #cbd5e1;
    display: flex;
    align-items: center;
}

.input-slide > .rules > li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1.2em;
}

.input-slide input {
    width: 100%;
    padding: 12px 16px; /* Slightly tighter padding */
    background-color: rgba(15, 23, 42, 0.4);
    outline: none;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 12px; /* Reduced margin */
    font-size: 0.95em;
    color: white;
    transition: all 0.3s ease;
}

.input-slide input::placeholder {
    color: #64748b;
}

.input-slide input:focus {
    border-color: var(--primary);
    background-color: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(128, 237, 153, 0.1);
}

.input-slide input:invalid:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.full-name {
    display: flex;
    gap: 15px;
}

.button-nex {
    padding: 12px 28px;
    border-radius: 12px;
    color: #0f172a;
    font-weight: 700;
    outline: none;
    border: none;
    margin-top: auto;
    margin-left: auto;
    font-size: 1em;
    cursor: pointer;
    background: var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(128, 237, 153, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.button-nex:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 237, 153, 0.3);
}

.button-nex:disabled {
    background: #475569;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.goBack {
    width: 40px;
    height: 40px;
    font-size: 1.1em;
    position: absolute;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    cursor: pointer;
    outline: none;
    left: -60px;
    top: 35px; /* Aligned with heading better */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.goBack:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

@keyframes GoBackBtnVisible {
    0% { left: -60px; }
    100% { left: 30px; }
}

@keyframes GoBackBtnInVisible {
    0% { left: 30px; }
    100% { left: -60px; }
}

/* Scroll adjustments */
.finish-slide {
    text-align: center;
}

.finish-slide .rules {
    text-align: left;
}