/* General Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #333;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Landing Page */
.landing-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.landing-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-content h1 {
    margin-bottom: 30px;
    color: #1a2a6c;
    font-size: 2.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Updated Landing Page Styles */
#user-info-form input[type="text"],
#user-info-form input[type="email"],
#user-info-form input[type="number"],
#user-info-form select {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 15px auto;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#user-info-form input[type="text"]:focus,
#user-info-form input[type="email"]:focus,
#user-info-form input[type="number"]:focus,
#user-info-form select:focus {
    border-color: #1a2a6c;
    box-shadow: 0 0 15px rgba(26, 42, 108, 0.2);
    outline: none;
}

#user-info-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 20px auto;
    padding-right: 30px;
}

.terms-container {
    margin: 15px auto;
    text-align: left;
    max-width: 300px;
}

#terms-checkbox {
    margin-right: 10px;
}

#terms-link {
    color: #1a2a6c;
    text-decoration: underline;
}

#terms-link:hover {
    color: #b21f1f;
}

#user-info-form button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#user-info-form button:hover {
    background: linear-gradient(135deg, #b21f1f, #1a2a6c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Survey Page */
.survey-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px;
    color: #333;
}

#user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#user-name, #user-email {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a2a6c;
}

#progress-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

#progress {
    width: 0;
    height: 15px;
    background: linear-gradient(90deg, #1a2a6c, #b21f1f);
    transition: width 0.5s ease;
    border-radius: 50px;
}

#question-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#question {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: #1a2a6c;
}

.option {
    display: block;
    background: linear-gradient(135deg, #f9f9f9, #f2f2f2);
    padding: 20px;
    border-radius: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 80%;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.option:hover {
    background: linear-gradient(135deg, #f2f2f2, #e9e9e9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.option.selected {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    transform: scale(1.05);
}

/* Result Page */
.result-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

#result-message {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: white;
    background: rgba(26, 42, 108, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

#restart-button {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #fdbb2d, #b21f1f);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#restart-button:hover {
    background: linear-gradient(135deg, #b21f1f, #fdbb2d);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: white;
    animation: float 8s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Add more circles with different sizes and positions */
.circle:nth-child(1) { width: 50px; height: 50px; left: 10%; top: 20%; animation-delay: 0s; }
.circle:nth-child(2) { width: 30px; height: 30px; left: 20%; top: 80%; animation-delay: 1s; }
.circle:nth-child(3) { width: 70px; height: 70px; left: 80%; top: 50%; animation-delay: 2s; }
.circle:nth-child(4) { width: 40px; height: 40px; left: 40%; top: 30%; animation-delay: 3s; }
.circle:nth-child(5) { width: 60px; height: 60px; left: 60%; top: 70%; animation-delay: 4s; }