@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@900&display=swap');

:root {
    --primary-dark-color: 219 4% 4%;
    --secondary-dark-color: 219 4% 7%;
    --text-color: 219 8% 75%;
    --title-color: 219 8% 95%;
    --highlight-color: 197 100% 44%;

    --success-color: 120 85% 63%;
    --warning-color: 45 100% 51%;
    --error-color: 0 75% 62%;

    --ff-regular: 'Poppins', sans-serif; 
    --ff-title: 'Mulish', sans-serif;

    --cubic-bezier: cubic-bezier(0.47, 0, 0.745, 0.715);
    --cubic-bezier-2: cubic-bezier(0.39, 0.575, 0.565, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body,
h1, 
h2,
h3, 
h4,
h5, 
h6,
p, 
ul,
figure,
button,
textarea,
picture {
    margin: 0;
    padding: 0;
}

h1, 
h2,
h3, 
h4,
h5, 
h6,
p {
    font-weight: 400;
}

img,
picture {
    max-width: 100%;
    display: block;
}

li {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

input {
    width: 100%;
}

input,
button,
textarea {
    font: inherit;
    border: none;
}

input:focus,
textarea:focus {
    outline: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    transition: background-color 600000s 0s, color 600000s 0s !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    appearance: none;
    -webkit-appearance: none;
}

input[type=number] { 
    appearance: none;
    -moz-appearance: textfield;
}

textarea {
    resize: vertical;
    min-height: 110px;
    max-height: 300px;
}

#message-body {
    min-height: 75px;
}

.map {
    background-color: hsl(var(--secondary-dark-color));
}

iframe {
    position: relative;
    border: 0;
    width: 100%;
    height: 300px;
    transition: opacity 300ms ease-out;
}

*:focus-visible {
    outline: 2px solid hsl(var(--highlight-color));
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

::-webkit-scrollbar {
    width: .8rem;
    background-color: hsl(var(--secondary-dark-color));
  }
  
::-webkit-scrollbar-thumb {
  background-color: hsl(var(--text-color) / .2);
}
  
::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--text-color) / .4);
}

::selection {
    color: hsl(var(--secondary-dark-color));
    background-color: hsl(var(--highlight-color));
}

.visually-hidden {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.flow > *:where(:not(:first-child)) {
    margin-block-start: var(--flow-space, 2rem);
}

.flow-space--smaller {
    --flow-space: .25rem;
}

.flow-space--small {
    --flow-space: .5rem;
}

.flow-space--medium {
    --flow-space: 1rem;
}

.flow-space--regular {
    --flow-space: 2rem;
}

.flow-space--big {
    --flow-space: 5rem;
}

.flex {
    display: flex;
    gap: var(--gap, 1rem);
}

.grid {
    display: grid;
    gap: var(--gap, 1rem);
}

.container {
    max-width: 90em;
    margin-inline: auto;
    padding-inline: clamp(1.3rem, 5vw, 3rem);
}

.highlight {
    color: hsl(var(--highlight-color));
}

.ovh {
    overflow: hidden;
}

input {
    background-color: transparent;
    color: hsl(var(--title-color));
    padding-block: .5rem;
    padding-inline: .5rem;
    border-bottom: 1px solid hsl(var(--title-color) / .45);
    transition: border 300ms ease-out;
}

input::placeholder,
textarea::placeholder {
    color: hsl(var(--title-color) / .45);
}

input:focus {
    border-color: hsl(var(--highlight-color));
}

label.error {
    position: relative;
    display: block;
    font-size: .9rem;
    color: hsl(var(--error-color));
    padding-inline: .5rem;
    border-top: 2px solid hsl(var(--error-color));
}

textarea {
    color: hsl(var(--title-color));
    padding-block: .5rem;
    padding-inline: .5rem;
    background-color: transparent;
    width: 100%;
}

form button {
    cursor: pointer;
    width: 100%;
    background-color: hsl(var(--highlight-color));
    padding-block: .5rem;
    padding-inline: 2rem;
    text-transform: uppercase;
    transition: background 300ms ease-out, color 300ms ease-out;
    border: 1px solid hsl(var(--highlight-color));
}

form button:hover,
form button:focus {
    color: hsl(var(--title-color));
    background-color: transparent;
}

.gdpr-checkbox {
    position: relative;
    --gap: 1rem;
}

input#gdpr,
input#mgdpr {
    width: 15px;
    aspect-ratio: 1;
    accent-color:  hsl(var(--highlight-color));  
}

.gdpr-label {
    position: absolute;
    top: -.9rem;
    left: 2rem;
    cursor: pointer;
    font-size: .8rem;
    line-height: 1.2;
}

.gdpr-label > span {
    color:  hsl(var(--highlight-color));
}

#gdpr,
#mgdpr {
    margin-block-end: 1.4rem;
}

.error-msg {
    color: hsl(var(--error-color));
    margin-inline-start: .5rem;
}

.loading {
    display: none;
    background-color: hsl(var(--primary-dark-color) / .85);
    position: absolute;
    place-items: center;
    inset: 0;
    margin: 0;
    z-index: 2;
}
.loading-elements {
    width: 100%;
    height: 100%;
    place-items: center;
}

