.grader {
    width: 100%;
    background: var(--cream);
    color: var(--black);
    padding: 4rem 2vw;
}
.grader .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 64px;
    column-gap: 1rem;
    position: relative;
}
.grader-header {
    color: var(--darkred);
}
.grader-title {
    line-height: 0.9;
    margin-block: 0.5rem;
    text-align: left;
}
.grader-subtitle {
    font-size: 1.9rem;
    text-align: left;
    padding-right: 3rem;
}
.grader-subtitle:nth-last-child(1) {
    text-align: right;
}
.grader-text {
    font-size: 1.6rem;
    text-align: center;
    font-weight: 600;
}

.GeckoFullStop:after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 50px;
    background: url("/images/RGA_Icon.svg") no-repeat center center / contain;
    transform: translateY(16px) rotate(30deg);
}
.connectForm {
    width: 450px;
}
.inputGroup {
    display: flex;
    margin: 1.5rem 0rem;
    justify-content: center;
    align-items: center;
    color: var(--black);
    font-weight: 600;
    font-size: 1.3rem;
}

.inputGroup input,
.connectForm textarea {
    background-color: var(--cream);
    border: 4px solid var(--salmon);
    border-radius: 10px;
    padding: 1rem 0.75rem;
    width: 100%;
    font-size: 1.2rem;
    font-family: var(--nunito-font);
    outline: none;
    color: var(--black);
}

.connectForm textarea {
    margin: 1rem 0rem;
    resize: none;
}

.connectForm .auditCheckboxWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.inputGroup {
    position: relative;
    margin-bottom: 1rem;
}

.inputGroup label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: ease all 0.2s, background-color 0s;
}

.inputGroup label.helpWithLabel {
    top: 25%;
}

.inputGroup input:focus + label,
.inputGroup input:not(:placeholder-shown) + label {
    transform: translateY(-2.5rem);
    font-size: 1rem;
    background-color: var(--cream);
    padding: 0 8px;
    line-height: 1;
}

.inputGroup textarea:focus + label,
.inputGroup textarea:not(:placeholder-shown) + label {
    transform: translateY(-2.6rem);
    font-size: 1rem;
    background-color: var(--black);
    padding: 0 8px;
    line-height: 1;
}

.auditCheckbox {
    display: none;
}

.auditCheckbox + label {
    height: 4rem;
    width: 4rem;
    display: inline-block;
    outline: 7px solid var(--salmon);
    outline-offset: -7px;
    border-radius: 10px;
    margin: 1rem 2rem;
}

.auditCheckboxWrapper span {
    color: var(--cream);
}
.auditCheckbox:hover + label {
    cursor: pointer;
}

.auditCheckbox:checked + label {
    outline: none;
    background: url("../images/icons8-checkbox-cream.svg") no-repeat;
    background-size: 100%;
    height: 4rem;
    width: 4rem;
    display: inline-block;
    padding: 0 0 0 0px;
    cursor: pointer;
    z-index: 1;
}

.connectForm .submitButton {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.connectForm .salmonButton {
    margin-top: 1rem;
    font-size: 3rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    align-self: center;
    border: none;
}

.print1 {
    top: 5%;
    right: 10%;
    transform: rotate(20deg) scale(0.9);
}

.print2 {
    top: 1%;
    left: 0%;
    transform: rotate(-10deg) scale(0.5);
}

.print3 {
    left: 3%;
    top: 20%;
    transform: rotate(55deg) scale(0.8);
}

.print4 {
    top: 15%;
    right: -5%;
    transform: rotate(-55deg) scale(0.8);
}

@media screen and (max-width: 800px) {
    .grader {
        padding: 4rem 6vw;
    }
    .wrapper {
        padding-top: 64px;
    }
    .grader-title {
        font-size: 4rem;
    }
    .grader-subtitle {
        font-size: 1.6rem;
    }
    .grader-text {
        font-size: 1.5rem;
    }
    .connectForm {
        font-size: 1.4rem;
        width: 350px;
    }
    .auditCheckbox + label {
        width: 3rem;
        height: 3rem;
        outline: 4px solid var(--cream);
        outline-offset: -4px;
        margin: 1rem;
    }
    .auditCheckbox:checked + label {
        width: 3rem;
        height: 3rem;
    }
    .formGroup {
        flex-wrap: wrap;
    }
    .print1 {
        top: 0%;
        right: 0%;
        transform: rotate(-10deg) scale(0.5);
    }
    .print3 {
        left: -20%;
        bottom: 0%;
        transform: rotate(55deg) scale(0.5);
    }

    .print4,
    .print2 {
        display: none;
    }
}
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.loading-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    background-color: var(--cream);
    position: relative;
}

