/* Main steps */
.main {
    padding: 40px 0 80px;
}

.step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

.step2 {
    display: none;
    flex-direction: column;
    gap: 40px;
}

.step2.active {
    display: flex;
}

.step2 .poll-header,
.step2 .total-passes-card,
.step2 .questions-container,
.step2 .actions {
    margin: 0 !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, #b0b0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    text-align: center;
    color: #a0a0c0;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Input card */
.input-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.input-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.input-group {
    display: flex;
    gap: 15px;
}

.input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
    font-size: 18px;
    color: #fff;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

.input-group input::placeholder {
    color: #666;
}

.btn {
    background: linear-gradient(90deg, #8a2be2, #00bfff);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 20px 36px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(138, 43, 226, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hint {
    margin-top: 20px;
    color: #8a8aa0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Preloader */
.preloader {
    text-align: center;
    padding: 40px;
    display: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(138, 43, 226, 0.2);
    border-top-color: #8a2be2;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success step */
.success-step {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
}

.success-icon {
    font-size: 100px;
    color: #00ff88;
    margin-bottom: 30px;
    animation: pop 0.5s ease;
}

@keyframes pop {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-step h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.success-step p {
    font-size: 20px;
    color: #a0a0c0;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #8a8aa0;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #8a2be2;
}