415 lines
8.0 KiB
CSS
415 lines
8.0 KiB
CSS
/* --- DESIGN TOKENS (from prompt) --- */
|
|
:root {
|
|
--bg-primary: #0A0E1A;
|
|
--bg-secondary: #0F1728;
|
|
--cyan: #00F5FF;
|
|
--purple: #A855F7;
|
|
--text-white: #FFFFFF;
|
|
--text-gray: #CBD5E1;
|
|
--font-heading: 'Space Grotesk', sans-serif;
|
|
--font-body: 'Inter', sans-serif;
|
|
--space-4: 32px;
|
|
--space-6: 48px;
|
|
--space-8: 64px;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--font-body);
|
|
background-color: var(--bg-primary);
|
|
color: var(--text-white);
|
|
}
|
|
|
|
.questionnaire-container {
|
|
min-height: 100vh;
|
|
background: var(--bg-primary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
padding: 20px;
|
|
}
|
|
|
|
.screen {
|
|
display: none;
|
|
width: 100%;
|
|
max-width: 700px;
|
|
text-align: center;
|
|
}
|
|
|
|
.screen.active {
|
|
display: block;
|
|
}
|
|
|
|
.screen-group {
|
|
margin-bottom: var(--space-8);
|
|
}
|
|
|
|
.section-title {
|
|
font: 24px var(--font-heading);
|
|
color: var(--purple);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
margin-bottom: var(--space-6);
|
|
text-align: center;
|
|
}
|
|
|
|
/* --- PROGRESS BAR --- */
|
|
.progress-container {
|
|
width: 100%;
|
|
max-width: 700px;
|
|
position: fixed;
|
|
top: 20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
z-index: 10;
|
|
padding: 0 20px;
|
|
display: none; /* Initially hidden */
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 100%;
|
|
background-color: var(--bg-secondary);
|
|
height: 10px;
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar-inner {
|
|
height: 100%;
|
|
width: 0;
|
|
background: linear-gradient(90deg, var(--cyan), var(--purple));
|
|
transition: width 0.3s ease-in-out;
|
|
}
|
|
|
|
.progress-text {
|
|
text-align: right;
|
|
font-size: 14px;
|
|
color: var(--text-gray);
|
|
margin-top: 5px;
|
|
}
|
|
|
|
|
|
/* --- WELCOME SCREEN --- */
|
|
.welcome-screen {
|
|
min-height: 100vh;
|
|
padding: var(--space-6) var(--space-4);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.welcome-content {
|
|
max-width: 700px;
|
|
text-align: center;
|
|
}
|
|
|
|
.welcome-badge {
|
|
display: inline-block;
|
|
padding: 8px 20px;
|
|
background: linear-gradient(135deg, var(--cyan), var(--purple));
|
|
border-radius: 50px;
|
|
font: 14px var(--font-heading);
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
color: var(--bg-primary);
|
|
letter-spacing: 0.1em;
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
.welcome-title {
|
|
font: 56px var(--font-heading);
|
|
font-weight: bold;
|
|
color: var(--text-white);
|
|
line-height: 1.2;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.gradient-text {
|
|
background: linear-gradient(135deg, var(--cyan), var(--purple));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.welcome-description {
|
|
font: 20px var(--font-body);
|
|
color: var(--text-gray);
|
|
line-height: 1.6;
|
|
margin-bottom: var(--space-6);
|
|
}
|
|
|
|
.welcome-benefits {
|
|
display: flex;
|
|
gap: var(--space-4);
|
|
justify-content: center;
|
|
margin-bottom: var(--space-6);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.benefit-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 16px;
|
|
color: var(--text-gray);
|
|
}
|
|
|
|
.welcome-note {
|
|
font-size: 14px;
|
|
color: var(--text-gray);
|
|
margin-top: var(--space-4);
|
|
}
|
|
|
|
/* --- QUESTION SCREENS --- */
|
|
.question-screen h3 {
|
|
font: 36px var(--font-heading);
|
|
color: var(--text-white);
|
|
margin-bottom: var(--space-6);
|
|
}
|
|
|
|
.options-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
margin-bottom: var(--space-6);
|
|
}
|
|
|
|
.option-label {
|
|
display: block;
|
|
background: var(--bg-secondary);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
border: 1px solid transparent;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease-in-out;
|
|
text-align: left;
|
|
}
|
|
|
|
.option-label:hover {
|
|
border-color: var(--cyan);
|
|
}
|
|
|
|
.option-label input {
|
|
margin-right: 15px;
|
|
accent-color: var(--purple);
|
|
}
|
|
|
|
.option-label input:checked + span {
|
|
color: var(--cyan);
|
|
}
|
|
|
|
input[type="text"],
|
|
textarea {
|
|
width: 100%;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--text-gray);
|
|
border-radius: 10px;
|
|
padding: 15px;
|
|
color: var(--text-white);
|
|
font-family: var(--font-body);
|
|
font-size: 16px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
textarea {
|
|
min-height: 120px;
|
|
}
|
|
|
|
.hint {
|
|
font-size: 14px;
|
|
color: var(--text-gray);
|
|
text-align: left;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.scale-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.scale-container > span {
|
|
font-size: 14px;
|
|
color: var(--text-gray);
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
|
|
.scale-label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.scale-label input {
|
|
accent-color: var(--purple);
|
|
}
|
|
|
|
.scale-label span {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
/* --- NAVIGATION --- */
|
|
.navigation-buttons {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 20px;
|
|
margin-top: var(--space-4);
|
|
}
|
|
|
|
.btn-start, .btn-next, .btn-prev, .btn-submit {
|
|
padding: 15px 30px;
|
|
border-radius: 50px;
|
|
border: 1px solid var(--cyan);
|
|
background: transparent;
|
|
color: var(--cyan);
|
|
font-family: var(--font-heading);
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-start, .btn-next, .btn-submit {
|
|
background: var(--cyan);
|
|
color: var(--bg-primary);
|
|
}
|
|
|
|
.btn-start:hover, .btn-next:hover, .btn-submit:hover {
|
|
background: var(--purple);
|
|
border-color: var(--purple);
|
|
color: var(--text-white);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
|
|
}
|
|
|
|
.btn-prev {
|
|
color: var(--text-gray);
|
|
border-color: var(--text-gray);
|
|
}
|
|
|
|
.btn-prev:hover {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-white);
|
|
border-color: var(--text-white);
|
|
}
|
|
|
|
.consent-label {
|
|
display: flex;
|
|
align-items: flex-start; /* Align items to the top */
|
|
text-align: left;
|
|
gap: 15px; /* Space between checkbox and text */
|
|
}
|
|
|
|
.consent-label input[type="checkbox"] {
|
|
margin-top: 5px; /* Align checkbox with the first line of text */
|
|
flex-shrink: 0; /* Prevent checkbox from shrinking */
|
|
}
|
|
|
|
.consent-label a {
|
|
color: var(--cyan);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* --- Final Screens --- */
|
|
#email-screen h3, #consent-screen h3 {
|
|
font-size: 24px;
|
|
color: var(--text-gray);
|
|
font-weight: 400;
|
|
margin-bottom: var(--space-6);
|
|
}
|
|
|
|
#email-screen .options-container, #consent-screen .options-container {
|
|
max-width: 500px; /* Narrower container for these steps */
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
#thank-you-screen h2 {
|
|
font: 48px var(--font-heading);
|
|
color: var(--text-white);
|
|
margin-bottom: 24px;
|
|
background: linear-gradient(135deg, var(--cyan), var(--purple));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
#thank-you-screen p {
|
|
font-size: 20px;
|
|
color: var(--text-gray);
|
|
line-height: 1.6;
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
#email-input, #consent-checkbox {
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
#email-input {
|
|
width: 100%;
|
|
padding: 15px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--text-gray);
|
|
border-radius: 10px;
|
|
color: var(--text-white);
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* --- RESPONSIVE --- */
|
|
@media (max-width: 768px) {
|
|
:root {
|
|
--space-4: 24px;
|
|
--space-6: 32px;
|
|
--space-8: 48px;
|
|
}
|
|
|
|
.welcome-title {
|
|
font-size: 40px;
|
|
}
|
|
|
|
.welcome-description {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.question-screen h3 {
|
|
font-size: 28px;
|
|
}
|
|
|
|
#email-screen h3, #consent-screen h3 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
#thank-you-screen h2 {
|
|
font-size: 36px;
|
|
}
|
|
|
|
#thank-you-screen p {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.progress-container {
|
|
padding: 0 15px;
|
|
}
|
|
|
|
.navigation-buttons {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.btn-start, .btn-next, .btn-prev, .btn-submit {
|
|
width: 100%;
|
|
}
|
|
|
|
.scale-container {
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.scale-container > span {
|
|
text-align: center;
|
|
}
|
|
}
|