@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(-45deg, #ff9a9e, #fecfef, #a18cd1, #fbc2eb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #2d3748;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.quiz-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    max-width: 550px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(255,255,255,0.5);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

#progress-bar-container {
    background: rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 8px;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

#progress-bar {
    background: linear-gradient(90deg, #ff758c, #ff7eb3);
    height: 100%;
    width: 0%;
    border-radius: 0 4px 4px 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 117, 140, 0.5);
}

.screen {
    display: none;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen.active {
    display: block;
}

h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff758c, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a202c;
    line-height: 1.4;
}

p {
    font-size: 17px;
    margin-bottom: 30px;
    color: #4a5568;
    line-height: 1.6;
}

.btn {
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    font-weight: 800;
    padding: 16px 28px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    margin-bottom: 15px;
}

.btn.primary {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.3);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 117, 140, 0.5);
}

.btn.secondary {
    background: #edf2f7;
    color: #2d3748;
}

.btn.secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.option-btn {
    display: block;
    width: 100%;
    padding: 18px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    border-radius: 16px;
    background: #f7fafc;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.option-btn:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: #ff9a9e;
    box-shadow: 0 5px 15px rgba(255, 154, 158, 0.2);
}

.option-btn.selected {
    background: linear-gradient(135deg, #fff0f2 0%, #ffe3e7 100%);
    border-color: #ff758c;
    color: #d53f8c;
    font-weight: 800;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 117, 140, 0.15);
}

input[type="text"], textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    margin-bottom: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: #f7fafc;
    resize: vertical;
}

input[type="text"]:focus, textarea:focus {
    border-color: #ff758c;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 117, 140, 0.1);
}

.navigation {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.navigation .btn {
    margin-bottom: 0;
}

.other-input-container {
    display: none;
    margin-top: -5px;
    margin-bottom: 15px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}