@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Great+Vibes&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: "Wedding";
    /* Choose a name for your font */
    src: url("assets/fonts/Betmo Regular Cyr.otf") format("opentype");
    /* Set the correct path and format */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* Optional, helps with font loading performance */
}

body {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    margin: 0;
    min-height: 100vh;
    background-color: #f8f8f8;
}

.r\&a-date-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.r\&a-date-list__day {
    padding: 12px;
    border: solid 1px;
    border-radius: 4px;
    position: relative;
}

.r\&a-date-list__day--target {
    color: #ff4d6d;
    border: 0;
    padding: 0;
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;

    background: url("assets/heart.svg") no-repeat;
    background-size: contain;
}

.r\&a-fancy-text {
    font-family: 'Wedding', sans-serif;
    font-weight: normal;
    font-size: 4em;
    text-align: center;
}

.r\&a-fancy-text--sm {
    font-size: 2em;
}

.r\&a-fancy-text--lg {
    font-size: 7em;
}

.r\&a-link {
    color: #ff4d6d;
    text-decoration: none;
    font-style: italic;
    border-bottom-style: dotted;
}

.r\&a-section {
    padding: 16px 32px;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Intro section */

.r\&a-section--intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.r\&a-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

h1 {
    font-size: 6em;
    font-weight: 100;
    position: absolute;
    transform: rotate(-5deg);
    margin: 0;
}

.r\&a-photo {
    display: flex;
    align-items: center;
}

.r\&a-photo__image {
    max-width: 600px;
    width: 100%;
}

.r\&a-date {
    order: 2;
    font-size: 8em;
    color: #d8d8d8;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Welcome section */

.r\&a-section--welcome {
    background: url("https://i.pinimg.com/736x/14/71/3a/14713acbcef8531935a634371213b58f.jpg") no-repeat;
    background-position-x: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.r\&a-section--welcome::before {
    content: "";
    height: 100vh;
    background: url("assets/14713acbcef8531935a634371213b58f_p.jpg") repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

.r\&a-welcome-text {
    font-size: 1.15em;
    font-style: italic;
    font-weight: 100;
    text-align: center;
}

.r\&a-welcome-image {
    margin-top: 4em;
    width: 320px;
}

/* Where section */

.r\&a-section--where {
    display: flex;
    flex-direction: column;
}

.r\&a-where {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    background: url("assets/5436341059933302904-1-1232x650.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    margin-right: -32px;
    margin-left: -32px;
    margin-bottom: -16px;
    text-align: center;
    font-weight: 200;
    position: relative;
}

.r\&a-where__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: grayscale(.5);
}

.r\&a-where__text {
    color: #fff;
    font-size: 2em;
}

.r\&a-where__link {
    color: #fff;
    font-size: 1.5em;
    text-decoration: none;
    padding: 16px 24px;
    border: solid 1px #fff;
}

/* Program section */

.r\&a-section--program {
    display: flex;
    flex-direction: column;
}

.r\&a-program {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.r\&a-program-item {
    display: flex;
    align-items: center;
    min-width: 320px;
    margin: 16px 0;
}

.r\&a-program-item__img {
    width: 64px;
    margin: 0 16px;
}

.r\&a-program-item__text {
    margin: 0 16px;
}

/* Form section */

.r\&a-section--survey {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.r\&a-survey-text {
    margin-bottom: 48px;
}

.r\&a-button {
    all: unset;
    display: flex;
    align-items: center;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    height: 2rem;
    padding: 0 1rem;
    position: relative;
    margin: 0 2rem;
    cursor: pointer;
    font-weight: 300;
    align-self: center;
    justify-content: center;

    .left,
    .right {
        position: absolute;
        width: 1.45rem;
        height: 1.45rem;
        border-bottom: 1px solid var(--border);
        border-left: 1px solid var(--border);

        &::before {
            content: "";
            width: 0.75rem;
            height: 0.75rem;
            border: 1px solid var(--border);
            position: absolute;
            top: calc(1rem - 0.5px);
            left: calc(-0.4rem - 1px);
        }

        &::after {
            content: "";
            width: 0.5rem;
            height: 0.5rem;
            background: var(--border);
            position: absolute;
            top: calc(1rem - 1px);
            left: calc(-0rem - 1px);
        }
    }

    .left {
        left: -0.75rem;
        transform: rotate(45deg);
    }

    .right {
        right: -0.75rem;
        transform: rotate(-135deg);
    }

    &:hover {
        background: var(--button-hover);

        .left,
        .right {
            background: var(--button-hover);
        }
    }
}

:root {
    --background: hsl(40, 43%, 67%);
    --border: hsl(40deg 31.65% 51.1%);
    --text: hsl(40deg 31.65% 51.1%);
    --button-hover: hsl(40, 65%, 80%);
}

* {
    box-sizing: border-box;
}

.r\&a-survey {
    display: flex;
    flex-direction: column;
    max-width: 480px;
    width: 100%;
    border: 1px solid var(--border);
    position: relative;
    padding: 1rem;
    color: hsl(40deg 31.65% 51.1%);
    font-weight: 300;

    .corner {
        width: 0.5rem;
        height: 0.5rem;
        border: 1px solid var(--border);
        position: absolute;

        &::after,
        &::before {
            content: "";
            position: absolute;
        }

        &::after {
            width: 2rem;
            height: calc(1rem - 1px);
        }

        &::before {
            width: calc(1rem - 1px);
            height: 2rem;
        }

        &.left {
            left: -0.5rem;

            &::after {
                left: calc(-2px + 1rem);
                border-left: 1px solid var(--border);
            }

            &::before {
                left: -1px;
                border-left: 1px solid var(--border);
            }
        }

        &.right {
            right: -0.5rem;

            &::after {
                right: calc(-2px + 1rem);
                border-right: 1px solid var(--border);
            }

            &::before {
                right: -1px;
                border-right: 1px solid var(--border);
            }
        }

        &.top {
            top: -0.5rem;

            &::after {
                top: -1px;
                border-top: 1px solid var(--border);
            }

            &::before {
                top: calc(-2px + 1rem);
                border-top: 1px solid var(--border);
            }
        }

        &.bottom {
            bottom: -0.5rem;

            &::after {
                bottom: -1px;
                border-bottom: 1px solid var(--border);
            }

            &::before {
                bottom: calc(-2px + 1rem);
                border-bottom: 1px solid var(--border);
            }
        }
    }
}

.r\&a-survey__item {
    margin: 16px 0;
}

.r\&a-survey__radio-group {
    display: flex;
    justify-content: center;
}

.r\&a-survey-list {
    display: flex;
    justify-content: center;
    flex-direction: column;
    list-style-type: none;
    margin: 0 8px;
    padding: 0;
}

.r\&a-survey-list__item {
    margin: 8px 0;
}

.r\&a-survey-list--no-offset > * {
    margin: 0;
}

.r\&a-textarea {
    width: 100%;
    background: #f8f8f8;
    border-color: var(--border);
    outline: none;
    color: var(--text);
    font-size: 16px;
    line-height: 1.4;
    font-style: italic;
}

.r\&a-radio {
    display: flex;
    align-items: center;
}

.r\&a-radio__input {
    display: none;
}

.r\&a-radio__custom {
    display: inline-flex;
    width: 16px;
    height: 16px;
    border: solid 1px;
    border-radius: 50%;
}

.r\&a-radio__custom::before {
    content: "";
    display: none;
    width: 8px;
    height: 8px;
    margin-top: 3px;
    margin-left: 3px;
    background: var(--background);
    border-radius: 50%;
}

.r\&a-radio__input:checked + .r\&a-radio__custom::before {
    display: block;
}

.r\&a-radio__text {
    padding: 0 8px;
}

.r\&a-radio-button__input {
    display: none;
}

.r\&a-radio-button__input:checked + .r\&a-radio-button__custom,
.r\&a-radio-button__input:checked + .r\&a-radio-button__custom .left,
.r\&a-radio-button__input:checked + .r\&a-radio-button__custom .right {
    background: var(--button-hover);
}

.r\&a-survey__input {
    all: unset;
    padding: 12px 8px;
    color: hsl(40deg 31.65% 51.1%);
    font-style: italic;
    font-weight: 300;
    border-bottom: solid 1px var(--border);
    width: 100%;
    box-sizing: border-box;

    &::placeholder {
        color: hsl(40deg 31.65% 51.1%);
        font-style: italic;
        font-weight: 300;
    }
}

/* Seeya section */

.r\&a-section--seeya {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0;
}

.r\&a-section--seeya__text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.r\&a-section--seeya__img {
    width: 256px;
}

.r\&a-timer {
    --timer-gap: clamp(2px, 1vw, 10px);
    display: flex;
    flex-wrap: nowrap;
    gap: var(--timer-gap);
    padding: 0;
    margin: 0 auto;
    list-style: none;
    justify-content: center;
    width: min(100%, 560px);
}

.r\&a-timer__item {
    flex: 1 1 0;
    min-width: 0;
}

.r\&a-time {
    padding: clamp(6px, 1.8vw, 18px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.r\&a-time__count {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 100;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    display: block;
    width: 3ch;
    text-align: center;
}

.r\&a-time__unit {
    font-size: clamp(0.68rem, 1.8vw, .75rem);
    text-align: center;
}

.r\&a-seeya__date {
    text-align: center;
}

/* Wishes section */
.r\&a-section--wishes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.r\&a-wishes {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.r\&a-wishes__item:not(:last-child)::after {
    content: "";
    height: 78px;
    display: block;
    background: url(assets/line.svg);
    background-size: 78px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Custom checkbox */

.r\&a-checkbox input[type="checkbox"] {
    visibility: hidden;
    display: none;
}

.r\&a-checkbox *,
.r\&a-checkbox ::after,
.r\&a-checkbox ::before {
    box-sizing: border-box;
}

.r\&a-checkbox {
    position: relative;
    display: block;
    overflow: hidden;
}
.r\&a-checkbox__input {
    width: 50px;
    height: 50px;
    position: absolute;
    opacity: 0;
}
.r\&a-checkbox__label svg {
    vertical-align: middle;
}
.r\&a-checkbox__path1 {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: .5s stroke-dashoffset;
    opacity: 0;
}
.r\&a-checkbox__input:checked + label svg g path {
    stroke-dashoffset: 0;
    opacity: 1;
}