:root {
    --primary-color: #0077be;
    --secondary-color: #F6941F;
    --text-color: #333;
    --secondary-text-color: #808080;
    --background-color: #fff;
    --border-color: #e0e0e0;
    --error-color: #d32f2f;
    --success-color: #388e3c;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 5px;
}

h1, h2 {
    color: var(--primary-color);
}

h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: var(--secondary-text-color);
}

.progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    height: 20px;
}

.progress {
    width: 25%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.step-labels {
    
    justify-content: space-between;
    margin-top: 10px;
}

.step {
    font-size: 0.9em;
    color: var(--secondary-text-color);
    position: relative;
    text-align: center;
    flex: 1;
}

.step.active {
    color: var(--primary-color);
    font-weight: bold;
}

.step::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--secondary-text-color);
    border-radius: 50%;
}

.step.active::before {
    background-color: var(--primary-color);
}

.section {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.question-group {
    
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.question-group:last-child {
    border-bottom: none;
}

.question-group label {
    flex: 1;
    margin-right: 20px;
}

.input-group, .input-wrapper {
    flex: 0 0 250px;
    width: 250px;
}

.input-group select, .input-wrapper input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    height: 40px;
    box-sizing: border-box;
}

.input-wrapper input[type="text"] {
    text-align: left;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.button-container {
    
    justify-content: flex-end;
    margin-top: 20px;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #005fa3;
}

.error {
    border-color: var(--error-color) !important;
}

.hidden {
    display: none;
}

#results {
    background-color: #f9f9f9;
    margin-top: 30px;
    padding: 30px;
    border-top: 3px solid var(--primary-color);
    border-radius: 5px;
}

#results h2 {
    margin-top: 0;
    color: var(--primary-color);
}

#results .question-group, #section4 .question-group {
    
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

#results .question-group label, #section4 .question-group label {
    flex: 1;
    margin-right: 20px;
    font-weight: bold;
}

#results .question-group input[readonly], #section4 .question-group input[readonly] {
    flex: 0 0 250px;
    width: 250px;
    background-color: #e9e9e9;
    cursor: default;
    font-weight: bold;
    color: var(--primary-color);
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    height: 40px;
    box-sizing: border-box;
}

.subheading {
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.question-title {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.question-description {
    display: block;
    font-size: 0.9em;
    color: var(--secondary-text-color);
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 15px;
    }
    
    .section {
        padding: 20px;
    }

    .question-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .question-group label,
    .input-group,
    .input-wrapper {
        width: 100%;
        margin-right: 0;
    }

    .input-group,
    .input-wrapper {
        margin-top: 10px;
    }

    .input-group select,
    .input-wrapper input[type="text"],
    #results .question-group input[readonly],
    #section4 .question-group input[readonly],
    .cta-button {
        width: 100%;
        font-size: 16px;
        padding: 12px;
        margin: 0;
        box-sizing: border-box;
    }

    .button-container {
        justify-content: center;
    }

    select {
        background-position-x: 95%;
    }
}
