/* Review form of an application or of an IT service, and its thank-you state */

.rev-hero {
    padding-block: 36px 56px;
}

.rev-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.rev-hero__head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.rev-hero__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    padding: 6px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    background: var(--c-white);
    overflow: hidden;
}

.rev-hero__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rev-hero__logo--initial {
    background: var(--c-tint);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--c-primary);
}

.rev-hero__meta {
    font-size: 15px;
    color: var(--c-ink-2);
}

.rev-hero__meta a {
    font-weight: 600;
    color: var(--c-primary-dark);
}

.rev-hero__lead {
    max-width: 780px;
}

.rev-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

.rev-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 36px;
}

.rev-step {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.rev-step__title {
    margin-bottom: 4px;
    padding: 0;
}

.rev-step__note {
    color: var(--c-ink-2);
}

.rev-marks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.rev-mark,
.rev-score {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Stars: radios 5 to 1 laid out from right to left, so a star lights up with the ones before it (~) */

.rev-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.rev-stars__star {
    display: flex;
    padding: 2px;
    border-radius: var(--radius-xs);
    cursor: pointer;
}

.rev-stars__star .icon {
    fill: var(--c-track);
    color: var(--c-pink-200);
    transition: fill .15s, color .15s, transform .15s;
}

.rev-stars input:checked ~ .rev-stars__star .icon,
.rev-stars__star:hover .icon,
.rev-stars__star:hover ~ .rev-stars__star .icon {
    fill: var(--c-primary);
    color: var(--c-primary);
}

.rev-stars__star:hover .icon {
    transform: scale(1.08);
}

.rev-stars input:focus-visible + .rev-stars__star {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

/* Recommendation: a scale from 1 to 10 */

.rev-score__scale {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    background: var(--c-tint);
}

.rev-score__option {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 9px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--c-ink-3);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.rev-score__option:hover {
    color: var(--c-ink);
}

.rev-score__option:has(input:checked) {
    background: var(--c-primary);
    color: var(--c-white);
}

.rev-score__option:has(input:focus-visible) {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

.rev-score__ends {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--c-ink-2);
}

.rev-form__submit {
    align-self: flex-start;
}

.rev-aside {
    position: sticky;
    top: 104px;
}

.rev-aside__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 28px;
}

.rev-aside__card .t-small {
    color: var(--c-ink-2);
}

@media (max-width: 991px) {
    .rev-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .rev-aside {
        position: static;
        order: -1;
    }
}

@media (max-width: 575px) {
    .rev-hero {
        padding-block: 28px 40px;
    }

    .rev-form {
        padding: 22px 18px;
    }

    .rev-marks {
        grid-template-columns: minmax(0, 1fr);
    }

    .rev-score__scale {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .rev-form__submit {
        align-self: stretch;
    }
}

/* /adauga-review: the search of the application to review */

.rev-search {
    width: 640px;
    max-width: 100%;
}

.rev-popular {
    --cluster-gap: 8px;
}
