/* File Upload Styles */
.upload-section {
    border: 2px dashed #9AB8E4;
    border-radius: 1.75em;
    padding: 2em;
    text-align: center;
    margin: 1em 0;
    background: linear-gradient(0deg, rgba(227, 234, 242, 0.3), rgba(227, 234, 242, 0.3));
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-section:hover {
    background: rgba(227, 234, 242, 0.5);
    border-color: #246BFE;
}

.upload-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    width: 100%;
    height: 100%;
}

.upload-section .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.upload-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.upload-label svg {
    width: 48px;
    height: 48px;
    stroke: #9AB8E4;
}

.text-divider {
    text-align: center;
    margin: 1em 0;
    font-weight: bold;
}

.text-blue-600 {
    color: #246BFE;
    text-decoration: underline;
}

/* Add this at the top of your CSS file */
[x-cloak] {
    display: none !important;
}

/* Fonts */
@font-face {
    font-family: 'NEOPIXEL';
    src: local('NEOPIXEL-Regular'),
        url('../fonts/NEOPIXEL-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Proxima Nova';
    src: local('Proxima Nova Regular'), local('ProximaNova-Regular'),
        url('../fonts/ProximaNova-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* D66 Logo:  INTER */
:root {
  font-family: Inter, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
}
@supports (font-variation-settings: normal) {
  :root { font-family: InterVariable, sans-serif; }
}


:root {
    --light-blue: #4272AB;
    --dialog-bg: #4271ab;
    --disabled-color: grey;
    --dialog-footer-txt: #CBD6E5;
    --error-color: #FF6C6C;
    --progress-bg: #708DB866;
    --progress-fg: #91a9ce;
    --summary-active: #B4BBFA;
    --green: #4caf50;
    --light-green: #4caf5080;
    --light-gray: #f8f9fa;
    --border-color: #708DB8;
    --D66-green: #00AE41;
}


/* Reset */

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    word-break: normal;
    -moz-tab-size: 4;
    tab-size: 4;
    font-size: 16px;
}

*,
::before,
::after {
    background-repeat: no-repeat;
    box-sizing: inherit;
}

::before,
::after {
    text-decoration: inherit;
    vertical-align: inherit;
}

::placeholder {
    color: white;
}

* {
    padding: 0;
    margin: 0;
    font-family: 'Proxima Nova';
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    background-color: #172A54;
    background: linear-gradient(180deg, #172A54 0%, #0D162B 100%);
    -webkit-font-smoothing: antialiased; /* For WebKit browsers */
    -moz-osx-font-smoothing: grayscale; /* For Firefox on macOS */
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Basic */

a {
    background-color: transparent;
    text-decoration: none;
}

a:active,
a:hover {
    outline-width: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'NEOPIXEL';
    font-weight: 400;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
    line-height: 1.3;
}

p:last-child {
    margin-bottom: 0;
}

p a {
    color: white;
}

.bold {
    font-weight: bold;
}

/* Buttons */

.button {
    padding: 0.8em 1em;
    margin: 1em 0;
    color: white;
    border-top-right-radius: 0.75em;
    border-bottom-left-radius: 0.75em;
    background-color: transparent;
    font-family: 'NEOPIXEL';
    font-size: 1.1em;
    border: none;
    white-space: nowrap;
    vertical-align: middle;
}

.button:hover {
    cursor: pointer;
}

.button.getstarted {
    margin-top: 3em;
}

.button.arrowleft::before {
    display: inline-block;
    content: url("data:image/svg+xml,%3Csvg viewBox='0 0 19 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.91036 15.4102L1.0001 8.49999M1.0001 8.49999L7.91036 1.58973M1.0001 8.49999H17.5847' stroke='white' stroke-width='1.24385' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    margin-right: 1em;
    width: 1em;
}

.button.arrowright::after {
    display: inline-block;
    content: url("data:image/svg+xml,%3Csvg viewBox='0 0 19 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.4743 1.58975L17.3846 8.50001M17.3846 8.50001L10.4743 15.4103M17.3846 8.50001H0.799988' stroke='white' stroke-width='1.24385' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    margin-left: 1em;
    width: 1em;
}

.button.radialgrad, .button.next {
    background: radial-gradient(54.6% 186.25% at 28.55% 10%, #57D7FF 0%, #2DACF9 31.1%, #246BFE 100%) 
}

.button:disabled {
    background: transparent;
    background-color: #3F5570;
    opacity: 0.5;
}

/* Utilities */

.mr1 { margin-right: 1em !important; }
.ml1 { margin-left: 1em !important; }

/* Text Area */

textarea {
    width: 100%;
    resize: vertical;
    outline: none;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: transparent;
}

.screen textarea {
    display: block;
    position: relative;
    border: 1px solid #9AB8E4;
    border-top-right-radius: 1.75em;
    border-bottom-left-radius: 1.75em;
    background: linear-gradient(0deg, rgba(227, 234, 242, 0.3), rgba(227, 234, 242, 0.3));
    padding: 1em;
    min-height: 300px;
}

/* Validation */
.error-text {
    color: var(--error-color);
    text-align: left;
}

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

.error-message {
    font-size: 1em;
    margin-left: 2em;
    display: block;
}

/* Header */

/* Logo */

.logo {
    width: 3em;
}

.header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding:0 1.5em;
    height: 15vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.d66-logo {
    width: 80px;
    height: auto;
    margin-top: 3em;
}

.header .title {
    font-family: 'NEOPIXEL';
    position: relative;
    font-size: 2em;
    margin-top: 0.75em;
    margin-bottom: 0.75em;
    display: none;
}

.wrap:has(.intro.active-screen) .header .title {
    display: inline-block;
}

.wrap:not(:has(.results.active-screen)) .header .title {
    transform:translateY(150%);
}

.header .title::before {
    position: absolute;
    content: "D66";
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    bottom: 0;
    left: 0em;
    transform: translateY(100%);
    font-size: 0.3em;
    color: white;
    padding: 0.25em 1em;
    background-color: var(--D66-green);
    border-top-right-radius: 0.5em;
    border-bottom-left-radius: 0.5em;
}

.header .title::after {
    position: absolute;
    content: "by &samhoud";
    bottom: 0;
    right: -1em;
    transform: translateY(75%);
    font-family: 'Proxima Nova';
    font-size: 0.32em;
    font-weight: normal;
    color: white;
}

.header .title a,
.header .title a:hover,
.header .title a:active,
.header .title a:visited {
    font-family: 'NEOPIXEL';
    font-size: inherit;
    text-decoration: none;
    color: white;
}

/* About */

.about {
    z-index: 8;
}

.about, .rate {
    display: inline-block;
    line-height: 1;
    color: #CBD6E5;
    font-family: 'NEOPIXEL';
    font-weight: 400;
    font-size: 1em;
    background-color: transparent;
    border: none;
    vertical-align: middle;
}

.about::before {
    display: inline-block;
    margin-right: 0.5em;
    align-self: center;
    content: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.25 9.25L9.291 9.23C9.41923 9.16594 9.56313 9.13997 9.70567 9.15516C9.8482 9.17035 9.9834 9.22606 10.0952 9.31571C10.2071 9.40536 10.2909 9.52518 10.3368 9.66099C10.3826 9.79679 10.3886 9.9429 10.354 10.082L9.646 12.918C9.61114 13.0572 9.61694 13.2034 9.66269 13.3394C9.70845 13.4754 9.79224 13.5954 9.90414 13.6852C10.016 13.775 10.1513 13.8308 10.294 13.846C10.4367 13.8612 10.5807 13.8352 10.709 13.771L10.75 13.75M19 10C19 11.1819 18.7672 12.3522 18.3149 13.4442C17.8626 14.5361 17.1997 15.5282 16.364 16.364C15.5282 17.1997 14.5361 17.8626 13.4442 18.3149C12.3522 18.7672 11.1819 19 10 19C8.8181 19 7.64778 18.7672 6.55585 18.3149C5.46392 17.8626 4.47177 17.1997 3.63604 16.364C2.80031 15.5282 2.13738 14.5361 1.68508 13.4442C1.23279 12.3522 1 11.1819 1 10C1 7.61305 1.94821 5.32387 3.63604 3.63604C5.32387 1.94821 7.61305 1 10 1C12.3869 1 14.6761 1.94821 16.364 3.63604C18.0518 5.32387 19 7.61305 19 10ZM10 6.25H10.008V6.258H10V6.25Z' stroke='%23CBD6E5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    width: 1em;
    height: 1em;
}

.about:hover {
    color: white;
    cursor: pointer;
}

.rate {
    position: absolute;
    right: 1em;
}

/* Structural */

.wrap {
    display: flex;
    position: relative;
    background-color: #172A54;
    background-image: url('../images/background.png');
    background-blend-mode: hard-light;
    background-size: cover;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}

.wrap.end {
    justify-content: flex-start;
    height: 100%;
    width: 100%;
    overflow: auto;
    overflow-x: hidden;
}

.wrap.end::before {
    display: none;
}

.content {
    width: 100%;
    margin: 0 auto;
}

.deco-tl-container, .deco-br-container {
    display: none;
}

.wrap, .screen {
    position: relative;
    color: white;
}

.screen {
    width: 100%;
    margin:0 auto;
    text-align: center;
    padding: 7.5vh 1.5em;
    min-height: 50vh;
}

.screen.results {
    padding: 2.5vh 1.5em;
}

.input_header, .input_footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.input_header {
    margin-bottom: 2em;
}

.input_footer {
    margin-top: 2em;
}

.input_footer .counter-bottom {
    text-align: right;
    flex: 1;
}

.input_header h2 {
    margin-bottom: 0;
}

.screen input[type="text"] {
    appearance: none;
    background: transparent;
    margin-left: 0.4em;
    padding: 0.6em;
    color: white;
    border:none;
    border-bottom: 1px solid white;
    font-size: 1em;
}

.screen .input_wrapper {
    display: inline-block;
    /* border-bottom: 1px solid white; */
}

.cb_wrapper {
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.1;
    display: grid;
    grid-template-columns: 1em auto;
    gap: 2em;
    text-align: left;
}

.cb_wrapper p {
    font-size: 0.97rem;
}

.cb_wrapper input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #CFD8E466;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid white;
    border-radius: 0.15em;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
}

.cb_wrapper + .cb_wrapper {
    margin-top: 1em;
}

.cb_wrapper input[type="checkbox"]::before {
    content: "";
    width: 0.6em;
    height: 0.6em;
    border-radius: 0.1em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    background-color: CanvasText;
    transform-origin: bottom left;
}

.cb_wrapper input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.cb_wrapper input[type="checkbox"]:focus {
    outline: max(2px, 0.15em) solid currentColor;
    outline-offset: max(2px, 0.15em);
}

.cb_wrapper input[type="checkbox"]:disabled {
    color: var(--disabled-color);
    cursor: not-allowed;
}

/* Intro Screen */

.screen.intro .content {
    max-width: 550px;
}

.screen.intro .content h2 {
    margin-bottom: 1em;
}

/* Input Screen */

.screen.input h2 {
    text-align: center;
}

.screen.input .counter-top {
    display: none;
}

.screen.input .counter-bottom {
    display: block;
}

.screen.input .content {
    max-width: 640px;
}

/* Content Type Screen */

.screen.type .selection {
    display: flex;
    flex-flow: row wrap;
    margin: 2em auto;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.screen.type .selection .pill_button {
    position: relative;
    border-radius: 3em;
    padding: 0.25em 1.25em;
    border: 2px solid white;
    background-color: transparent;
    font-size: 1em;
    color: white;
    margin: 0.5em;
}

.screen.type .selection .pill_button:hover {
    cursor: pointer;
}

.screen.type .selection input[type="radio"] {
    position: relative;
    display: none;
}

.screen.type .selection input[type="radio"]:checked + .pill_button {
    background-color: white;
    color: #3F5570;
}

.screen.type .terms {
    margin-top: 2em;
}

.screen.type .content {
    max-width: 640px;
}

.screen.type a {
    text-decoration: underline;
}

/* Subscribe Screen */

.screen.subscribe h2 {
    margin-bottom: 1em;
}

.screen.subscribe .input_wrapper,
.screen.subscribe .input_wrapper input[type="text"] {
    width: 100%;
    margin-bottom: 2em;
}

.screen.subscribe .input_wrapper input[type="text"] {
    position: relative;
    margin: 0;
}

.screen.subscribe .content {
    max-width: 640px;
    margin-top: 2em;
    margin-bottom: 2em;
}

.screen.subscribe a {
    text-decoration: underline;
}

/* Process Screen */

.screen.process .progress {
    margin:6em auto;
    /* margin-bottom: 8em; */
    width: 80%;
    max-width: 600px;
    height: 1em;
    border-radius: 1em;
    overflow: hidden;
    background-color: var(--progress-bg);
}

.screen.process .progress .progress-inner {
    display: block;
    content: '';
    height: 100%;
    background-color: var(--progress-fg);
    transition: all .5s linear;
}

.screen.process .progress .progress-inner.error {
    background-color: var(--error-color);
}

.screen.process .retry {
    background-color: transparent;
    border: none;
    color: white;
    padding: 0.5em 1em;
    margin-bottom: 2em;
    background-color: rgba(0,0,0,0.5);
}

/* Results Screen */

.screen.results .content {
    position: relative;
    display: flex;
    flex-flow: column;
    text-align: center;
}

.screen.results .content .summary .summary-items {
    display: flex;
    flex-flow: column;
    flex: 1;
    margin-bottom: 1em;
}

.screen.results .content .summary,
.screen.results .content .detail {
    position: absolute;
    border-radius: 1em;
    flex-basis: 50%;
    margin: 0em;
    text-align: left;
}

.screen.results .content .summary {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    background-color: #708DB866;
    min-height: 637px;
}

.screen.results .content .summary {
    padding: 1.5em;
    padding-bottom: 1em;
}

.screen.results .content .summary .inline_rating {
    display: flex;
    align-items: center;
}

.screen.results .content .summary .inline_rating .subheading {
    margin: 0;
    margin-right: 1em;
    text-align: right;
}

.screen.results .content .summary .brief,
.screen.results .content .summary .disclaimer {
    font-size: 0.9em;
}

.screen.results .content .summary .brief {
    margin-bottom: 0.5em;
}

.screen.results .content .summary .disclaimer {
    font-style: italic;
}

.screen.results .content .summary .rate {
    display: flex;
    align-items: center;
}

.screen.results .content .summary-item {
    position: relative;
    display: flex;
    padding: 0.75em 0;
    margin-bottom: 0.75em;
    font-family: 'Proxima Nova';
    border-bottom: 1px solid white;
    color: white;
    justify-content: space-between;
}

.screen.results .content .summary-item span {
    font-size: 1em;
}

.screen.results .content .summary-item.blindspots {
    font-family: 'NEOPIXEL';
    margin-bottom: 2em;
}

.screen.results .content .summary-item.active {
    color: var(--summary-active);
    border-bottom-color: var(--summary-active);
    fill: var(--summary-active);
}

.screen.results .content .summary-item:hover {
    cursor: pointer;
}

.screen.results .content .nav {
    flex-flow: column;
    align-items: flex-start;
    gap: 1em;
}

.screen.results .content .nav .button {
    margin: 0;
}

.screen.results .content .nav .button.startagain {
    background: transparent;
}

.screen.results .content .detail::before {
    display: none;
}

.screen.results .content .summary h2 {
    font-size: 2em;
}

.screen.results .content .detail h3 {
    display: flex;
    align-items: baseline;
    font-size: 1.25em;
    border-bottom: 1px solid white;
    margin-bottom: 1em;
    padding-bottom: 1em;
}

.screen.results .content .detail h3 > span {
    font-family: inherit;
    font-size: inherit;
}

.screen.results .content .detail .button.arrowleft.prev {
    margin-top: 0;
    padding-left: 0;
}

.screen.results .content .detail .question {
    display: block;
    content: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 9C0 4.02923 4.02923 0 9 0C13.9708 0 18 4.02923 18 9C18 13.9708 13.9708 18 9 18C4.02923 18 0 13.9708 0 9ZM10.5028 5.38431C9.68123 4.66708 8.31877 4.66708 7.49815 5.38431C7.35996 5.50525 7.17938 5.56633 6.99614 5.55413C6.8129 5.54192 6.64202 5.45743 6.52108 5.31923C6.40014 5.18103 6.33905 5.00045 6.35126 4.81721C6.36346 4.63398 6.44796 4.46309 6.58615 4.34215C7.92831 3.168 10.0717 3.168 11.4138 4.34215C12.8105 5.56431 12.8105 7.58954 11.4138 8.81169C11.1803 9.01536 10.9204 9.18673 10.6412 9.32123C10.0172 9.624 9.69231 10.0357 9.69231 10.3846V11.0769C9.69231 11.2605 9.61937 11.4366 9.48954 11.5665C9.3597 11.6963 9.18361 11.7692 9 11.7692C8.81639 11.7692 8.6403 11.6963 8.51046 11.5665C8.38063 11.4366 8.30769 11.2605 8.30769 11.0769V10.3846C8.30769 9.204 9.28615 8.43969 10.0385 8.07508C10.2065 7.99385 10.3625 7.89138 10.5028 7.76954C11.2689 7.09846 11.2689 6.05538 10.5028 5.38431ZM9 14.5385C9.18361 14.5385 9.3597 14.4655 9.48954 14.3357C9.61937 14.2059 9.69231 14.0298 9.69231 13.8462C9.69231 13.6625 9.61937 13.4865 9.48954 13.3566C9.3597 13.2268 9.18361 13.1538 9 13.1538C8.81639 13.1538 8.6403 13.2268 8.51046 13.3566C8.38063 13.4865 8.30769 13.6625 8.30769 13.8462C8.30769 14.0298 8.38063 14.2059 8.51046 14.3357C8.6403 14.4655 8.81639 14.5385 9 14.5385Z' fill='white'/%3E%3C/svg%3E");
    width: 0.7em;
    height: 0.7em;
    margin-left: 0.5em;
}

/* D66 Tabs for Results */
.tab-header {
    display: flex;
    border-bottom: 1px solid #708DB8;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 15px;
    background: none;
    border: none;
    font-weight: 500;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.tab-button.active {
    border-bottom: 2px solid var(--green);
    color: var(--D66-green);
}

/* Score cards section */
.score-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.score-card {
    border: 1px solid #708DB8;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.score-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.score-card h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.score-card .score {
    font-size: 0.9em;
    color: #CBD6E5;
}

.score-card p {
    color: white;
    font-size: 0.9em;
    margin-bottom: 12px;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
}

/* Detail view styling for D66 analysis */
.score-display {
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.score-label {
    font-weight: 500;
    margin-right: 8px;
}

.score-stars {
    color: white;
}

.feedback-header, .improvement-header, .example-header {
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.05em;
}

.feedback-text {
    line-height: 1.5;
}

.improvement-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.improvement-item {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.improvement-arrow {
    color: var(--light-blue);
    margin-right: 8px;
    font-weight: bold;
}

.example-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--light-blue);
    padding: 12px;
    margin-top: 8px;
    white-space: pre-line;
}

.example-text {
    font-family: monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

.description {
    font-style: italic;
    margin-bottom: 15px;
    color: #CBD6E5;
}

/* Nav Button Container */

.nav {
    display: flex;
    width: 100%;
    justify-content: center;
    z-index: 1;
}

.nav .button {
    margin: 0.5em;
}

.nav .button.prev {
    background-color: transparent;
}

.feedback,
.weblink {
    display: flex;
    font-family: 'NEOPIXEL';
    font-weight: 400;
    text-decoration: none;
    color: white;
    margin: 0;
    margin-right: 1em;
    align-items: center;
    justify-content: center;
}

.feedback::before,
.weblink::before {
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
}

.feedback::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23CBD6E5' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.25' d='M6.188 7.125a.312.312 0 1 1-.625 0 .312.312 0 0 1 .625 0Zm0 0h-.313m3.438 0a.312.312 0 1 1-.625 0 .312.312 0 0 1 .624 0Zm0 0H9m3.438 0a.312.312 0 1 1-.625 0 .312.312 0 0 1 .624 0Zm0 0h-.313M.875 9.633c0 1.334.936 2.495 2.256 2.69.906.133 1.82.235 2.744.307v3.87l3.487-3.486a.95.95 0 0 1 .648-.276 40.242 40.242 0 0 0 4.858-.415c1.321-.195 2.257-1.356 2.257-2.69V4.618c0-1.336-.936-2.496-2.256-2.69A40.329 40.329 0 0 0 9 1.5c-1.993 0-3.953.146-5.87.427C1.81 2.123.876 3.284.876 4.617v5.016Z'/%3E%3C/svg%3E");
}

.weblink {
    display: flex;
}
.weblink::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23CBD6E5' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.25' d='M10 19a9.004 9.004 0 0 0 8.716-6.747M10 19a9.004 9.004 0 0 1-8.716-6.747M10 19c2.485 0 4.5-4.03 4.5-9S12.485 1 10 1m0 18c-2.485 0-4.5-4.03-4.5-9S7.515 1 10 1m8.716 11.253a9.043 9.043 0 0 0-.873-6.671m.873 6.671A17.918 17.918 0 0 1 10 14.5a17.92 17.92 0 0 1-8.716-2.247m0 0A9.015 9.015 0 0 1 1 10c0-1.605.42-3.113 1.157-4.418M10 1a8.997 8.997 0 0 1 7.843 4.582M10 1a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 10 8.5c-2.998 0-5.74-1.1-7.843-2.918'/%3E%3C/svg%3E");
}

/* Tooltip Styling */
.tippy-box {
    padding: 1em;
    border-radius: 0.75em;
    background-color: #1a2a4c; /* Dark blue, matching theme */
    color: #ffffff; /* White text */
    font-family: 'ProximaNova-Regular', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.tippy-box > .tippy-arrow {
    transition: none !important;
}

.tippy-box[data-placement^='top'] > .tippy-arrow::before {
    border-top-color: #1a2a4c;
}

.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: #1a2a4c;
}

.tippy-box[data-placement^='left'] > .tippy-arrow::before {
    border-left-color: #1a2a4c;
}

.tippy-box[data-placement^='right'] > .tippy-arrow::before {
    border-right-color: #1a2a4c;
}

/* Rating Stars */

.rating {
    margin: 1em 0;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating * {
    transition: none !important;
}

.rating .radio-input {
    position: fixed;
    opacity: 0;
    pointer-events: none;
}

.rating .radio-label {
    cursor: pointer;
    font-size: 0;
    color: transparent;
}

.rating .radio-label:before {
    display: inline-block;
    height: 24px;
    width: 24px;
    margin-right: 4px;
    font-size: 24px;
    line-height: 1;
    content: url("data:image/svg+xml,%3Csvg viewBox='0 0 38 37' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.0909 2.86419L23.6685 13.1905L23.8763 13.6593L24.3851 13.7239L35.2623 15.105L27.2081 22.9486L26.8592 23.2884L26.9488 23.7671L29.0532 35.0153L19.5487 29.4756L19.0909 29.2087L18.6331 29.4756L9.12858 35.0153L11.233 23.7671L11.3226 23.2884L10.9737 22.9486L2.91955 15.105L13.7967 13.7239L14.3055 13.6593L14.5133 13.1905L19.0909 2.86419Z' stroke='white' stroke-width='1.81818'/%3E%3C/svg%3E");
}

.rating .radio-input:checked ~ .radio-label {
    display: inline-block;
    height: 24px;
    width: 24px;
    margin-right: 4px;
    font-size: 24px;
    line-height: 1;
    content: url("data:image/svg+xml,%3Csvg viewBox='0 0 38 37' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.0909 2.86419L23.6685 13.1905L23.8763 13.6593L24.3851 13.7239L35.2623 15.105L27.2081 22.9486L26.8592 23.2884L26.9488 23.7671L29.0532 35.0153L19.5487 29.4756L19.0909 29.2087L18.6331 29.4756L9.12858 35.0153L11.233 23.7671L11.3226 23.2884L10.9737 22.9486L2.91955 15.105L13.7967 13.7239L14.3055 13.6593L14.5133 13.1905L19.0909 2.86419Z' stroke='white' stroke-width='1.81818'/%3E%3C/svg%3E");
}

.rating .radio-label:hover,
.rating .radio-label:hover ~ .radio-label {
    display: inline-block;
    height: 24px;
    margin-right: 4px;
    width: 24px;
    font-size: 24px;
    line-height: 1;
    content: url("data:image/svg+xml,%3Csvg viewBox='0 0 38 37' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.0909 2.86419L23.6685 13.1905L23.8763 13.6593L24.3851 13.7239L35.2623 15.105L27.2081 22.9486L26.8592 23.2884L26.9488 23.7671L29.0532 35.0153L19.5487 29.4756L19.0909 29.2087L18.6331 29.4756L9.12858 35.0153L11.233 23.7671L11.3226 23.2884L10.9737 22.9486L2.91955 15.105L13.7967 13.7239L14.3055 13.6593L14.5133 13.1905L19.0909 2.86419Z' stroke='white' stroke-width='1.81818'/%3E%3C/svg%3E");
}

.rating .radio-input:checked + .radio-label:hover,
.rating .radio-input:checked + .radio-label:hover ~ .radio-label,
.rating .radio-input:checked ~ .radio-label:hover,
.rating .radio-input:checked ~ .radio-label:hover ~ .radio-label,
.rating .radio-label:hover ~ .radio-input:checked ~ .radio-label {
    display: inline-block;
    height: 24px;
    width: 24px;
    margin-right: 4px;
    font-size: 24px;
    line-height: 1;
}

.rating_reason .input_wrapper {
    border-bottom: 1px solid white;
}

.rating_reason .input_wrapper textarea {
    min-height: 100px;
}

/* Loader */

.loader {
    position: fixed;
    left: 50%;
    top: 50%;
    transform:translate(-50%, -50%);
    display: inline-block;
    width: 80px;
    height: 80px;
    z-index: 999;
    transition: none !important;
}
.loader:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: loader 1.2s linear infinite;
    transition: none !important;
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Dialog Styles */

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    z-index: 9;
}

.dialog {
    position: fixed;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 100%;
    height: 100%;
    padding: 1em;
}

.dialog-inner {
    position: relative;
    background-color: var(--dialog-bg);
    background-image: url(../images/background.png);
    background-size: 300%;
    color: white;
    border-top-right-radius: 1.5em;
    border-bottom-left-radius: 1.5em;
    max-width: 902px;
    padding: 1.5em;
    padding-bottom: 1em;
    margin: auto;
    min-width: 80%;
}

.dialog-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dialog-header h3 {
    font-size: 1.5em;
}

.dialog-content {
    position: relative;
    height: 100%;
    max-height: 400px;
    overflow: hidden;
}

.dialog-close {
    position: absolute;
    background-color: transparent;
    color: white;
    border: none;
    font-size: 1.3em;
    top: 0;
    right: 0;
    z-index: 10;
}

.dialog-close:hover {
    cursor:pointer;
}

.dialog-footer {
    display: flex;
    flex-flow: column;
    align-items: start;
    justify-content: start;
    margin-top: 1em;
}

.dialog .rating {
    margin: 1em 0;
}

.dialog.rating .button.radialgrad {
    margin: 0;
}

.dialog.rating .subheading {
    font-size: 1.25em;
}

.dialog .rating .radio-label:before {
    height: 32px;
    width: 32px;
    margin-right: 8px;
    font-size: 32px;
}

.dialog .rating .radio-input:checked ~ .radio-label {
    height: 32px;
    width: 32px;
    margin-right: 8px;
    font-size: 32px;
}

.dialog .rating .radio-label:hover,
.dialog .rating .radio-label:hover ~ .radio-label {
    height: 32px;
    margin-right: 8px;
    width: 32px;
    font-size: 32px;
}

.dialog .rating .radio-input:checked + .radio-label:hover,
.dialog .rating .radio-input:checked + .radio-label:hover ~ .radio-label,
.dialog .rating .radio-input:checked ~ .radio-label:hover,
.dialog .rating .radio-input:checked ~ .radio-label:hover ~ .radio-label,
.dialog .rating .radio-label:hover ~ .radio-input:checked ~ .radio-label {
    height: 32px;
    width: 32px;
    margin-right: 8px;
    font-size: 32px;
}


.dialog.about-dialog h2 {
    font-size: 2em;
}

.dialog.about-dialog h3 {
    font-family: 'Proxima Nova';
    font-weight: bold;
}

.dialog.about-dialog .scroll-content {
    margin-right: 1em;
}

.dialog.about-dialog .dialog-footer {
    flex-flow: row;
    align-items: center;
}

.dialog.about-dialog .dialog-footer img {
    margin-right: 1.5em;
}

.dialog.rating .dialog-footer.align-right {
    align-items: flex-end;
    justify-content: flex-end;
}

/* Scrollbar tweaks */

.scrollbar-track.scrollbar-track-y {
    background-color: transparent !important;
}

.scrollbar-thumb.scrollbar-thumb-y {
    background: rgba(255, 255, 255, 0.5);
}

/* D66 Summary section */
.screen.results .content .summary-scores {
    margin-bottom: 1.5em;
}

.screen.results .content .insights-section {
    margin-top: 1em;
}

@media (max-width: 820px){
    br {
        display: none;
    }

    /* D66 mobile adjustments */
    .tab-button {
        font-size: 0.85em;
        padding: 8px 10px;
    }

    .score-card h3 {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-card .score {
        margin-top: 4px;
    }

    .improvement-list {
        padding-left: 5px;
    }
}

@media (min-width: 821px){

    .weblink {
        font-size: 1.1em;
    }

    .about {
        font-size: 1.1em;
    }

    .header {
        height: 20vh;
        padding: 0 2em;
    }

    .screen {
        padding: 7.5vh 2em;
    }

    .header .title {
        display: inline-block;
        font-size: 2.5em;
    }

    .wrap:not(:has(.results.active-screen)) .header .title {
        transform:translateY(75%);
    }

    /* Input Type Screen */

    .screen textarea {
        padding: 2em;
    }

    /* Intro Screen */

    .screen.intro .content h2 {
        margin-bottom: 1.5em;
    }

    .screen input[type="text"] {
        font-size: 1.25em;
    }

    /* Results Screen */
    .screen.results {
        padding: 5vh 2em;
    }

    .screen.results .content .summary {
        display: flex !important;
    }

    .screen.results .content {
        display: flex;
        flex-flow: row;
        text-align: left;
        gap: 2em;
        padding-bottom: 2em;
        align-items: stretch;
        overflow: hidden;
    }

    .screen.results .content .summary,
    .screen.results .content .detail {
        position: relative;
        border-radius: 2em;
        overflow: hidden;
    }

    .screen.results .content .summary,
    .screen.results .content .detail .detail-scrollable {
        padding: 2em;
        padding-bottom: 1.5em;
    }

    .screen.results .content .summary .summary-items {
        margin-bottom: 1.5em;
    }

    .screen.results .content .detail {
        /* padding: 2em; */
        border-radius: 2em;
    }

    .screen.results .content .detail h3 {
        font-size: 1.4em;
        margin-bottom: 0.5em;
        padding-bottom: 0;
        border-bottom: none;
    }

    .screen.results .content .detail::before {
        display: block;
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: linear-gradient(180deg, rgba(11, 33, 101, 0) 0%, #0A1D63 100%);
    }

    .screen.results .content .detail {
        border-top-left-radius: 0;
        border-bottom-right-radius: 0;
        border:1px solid #708DB8;
    }

    .screen.results .content .detail .button.arrowleft.prev {
        display: none;
    }

    /* D66 desktop adjustments */
    .tab-button {
        font-size: 1em;
        padding: 10px 20px;
    }

    .score-card {
        padding: 20px;
    }

    .score-card h3 {
        margin-bottom: 15px;
    }

    /* Dialog Styles */

    .dialog-inner {
        padding: 2em;
        padding-bottom: 1.5em;
    }

    .dialog-header h3 {
        font-size: 2em;
    }

    .dialog-footer {
        flex-flow: row;
        justify-content: flex-start;
        margin-top: 1.25em;
    }
    .dialog-footer a {
        width: auto;
    }
}

@media (min-width: 1024px){

    .button {
        margin: 1.5em 0;
        font-size:1.2em;
    }

    .logo {
        width: 3em;
    }

    .about {
        font-size: 1.2em;
    }

    .weblink {
        font-size: 1.2em;
    }

    .button.getstarted {
        margin-top: 3em;
    }

    .header .title {
        font-size: 3em;
    }

    .header {
        padding: 0 2.5em;
    }

    .screen {
        padding: 7.5vh 2.5em;
    }

    h2 {
        font-size: 1.6em;
    }

    /* Circle Container */
    .wrap::before,
    .deco-tl-container, 
    .deco-br-container {
        display: flex;
        position: absolute;
        left: 50%;
        top: 50%;
        transform:translate(-50%, -50%);
        width: min(70vw, 1100px);
        height: min(70vw, 1100px);
        background-color: transparent;
    }

    .deco-tl-container img {
        position: absolute;
        left: 0;
        top: 20%;
        max-width: 12.5%;
    }
    .deco-br-container img {
        position: absolute;
        left: 87.5%;
        bottom: 20%;
        max-width: 12.5%;
    }

    .wrap::before {
        content: '';
        border-radius: 50%;
        background-color: transparent;
        border: 2px solid #4888CF;
        box-shadow: 0px 4px 12px 4px #4576ACCC;
    }

    /* Intro Screen */

    .screen.intro p {
        font-size: 1.25em;
    }

    .screen.intro .content {
        max-width: 700px;
    }

    .screen.intro .content h2 {
        font-size: 1.875em;
        margin-bottom: 2em;
    }

    /* Input Screen */

    .screen.input .counter-top {
        display: block;
    }
    .screen.input .counter-bottom {
        display: none;
    }
    .screen.input h2 {
        text-align: left;
    }

    /* Input Type Screen */

    .screen.type .selection {
        max-width: 650px;
    }
    .screen.type .selection .pill_button {
        font-size: 1.25em;
    }

    /* Results Screen */

    .screen.results {
        padding: 2.5vh 2.5em;
    }

    .screen.results .content .summary .summary-items {
        margin-bottom: 2em;
    }

    .screen.results .content .summary-item span {
        font-size: 1.1em;
    }

    .screen.results .content .nav .button {
        margin-bottom: 0;
    }

    .screen.results .content .nav {
        justify-content: space-between;
        flex-flow: row;
    }

    .screen.results .content .summary h3 {
        font-size: 1.25em;
    }

    .screen.results .content .detail h3 {
        font-size: 1.5em;
    }

    /* D66 desktop larger adjustments */
    .tab-button {
        font-size: 1.1em;
    }

    .score-card h3 {
        font-size: 1.2em;
    }

    .feedback-header, .improvement-header, .example-header {
        font-size: 1.15em;
    }

    /* Rating */

    .dialog.rating {
        margin: 1.5em 0;
    }

    /* Dialog Styles */

    .dialog-header h3 {
        font-size: 3em;
    }

    .dialog-footer {
        margin-top: 1.5em;
    }

    .dialog-inner {
        padding: 3em;
        padding-bottom: 2em;
        min-width: 902px;
    }

    .dialog-inner p {
        font-size: 1.2em;
    }

    .dialog-content {
        max-height: 500px;
    }

    .dialog.rating .subheading {
        font-size: 1.5em;
    }

    .dialog.about-dialog h2 {
        font-size: 2.5em;
    }
}

@media (min-width: 1280px){

    .button.getstarted {
        margin-top: 4em;
    }

    .header {
        padding: 0 3em;
    }

    .screen {
        padding: 7.5vh 3em;
    }

    /* Intro Screen */

    .screen.intro .content {
        max-width: 800px;
    }

    .screen.intro p {
        font-size: 1.35em;
    }

    /* Input Screen */
    .screen.input .content {
        max-width: 800px;
    }

    /* Results Screen */

    .screen.results .content .summary {
        border-radius: 3em;
    }

    .screen.results .content .summary h2 {
        font-size: 2.5em;
    }

    .screen.results .content .summary h3 {
        font-size: 1.5em;
    }

    .screen.results .content .detail h3 {
        font-size: 1.875em;
    }

    .screen.results .content .summary-item span {
        font-size: 1.15em;
    }

    .screen.results .content .summary,
    .screen.results .content .detail .detail-scrollable {
        padding: 3em;
        padding-bottom: 2em;
    }

    .content {
        max-width: 1100px;
    }

    /* D66 large screen adjustments */
    .tab-button {
        font-size: 1.2em;
    }

    .score-card h3 {
        font-size: 1.3em;
    }

    .score-card p {
        font-size: 1em;
    }

    .example-container {
        padding: 20px;
    }

    /* Rating */

    .dialog .rating {
        margin: 2em 0;
    }

    /* Dialog Styles */

    .dialog-inner {
        padding: 4em;
        padding-bottom: 3em;
    }

    .dialog.about-dialog h2 {
        font-size: 3em;
    }
}

@media (min-width: 1440px){
    .content {
        max-width: 1240px;
    }
}

@media (min-width: 1728px){
    .content {
        max-width: 1440px;
    }
}
/* Screen visibility control */
.screen {
  display: none;
  position: relative;
  width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.screen.active-screen {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Add some spacing to the paragraphs in the detail view for better readability */
.detail-inner p {
    margin-bottom: 1em;
}

.detail-inner p:last-child {
    margin-bottom: 0;
}