.progress-bar {
    position: relative;
    border-radius: 20px;
    width: 400px;
    height: 2rem;
    background-color: var(--salmon);
    transform: scaleX(1);
    transform-origin: left;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 50%;
    background-color: var(--darkred);
    position: absolute;
    border-radius: 20px;
    transform: scaleX(1);
    transform-origin: left;
    z-index: 1;
}

.progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    z-index: 2;
    animation: showText 1s cubic-bezier(1, 0, 0.5, 1) forwards;
    opacity: 0;
}
@keyframes showText {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.loading-text {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 1rem;
    max-width: 90vw;
}

.dot-text {
    display: inline-block;
    width: 0px;
    text-align: left;
}

.print5 {
    transform: rotate(45deg);
    opacity: 1;
    position: static;
    width: 200px;
    height: 200px;
}

@media screen and (max-width: 800px) {
    .progress-bar {
        width: 300px;
    }
    .progress-bar-text {
        font-size: 1.5rem;
    }
    .progress-bar-text {
        font-size: 1rem;
    }
    .print5 {
        width: 150px;
        height: 150px;
    }
}

/*
/* Grader Result section
*/

.grader-result {
    width: 100%;
    background: var(--cream);
    color: var(--black);
    padding: 4rem 2vw;
}
.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 64px;
    row-gap: 2rem;
}
.radial-bar,
.radial-bar-main-score {
    width: 100%;
    height: 270px;
    position: relative;
    margin: 0 auto;
}
.radial-bar svg,
.radial-bar-main-score svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 270px;
}
.progress-bar {
    stroke-width: 15px;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
}

.percentage,
.grade {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.percentage-mark {
    font-size: 2rem;
}
.grader-result-description {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
}

.websitePreviews {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    flex-wrap: wrap;
}

.preview:not(.mobile) {
    display: flex;
    width: 550px;
    height: 309px;
    border-radius: 8px;
    overflow: hidden;
    border: var(--black) 4px solid;
}

.preview.mobile {
    position: relative;
    display: flex;
    overflow: hidden;
}

.iphone-frame {
    width: 200px;
    position: relative;
}

.preview-mobile-image {
    position: absolute;
    top: 20px;
    left: 2%;
    width: 96%;
    border-radius: 0 0 5% 5%;
    min-height: 100%;
}

.preview-image {
    width: 100%;
    height: auto;
    box-shadow: 0 32px 44px 0 rgba(0, 0, 0, 0.08);
}

.card-radial-bar {
    width: 220px;
    height: 260px;
}

.card-radial-bar svg {
    width: 100%;
    height: 100%;
}

.result-cards-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
}

.result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    border: var(--black) 4px solid;
    text-decoration: none;
    color: var(--black);
    background-color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.result-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    background-color: var(--salmon);
    border-color: var(--darkred);
}

.result-card:hover .result-title,
.result-card:hover .grade-mark,
.result-card:hover .grade {
    color: white;
}

.result-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 1rem;
}

