:root {
    --primary: #22bdf1;
    --primary-dark: #05677e;
    --primary-darker: #0f4653;
    --secondary: #f9b42b;
    --error: #a31621;

    --accordion-gap: 32px;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'lato', sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.3;

    @media (max-width: 970px) {
        font-size: 22px;
    }
}
a {
    color: var(--primary);
    text-decoration: none;
}
p {
    margin-top: 0;
}
h1,
h2,
h3 {
    margin-top: 0;
    padding: 0;
    font-family: 'degular', sans-serif;
}

.htct-sections {
    position: relative;
    z-index: 2;

    .section {
        height: auto;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        font-size: 3rem;
        background-color: white;

        &:nth-child(1) {
            background-color: var(--primary-darker);
            position: relative;
            height: calc(100vh + 32px);

            @media (max-width: 970px) {
                height: 100vh;
            }

            &::after {
                content: '';
                position: absolute;
                background-image: url('/images/hot-tip/Europe-Doodle.png');
                background-attachment: fixed;
                background-size: 175%;
                background-position: top left;
                height: 100%;
                width: 100%;
                z-index: 1;
                opacity: .15;

                @media (max-width: 970px) {
                    background-size: 400%;
                }
            }

            > div {
                z-index: 2;
            }
        }
        &:nth-child(2) {
            border-radius: 32px 32px 0 0;
            margin-top: -32px;
            position: relative;
            z-index: 1;
            @media (max-width: 970px) {
                border-radius: 0;
                margin-top: 0;
            }

            &::after {
                content: '';
                background-size: contain;
                background-position: center;
                background-image: url('/images/hot-tip/Pencil@2x.png');
                background-repeat: no-repeat;
                width: 120px;
                height: 170px;
                display: block;
                position: absolute;
                bottom: -85px;
                left: var(--accordion-gap);
                
            }
        }
        &:nth-child(3) {
            background-color: var(--primary-dark);
            border-radius: 0 0 32px 32px;
            overflow: hidden;
            position: relative;
            z-index: 0;
        }
    }
}

#sentinel {
    height: 1px;
    padding-bottom: 100vh;
    pointer-events: none;
}

.fullpage-footer {
    height: 100vh;
    width: 100%;
    position: fixed;
    bottom: 0;
    background-color: #1a1a1a;
    background-image: url('/images/hot-tip/Europe-Doodle.png');
    background-attachment: fixed;
    background-size: 175%;
    background-position: top left;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;

    @media (max-width: 970px) {
        background-size: 400%;
    }

    .fullpage-footer-content {
        color: white;
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        overflow: auto;
        background-image: url('../../images/hot-tip/Wave.svg');
        background-repeat: no-repeat;
        background-size: 300px;
        background-position: calc(100% + 90px) calc(100% + 90px);

        @media (max-width: 970px) {
            background-image: none;

            &::before {
                height: 0;
                background-image: none;
            }
        }

        > div {
            padding: 30px 120px;
            @media (max-width: 970px) {
                padding: 20px;
            }

            &:nth-of-type(1) {
                flex-grow: 1;
                display: flex;
                align-items: center;
            }
            .footer-grid {
                display: grid;
                grid-template-columns: 25% 50% 25%;
                gap: 30px;
                @media (max-width: 970px) {
                    grid-template-columns: 1fr;
                    gap: 0;
                }
            }
        }
    }
}

#floating-form {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;

    @media (max-width: 970px) {
        position:static;
        transform: translateY(0);

    }
}
#floating-form.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(100px);
}

#floating-form form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Classic styles */
.htct-grid {
    display: grid;
    grid-template-columns: auto 120px minmax(auto, 1120px) 120px 400px 120px auto;
    margin: auto;
    align-items: center;
    width: 100%;
    height: 100%;

    @media (max-width: 1700px) {
        grid-template-columns: auto 40px minmax(auto, 1120px) 60px 400px 40px auto;
    }
    @media (max-width: 970px) {
        grid-template-columns: 20px 1fr 20px;
    }
}

