.calculator__sleep-cycle {
margin-top: 48px !important;
}
.sleep-cycle__quiz-inner {
display: none;
padding: 48px 16px;
flex-direction: column;
gap: 48px;
border: 1px solid var(--wp--preset--color--so-blue-40);
background-color: var(--wp--preset--color--so-blue-80);
border-radius: 0 0 8px 8px;
}
.sleep-cycle__quiz-inner.active {
display: flex;
}
.sleep-cycle__heading {
text-align: center;
margin-bottom: 48px;
}
.sleep-cycle__quiz-tabs {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
.sleep-cycle__quiz-tab {
padding: 16px 8px;
border-radius: 8px 8px 0 0;
color: var(--wp--preset--color--white);
text-align: center;
cursor: pointer;
font-size: 20px;
font-weight: 600;
line-height: 1.6;
transition: .2s ease all;
}
.sleep-cycle__quiz-tab:hover {
background-color: var(--wp--preset--color--so-blue-60);
}
.sleep-cycle__quiz-tab.active {
background-color: var(--wp--preset--color--so-blue-40);
}
.sleep-cycle__quiz-description {
margin: 0;
}
.sleep-cycle__quiz-form {
display: flex;
flex-direction: column;
gap: 48px;
}
.sleep-cycle__quiz-question {
display: flex;
flex-direction: column;
gap: 24px;
}
.sleep-cycle__quiz-question label {
font-size: 20px;
font-weight: 600;
line-height: 1.6;
color: var(--wp--preset--color--white);
display: flex;
flex-direction: row;
gap: 8px;
}
.sleep-cycle__input-container input {
width: 100%;
text-align: center;
padding: 12px 16px;
border-radius: 4px;
border: none;
font-size: 20px;
font-weight: 700;
line-height: 1.6;
font-family: var(--wp--preset--font-family--primary);
}
.sleep-cycle__button {
width: 100%;
} .input-wrapper__error {
position: relative;
}
.sleep-cycle__error {
left: 0;
bottom: calc(100% + 12px);
width: 100%;
max-width: unset !important;
}
.sleep-cycle__error::before {
position: absolute;
bottom: -12px;
left: 50%;
margin-left: -3px;
z-index: 1001;
width: 12px;
height: 12px;
transform: translate(-50%, -50%) rotate(45deg);
background-color: #ffffff;
content: "";
}
.sleep-cycle__error a {
color: var(--wp--preset--color--so-blue-40) !important;
}
.sleep-cycle__error a:hover {
color: var(--wp--preset--color--so-blue-70) !important;
}
.input-wrapper__error.error input {
outline: 2px solid var(--wp--preset--color--so-error-red);
outline-offset: -3px;
} .sleep-cycle__container--results {
display: none;
padding: 32px 16px; flex-direction: column;
gap: 48px;
background-color: var(--wp--preset--color--so-blue-80);
border-radius: 8px;
}
.sleep-cycle__results-header {
text-align: center;
}
.sleep-cycle__results-header h3 {
margin: 0 0 16px;
}
.sleep-cycle__results-header p {
margin: 0 0 8px;
}
.sleep-cycle__results-header p:last-of-type {
margin: 0;
}
.sleep-cycle__results-legend {
display: flex;
flex-direction: row;
gap: 16px;
align-items: center;
justify-content: center;
color: var(--wp--preset--color--white);
}
.sleep-cycle__legend-key {
width: 40px;
height: 16px;
border-radius: 4px;
background-color: var(--wp--preset--color--so-dusk-blue);
}
.sleep-cycle__legend-description {
display: flex;
gap: 4px;
}
.sleep-cycle__results {
display: flex;
flex-direction: column;
gap: 16px;
}
.sleep-cycle__results-card {
padding: 24px;
background-color: var(--wp--preset--color--so-blue-70);
border-radius: 4px;
color: var(--wp--preset--color--white);
display: flex;
flex-direction: column;
gap: 24px;
line-height: 1.7;
position: relative;
}
.sleep-cycle__results-text {
display: flex;
flex-direction: column;
gap: 8px;
}
.sleep-cycle__results-text span:not(.results-text__type) {
font-size: 20px;
font-weight: 600;
line-height: 1.6;
}
.sleep-cycle__results-card.best-for-you {
border: 2px solid var(--wp--preset--color--so-blue);
border-top: 0;
border-radius: 0 0 4px 4px;
margin-top: 27px;
}
.sleep-cycle__results-card.best-for-you:before {
content: 'Best for you';
position: absolute;
top: -26px;
left: -2px;
right: -2px;
text-align: center;
background-color: var(--wp--preset--color--so-blue);
color: var(--wp--preset--color--white);
padding: 2px 8px;
border-radius: 4px 4px 0 0;
font-size: 14px;
font-weight: 600;
line-height: 1.6;
letter-spacing: 0.01rem;
text-transform: uppercase;
}
.sleep-cycle__results-buttons {
display: flex;
flex-direction: column;
gap: 8px;
justify-content: center;
align-items: center;
}
.sleep-cycle__results-buttons a {
text-decoration: underline;
} .outer {
position: relative;
width: 100px;
height: 100px;
border-radius: 50%;
background-color: var(--wp--preset--color--so-blue-70);
}
.mid {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 75px;
height: 75px;
border-radius: 50%;
background-color: var(--wp--preset--color--so-blue-70);
}
.inner {
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
width: 50px;
height: 50px;
text-align: center;
}
.inner span {
display: block;
font-size: 20px;
font-weight: 600;
line-height: 1.6;
color: var(--wp--preset--color--white);
margin-bottom: -5px;
}
.line {
position: absolute;
top: calc(50% - 1.5px);
left: 0;
width: 100%;
height: 3px;
background-color: var(--wp--preset--color--so-blue-70);
}
.line2 {
transform: rotate(45deg);
}
.line3 {
transform: rotate(90deg);
}
.line4 {
transform: rotate(135deg);
}
.results-graphic__circle--wrapper .circle-bg {
fill: yellow;
}
.donut-segment {
fill: none;
stroke: var(--wp--preset--color--so-dusk-blue); stroke-linecap: butt; animation: progress 1s ease-out forwards;
}
@keyframes progress {
0% {
stroke-dasharray: 0 100;
}
} .sleep-cycle__tooltip-container {
position: relative;
display: flex;
align-items: center;
}
.sleep-cycle__tooltip-container:hover .sleep-cycle__tooltip-wrapper {
display: flex;
}
.sleep-cycle__tooltip-wrapper {
display: none;
box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.12), 0px 15px 35px 0px rgba(103, 110, 118, 0.08);
position: absolute;
bottom: calc(100% + 3px);
left: -128px;
width: 300px;
gap: 6px;
z-index: 99;
}
.sleep-cycle__tooltip-wrapper::before {
position: absolute;
bottom: -12px;
left: 47%;
margin-left: -3px;
z-index: 1001;
width: 12px;
height: 12px;
transform: translate(-50%, -50%) rotate(45deg);
background-color: #ffffff;
content: "";
}
.sleep-cycle__results-legend .sleep-cycle__tooltip-wrapper {
bottom: calc(100% + 8px);
}
.close-tooltip-container,
.close-tooltip-container::before {
display: none !important;
}
@media screen and (max-width: 768px) {
.sleep-cycle__results-legend .sleep-cycle__tooltip-wrapper {
left: unset;
right: -12px;
}
.sleep-cycle__results-legend .sleep-cycle__tooltip-wrapper::before {
left: unset;
right: 10px;
}
} @media screen and (min-width: 620px) {
.sleep-cycle__heading {
font-size: 32px;
}
.sleep-cycle__quiz-form {
align-items: center;
}
.sleep-cycle__quiz-question {
flex-direction: row;
align-items: center;
}
.sleep-cycle__button {
width: 274px;
}
.sleep-cycle__results-header h3 {
font-size: 24px;
}
.sleep-cycle__results-card {
flex-direction: row;
align-items: center;
}
.sleep-cycle__error {
width: 300px;
left: calc(-50% - 75px);
}
.sleep-cycle__error::before {
left: 55%;
}
}
@media screen and (min-width: 1024px) {
.sleep-cycle__quiz-inner {
padding: 72px 48px;
}
.sleep-cycle__quiz-description {
text-align: center;
}
.sleep-cycle__container--results {
padding: 48px;
}
.sleep-cycle__tooltip-close {
display: none;
}
}