@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Sans:wght@300;400;500;700&display=swap');

@import 'variables';

// Keep icon font URLs relative so deployments in subfolders (e.g. /energy/public) resolve correctly.
$bootstrap-icons-font-src: url("../fonts/vendor/bootstrap-icons/bootstrap-icons.woff2") format("woff2"),
url("../fonts/vendor/bootstrap-icons/bootstrap-icons.woff") format("woff");

@import '~bootstrap/scss/bootstrap';
@import '~bootstrap-icons/font/bootstrap-icons';

:root {
    --ec-font-family-base: #{$font-family-sans-serif};
    --ec-font-size-base: #{$font-size-base};
    --ec-line-height-base: #{$line-height-base};

    --ec-color-body-bg: #{$body-bg};
    --ec-color-text: #{$body-color};
    --ec-color-surface: #ffffff;
    --ec-color-surface-alt: #f8fafc;
    --ec-color-surface-soft: #f3f6fa;
    --ec-color-surface-muted: #e8edf3;
    --ec-color-white: #ffffff;

    --ec-color-green: #{map-get($colors, 'green')};
    --ec-color-blue: #{map-get($colors, 'blue')};
    --ec-color-red: #{map-get($colors, 'red')};
    --ec-color-yellow: #{map-get($colors, 'yellow')};
    --ec-color-purple: #{map-get($colors, 'purple')};

    --ec-color-progress-track: #dde3ea;
    --ec-color-progress-global-start: #6b7280;
    --ec-color-progress-global-end: #374151;
    --ec-color-progress-green-start: #147d01;
    --ec-color-progress-green-end: #199801;
    --ec-color-progress-blue-start: #014f8d;
    --ec-color-progress-blue-end: #015ea6;
    --ec-color-progress-red-start: #810101;
    --ec-color-progress-red-end: #a60101;
    --ec-color-progress-yellow-start: #c99f02;
    --ec-color-progress-yellow-end: #f2c002;
    --ec-color-progress-purple-start: #5a2280;
    --ec-color-progress-purple-end: #6b2995;

    --ec-color-lang-button-text: #199801;
    --ec-color-lang-button-bg: #ffffff;
    --ec-color-lang-button-hover-text: #ffffff;
    --ec-color-lang-button-hover-start: #147d01;
    --ec-color-lang-button-hover-middle: #199801;
    --ec-color-lang-button-hover-end: #22ba01;

    --ec-shadow-lang-button: 0 2px 4px 0 rgba(103, 121, 120, 0.75);
    --ec-shadow-lang-button-active: 0 2px 5px 0 rgba(25, 153, 25, 0.75);
    --ec-shadow-card: 0 10px 30px rgba(17, 24, 39, 0.08);

    --ec-radius-sm: 0.25rem;
    --ec-radius-pill: 45px;
    --ec-radius-card: 1rem;
    --ec-radius-full: 999px;
}

body {
    font-family: var(--ec-font-family-base);
    font-size: var(--ec-font-size-base);
    line-height: var(--ec-line-height-base);
    color: var(--ec-color-text);
    background-color: var(--ec-color-body-bg);
}

.public-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@supports (min-height: 100dvh) {
    .public-layout {
        min-height: 100dvh;
    }
}

.img-header {
    width: 100%;
    max-width: 512px;
    height: auto;
    margin: 0 auto;
}

.admin-header {
    position: relative;
    z-index: 3000;
    isolation: isolate;
}

.admin-header .navbar {
    background: linear-gradient(90deg, var(--ec-color-blue) 0%, var(--ec-color-purple) 100%);
}

.admin-footer {
    background: linear-gradient(90deg, var(--ec-color-blue) 0%, var(--ec-color-purple) 100%);
    color: var(--ec-color-white);
}

.admin-header .navbar,
.admin-header .navbar .container,
.admin-header .navbar-collapse,
.admin-header .admin-navbar-links,
.admin-header .admin-navbar-links .nav-item,
.admin-header .admin-navbar-links .nav-link,
.admin-header #navbarAccount,
.admin-header #navbarAccount i,
.admin-header .dropdown-menu {
    position: relative;
    z-index: 3010;
    pointer-events: auto;
}

.app-main {
    position: relative;
    z-index: 1;
}

.public-layout__main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.nav-tabs .nav-link.active {
    font-weight: bold;
}