.htct-create-card {
    position: fixed;
    top: 50%;
    background-color: white;
    border-radius: 32px;
    padding: 80px 30px 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 400px;
    box-sizing: border-box;
    transform: translateY(-50%);
    z-index: 9;
    transition: transform .5s;
    box-shadow: 0 .5rem 1rem 1rem rgb(0,0,0,.15);

    @media (max-width: 970px) {
        position: relative;
        width: 100%;
        transform: none;
        top: 0;
        padding: 20px;
        border-radius: 16px;
    }

    &::before {
        content: '';
        position: absolute;
        left: 30px;
        top: -60px;
        display: block;
        width: 153px;
        height: 153px;
        background-image: url('../../images/hot-tip/Shake.svg');
        background-size: contain;
        background-repeat: no-repeat;

        @media (max-width: 970px) {
            display: none;
        }
    }

    input {
        padding: 20px;
        border-radius: 12px;
        background-color: #f4f4f4;
        border: none;
        width: 100%;
        margin-bottom: 10px;
        font-size: 20px;
        font-family: 'Degular Display', sans-serif;

        @media (max-width: 960px) {
            padding: 14px;
            border-radius: 10px;
        }

        &::placeholder {
            color: #aaa;
            @media (max-width: 960px) {
                font-size: 16px;
            }
        }
    }

    .error-message {
        color: var(--error);
        font-size: 16px;
        font-weight: 500;
        margin: 0 0 20px 12px;
        line-height: 1;
        display: none;

        &.show {
            display: block;
        }
    }
}

.htct-button {
    padding: 17px 48px;
    border-radius: 12px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 2.4px;
    border: none;
    font-family: 'lato', sans-serif;
    position: relative;

    &.loading {
        > span {
            visibility: hidden;
            opacity: 0;
        }
        &::after {
            content: "";
            position: absolute;
            width: 24px;
            height: 24px;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            margin: auto;
            border: 4px solid transparent;
            border-top-color: #ffffff;
            border-radius: 50%;
            animation: button-loading-spinner 1s ease infinite;
        }
    }

    &.secondary {
        background-color: var(--secondary);
    }
    &.full-width {
        width: 100%;
    }

    @media (max-width: 960px) {
        border-radius: 10px;
        padding: 14px 32px;
        font-size: 14px;
    }
}

.scroll-down {
    --size: 50px;
    position: relative;

    &::before {
        content: '';
        position: absolute;
        bottom: 42px;
        left: calc(50% - calc(var(--size) / 2));
        display: block;
        height: var(--size);
        width: var(--size);
        animation: subtleBounce 5s ease-in-out infinite;
        background-image: url('/images/hot-tip/Scroll.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        opacity: 1;
        transition: opacity 1s;
        z-index: 2;
    } 
    
    &.fade-out {
        &::before {
            opacity: 0;
        }
    }
}
.logo-white {
    position: absolute;
    top: 40px;
    left: 0;
    @media (max-width: 960px) {
        position: initial;
        margin-bottom: 24px;
        width: 35vw;
    }
}
.section-1-content {
    margin: auto 0;
    max-width: clamp(320px, 100%, 999px);
    @media (max-width: 960px) {
        max-width: initial;
    }

    > img {
        margin-top: -60px;
        @media (max-width: 960px) {
            margin-top: 0;
        }
    }
}

.htct-section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;

    @media (max-width: 970px) {
        grid-template-columns: 1fr;
    }
}
.htct-image-grid {
    display: grid;
    grid-template-columns: repeat(6, 150px);
    grid-template-rows: repeat(6, 150px);
    gap: 5px;
    background-color: #f4f4ff;
}
.hthc-grid-image {
    width: 100%;
    object-fit: contain;
}

