* {
    box-sizing: border-box;
}


body {
    margin: 0;
    padding: 30px 20px;

    background: #f4f5f7;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: #222;
}


.survey-container {
    max-width: 760px;
    margin: 40px auto;
}


.screen {
    background: white;

    padding: 40px;

    border-radius: 10px;

    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.08);
}


.hidden {
    display: none;
}


h1,
h2 {
    margin-top: 0;
}


h2 {
    font-size: 25px;
    line-height: 1.35;
}


.intro-text {
    line-height: 1.6;
    margin-bottom: 35px;
}


.form-group {
    margin-bottom: 25px;
}


label {
    display: block;

    font-weight: 600;

    margin-bottom: 8px;
}


.optional {
    font-weight: normal;
    color: #777;
}


input[type="text"],
textarea {
    width: 100%;

    padding: 12px;

    border: 1px solid #bbb;
    border-radius: 6px;

    font-family: inherit;
    font-size: 16px;
}


textarea {
    resize: vertical;
}


.choice {
    display: flex;
    align-items: flex-start;

    padding: 13px 14px;
    margin-bottom: 8px;

    border: 1px solid #ddd;
    border-radius: 6px;

    cursor: pointer;
}


.choice:hover {
    background: #f7f7f7;
}


.choice input {
    margin-right: 12px;
    margin-top: 3px;
}


.choice label {
    margin: 0;

    font-weight: normal;

    cursor: pointer;
}


.clear-answer {
    margin-top: 10px;

    border: 0;
    background: transparent;

    color: #555;

    text-decoration: underline;

    cursor: pointer;
}


.text-answer textarea {
    min-height: 160px;
}


.comment-area {
    margin-top: 30px;
}


.navigation {
    display: flex;
    justify-content: space-between;

    margin-top: 35px;
}


button {
    font-family: inherit;
    font-size: 16px;

    padding: 11px 23px;

    border-radius: 6px;

    cursor: pointer;
}


.primary-button {
    border: none;

    background: #245da8;
    color: white;
}


.primary-button:hover {
    background: #194b8a;
}


.secondary-button {
    border: 1px solid #aaa;

    background: white;
    color: #333;
}


button:disabled {
    opacity: 0.5;
    cursor: default;
}


.progress {
    margin-bottom: 30px;

    color: #666;

    font-size: 14px;
}


.progress-track {
    height: 5px;

    margin-top: 8px;

    background: #e6e6e6;

    border-radius: 4px;

    overflow: hidden;
}


#progressBar {
    height: 100%;

    background: #245da8;

    width: 0;

    transition: width 0.2s;
}


.error-message {
    color: #a00000;

    margin-top: 12px;
}

