.beskrivelse {
    text-align: center;
}

.counter {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: fit-content;
}

#count {
    font-family: var(--bold-font);
    font-size: 2rem;
    min-width: 1ch;
    margin: 0 0.5rem;
    text-align: center;
    text-justify: center;
    color: var(--tekst-farve);
    cursor: default;
}

#minus,
#plus {
    font-size: 1.25rem;
    min-width: 4ch;
    box-shadow: rgba(0, 0, 0, 0.4) 0 2px 4px, rgba(0, 0, 0, 0.3) 0 7px 13px -3px, rgba(0, 0, 0, 0.2) -1px -3px 0 inset;
    justify-content: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    margin: 0 auto;
}

form label {
    display: flex;
    flex-direction: column;
    height: fit-content;
    gap: 0.5rem;
}

form label:last-of-type {
    margin: 0 0 1rem 0;
}

form label:has(input:focus) .title {
    top: 0.25rem;
    left: 0;
    color: var(--varm-vild);
}

form label .title {
    position: relative;
    top: 1rem;
    left: 1rem;
    font-size: 1rem;
    width: fit-content;
    padding: 0 0.16rem;
    transition: all 300ms;
    color: var(--smovse-turkis);
    background: var(--baggrund-farve);
}

form .input-field {
    width: auto;
    height: 3rem;
    transition: all 0.3s;
    text-indent: 1rem;
    color: var(--tekst-farve);
    border: 1px solid var(--smovse-turkis);
    border-radius: 0.75rem;
    outline: none;
    background-color: transparent;
}

form .input-field:hover {
    border-color: var(--varm-vild);
}

.input-field:focus {
    border-color: var(--varm-vild);
}

.title:has(+.input-field:not(:placeholder-shown):not(.input-field[type="date"]):not(.input-field[type="time"])),
.input-field:not(:placeholder-shown):not(.input-field[type="date"]):not(.input-field[type="time"]) {
    border-color: var(--varm-vild);
    color: var(--varm-vild);
}

.input-field[type="date"],
.input-field[type="time"] {
    text-indent: 0.5rem;
    color: #173e4560;
}

.input-field[type="date"]:valid,
.input-field[type="time"]:valid {
    color: var(--varm-vild);
}

.book-btn {
    margin: 0.5rem 0;
    width: 100%;
}

.phone-container {
    display: flex;
    align-items: center;
}

.phone-container:hover .country-code,
.phone-container:focus-within .country-code,
input[type="tel"]:focus {
    border-color: var(--varm-vild);
}

*::placeholder {
    color: #173e4560;
}

/* Country code dropdown */
.country-code {
    height: 3rem;
    padding: 0 0 0 1rem;
    border: 1px solid var(--smovse-turkis);
    background-color: transparent;
    border-radius: 0.75rem 0 0 0.75rem;
    border-right: none;
    font-size: 0.85rem;
    color: #173e4560;
    appearance: none;
    cursor: pointer;
    outline: none;
}

.country-code:hover,
.country-code:focus {
    border-color: var(--varm-vild);
}

input[type="tel"] {
    height: 3rem;
    width: 100%;
    color: var(--tekst-farve);
    border: 1px solid var(--smovse-turkis);
    border-radius: 0 0.75rem 0.75rem 0;
    border-left: none;
    background-color: transparent;
    transition: all 0.3s;
}

#time {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#hour {
    margin-left: 1rem;
}

#hour, 
#minute {
    height: 3rem;
    width: fit-content;
    text-align: center; 
    background-color: transparent;
    border: none;
    font-size: 1rem;
    color: var(--tekst-farve);
    scrollbar-width: none;
    appearance: none;
}

#hour:focus-visible, 
#minute:focus-visible {
    outline: none;
}

#hour::-webkit-scrollbar,
#minute::-webkit-scrollbar {
    display: none;
}

#hour option,
#minute option {
    color: var(--tekst-farve);
    background-color: var(--varm-vild);
}

#hour option[disabled],
#minute option[disabled] {
    color: var(--baggrund-farve);
    background-color: var(--spansk-rod);
}
#hour option:hover,
#minute option:hover {
    color: var(--baggrund-farve);
    background-color: var(--spansk-rod);
}

#colons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 3rem;
    width: 1rem;
    gap: 0.25rem 0;
}

.colon {
    background-color: var(--tekst-farve);
    height: 0.25rem;
    width: 0.25rem;
}

@media (min-width: 768px) {
    #minus,
    #plus {
        font-size: 2.25rem;
    }

    form {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 100%;
    }

    form label {
        width: calc(50% - 1rem);
        height: fit-content;
    }

    form label:has(input:focus) .title {
        top: 0.25rem;
        left: 0;
        color: var(--varm-vild);
    }

    form label .title {
        position: relative;
        top: 1.25rem;
        left: 1rem;
        font-size: 1.5rem;
        width: fit-content;
        color: var(--smovse-turkis);
        background: var(--baggrund-farve);
    }

    form .input-field {
        width: auto;
        height: 5rem;
        transition: all 0.3s;
        text-indent: 1rem;
        color: var(--tekst-farve);
        border: 1px solid var(--smovse-turkis);
        border-radius: 0.75rem;
        outline: none;
        background-color: transparent;
        font-size: 1.15rem;
    }

    form label:last-of-type {
        margin: 0 0 0 0;
    }

    form .input-field:hover {
        border-color: var(--varm-vild);
    }

    .input-field:focus {
        border-color: var(--varm-vild);
        color: var(--varm-vild);
    }

    .input-field:not(:placeholder-shown):not(.input-field[type="date"]):not(.input-field[type="time"]) {
        color: var(--tekst-farve);
        border-color: var(--varm-vild);
    }

    .title:has(+.input-field:not(:placeholder-shown):not(.input-field[type="date"]):not(.input-field[type="time"])) {
        color: var(--varm-vild);
    }

    .input-field[type="date"]{
        text-indent: 0.5rem;
    }

    label[for="name"] {
        order: 1;
    }

    label[for="email"] {
        margin: 0;
        order: 3;
    }

    label[for="phone"] {
        order: 5;
    }

    /* Country code dropdown*/
    .country-code {
        border-right: none;
        height: 5rem;
        font-size: 1.1rem;
    }

    input[type="tel"],
    input[type="tel"]:focus {
        width: 100%;
        border-radius: 0 0.75rem 0.75rem 0;
        border-left: none;
    }

    label[for="date"] {
        order: 2;
    }

    label[for="time"] {
        order: 4;
    }

    #hour, 
    #minute {
        font-size: 1.25rem;
    }

    label[for="button"] {
        order: 6;
        align-self: flex-end;
    }

    .book-btn {
        padding: 2rem 5rem;
        max-width: fit-content;
        align-self: center;
    }

    input[type="tel"] {
        margin: 0;
        padding: 0;
        height: 5rem;

    }
}