/* Floating image */
.floating-images {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    left: 0;

    .floating-image {
        position: absolute;
        width: 300px;
        z-index: 1;
        animation: float 5s infinite;

        &.church {
            left: 50%;
            width: 200px;
            top: 0;

            @media (max-width: 970px) {
                width: 100px;
                top: 50px;
                left: 0;
            }
        }

        &.colosseum {
            width: 100px;
            top: 100px;
            left: calc(50% + 200px);
            animation-delay: 1s;

            @media (max-width: 970px) {
                width: 66px;
                top: 50px;
                left: calc(50% + 100px);
            }
        }

        &.eiffel {
            width: 100px;
            right: 100px;
            bottom: 0;
            animation-delay: 0s;
        }
        &.windmill {
            width: 150px;
            left: calc(50% - 100px);
            bottom: 0;
            animation-delay: 1s;
        }
        &.bus {
            width: 100px;
            left: calc(50% + 50px);
            bottom: 100px;
            animation-delay: 2s;
        }
    }
}

img {
    &.pencil {
        width: 120px;
        @media (max-width: 960px) {
            width: 60px;
        }
    }
}

/* Dialog */
dialog.htct-dialog {
    border: 0;
    border-radius: 32px;
    padding: 0;
    width: clamp(320px, calc(100vw - 60px), 800px);
    overflow: visible;
    animation: fade-out 0.5s ease-out;

    &:open {
        animation: fade-in 0.5s ease-out;
    }

    &::before {
        content: '';
        position: absolute;
        top: -30px;
        right: -30px;
        height: 100px;
        width: 100px;
        background-image: url('../../images/hot-tip/Bubble@2x.png');
        background-size: contain;
        background-repeat: no-repeat;
    }

    > div {
        padding: 30px 60px 60px;
        @media (max-width: 970px) {
            padding: 30px;
        }

        input {
            height: 100%;
            width: 100%;
            background-color: #f4f4f4;
            border-radius: 12px;
            border: 0;
            padding: 17px 20px;
            font-size: 24px;
        }
    }
    &::backdrop {
        animation: backdrop-fade-in 0.5s ease-out forwards;
    }
}

/* Dertails element */
details {
    interpolate-size: allow-keywords;
    border-radius: 24px !important;
    &::details-content {
        transition: block-size .5s, content-visibility .5s allow-discrete;
        overflow: hidden;
        block-size: 0;
        padding: 0 30px 0 60px;
    }
    summary {
        display: block;
        cursor: pointer;
        font-weight: bold;
        padding: 20px 20px 20px var(--accordion-gap);
        position: relative;
        &::before,
        &::after {
            content: '';
            display: block;
            height: 2px;
            width: 18px;
            background-color: var(--primary);
            position: absolute;
            left: 0;
            top: calc(50% - 1px);
            border-radius: 2px;
        }
        &::after {
            transform: rotate(90deg);
            transition: transform .25s ease-in-out;
        }
    }
    &[open] {
        &::details-content {
            padding: 0 20px 20px var(--accordion-gap);
            block-size: auto;
        }
        summary {
            &::after {
                transform: rotate(0deg);
            }
        }
    }
}

/* Utility classes */
ul.no-style {
    list-style: none;
    padding: 0;
    margin: 0;
}
.d-flex {
    display: flex;
}
.flex-cols {
    flex-direction: column;
}
.justify-center {
    justify-content: center;
}
.sm-flex-column {
    @media (max-width: 970px) {
        flex-direction: column;
    }
}
.hide {
    display: none !important;
}
.hide-on-desktop {
    display: none;
    @media (max-width: 970px) {
        display: block;
    }
}
.relative {
    position: relative;
}
@media (max-width: 970px) {
    .hide-on-mobile {
        display: none;
    }
}
.h-100 {
    height: 100vh;
    @media (max-width: 970px) {
        height:auto;
    }
}
.display-contents {
    display: contents;
}
.center-vertically {
    display: flex;
    align-items: center;
}
.m-0 {
    margin: 0;
}
.mb-0 { margin-bottom: 0; }
.mb-24 {
    margin-bottom: 24px !important;
}
.sm-mb-0 {
    @media (max-width: 960px) {
        margin-bottom: 0 !important;
    }
}
.sm-mb-12 {
    @media (max-width: 960px) {
        margin-bottom: 12px !important;
    }
}
.mb-36 {
    margin-bottom: 36px !important;
}
.sm-mt-20 {
    @media (max-width: 960px) {
        margin-top: 20px !important;
    }
}
.col-span-4 {
    grid-column: span 4;

    @media (max-width: 970px) {
        grid-column: span 1;
    }
}
.no-scroll {
    overflow: hidden;
}

