2022-10-26 17:38:51 +02:00
|
|
|
/*
|
|
|
|
* Design sizes:
|
|
|
|
* Mobile: 375x667 (327x360)
|
|
|
|
* Desktop: 1440x800 (412x416)
|
|
|
|
*/
|
|
|
|
|
|
|
|
*,
|
|
|
|
::before,
|
|
|
|
::after {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
:root {
|
2022-10-27 22:07:25 +02:00
|
|
|
/* Colors */
|
|
|
|
--col-orange: hsl(25, 97%, 53%);
|
|
|
|
|
|
|
|
--col-white: hsl(0, 0%, 100%);
|
|
|
|
--col-light-grey: hsl(217, 12%, 63%);
|
|
|
|
--col-medium-grey: hsl(216, 12%, 54%);
|
|
|
|
--col-very-dark-blue: hsl(216, 12%, 8%);
|
|
|
|
--col-dark-blue: hsl(213, 19%, 18%);
|
|
|
|
|
|
|
|
--col-background-component: radial-gradient(
|
|
|
|
98.96% 98.96% at 50% 0%,
|
|
|
|
#232a34 0%,
|
|
|
|
#181e27 100%
|
|
|
|
);
|
|
|
|
|
|
|
|
/* Typography */
|
|
|
|
--fs-header: 1.5rem;
|
|
|
|
--lh-header: 125%;
|
|
|
|
--fw-header: 700;
|
|
|
|
|
|
|
|
--fs-body: 0.875rem;
|
|
|
|
--lh-body: 157%;
|
|
|
|
--fw-body: 400;
|
|
|
|
|
|
|
|
--fs-rating: 0.875rem;
|
|
|
|
--lh-rating: 171%;
|
|
|
|
--ls-rating: 0.175px;
|
|
|
|
|
|
|
|
--fs-button: 0.875rem;
|
2022-11-01 22:28:57 +01:00
|
|
|
--lh-button: 128.57142857%;
|
2022-10-27 22:07:25 +02:00
|
|
|
--ls-button: 1.86667px;
|
|
|
|
|
|
|
|
--border-radius: 0.9375rem;
|
2022-10-26 17:38:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
min-height: 100vh;
|
|
|
|
font-family: "Overpass", sans-serif;
|
|
|
|
|
|
|
|
display: grid;
|
|
|
|
place-content: center;
|
2022-10-27 22:07:25 +02:00
|
|
|
|
2022-11-01 22:28:57 +01:00
|
|
|
background-color: var(--col-very-dark-blue);
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.rating-component {
|
2022-11-01 22:28:57 +01:00
|
|
|
max-width: 20.4375rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
background: var(--col-background-component);
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
}
|
|
|
|
.rating-component-front {
|
2022-11-01 22:28:57 +01:00
|
|
|
padding: 1.5rem 1.5rem 2rem 1.5rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.star-icon {
|
|
|
|
display: block;
|
|
|
|
background-color: var(--col-dark-blue);
|
2022-10-28 01:29:11 +02:00
|
|
|
|
2022-10-27 22:07:25 +02:00
|
|
|
border-radius: 50%;
|
|
|
|
text-align: center;
|
2022-11-01 22:28:57 +01:00
|
|
|
width: 2.5rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
|
2022-11-01 22:28:57 +01:00
|
|
|
padding: 0.8125rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
font-size: var(--fs-header);
|
|
|
|
line-height: var(--lh-header);
|
2022-11-01 22:28:57 +01:00
|
|
|
color: var(--col-white);
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.body {
|
|
|
|
font-size: var(--fs-body);
|
|
|
|
line-height: var(--lh-body);
|
2022-11-01 22:28:57 +01:00
|
|
|
color: var(--col-light-grey);
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.rating-component__header {
|
2022-11-01 22:28:57 +01:00
|
|
|
margin-top: 1.375rem; /* 1rem;*/
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
.rating-component__body {
|
2022-11-01 22:28:57 +01:00
|
|
|
margin-top: 1.0625rem;
|
|
|
|
margin-left: 0.125rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#ratingForm {
|
|
|
|
margin-top: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ratingForm fieldset {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ratingForm__label {
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
border-radius: 50%;
|
2022-11-01 22:28:57 +01:00
|
|
|
background-color: var(--col-dark-blue);
|
2022-10-27 22:07:25 +02:00
|
|
|
|
|
|
|
font-size: var(--fs-rating);
|
|
|
|
line-height: var(--lh-rating);
|
|
|
|
letter-spacing: var(--ls-rating);
|
|
|
|
|
|
|
|
font-weight: 700;
|
2022-11-01 22:28:57 +01:00
|
|
|
color: var(--col-medium-grey);
|
|
|
|
|
|
|
|
padding: 0.625rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
text-align: center;
|
2022-11-01 22:28:57 +01:00
|
|
|
width: 2.625rem;
|
|
|
|
height: 2.625rem;
|
|
|
|
|
|
|
|
margin-right: 0.8125rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#ratingForm input[type="radio"] {
|
|
|
|
opacity: 0;
|
|
|
|
position: fixed;
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
|
2022-11-01 22:28:57 +01:00
|
|
|
.ratingForm__label:last-of-type {
|
2022-10-27 22:07:25 +02:00
|
|
|
margin-right: 0px;
|
|
|
|
}
|
|
|
|
|
2022-11-01 22:28:57 +01:00
|
|
|
.ratingForm__label:hover {
|
2022-10-27 22:07:25 +02:00
|
|
|
background-color: var(--col-orange);
|
|
|
|
color: var(--col-white);
|
|
|
|
}
|
2022-11-01 22:28:57 +01:00
|
|
|
|
2022-10-27 22:07:25 +02:00
|
|
|
.radio_container input[type="radio"]:focus + label {
|
|
|
|
outline: 2px dashed var(--col-white);
|
|
|
|
color: var(--col-white);
|
|
|
|
background-color: var(--col-medium-grey);
|
|
|
|
}
|
|
|
|
|
|
|
|
.radio_container input[type="radio"]:checked + label {
|
|
|
|
color: var(--col-white);
|
|
|
|
background-color: var(--col-medium-grey);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
2022-11-01 22:28:57 +01:00
|
|
|
border-radius: 1.4063rem;
|
|
|
|
padding: 0.8125rem 6.875rem 0.8125rem 6.6875rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
font-family: "Overpass", sans-serif;
|
|
|
|
font-size: var(--fs-button);
|
|
|
|
line-height: var(--lh-button);
|
|
|
|
letter-spacing: var(--ls-button);
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-submit {
|
|
|
|
margin-top: 1.5rem;
|
|
|
|
margin-inline: auto;
|
|
|
|
|
|
|
|
color: var(--col-white);
|
2022-11-01 22:28:57 +01:00
|
|
|
background-color: var(--col-orange);
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-submit:where(:focus, :hover) {
|
|
|
|
color: var(--col-orange);
|
2022-11-01 22:28:57 +01:00
|
|
|
background-color: var(--col-white);
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.visible {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2022-11-01 22:28:57 +01:00
|
|
|
/* for rating-component-back */
|
2022-10-27 22:07:25 +02:00
|
|
|
.rating-component-back {
|
2022-11-01 22:28:57 +01:00
|
|
|
padding: 1.5rem 1.5rem 2.3125rem 1.5rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.thank-you-img {
|
2022-11-01 22:28:57 +01:00
|
|
|
margin-top: 0.625rem;
|
2022-10-27 23:52:21 +02:00
|
|
|
width: 50%;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
2022-11-01 22:28:57 +01:00
|
|
|
.rating-component__rating-result {
|
|
|
|
margin-top: 1.5rem;
|
|
|
|
margin-inline: 3.4375rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
|
|
|
|
font-size: var(--fs-body);
|
2022-10-27 23:52:21 +02:00
|
|
|
line-height: var(--lh-body);
|
2022-10-27 22:07:25 +02:00
|
|
|
color: var(--col-orange);
|
|
|
|
|
2022-11-01 22:28:57 +01:00
|
|
|
border-radius: 1.4063rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
background-color: var(--col-dark-blue);
|
2022-11-01 22:28:57 +01:00
|
|
|
padding: 0.3125rem 0.75rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.rating-component__header-submitted {
|
2022-11-01 22:28:57 +01:00
|
|
|
margin-top: 1.5rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.rating-component__body-submitted {
|
2022-11-01 22:28:57 +01:00
|
|
|
margin-top: 0.875rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.visually-hidden {
|
|
|
|
border: 0;
|
|
|
|
clip: rect(0 0 0 0);
|
|
|
|
clip-path: inset(50%);
|
|
|
|
height: auto;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
white-space: nowrap;
|
2022-10-26 17:38:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: 62.5rem) {
|
|
|
|
:root {
|
2022-10-27 22:07:25 +02:00
|
|
|
/* Typography */
|
|
|
|
--fs-header: 1.75rem;
|
|
|
|
|
|
|
|
--fs-body: 0.9375rem;
|
|
|
|
--lh-body: 160%;
|
|
|
|
|
|
|
|
--fs-rating: 1rem;
|
|
|
|
--lh-rating: 150%;
|
|
|
|
--ls-rating: 0.2px;
|
|
|
|
|
2022-11-01 22:28:57 +01:00
|
|
|
--fs-button: 0.9375rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
--lh-button: 1.2666666667;
|
|
|
|
--ls-button: 2px;
|
2022-10-28 01:29:11 +02:00
|
|
|
|
2022-11-01 22:28:57 +01:00
|
|
|
--border-radius: 1.875rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.rating-component {
|
|
|
|
max-width: 25.75rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rating-component-front {
|
2022-11-01 22:28:57 +01:00
|
|
|
padding: 2rem 2.4375rem 2rem 2rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
2022-10-28 01:29:11 +02:00
|
|
|
.star-icon {
|
2022-11-01 22:28:57 +01:00
|
|
|
width: 3rem;
|
2022-10-28 01:29:11 +02:00
|
|
|
|
2022-11-01 22:28:57 +01:00
|
|
|
padding: 1rem;
|
2022-10-28 01:29:11 +02:00
|
|
|
}
|
|
|
|
|
2022-10-27 22:07:25 +02:00
|
|
|
.rating-component__header {
|
2022-11-01 22:28:57 +01:00
|
|
|
margin-top: 2.5rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.rating-component__body {
|
2022-11-01 22:28:57 +01:00
|
|
|
margin-top: 0.625rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
2022-10-28 01:29:11 +02:00
|
|
|
.ratingForm__label {
|
2022-11-01 22:28:57 +01:00
|
|
|
width: 3.1875rem;
|
|
|
|
height: 3.1875rem;
|
|
|
|
padding: 0.9375rem;
|
2022-10-28 01:29:11 +02:00
|
|
|
|
2022-11-01 22:28:57 +01:00
|
|
|
margin-right: 1.0625rem;
|
2022-10-28 01:29:11 +02:00
|
|
|
}
|
|
|
|
|
2022-11-01 22:28:57 +01:00
|
|
|
.ratingForm__label:nth-child(odd) {
|
|
|
|
margin-right: 0.9375rem;
|
2022-10-28 01:29:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
2022-11-01 22:28:57 +01:00
|
|
|
padding: 0.875rem 8.625rem 0.75rem 8.5625rem;
|
2022-10-28 01:29:11 +02:00
|
|
|
}
|
2022-10-27 22:07:25 +02:00
|
|
|
.btn-submit {
|
2022-11-01 22:28:57 +01:00
|
|
|
margin-top: 2rem;
|
2022-10-28 01:29:11 +02:00
|
|
|
margin-inline: unset;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.rating-component-back {
|
2022-11-01 22:28:57 +01:00
|
|
|
padding: 2.8125rem 2.5rem 2.8125rem 2rem;
|
2022-10-28 01:56:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.thank-you-img {
|
|
|
|
width: 48%;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
2022-11-01 22:28:57 +01:00
|
|
|
.rating-component__rating-result {
|
|
|
|
margin-top: 1.375rem;
|
|
|
|
margin-inline: 3.75rem;
|
|
|
|
padding: 0.25rem 1.1875rem 0.25rem 1.25rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.rating-component__header-submitted {
|
2022-11-01 22:28:57 +01:00
|
|
|
margin-top: 2rem;
|
2022-10-27 22:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.rating-component__body-submitted {
|
2022-11-01 22:28:57 +01:00
|
|
|
margin-top: 0.75rem;
|
2022-10-26 17:38:51 +02:00
|
|
|
}
|
|
|
|
}
|