* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #8d9f9f;
    --card-bg: #c8d3d5;
    --cta-button: #f0a59f;
    --submit-button: #7fb3b3;
    --progress-bg: #d9d9d9;
    --text-primary: #000;
    --text-light: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, Helvetica, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    margin: 0 auto;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    padding: 0 60px;
    justify-content: center;
}

.page.active {
    opacity: 1;
    pointer-events: auto;
}

/* Progress Sidebar */
.progress-sidebar {
    width: 240px;
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
    margin-right: 40px;
}

.progress-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.progress-bar {
    width: 160px;
    height: 480px;
    background-color: var(--progress-bg);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    background: linear-gradient(180deg, #7fb3b3 0%, #679999 100%);
    transition: height 0.5s ease;
    width: 100%;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 50px 60px;
    overflow-y: auto;
    gap: 30px;
    max-width: 900px;
    margin: 0;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Info Box */
.info-box {
    background-color: var(--card-bg);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-box p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-light);
}

/* Question Section */
.question-section {
    margin: 30px 0;
}

.question-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option {
    display: flex;
    align-items: center;
    padding: 25px;
    background-color: var(--card-bg);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.option:hover {
    background-color: #b5c5c7;
    transform: translateX(5px);
}

/* Individual option colors matching Figma design */
.options > .option:nth-child(1) {
    background-color: #f0a59f;
}

.options > .option:nth-child(1):hover {
    background-color: #e89a95;
}

.options > .option:nth-child(2) {
    background-color: #ffc6bd;
}

.options > .option:nth-child(2):hover {
    background-color: #ffb8ab;
}

.options > .option:nth-child(3) {
    background-color: #fcdbd4;
}

.options > .option:nth-child(3):hover {
    background-color: #f5cec5;
}

.options > .option:nth-child(4) {
    background-color: #c8d3d5;
}

.options > .option:nth-child(4):hover {
    background-color: #b5c5c7;
}

.option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 20px;
    min-width: 20px;
    accent-color: var(--submit-button);
}

.option span {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Buttons */
.cta-button {
    background-color: var(--cta-button);
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    padding: 25px 40px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: center;
    width: 100%;
    max-width: 450px;
    text-align: center;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #e89a95;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-button {
    background-color: var(--submit-button);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 400px;
    align-self: center;
    margin-top: 25px;
}

.submit-button:hover {
    background-color: #6fa0a0;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-button:active {
    transform: scale(0.98);
}

/* Navigation Controls */
.nav-controls {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px;
    z-index: 100;
}

.nav-btn {
    background-color: var(--submit-button);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    background-color: #6fa0a0;
    transform: scale(1.05);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollbar Styling */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1440px) {
    .page {
        padding: 0 40px;
    }

    .progress-sidebar {
        width: 220px;
        padding: 40px 20px;
        margin-right: 30px;
    }

    .main-content {
        padding: 40px 50px;
    }

    .info-box {
        padding: 30px 40px;
    }
}

@media (max-width: 1024px) {
    .page {
        flex-direction: column;
        padding: 0;
    }

    .progress-sidebar {
        width: 100%;
        height: auto;
        padding: 20px 30px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        margin-right: 0;
    }

    .progress-bar {
        width: 100px;
        height: 35px;
        flex-direction: row;
    }

    .progress-label {
        font-size: 14px;
    }

    .main-content {
        padding: 30px 40px;
    }

    h1 {
        font-size: 22px;
    }

    .info-box {
        padding: 25px 30px;
    }

    .cta-button {
        font-size: 18px;
        padding: 20px 30px;
        max-width: 100%;
    }

    .submit-button {
        font-size: 14px;
        padding: 12px 25px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .progress-sidebar {
        order: -1;
        width: 100%;
        height: auto;
        padding: 15px 20px;
        flex-direction: row;
        margin-right: 0;
    }

    .progress-bar {
        width: 80px;
        height: 30px;
    }

    .progress-label {
        font-size: 12px;
    }

    .main-content {
        padding: 25px 30px;
        max-width: 100%;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .info-box {
        padding: 20px 25px;
    }

    .info-box p {
        font-size: 15px;
    }

    .question-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .options {
        gap: 12px;
    }

    .option {
        padding: 15px;
    }

    .option span {
        font-size: 16px;
    }

    .option input[type="radio"] {
        width: 18px;
        height: 18px;
        margin-right: 15px;
    }

    .cta-button {
        font-size: 16px;
        padding: 18px 25px;
        margin-top: 15px;
    }

    .submit-button {
        font-size: 13px;
        padding: 12px 20px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        min-height: auto;
    }

    .page {
        min-height: 100vh;
    }

    .progress-sidebar {
        padding: 12px 15px;
        gap: 15px;
    }

    .progress-bar {
        width: 70px;
        height: 25px;
    }

    .progress-label {
        font-size: 11px;
    }

    .main-content {
        padding: 20px 20px;
        gap: 20px;
    }

    h1 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .info-box {
        padding: 15px 20px;
    }

    .info-box p {
        font-size: 14px;
        line-height: 1.5;
    }

    .question-section {
        margin: 15px 0;
    }

    .question-section h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .options {
        gap: 10px;
    }

    .option {
        padding: 12px;
    }

    .option span {
        font-size: 14px;
    }

    .option input[type="radio"] {
        width: 16px;
        height: 16px;
        margin-right: 10px;
    }

    .cta-button {
        font-size: 15px;
        padding: 15px 20px;
    }

    .submit-button {
        font-size: 12px;
        padding: 10px 18px;
    }

    .nav-controls {
        bottom: 15px;
        gap: 10px;
    }

    .nav-btn {
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* Success Message */
.feedback-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    background-color: #7fb3b3;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    z-index: 200;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}
