#intro {
    max-width: 500px;
    margin: auto;
    text-align: justify;
}
.tour-container {
    border: 1px solid var(--font-color);
    border-radius: 25px;
    padding: 15px;
}

h2 {
    font-family: var(--header-font);
}

.tour-type-radios {
    display: flex;
}

.box-label {
    border: 1px solid var(--font-color);
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    margin: 0 15px 20px;
    padding: 70px;
    transition: 0.5s ease color, 0.5s ease background-color;

    &:first-child {
        margin-right: 50px;
    }
}

input[type="radio"] {
    width: 0;
    height: 0;
    margin: 0;
}

input[type="radio"].label-input:checked + label,
input[type="radio"].label-input:focus + label {
    background-color: var(--font-color);
    color: var(--background-color);
}

input[type="radio"].custom-radio + label::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid var(--font-color);
    border-radius: 100%;
    margin-right: 5px;
}

input[type="radio"].custom-radio:checked + label::before {
    background-color: var(--font-color);
}

input[type="radio"].custom-radio:focus + label {
    text-decoration: underline;
}

.radio-container {

    p {
        text-align: left;
    }

    label {
        margin-right: 30px;
    }
    
    label:last-child{
        margin-right: 0;
    }

    span {
        display: block;
        margin: 15px 0 0;
    }
}
.dotted-line input[type="text"] {
    display: inline-block;
    margin-left: 15px;
}
.tour-question {
    margin-bottom: 50px;

    label {
        display: inline-block;
    }

    input[type="text"],
    input[type="date"] {
        display: inline-block;
        margin: 10px 20px;
        min-width: unset;
    }
}

input[type="number"] {
    border: 1px solid var(--font-color);
    background-color: var(--background-color);
    font-family: var(--body-font);
    color: var(--font-color);
    padding: 10px;
    width: 60px;
    text-align: center;
    margin-left: 10px;
    -moz-appearance: textfield;
    
    &::-webkit-outer-spin-button,
    &::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
}

.dotted-line::before {
    content: '';
    width: 5px;
    height: 5px;
    display: inline-block;
    border-radius: 100%;
    background-color: var(--font-color);
    vertical-align: middle;
    margin-right: 10px;
}

#guestsError {
    display: block;
    margin-top: 20px;
}
.tour-time-container {
    margin: 60px;
    padding: 20px 70px;
    border: 1px solid var(--font-color);
    position: relative;

    &::before,
    &::after {
        content: '';
        position: absolute;
        width: 1px;
        height: 60%;
        background: var(--body-font);
        top: 20%;
    }

    &::before {
        left: -1px;
    }
    &::after {
        right: -1px;
    }

    .two-cols {
        display: flex;
        justify-content: space-between;
    }

    p.dotted-line {
        text-align: left;
    }

    textarea {
        width: 100%;
    }
}

textarea {
    border: 1px solid var(--font-color);
    background-color: var(--background-color);
    font-family: var(--body-font);
    color: var(--font-color);
    padding: 10px;
}

.contact-data-info {
    border: 1px solid var(--font-color);
    padding: 30px 60px;
    margin: 0 60px 50px;
    position: relative;

    &::before,
    &::after {
        content: '';
        position: absolute;
        width: 1px;
        height: 60%;
        background: var(--background-color);
        top: 20%;
    }

    &::before {
        left: -1px;
    }
    &::after {
        right: -1px;
    }

    label {
        display: flex;
        text-align: left;
        justify-content: space-between;
        margin-block: 30px;
    }
    input[type="text"] {
        display: inline-block;
        margin: 0;
    }
}

.tour-sucessfully-booked {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 70px;
}

.nav-controls {
    display: flex;
    margin-block: 20px;
}

button[data-button-direction="back"] {
    svg {
        transform: rotateZ(180deg);
        margin-left: 0;
        margin-right: 10px;
    }

    &:hover svg,
    &:focus svg{
        margin-right: 30px;
        margin-left: -20px;
    }
}

#submitError {
    margin-top: 10px;
    display: inline-block;
}

.hidden {
    display: none;
}

.loader {
    width: 90%;
    height: 2px;
    background-color: var(--font-color);
    position: relative;
    overflow: hidden;
    margin: 20px auto 0;
    display: none;

    .loading-bar {
        width: 100px;
        height: 2px;
        background-color: var(--background-color);
        opacity: 0.7;
        position: absolute;
        animation-name: moveBar;
        animation-duration: 5s;
        animation-iteration-count: infinite;
        animation-timing-function: ease-in-out;
    }
}

@keyframes moveBar {
    0% {
        left: -1%;
    }
    50% {
        left: 101%;
    }
    100% {
        left: -1%;
    }
}

@media screen and (max-width: 768px) {

    button {
        font-size: 12px;
        padding: 3px 15px;

        svg {
            width: 20px;
        }

        &:not(:disabled):hover svg,
        &:not(:disabled):focus svg {
            margin-right: -10px;
            margin-left: 20px;
        }

        &[data-button-direction="back"]:not(:disabled):hover svg,
        &[data-button-direction="back"]:not(:disabled):focus svg{
            margin-right: 20px;
            margin-left: -10px;
        }
    }

    .main-nav {
        font-size: 12px;

        a.btn {
            min-width: 91px;
        }
    }

    h1 {
        font-size: 27px;
        margin-bottom: 2em;
    }

    h2 {
        font-size: 18px;
    }

    label {
        font-size: 14px;
    }

    .tour-question{
        label {
            margin-top: 10px;
            margin-bottom: 10px;
        }
        input[type="text"] {
            margin: 10px 0;
        }
    }

    .tour-type-radios {
        flex-direction: column;
        
        .box-label {
            width: 100%;
            margin: 0 0 20px;
            padding: 20px;
        }
    }

    .tour-time-container {
        margin: 0;
        padding: 10px 20px;

        .two-cols {
            flex-direction: column;
        }
    }

    .contact-data-info {
        margin: 0;
        padding: 0 15px 15px 15px;

        label {
            flex-direction: column;
        }

        .dotted-line {
            margin-bottom: 10px;
        }

        input[type="text"] {
            width: 100%;
        }
    }
}