.quizz-font {
    text-align: justify;
    //@include font-size(1.125rem);
}

.quizz-table {
    width: 100%;
    text-align: left;
    border-radius: 0.4rem;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--ec-color-white);

    thead {
        text-transform: uppercase;
        color: var(--ec-color-white);
        vertical-align: middle;
    }

    thead th {
        padding: 1rem 0.9rem;
        border: 0;
        font-weight: 700;
    }

    tbody td {
        padding: 1.15rem 0.9rem;
        border: 0;
    }

    tbody td:first-child {
        font-weight: 600;
    }

    tbody td:not(:first-child),
    thead th:not(:first-child) {
        width: 2.8rem;
        text-align: center;
    }

    tbody {
        border-top: none;
    }

    input {
        cursor: pointer;
    }
}

.quizz-table__score-pill {
    width: 2.05rem;
    height: 2.05rem;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.quizz-table__radio {
    appearance: none;
    -webkit-appearance: none;
    width: 1.35rem;
    height: 1.35rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: var(--ec-color-white);
    display: block;
    margin: 0 auto;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.quizz-table__radio:checked {
    box-shadow: inset 0 0 0 3px var(--ec-color-white);
    background-color: currentColor;
}

@each $name in map-keys($colors) {
    $color: map-get($colors, $name);
    .quizz-table-#{$name} {
        border: 1px solid var(--ec-color-#{$name});

        thead {
            background-color: var(--ec-color-#{$name});
        }

        tbody td {
            border-top: 1px solid rgba($color, 0.45);
        }

        tbody tr:first-child td {
            border-top: 1px solid rgba($color, 0.45);
        }

        tbody td:first-child {
            color: var(--ec-color-#{$name});
        }

        .quizz-table__radio {
            color: var(--ec-color-#{$name});
        }
    }
}

.quizz-page {
    position: relative;
    width: min(100%, 84rem);
    margin: 0 auto;
    padding: clamp(0.55rem, 1.5vw, 1rem) clamp(0.75rem, 2.3vw, 1.5rem) 1rem;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.quizz-page__inner {
    width: min(100%, 78rem);
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

.quizz-page__content {
    flex: 1 0 auto;
}

.quizz-intro-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: clamp(0.9rem, 1.7vw, 1.25rem);
}

.quizz-outro-intro {
    max-width: 46rem;
    margin: 1rem auto 1.2rem;
    line-height: 1.6;
    font-size: 1.08rem;
    text-align: center;
}

.quizz-outro-form {
    width: min(100%, 46rem);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.quizz-outro-form__fields {
    display: grid;
    gap: 0.95rem;
}

.quizz-outro-form__field {
    display: grid;
    gap: 0.45rem;
}

.quizz-outro-form__field label {
    text-align: center;
}

.quizz-outro-form__field .form-select,
.quizz-outro-form__field .dropdown {
    width: 100%;
}

.quizz-outro-form__field .form-select {
    text-align: center;
    text-align-last: center;
}

.quizz-outro-form__field .dropdown input {
    text-align: center;
}

.quizz-outro-form__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quizz-outro-form__actions .btn {
    min-width: 8.75rem;
}

.quizz-thanks {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.08;
}

.quizz-outro {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(2rem, 6vw, 4.75rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.quizz-outro__card {
    width: min(100%, 46rem);
    position: relative;
    overflow: hidden;
    padding: clamp(1.7rem, 4vw, 2.7rem);
    border-radius: clamp(1.5rem, 3vw, 2.2rem);
    background:
        radial-gradient(circle at top right, rgba(3, 113, 202, 0.14), transparent 30%),
        radial-gradient(circle at left bottom, rgba(54, 179, 74, 0.16), transparent 28%),
        linear-gradient(145deg, #ffffff 0%, #f5f9fc 100%);
    border: 1px solid rgba(1, 94, 166, 0.11);
    box-shadow: 0 26px 70px rgba(20, 42, 74, 0.14);
}

.quizz-outro__card::after {
    content: "";
    position: absolute;
    inset: auto -4rem -4rem auto;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(248, 185, 29, 0.25), rgba(230, 87, 54, 0.1));
    filter: blur(8px);
    pointer-events: none;
}

.quizz-outro__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(1, 94, 166, 0.12);
    color: #26415d;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.quizz-outro__badge-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
}

.quizz-outro__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.25rem;
    margin-top: 0.35rem;
}

.quizz-outro__copy {
    display: grid;
    gap: 0.35rem;
}

.quizz-outro__text {
    max-width: 34.5rem;
    margin: 0;
    font-size: clamp(1.02rem, 1.8vw, 1.12rem);
    line-height: 1.65;
    color: #4d6277;
}

.quizz-outro__actions {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.15rem;
}

.quizz-outro__share {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1.05rem 1.05rem;
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(38, 65, 93, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.quizz-outro__share-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #30465c;
}

.quizz-outro__secondary-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quizz-outro__button {
    min-height: 3.3rem;
    border-radius: 999px;
    padding: 0.8rem 1.3rem;
    font-size: 1rem;
    font-weight: 700;
    border-width: 0;
}

.quizz-outro__button-primary {
    width: 100%;
    box-shadow: 0 16px 28px rgba(1, 94, 166, 0.22);
}

.quizz-outro__button-secondary {
    width: auto;
    min-width: 13rem;
    color: #26415d;
    background: #ffffff;
    border: 1px solid rgba(38, 65, 93, 0.14);
    box-shadow: 0 10px 24px rgba(20, 42, 74, 0.08);
}

.quizz-outro__button-secondary:hover,
.quizz-outro__button-secondary:focus {
    color: #1c3347;
    background: #ffffff;
    border-color: rgba(38, 65, 93, 0.18);
}

.quizz-intro-logo {
    width: clamp(3.2rem, 5vw, 3.7rem);
    height: clamp(3.2rem, 5vw, 3.7rem);
    object-fit: contain;
}

.quizz-intro-topbar__right {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.2rem;
}

.quizz-lang-link {
    border: none;
    background: transparent;
    padding: 0;
    color: #212529;
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    line-height: 1;
    text-decoration: none;
}

.quizz-lang-link-active {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.quizz-intro-content {
  max-width: 78rem;
  margin: clamp(1.9rem, 3.2vw, 2.4rem) auto 0;
  text-align: center;
}

.quizz-intro-title {
    font-size: clamp(2.2rem, 4.3vw, 3.35rem);
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.1;
}

.quizz-intro-text {
    font-size: clamp(1.1rem, 1.55vw, 1.23rem);
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.quizz-intro-text-lead {
    font-size: clamp(1.55rem, 3.2vw, 2.2rem);
    line-height: 1.3;
    margin-bottom: 1.4rem;
}

.quizz-energy-green {
    color: var(--ec-color-green);
    font-weight: 700;
}

.quizz-energy-blue {
    color: var(--ec-color-blue);
    font-weight: 700;
}

.quizz-energy-red {
    color: var(--ec-color-red);
    font-weight: 700;
}

.quizz-energy-yellow {
    color: var(--ec-color-yellow);
    font-weight: 700;
}

.quizz-energy-purple {
    color: var(--ec-color-purple);
    font-weight: 700;
}

.quizz-intro-dimensions-card {
    width: min(100%, 62rem);
    margin: 1.35rem auto 1rem;
    padding: 1.1rem clamp(1rem, 3vw, 2rem);
    border: 2px solid #d8d8d8;
    border-radius: 2rem;
    background-color: rgba(255, 255, 255, 0.34);
    display: grid;
    justify-items: center;
    gap: 0.85rem;
}

.quizz-intro-text-anon {
    margin-top: 0.9rem;
}

.quizz-intro-text-dimensions {
    margin-bottom: 0;
}

.quizz-intro-text-dimensions-list {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.45rem;
    line-height: 1.6;
}

.quizz-intro-dimensions-connector {
    white-space: nowrap;
}

.quizz-intro-dimensions-separator {
    margin-right: 0.05rem;
}

.quizz-intro-batteries {
    width: clamp(8rem, 16vw, 13rem);
    height: auto;
}

.quizz-intro-captcha {
    margin-top: clamp(2.2rem, 3vw, 2.8rem);
}

.quizz-start-button {
    min-width: 11rem;
    min-height: 3rem;
    border-radius: 999px;
    padding: 0.65rem 1.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    box-shadow: 0 8px 20px rgba(1, 94, 166, 0.26);
}

.quizz-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.3rem;
}

.quizz-topbar__line {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.quizz-topbar__wire {
    flex: 1;
    position: relative;
    height: 3px;
    border-radius: 999px;
}

.quizz-topbar__wire::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 100vw;
    background: inherit;
}

.quizz-topbar__wire-green {
    background: var(--ec-color-green);
}

.quizz-topbar__wire-blue {
    background: var(--ec-color-blue);
}

.quizz-topbar__wire-red {
    background: var(--ec-color-red);
}

.quizz-topbar__wire-yellow {
    background: var(--ec-color-yellow);
}

.quizz-topbar__wire-purple {
    background: var(--ec-color-purple);
}

.quizz-topbar__plug {
    width: clamp(4.9rem, 7vw, 5.6rem);
    height: auto;
    margin-left: -0.12rem;
}

.quizz-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: clamp(1.4rem, 2.2vw, 1.9rem) 0 1.2rem;
    text-align: center;
}

.quizz-brand-title {
    margin: 0;
    font-size: clamp(1.95rem, 4.8vw, 3.25rem);
    font-weight: 700;
    line-height: 1.05;
    color: #111;
}

.quizz-brand-energy {
    font-weight: 800;
}

.quizz-brand-energy-green {
    color: var(--ec-color-green);
}

.quizz-brand-energy-blue {
    color: var(--ec-color-blue);
}

.quizz-brand-energy-red {
    color: var(--ec-color-red);
}

.quizz-brand-energy-yellow {
    color: var(--ec-color-yellow);
}

.quizz-brand-energy-purple {
    color: var(--ec-color-purple);
}

.quizz-brand-battery {
    width: clamp(6.6rem, 13vw, 10.8rem);
    height: auto;
}

.quizz-brand-description {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.75rem;
    text-align: center;
}

.quizz-brand-description p {
    margin-bottom: 0;
}

.quizz-lang-dropdown {
    position: relative;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    margin-left: 1rem;
    margin-top: 0.28rem;
}

.quizz-lang-dropdown__trigger {
    border: none;
    background: transparent;
    color: #222;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: clamp(1rem, 1.25vw, 1.08rem);
    font-weight: 400;
    line-height: 1;
    padding: 0.25rem 0;
}

.quizz-lang-dropdown__trigger i {
    font-size: 0.85rem;
}

.quizz-lang-dropdown__menu {
    position: absolute;
    right: 0;
    top: calc(100% - 0.2rem);
    min-width: 10rem;
    border: 1px solid #e4e4e4;
    border-radius: 0.4rem;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    z-index: 1200;
    overflow: hidden;
}

.quizz-lang-dropdown__item {
    width: 100%;
    display: block;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0.45rem 0.75rem;
    font-size: 1rem;
    color: #212529;
}

.quizz-lang-dropdown__item:hover,
.quizz-lang-dropdown__item-active {
    background: #f2f4f6;
}

.quizz-scale {
    max-width: 76rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem 1rem;
}

.quizz-scale__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
}

.quizz-scale__index {
    min-width: 2.2rem;
    height: 2.2rem;
    border: 1px solid #212529;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.05rem;
}

.quizz-scale__label {
    font-size: 1rem;
}

.quizz-report-btn {
    border-radius: var(--ec-radius-pill);
    background-color: transparent;
    font-size: 0.82rem;
    padding: 0.2rem 0.7rem;
}

.quizz-version {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(33, 37, 41, 0.22);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.quizz-footer-meta {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 0 1rem;
    margin-top: auto;
    min-height: 6.5rem;
    border-top: 1px solid rgba(38, 65, 93, 0.08);
    position: relative;
}

.quizz-footer-meta__left {
    justify-self: start;
}

.quizz-footer-meta__center {
    justify-self: center;
}

.quizz-footer-meta__right {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    font-size: 0.9rem;
    color: #4d6277;
}

.quizz-footer-meta__copyright {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.quizz-version-separator {
    opacity: 0.42;
}

.quizz-version-link {
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    opacity: 0.34;
    text-decoration: none;
    text-underline-offset: 0.18rem;
    color: rgba(38, 65, 93, 0.42);
    transition: color 0.15s ease, opacity 0.15s ease;
}

.quizz-version-link:hover,
.quizz-version-link:focus-visible {
    opacity: 0.85;
    color: rgba(14, 26, 39, 0.58);
    text-decoration: underline;
}

.quizz-footer-logo {
    width: 2.65rem;
    height: 2.65rem;
    object-fit: contain;
}

.quizz-footer-link {
    border: none;
    background: transparent;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
    color: #26415d;
    font-size: 0.96rem;
}

.quizz-footer-link-muted {
    opacity: 0.30;
}

.quizz-modal-open {
    overflow: hidden;
}

.quizz-report-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 38%),
        rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(6px);
}

.quizz-report-modal__dialog {
    width: min(100%, 34rem);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.98) 100%);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.26);
    border: 1px solid rgba(38, 65, 93, 0.1);
    overflow: hidden;
}

.quizz-report-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(38, 65, 93, 0.08);
}

.quizz-report-modal__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1f3147;
}

.quizz-report-modal__close {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(38, 65, 93, 0.08);
    color: #26415d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.quizz-report-modal__close:hover,
.quizz-report-modal__close:focus {
    background: rgba(38, 65, 93, 0.14);
    transform: translateY(-1px);
}

.quizz-report-modal__body {
    display: grid;
    gap: 1.05rem;
    padding: 1.45rem 1.5rem 1.6rem;
}

.quizz-report-modal__field {
    display: grid;
    gap: 0.45rem;
}

.quizz-report-modal__label {
    font-weight: 700;
    color: #24384f;
}

.quizz-report-modal__optional {
    font-weight: 400;
    font-style: italic;
    color: #60758a;
}

.quizz-report-modal__help {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #5d7084;
}

.quizz-report-modal__input,
.quizz-report-modal__textarea {
    width: 100%;
    border: 1px solid rgba(38, 65, 93, 0.14);
    border-radius: 1rem;
    background: #fff;
    padding: 0.8rem 0.95rem;
    color: #213547;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quizz-report-modal__input:focus,
.quizz-report-modal__textarea:focus {
    outline: none;
    border-color: rgba(25, 153, 25, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(25, 153, 25, 0.12);
}

.quizz-report-modal__textarea {
    min-height: 9rem;
    resize: vertical;
}

.quizz-report-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.45rem;
}

.quizz-report-modal__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 1.2rem;
}

.quizz-report-modal__actions .btn-secondary {
    background: #fff;
    border-color: rgba(38, 65, 93, 0.18);
    color: #26415d;
}

.quizz-progress {
    max-width: 76rem;
    margin: 0 auto;
    display: block;
}

.quizz-progress__card-full {
    width: 100%;
}

.quizz-progress__card {
    padding: 1.1rem 1.35rem;
    border-radius: var(--ec-radius-card);
    background: linear-gradient(180deg, var(--ec-color-surface) 0%, var(--ec-color-surface-soft) 100%);
    box-shadow: var(--ec-shadow-card);
}

.quizz-progress__card-muted {
    background: linear-gradient(180deg, var(--ec-color-surface-alt) 0%, var(--ec-color-surface-muted) 100%);
}

.quizz-progress__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
}

.quizz-progress__label,
.quizz-progress__value {
    font-weight: 700;
}

.quizz-progress__bar {
    height: 1rem;
    border-radius: var(--ec-radius-full);
    overflow: hidden;
    background: var(--ec-color-progress-track);
}

.quizz-progress__fill {
    border-radius: var(--ec-radius-full);
}

.quizz-progress__fill-global {
    background: linear-gradient(90deg, var(--ec-color-progress-global-start) 0%, var(--ec-color-progress-global-end) 100%);
}

.quizz-progress__fill-green {
    background: linear-gradient(90deg, var(--ec-color-progress-green-start) 0%, var(--ec-color-progress-green-end) 100%);
}

.quizz-progress__fill-blue {
    background: linear-gradient(90deg, var(--ec-color-progress-blue-start) 0%, var(--ec-color-progress-blue-end) 100%);
}

.quizz-progress__fill-red {
    background: linear-gradient(90deg, var(--ec-color-progress-red-start) 0%, var(--ec-color-progress-red-end) 100%);
}

.quizz-progress__fill-yellow {
    background: linear-gradient(90deg, var(--ec-color-progress-yellow-start) 0%, var(--ec-color-progress-yellow-end) 100%);
}

.quizz-progress__fill-purple {
    background: linear-gradient(90deg, var(--ec-color-progress-purple-start) 0%, var(--ec-color-progress-purple-end) 100%);
}

.quizz-nav-progress {
    max-width: 76rem;
    margin: 0 auto;
}

.quizz-nav-progress__segments {
    display: grid;
    grid-auto-flow: column;
    gap: 0.75rem;
}

.quizz-nav-progress__segment {
    height: 1rem;
    border-radius: var(--ec-radius-full);
    background: #b9b9b9;
}

.quizz-nav-progress__segment-active {
    background: #303030;
}

@media (max-width: 768px) {
    .quizz-page {
        width: 100%;
        padding: 0.5rem 0.8rem 0.75rem;
    }
    .quizz-page__inner {
        width: min(100%, 46rem);
    }
    .quizz-page__content {
        min-height: 0;
    }
    .quizz-intro-topbar {
        margin-top: 0.55rem;
    }
    .quizz-intro-logo {
        width: 2.85rem;
        height: 2.85rem;
    }
    .quizz-intro-topbar__right {
        gap: 0.7rem;
    }
    .quizz-lang-link {
        font-size: 1rem;
    }
    .quizz-intro-content {
        margin-top: 1.25rem;
    }
    .quizz-outro-intro {
        margin: 0.8rem auto 1rem;
        font-size: 1rem;
        line-height: 1.5;
    }
    .quizz-outro-form {
        gap: 0.85rem;
    }
    .quizz-outro-form__fields {
        gap: 0.8rem;
    }
    .quizz-outro-form__actions .btn {
        min-width: 7.5rem;
    }
    .quizz-thanks {
        font-size: 1.75rem;
    }
    .quizz-outro {
        padding-top: 1.3rem;
        padding-bottom: 1rem;
    }
    .quizz-outro__card {
        padding: 1.35rem;
        border-radius: 1.4rem;
    }
    .quizz-outro__badge {
        margin-bottom: 0.95rem;
        padding: 0.38rem 0.72rem;
        font-size: 0.8rem;
    }
    .quizz-outro__badge-logo {
        width: 1.75rem;
        height: 1.75rem;
    }
    .quizz-outro__text {
        font-size: 0.98rem;
        line-height: 1.58;
    }
    .quizz-outro__actions {
        margin-top: 0.05rem;
    }
    .quizz-outro__share {
        padding: 0.9rem 0.9rem 0.95rem;
        border-radius: 1.15rem;
        gap: 0.7rem;
    }
    .quizz-outro__share-text {
        font-size: 0.96rem;
    }
    .quizz-outro__secondary-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.65rem;
    }
    .quizz-outro__button {
        min-height: 3rem;
        padding: 0.72rem 1rem;
        font-size: 0.96rem;
    }
    .quizz-outro__button-secondary {
        min-width: 0;
        width: min(100%, 18rem);
    }
    .quizz-intro-title {
        font-size: clamp(2.05rem, 7vw, 2.3rem);
    }
    .quizz-intro-text {
        font-size: 1.04rem;
    }
    .quizz-intro-text-lead {
        font-size: clamp(1.25rem, 4.9vw, 1.5rem);
    }
    .quizz-intro-dimensions-card {
        border-radius: 1.35rem;
        padding: 0.95rem 0.9rem;
    }
    .quizz-intro-batteries {
        width: 10rem;
    }
    .robot-classic {
        width: 100%;
        max-width: 19rem;
    }
    .quizz-start-button {
        min-width: 10rem;
        min-height: 2.85rem;
        padding: 0.58rem 1.3rem;
        font-size: 1.06rem;
    }
    .quizz-topbar {
        gap: 0.45rem;
    }
    .quizz-topbar__plug {
        width: 3.75rem;
    }
    .quizz-brand-row {
        margin-top: 0.9rem;
        margin-bottom: 0.8rem;
        gap: 0.55rem;
    }
    .quizz-brand-battery {
        width: 5.8rem;
    }
    .quizz-lang-dropdown {
        padding-bottom: 0.2rem;
        margin-left: 0.7rem;
        margin-top: 0.18rem;
    }
    .quizz-lang-dropdown__trigger {
        font-size: 0.95rem;
    }
    .quizz-scale {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .quizz-scale__item {
        justify-content: flex-start;
        gap: 0.4rem;
    }
    .quizz-scale__index {
        min-width: 2rem;
        height: 2rem;
    }
    .quizz-scale__label {
        font-size: 0.98rem;
    }
    .quizz-report-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
    .quizz-footer-meta {
        grid-template-columns: minmax(7rem, 1fr) auto minmax(7rem, 1fr);
        gap: 0.6rem;
        min-height: 5.4rem;
    }
    .quizz-footer-meta__left {
        justify-self: start;
    }
    .quizz-footer-meta__center {
        justify-self: center;
    }
    .quizz-footer-meta__right {
        justify-self: end;
        text-align: right;
    }
    .quizz-report-modal {
        padding: 1rem;
        align-items: flex-end;
    }
    .quizz-report-modal__dialog {
        width: 100%;
        border-radius: 1.2rem 1.2rem 0 0;
    }
    .quizz-report-modal__header,
    .quizz-report-modal__body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .quizz-report-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .quizz-report-modal__actions .btn {
        width: 100%;
    }
    .quizz-progress__card {
        padding: 0.95rem 1rem;
    }
    .quizz-progress__row {
        font-size: 1rem;
    }
    .quizz-nav-progress__segments {
        gap: 0.5rem;
    }
}

@media (max-width: 390px) {
    .quizz-page {
        padding: 0.4rem 0.65rem 0.7rem;
    }
    .quizz-intro-topbar {
        align-items: center;
    }
    .quizz-intro-topbar__right {
        gap: 0.55rem;
    }
    .quizz-intro-logo {
        width: 2.55rem;
        height: 2.55rem;
    }
    .quizz-lang-link {
        font-size: 0.93rem;
    }
    .quizz-intro-title {
        font-size: clamp(1.85rem, 8vw, 2.05rem);
    }
    .quizz-intro-text {
        font-size: 0.98rem;
    }
    .quizz-intro-text-lead {
        font-size: 1.12rem;
    }
    .quizz-start-button {
        min-width: 9.2rem;
        min-height: 2.6rem;
        font-size: 0.98rem;
    }
    .quizz-brand-title {
        font-size: 1.8rem;
    }
    .quizz-brand-row {
        justify-content: center;
    }
    .quizz-brand-battery {
        width: 5rem;
    }
    .quizz-lang-dropdown {
        margin-left: 0.4rem;
        margin-top: 0.12rem;
    }
    .quizz-lang-dropdown__trigger {
        font-size: 0.88rem;
    }
    .quizz-progress__row {
        font-size: 0.93rem;
    }
    .quizz-scale__item {
        gap: 0.35rem;
    }
    .quizz-scale__index {
        min-width: 1.85rem;
        height: 1.85rem;
    }
    .quizz-scale__label {
        font-size: 0.95rem;
    }
    .quizz-footer-meta {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        min-height: 0;
        padding-top: 1rem;
        border-top: none;
    }
    .quizz-footer-meta__left,
    .quizz-footer-meta__center,
    .quizz-footer-meta__right {
        justify-self: center;
        text-align: center;
        align-items: center;
    }
    .quizz-footer-meta__copyright {
        justify-content: center;
    }
    .quizz-outro__secondary-actions {
        width: 100%;
    }
    .quizz-table {
        font-size: 0.94rem;
    }
    .quizz-table thead th,
    .quizz-table tbody td {
        padding: 0.82rem 0.55rem;
    }
    .quizz-table__radio {
        width: 1.22rem;
        height: 1.22rem;
    }
}

.dropdown-limited {
    max-height: 200px;
    overflow-y: scroll;
}

.robot {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: var(--ec-radius-sm);
    margin-top: 0;
}

.robot-classic {
    width: 19rem;
    min-height: 4.8rem;
    border: 1px solid #d9d9d9;
    border-radius: 0.7rem;
    background: #f7f7f7;
    padding: 1rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.robot-classic-loading {
    justify-content: center;
}

.robot-classic__label {
    flex: 1 1 auto;
    margin-bottom: 0;
    font-size: 1.2rem;
}

.robot-classic__badge {
    width: 3rem;
    text-align: center;
    color: #6f6f6f;
}

.robot-classic__badge-icon {
    font-size: 1rem;
    line-height: 1;
}

.robot-classic__badge-text {
    font-size: 0.5rem;
    line-height: 1.1;
}