/* Text classes */
.text-primary {
    color: var(--primary);
}
.text-secondary {
    color: var(--secondary);
}
.text-white {
    color: white;
}
.text-size-14 {
    font-size: 14px;
}
.text-size-16 {
    font-size: 16px;
}
.text-size-20 {
    font-size: 20px;
}
.text-size-22 {
    font-size: 22px !important;
}
.text-size-24 {
    font-size: 24px !important;
}
.text-size-28 {
    font-size: 28px;
}
.text-size-40 {
    font-size: 40px;
    line-height: 52px;
}
.text-size-60 {
    font-size: 60px;
}
.text-size-80 {
    font-size: 80px;
}
@media (max-width: 960px) {
    .sm-text-size-50 {
        font-size: 50px;
        line-height: 1.4;
    }
    .sm-text-size-40 {
        font-size: 40px; 
    }
    .sm-text-size-32 {
        font-size: 32px;
        line-height: 1.4;
    }
    .sm-text-size-28 {
        font-size: 28px !important;
    }
    .sm-text-size-20 {
        font-size: 20px !important;
        line-height: 1.4;
    }
    .sm-text-size-16 {
        font-size: 16px !important;
        line-height: 1.4;
    }
    .sm-text-size-12 {
        font-size: 12px;
    }
}
.text-size-100 {
    font-size: 100px;
    font-size: clamp(60px, 10vw, 100px);
    line-height: .9;
}
.text-size-120 {
    font-size: 120px;
    font-size: clamp(60px, 10vw, 120px);
    line-height: 0.9;
    letter-spacing: -5px;
}
.text-size-160 {
    font-size: 160px;
    line-height: 120px;
}
.tight-line-height {
    line-height: 0.9;
}
.font-family-degular {
    font-family: 'degular', sans-serif !important;
}
.font-family-lato {
    font-family: 'lato', sans-serif !important;
}
.font-weight-500 {
    font-weight: 500;
}
.font-weight-800 {
    font-weight: 800;
}
.uppercase {
    text-transform: uppercase;
}

.line-height-2 {
    line-height: 2;
}

.linkedin {
    background-color: var(--primary);
    mask-image: url(https://d1hphgblhugsaw.cloudfront.net/assets/svg/zeus/icons/icon-linkedin.svg);
    display: inline-block;
    height: 30px;
    width: 30px;
}
.livechat {
    background-color: var(--primary);
    mask-image: url(https://d1hphgblhugsaw.cloudfront.net/assets/svg/zeus/doodle/chat.svg);
    display: inline-block;
    height: 60px;
    width: 80px;
    @media (max-width: 970px) {
        height: 30px;
        width: 40px;
    }
}

/* Animations */
@keyframes subtleBounce {
    0%, 100% {
      transform: translateY(0);
    }
    10% {
      transform: translateY(-16px);
    }
    20% {
      transform: translateY(0);
    }
    30% {
      transform: translateY(-8px);
    }
    40% {
        transform: translateY(0);
      }
}
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}
@keyframes button-loading-spinner {
    from {
      transform: rotate(0turn);
    }
    to {
      transform: rotate(1turn);
    }
}
@keyframes backdrop-fade-in {
    0% {
        background-color: rgb(0 0 0 / 0%);
    }

    100% {
        background-color: rgb(0 0 0 / 50%);
    }
}