/* Full public review submission form */

.review-form-section {
    padding-bottom: 96px;
}

.review-form-title {
    margin: 0 0 12px;
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.review-form-description,
.review-form-photo-hint {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
}

.review-form-description {
    margin-bottom: 16px;
    font-size: 15px;
}

.review-form-photo-hint {
    font-size: 14px;
}

.review-form-description > :first-child,
.review-form-photo-hint > :first-child {
    margin-top: 0;
}

.review-form-description > :last-child,
.review-form-photo-hint > :last-child {
    margin-bottom: 0;
}

.review-form-r {
    min-width: 0;
}

.review-form .field {
    position: relative;
}

.review-form .field input.is-error,
.review-form .field textarea.is-error,
.review-form .field select.is-error {
    border-color: #ff8f8f;
    box-shadow: 0 0 0 1px rgba(255, 143, 143, 0.35);
}

.review-form .field select option {
    background: #fff;
    color: #0f1b3a;
}

.review-field-error {
    display: block;
    min-height: 16px;
    color: #ffb5b5;
    font-size: 12px;
    line-height: 1.35;
}

.review-form-general-error {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 143, 143, 0.55);
    border-radius: 10px;
    background: rgba(153, 27, 27, 0.22);
    color: #ffd1d1;
    font-size: 13px;
    line-height: 1.45;
}

.review-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0 !important;
}

.review-file-button {
    width: 100%;
    justify-content: center;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}

.review-file-button:hover {
    border-color: rgba(6, 214, 160, 0.55);
    background: rgba(6, 214, 160, 0.12);
}

.review-file-name,
.review-file-help {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.review-file-name {
    margin-top: 7px;
}

.review-text-counter {
    margin-top: -2px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    text-align: right;
}

.review-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.64);
    cursor: pointer;
    font-size: 12px;
    line-height: 1.45;
}

.review-consent input {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.review-consent a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.review-submit-button {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

.review-submit-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.review-form-success {
    display: grid;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--accent);
    border-radius: 16px;
    background: rgba(6, 214, 160, 0.13);
    color: #fff;
    text-align: center;
}

.review-form-success[hidden] {
    display: none;
}

.review-form-success strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    line-height: 1.25;
}

.review-form-success span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.5;
}

.review-form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 700px) {
    .review-form-title {
        font-size: 27px;
    }

    .review-form-success {
        padding: 20px 16px;
    }
}


/* Rating selected by the visitor */

.review-rating-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.review-rating-field legend {
    margin-bottom: 7px;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.review-rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    width: fit-content;
}

.review-rating-stars input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.review-form .review-rating-stars label {
    display: inline-flex;
    width: 46px;
    height: 50px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    font-size: 48px !important;
    line-height: 1;
    transition:
        color 0.16s ease,
        transform 0.16s ease;
}

.review-form .review-rating-stars label:hover,
.review-form .review-rating-stars label:hover ~ label,
.review-form .review-rating-stars input:checked ~ label {
    color: var(--accent);
}

.review-form .review-rating-stars label:hover {
    transform: translateY(-1px) scale(1.04);
}

.review-form .review-rating-stars input:focus-visible + label {
    border-radius: 4px;
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.review-form .review-rating-stars.is-error label {
    text-shadow: 0 0 0 #ff8f8f;
}

.review-rating-value {
    display: block;
    min-height: 17px;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

/* Selected image/video preview */

.review-media-selection {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.review-media-selection[hidden] {
    display: none;
}

.review-media-selection img,
.review-media-selection video {
    display: block;
    width: 100%;
    max-height: 260px;
    border-radius: 9px;
    background: #07142f;
    object-fit: contain;
}

.review-media-selection img[hidden],
.review-media-selection video[hidden] {
    display: none;
}

.review-media-clear {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffb5b5;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}


@media (max-width: 560px) {
    .review-form .review-rating-stars {
        gap: 3px;
    }

    .review-form .review-rating-stars label {
        width: 40px;
        height: 44px;
        font-size: 42px !important;
    }
}