.grade-mark {
    font-size: 2rem;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .grader-result {
        padding: 88px 2vw;
    }
    .SEO-grader,
    .performance-grader,
    .mobile-grader,
    .security-grader,
    .recommendationsSection {
        padding: 0;
    }

    .radial-bar,
    .radial-bar-main-score {
        height: 200px;
    }
    .percentage {
        font-size: 2rem;
    }
    .grade {
        font-size: 1.5rem;
    }
    .grader-result-description {
        font-size: 1.5rem;
    }
    .result-cards-container {
        gap: 15px;
    }
    .result-card {
        padding: 0.5rem;
    }
    .result-title {
        font-size: 1.5rem;
    }
    .grade-mark {
        font-size: 1.5rem;
    }
    .preview:not(.mobile) {
        max-width: 96vw;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
.actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.action-button {
    display: flex;
    justify-content: center;
    padding: 1.25rem 1rem;
    font-family: var(--grisly-font);
    color: var(--cream);
    background-color: var(--darkred);
    font-size: 1.5rem;
    border-radius: 1rem;
    text-decoration: none;
    width: 225px;
    transition: all 0.4s ease;
}

.action-button:hover {
    background-color: var(--salmon);
    color: var(--cream);
}
.action-svg {
    width: 24px;
    height: 24px;
    fill: var(--cream);
    margin-left: 1rem;
}

.rgaIconActionSvg {
    width: 32px;
    height: 32px;
    transform: rotate(325deg);
    margin-top: -5px;
    margin-left: 0.5rem;
}

@media screen and (max-width: 768px) {
    .actions {
        gap: 1rem;
        align-items: center;
        flex-wrap: wrap;
    }
    .action-button {
        width: 100%;
        font-size: 1.2rem;
        width: 260px;
    }
}
.SEO-grader,
.performance-grader,
.mobile-grader,
.security-grader {
    width: 100%;
    background: var(--cream);
    color: var(--black);
    padding: 0 2vw;
    margin: 4vh auto;
    max-width: 1280px;
}

.result-section-img {
    width: 350px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.result-section-header {
    font-size: 4rem;
    font-weight: 600;
    text-align: center;
    color: var(--darkred);
}
.result-section-description {
    font-size: 1.5rem;
    line-height: 1.5;
    text-align: center;
    padding-inline: 4rem;
}

.result-section-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    padding-block: 2rem;
}

.result-section-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 12px;
    border: var(--black) 4px solid;
    gap: 0.5rem;
    width: 300px;
}
.card-header {
    font-size: 16px;
    display: flex;
    font-weight: 600;
    line-height: 21px;
    text-transform: uppercase;
    align-items: center;
    gap: 1rem;
    text-align: left;
    width: 100%;
}

.card-title-main {
    font-size: 24px;
    font-weight: 800;
    text-transform: capitalize;
}

.card-title {
    font-size: 18px;
    font-weight: 650;
    margin-bottom: 0.5rem;
    font-family: var(--nunito-font);
}

.state-img {
    width: 60px;
    background-color: #bb2525;
    border-radius: 50%;
    padding: 8px;
    margin-bottom: 8px;
}

.state-img.Tick {
    background-color: #89ba49;
}

.card-description {
    font-size: 18px;
}

@media screen and (max-width: 768px) {
    .result-section-img {
        width: 250px;
    }
    .scoreCurrent {
        font-size: 2.25rem;
    }
    .result-section-header,
    .sectionScore {
        font-size: 1.8rem;
    }
    .result-section-description {
        font-size: 1.3rem;
        padding-inline: 1rem;
        padding-inline: 0rem;
    }
}

.sectionGradeContainer {
    margin-bottom: 28px;
}

.sectionScore {
    display: flex;
    align-items: end;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: black;
    gap: 8px;
}
.scoreCurrent {
    font-size: 3rem;
    font-weight: bold;
    line-height: 0.8;
}

/* Recommendations Section */

.recommendationsSection {
    max-width: 1280px;
    margin: 0 auto;
    margin-top: 6rem;
    padding: 0 4vw;
}

.recommendationsSection table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    border: 1px solid var(--darkred);
    border-radius: 10px;
    overflow: hidden;
}

.recommendationsSection th,
.recommendationsSection td {
    padding: 8px 12px;
    text-align: left;
    width: 15%;
}

.recommendationsSection th:first-child,
.recommendationsSection td:first-child {
    width: 30%;
}

.recommendationsSection th:last-child,
.recommendationsSection td:last-child {
    width: 40%;
}

.recommendationsSection th {
    background-color: var(--salmon);
    color: var(--cream);
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid var(--darkred);
}

.recommendationsSection td {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--salmon);
}

.recommendationsSection tr:last-child td {
    border-bottom: none;
}

@media screen and (max-width: 768px) {
    .result-section-img {
        width: 250px;
    }
    .scoreCurrent {
        font-size: 2.25rem;
    }
    .result-section-header,
    .sectionScore {
        font-size: 1.8rem;
    }
    .result-section-description {
        font-size: 1.3rem;
        padding-inline: 1rem;
        padding-inline: 0rem;
    }

    .recommendationsSection tr {
        display: flex;
    }

    .recommendationsSection th,
    .recommendationsSection td {
        display: none;
    }

    .recommendationsSection th:first-child,
    .recommendationsSection td:first-child {
        width: 40%;
        display: block;
    }

    .recommendationsSection th:last-child,
    .recommendationsSection td:last-child {
        width: 60%;
        display: block;
    }
}
