* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;   /* very dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    margin: 0;
}

/* Floating card – dark translucent, liquid glass border */
.survey-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    padding: 2.5rem;
    border-radius: 2.5rem;
    background: rgba(20, 20, 20, 0.8);   /* dark frosted base */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: #e0e0e0;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Liquid glass border – thin, iridescent, smoothly animated */
.survey-container::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 2.6rem;  /* a bit larger than the container */
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 155, 155, 0.25) 40%,
        rgba(155, 155, 255, 0.3) 60%,
        rgba(155, 255, 255, 0.25) 80%,
        rgba(255, 255, 255, 0.2) 100%
    );
    background-size: 400% 400%;
    animation: liquidGlassSweep 12s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes liquidGlassSweep {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.step {
    display: none;
    animation: fadeSlide 0.3s ease;
}

.step.active {
    display: block;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

h1, h2, h3 {
    color: #f0f0f0;
    margin-bottom: 1.5rem;
}

p {
    color: #c0c0c0;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.progress-section {
    margin-bottom: 2.2rem;
}

.progress-text {
    font-weight: 600;
    color: #d0d0d0;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    overflow: hidden;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6600, #ff8833);
    border-radius: 2rem;
    width: 0%;
    transition: width 0.3s ease;
}

.question-block {
    margin-bottom: 2rem;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.8rem;
    color: #e0e0e0;
    font-size: 1.1rem;
}

input[type="text"],
select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: rgba(50, 50, 50, 0.55);
    backdrop-filter: blur(10px);
    color: #f0f0f0;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #ff6600;
    background: rgba(70, 70, 70, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.3);
}

input[type="text"]::placeholder {
    color: #999;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(60, 60, 60, 0.45);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    color: #e0e0e0;
}

.checkbox-option input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #ff6600;
    margin: 0;
    cursor: pointer;
}

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

button {
    background: rgba(80, 80, 80, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 2rem;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

button:hover {
    background: rgba(100, 100, 100, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

button.primary {
    background: #ff6600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 8px 18px rgba(255, 102, 0, 0.4);
}

button.primary:hover {
    background: #e55a00;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 22px rgba(255, 102, 0, 0.55);
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.editable-area {
    background: rgba(50, 50, 50, 0.5);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #d0d0d0;
    line-height: 1.6;
}

.editable-area ul {
    list-style-type: disc;
    padding-left: 1.8rem;
}
.editable-area li {
    margin-bottom: 0.4rem;
}

.final-visualization {
    background: rgba(70, 70, 70, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 1.2rem;
    padding: 1.8rem;
    margin: 1.5rem 0;
    min-height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    border: 2px dashed #ff6600;
    text-align: center;
}

.hidden {
    display: none;
}