.pre-loader,
.pre-loader:before,
.pre-loader:after {
  background: hsl(var(--title-color));
  animation: load1 1s infinite ease-in-out;
  width: 1em;
  height: 4em;
}
.pre-loader {
  color: hsl(var(--title-color));
  text-indent: -9999em;
  margin: 88px auto;
  position: relative;
  font-size: 11px;
  transform: translateZ(0);
  animation-delay: -0.16s;
}
.pre-loader:before,
.pre-loader:after {
  position: absolute;
  top: 0;
  content: '';
}
.pre-loader:before {
  left: -1.5em;
  animation-delay: -0.32s;
}
.pre-loader:after {
  left: 1.5em;
}

.svg-box {
    display:inline-block;
    position: relative;
    width:150px;
}

.green-stroke {
    stroke:hsl(var(--success-color));
}
.red-stroke {
    stroke: hsl(var(--error-color));
}
.yellow-stroke {
    stroke: hsl(var(--warning-color));
}

.circular circle.path {
    stroke-dasharray: 330;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    opacity: 0.4;
    animation: 0.7s draw-circle ease-out;
}

.cross {
    stroke-width:6.25;
    stroke-linecap: round;
    position: absolute;
    top: 54px;
    left: 54px;
    width: 40px;
    height: 40px;
}

.cross .first-line {
    animation: 0.7s draw-first-line ease-out;
}

.cross .second-line {
    animation: 0.7s draw-second-line ease-out;
}

.checkmark{
	stroke-width: 6.25;
    stroke-linecap: round;
	position:absolute;
    top: 56px;
    left: 49px;
    width: 52px;
    height: 40px;
}

.checkmark path {
    animation: 1s draw-check ease-out;
}

.alert-sign {
    stroke-width:6.25;
    stroke-linecap: round;
    position: absolute;
    top: 40px;
    left: 68px;
    width: 15px;
    height: 70px;
    animation: 0.5s alert-sign-bounce cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert-sign .dot {
    stroke:none;
    fill: hsl(var(--warning-color));
}

div[data-status="success"],
div[data-status="warning"],
div[data-status="fail"] {
    display: none;
}

.loading.success div[data-status="success"],
.loading.fail div[data-status="fail"],
.loading.warning div[data-status="warning"] {
    display: block;
}
.loading.success .pre-loader,
.loading.success div[data-status="fail"],
.loading.success div[data-status="warning"],
.loading.fail .pre-loader,
.loading.fail div[data-status="success"],
.loading.fail div[data-status="warning"],
.loading.warning .pre-loader,
.loading.warning div[data-status="success"],
.loading.warning div[data-status="fail"] {
    display: none;
}

.status-message {
    text-align: center;
}

.loading.success .status-message {
    color: hsl(var(--success-color));
}
.loading.fail .status-message {
    color: hsl(var(--error-color));
}
.loading.warning .status-message {
    color: hsl(var(--warning-color));
}

@media screen and (min-width: 50em) {
    form button {
        width: max-content;
    }
}

@keyframes draw-first-line {
    0% {
        stroke-dasharray: 0,56;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 0,56;
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dasharray: 56,330;
        stroke-dashoffset: 0;
    }
}

@keyframes draw-second-line {
    0% {
        stroke-dasharray: 0,55;
        stroke-dashoffset: 1;
    }

    50% {
        stroke-dasharray: 0,55;
        stroke-dashoffset: 1;
    }

    100% {
        stroke-dasharray: 55,0;
        stroke-dashoffset: 70;
    }
}

@keyframes draw-circle {
    0% {
        stroke-dasharray: 0,330;
        stroke-dashoffset: 0;
        opacity: 1;
    }

    80% {
        stroke-dasharray: 330,330;
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100%{
        opacity: 0.4;
    }
}

@keyframes draw-check {
    0% {
        stroke-dasharray: 49,80;
        stroke-dashoffset: 48;
        opacity: 0;
    }

    50% {
        stroke-dasharray: 49,80;
        stroke-dashoffset: 48;
        opacity: 1;
    }

    100% {
        stroke-dasharray: 130,80;
        stroke-dashoffset: 48;
    }
}

@keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}

@keyframes alert-sign-bounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes cursor {
    0% {
        opacity: 1;
    }
    50% {
        opacity: .6;
    }
    100% {
        opacity: 0;
        transform: translateY(2.4rem);
    }
}

@keyframes arrow {
    0% {
        transform: translateY(-.5rem) rotate(45deg);
    }
    50% {
        transform: translateY(0rem) rotate(45deg);
    }
    100% {
        opacity: 1;
        transform: translateY(-.5rem) rotate(45deg);
    }
}

@keyframes fillLetter {
    0% {
        color: transparent;
    }
    25% {
        color: hsl(var(--title-color) / .5);
    }
    50% {
        color: hsl(var(--title-color));
    }
    75% {
        color: hsl(var(--title-color) / .5);
    }
    100% {
        color: transparent;
    }
}

@keyframes showSubTitle {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media screen and (min-width: 20.68em) {
    .gdpr-label {
        top: -.3rem;
    }

    #gdpr,
    #mgdpr {
        margin-block-end: .9rem;
    }
}

@media screen and (min-width: 31.5em) {
    .gdpr-label {
        top: .2rem;
    }

    #gdpr,
    #mgdpr {
        margin-block-end: 0;
    }
}

@media screen and (min-width: 50em) {
    @keyframes showSubTitle {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}