:root {
    --primary-color: #6b46c1;
    --secondary-color: #f0e7fe;
    --text-color: #333;
    --white: #ffffff;
    --header-font: 'Playfair Display', serif;
    --body-font: 'Roboto', sans-serif;
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    background: linear-gradient(185deg, rgba(2,0,36,1) 24%, rgba(9,9,121,1) 56%, rgba(0,212,255,1) 100%);
    color: var(--text-color);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: aliceblue;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: var(--header-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
}

.cta-buttons {
    display: flex;
}

.cta-button {
    padding: 12px 24px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

.primary-cta {
    background-color: var(--white);
    color: var(--primary-color);
}

.secondary-cta {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 50px;
}

.hero-content {
    flex: 1;
    max-width: 60%;
}

.hero h1 {
    font-family: var(--header-font);
    font-size: 54px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.workflow-preview {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.clients {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.client-logo {
    height: 30px;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    margin: 10px;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    font-size: 14px;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--white);
}

/* Survey specific styles */
.header {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    backdrop-filter: blur(5px);
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#userEmail {
    color: var(--white);
    font-weight: 500;
}

.header nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.header nav a:hover {
    opacity: 0.8;
}

.survey-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.questions-container {
    width: 100%;
}

.question {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.question p {
    margin: 0 0 20px;
    font-size: 1.8em;
    color: #333;
    font-weight: 500;
    font-family: var(--header-font);
}

.slider-container {
    position: relative;
    width: 100%;
    margin: 40px 0 20px;
    padding-top: 15px; /* Add some space for the notches */
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    position: relative; /* Add this */
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #2980b9;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #2980b9;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.slider-notches {
    position: absolute;
    top: 15px; /* Align with the top of the slider */
    left: 0;
    right: 0;
    height: 10px;
    display: flex;
    justify-content: space-between;
    padding: 0 10%;
    pointer-events: none; /* Ensure notches don't interfere with slider interaction */
}

.notch {
    width: 1px;
    height: 15px; /* Reduced height for smaller notches */
    background-color: #4a4c4d;
    position: relative;
    top: 0px; /* Position at the middle of the slider */
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    position: relative;
}

.label {
    position: relative;
    text-align: center;
    width: 20%;
    font-weight: bold;
}

.label::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background-color: #3498db;
}

.low-label, .high-label {
    width: 10%;
}

.low-label {
    text-align: left;
}

.high-label {
    text-align: right;
}

.low-label::before {
    left: 0;
    transform: none;
}

.high-label::before {
    left: auto;
    right: 0;
}

.current-value {
    text-align: center;
    font-size: 0.95em;
    margin-top: 10px;
    color: #888;
}

.total-value, .negative-average, .positive-average {
    text-align: center;
    font-size: 1.3em;
    margin-top: 25px;
    font-weight: bold;
    color: #444;
}

#submitSurvey {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#submitSurvey:hover {
    background-color: #5a3aa8;
    transform: translateY(-2px);
}

.custom-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 90%;
    width: 400px;
}

.custom-dialog p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333;
}

.custom-dialog button {
    margin: 10px;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.custom-dialog button:hover {
    background-color: #5a3aa8;
}

#thankYouMessage {
    text-align: center;
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 30px;
    font-weight: 600;
}

.graph-container {
    width: 100%;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    box-sizing: border-box;
}

canvas {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

canvas#resultChart {
    background: white;
}

@media (min-width: 1600px) {
    .questions-container {
        width: 80%;
    }
    .graph-container {
        width: 35%;
        margin-left: 5%;
        margin-top: 0;
    }
}