:root {
    --accent-color: #F60007;
    --bg-color: #F5F7FA;
    --card-bg: #FFFFFF;
    --text-color: #333333;
    --text-secondary: #666666;
    --yes-color: #4CAF50;
    --no-color: #F44336;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
}

.question-group p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.question-group {
    margin-bottom: 2rem;
}

.question-item {
    margin-bottom: 1.5rem;
}

.question-text {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.choice-container {
    display: flex;
    background: #F0F2F5;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
    user-select: none;
}

.choice-option {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.choice-option.yes {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--yes-color);
}

.choice-option.no {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--no-color);
}

.choice-option.selected.yes {
    background-color: var(--yes-color);
    color: white;
}

.choice-option.selected.no {
    background-color: var(--no-color);
    color: white;
}

.hidden {
    display: none;
}

input[type="email"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #DDE1E6;
    background-color: #F8FAFC;
    color: var(--text-color);
    font-size: 1rem;
    margin: 8px 0 16px;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(246, 0, 7, 0.2);
}

button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #D50006;
}

button:disabled {
    background-color: #C0C0C0;
    cursor: not-allowed;
}

/* Landing Page Styling */
#landing-page .card {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.landing-content {
    text-align: center;
}

.landing-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

#landing-page h1 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

#landing-page p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.landing-text p:last-child {
    margin-bottom: 0;
}

/* Next step card styles */
.next-step-card {
    background-color: #EBE9E2; /* Light beige background */
    border-radius: 12px;
    padding: 2.5rem 2rem; /* More top and bottom padding */
    margin: 2rem 0;
    text-align: center;
}

.next-step-content {
    max-width: 800px;
    margin: 0 auto;
}

.next-step-title {
    color: var(--accent-color);
    margin: 0 0 1.5rem 0; /* Adjusted margins */
    font-size: 1.8rem;
}

.next-step-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0; /* Added bottom margin */
    color: var(--text-color);
}

#book-call-btn {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
}

/* Restart link styles */
.restart-container {
    text-align: right;
    margin-top: 2rem;
}

.restart-link a {
    color: #666666; /* Middle gray color */
    text-decoration: none;
    border-bottom: 1px dotted #666666; /* Dotted underline */
    padding-bottom: 1px; /* Space between text and underline */
    transition: color 0.2s ease;
}

.restart-link a:hover {
    color: #333333; /* Slightly darker gray on hover */
    border-bottom-style: solid; /* Solid underline on hover */
}

.email-input-container {
    max-width: 500px;
    margin: 2rem auto 0;
    text-align: left;
}

.email-input-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#start-assessment {
    width: 100%;
    margin-top: 1rem;
    padding: 14px;
    font-size: 1.1rem;
}

.error-message {
    color: #F44336;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.visible {
    display: block;
}

/* New Role Selection Styling */
.role-card {
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(246, 0, 7, 0.3);
}

.role-card h2 {
    margin-top: 0;
}

.role-card p {
    color: var(--text-secondary);
}

.role-card .role-btn {
    margin-top: 16px;
    width: auto;
    display: inline-block;
    padding-left: 24px;
    padding-right: 24px;
    font-size: 1.1rem;
}

.results-container {
    text-align: center;
}

.chart-container {
    max-width: 500px;
    margin: 2rem auto;
}

.category-result {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #F0F2F5;
}

.category-title {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.category-score {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Error message styling */
.error-message {
    color: var(--no-color);
    font-size: 0.9rem;
    margin-top: 4px;
    display: none;
}

.error-message.visible {
    display: block;
}

/* Progress bar */
.progress-container {
    width: 100%;
    background-color: #E0E5EB;
    border-radius: 8px;
    margin: 1rem 0 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 8px;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* Error notification styling */
.error-notification {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid var(--no-color);
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
}