/* Define color variables for easy customization */
:root {
    --bg-color: #ffffff;
}

/* Main container for the assessor */
.needs-assessor-container {
    font-family: sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 0 40px;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    color: var(--contrast)!important;
    max-width: 900px;
    margin: 2em auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, .16);
}

/* Styling for the full-width headline */
.needs-assessor-container h2 {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
	color: var(--contrast)!important;
}

/* Left section (Result) */
.needs-assessor-result {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.needs-assessor-result p {
    margin-bottom: 10px !important;
}

.speedometer-container {
    position: relative;
    width: 270px;
    height: 150px;
    margin: 0;
    overflow: visible;
}

.speedometer-container svg {
    overflow: visible;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.speedometer-bg, .speedometer-progress {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 20;
    stroke-linecap: round;
}
.speedometer-bg {
    stroke: var(--contrast-3);
}
.speedometer-progress {
    stroke: var(--accent);
    stroke-dasharray: 393;
    stroke-dashoffset: 393;
    transition: stroke-dashoffset 0.5s ease-out;
}

#mbit-result {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent);
    margin: -70px 0 65px 0;
    line-height: 1.1;
}

/* Styling for Technology Recommendation Buttons */
#tech-recommendations {
    padding-left: 0;
    margin-top: 20px;
    list-style-type: none !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#tech-recommendations li {
    padding: 0;
    border-bottom: none;
    list-style-type: none !important;
}

#tech-recommendations a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--contrast-2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--contrast);
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    background-color: var(--bg-color);
	box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.35);
}

#tech-recommendations a:hover {
    border-color: var(--accent);
    opacity: 1;
	box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.7);	
	background-color: var(--base);
}

.tech-icon {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    flex-shrink: 0;
}

/* Right section (Form) */
.needs-assessor-form {
    flex: 1.5;
    min-width: 300px;
}

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

.form-group p {
    font-weight: bold;
    margin: 0 0 8px 0!important;
    font-size: 1.1rem;
}

.form-options {
    display: flex;
    gap: 10px;
}

.form-options input[type="radio"] {
    display: none;
}

.form-options label {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--contrast-2);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #FFFFFF;
    color: var(--contrast);
	box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.35);
}

.form-options input[type="radio"]:checked + label {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: bold;
}

.form-options label:hover {
	box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.7);
	background-color: var(--base);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .needs-assessor-container {
        flex-direction: column;
        padding: 20px;
        align-items: center;
    }

    .needs-assessor-form {
        order: 1;
        width: 100%;
        margin: 0;
    }

    .needs-assessor-result {
        order: 2;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    .speedometer-container {
        margin: 5px auto;
        width: min(270px, 90vw);
    }

    .speedometer-container svg {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

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

    .form-options label {
        padding: 6px 8px;
        font-size: 0.9rem;
    }

    .needs-assessor-container h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem!important;
        margin-top: 0!important;
    }

    #tech-recommendations {
        margin-bottom: 0!important;
    }

    #tech-recommendations a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

