:root {
    --bg: #f5f5f7;
    --text: #1d1d1f;
    --text-muted: #86868b;
    --accent: #40c4ff;
    --accent-dark: #2563eb;
    --glass: rgba(255, 255, 255, 0.7);
    --border: rgba(0, 0, 0, 0.1);
    --shadow: rgba(0, 0, 0, 0.1);
    --font: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Background Animation */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #40c4ff;
    top: -100px;
    right: -100px;
    animation: float 20s infinite alternate;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #ffca28;
    bottom: -50px;
    left: -50px;
    animation: float 15s infinite alternate-reverse;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #ff5252;
    top: 40%;
    left: 30%;
    animation: float 18s infinite alternate;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 100px);
    }
}

/* Progress Bar */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background: var(--accent-dark);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Container */
#form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Slides */
.slide {
    position: absolute;
    width: 100%;
    max-width: 800px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.slide.prev {
    opacity: 0;
    transform: translateY(-20px);
}

.slide-content {
    padding: 2rem;
}

/* Header & Logo */
.logo-header {
    margin-bottom: 3rem;
}

.human-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.h-bold {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.studio-light {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Welcome Slide */
.welcome-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.welcome-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.thanks-text {
    font-weight: 600;
}

/* Action Area */
.action-area {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-start,
.btn-next,
.btn-finish {
    background: var(--text);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-start:hover,
.btn-next:hover,
.btn-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
    background: #000;
}

.time-estimate {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Question Header */
.question-header {
    margin-bottom: 2.5rem;
}

.q-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.q-number::after {
    content: '→';
}

.question-header h1 {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Inputs */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.required {
    color: #ff5252;
    margin-left: 2px;
}

input[type="text"],
textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    font-size: 1.5rem;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-dark);
}

.press-enter {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Suggestions */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f0f0f0;
}

/* Scale Buttons */
.scale-container {
    width: 100%;
}

.scale-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.scale-btn {
    flex: 1;
    min-width: 45px;
    height: 60px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--glass);
    backdrop-filter: blur(5px);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scale-btn:hover {
    border-color: var(--accent-dark);
    color: var(--accent-dark);
    background: white;
}

.scale-btn.selected {
    background: var(--accent-dark);
    color: white;
    border-color: var(--accent-dark);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Side Navigation */
.side-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    padding: 0 2rem;
}

.nav-left {
    left: 0;
}

.nav-right {
    right: 0;
}

.nav-arrow {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-arrow svg {
    transition: transform 0.3s ease;
}

.nav-arrow:hover:not(:disabled) {
    background: white;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.nav-arrow:hover:not(:disabled) svg {
    transform: scale(1.1);
}

.nav-left .nav-arrow:hover:not(:disabled) svg {
    transform: translateX(-3px) scale(1.1);
}

.nav-right .nav-arrow:hover:not(:disabled) svg {
    transform: translateX(3px) scale(1.1);
}

.nav-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.form-footer {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.powered-by {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Ending Slide Styles */
.success-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
    align-items: center;
}

/* Custom Alert Modal */
.alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.alert-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert-modal.active {
    display: flex;
}

.alert-modal.active .alert-content {
    transform: scale(1);
}

.alert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.alert-content p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text);
    line-height: 1.5;
}

.alert-content button {
    background: var(--text);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.alert-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}