@import "../../../variables.less";
.my-form {
    input,
    select,
    textarea,
    .data-protection {
        margin: 5px 0px;
        box-shadow: 0 0 25px 10px rgba(24, 24, 24, 0.05);
    }

    .success-message {
        h1 {
            color: @main-color;
            font-size: 36px;
            margin-top: 50px;
        }

        p {
            font-size: 20px;
            margin-top: 20px;
        }
    }
    .invalidBlocks {
        border: 2px solid rgb(255, 0, 0) !important;
        position: relative;
        &::after {
            font-size: 0.9rem !important;
            color: red !important;
            position: absolute;
            bottom: 2px;
            content: "Bitte wähle entweder eine Kartenanzahl oder einen Wunschbetrag aus.";
        }
    }

    .border-red {
        border-color: red !important;
    }

    .no-margin {
        margin-top: 15px !important;
    }

    .invalid {
        border: 2px solid red !important;
    }
    .error-message {
        font-size: 0.9rem !important;
        color: red !important;
        position: absolute;
    }

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
        height: 100%;
    }

    input[type="number"] {
        -moz-appearance: textfield;
        appearance: textfield;
    }

    .checkit {
        display: none;
    }

    .checkit-span {
        height: 20px;
        width: 20px;
        border: 1px solid grey;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    [type="checkbox"]:checked + span:before {
        content: "\2714";
        position: absolute;
        transform-origin: bottom;
    }

    .form-rows {
        display: flex;
        flex-direction: column;

        width: 100%;
        h3 {
            font-weight: bold !important;
            margin-bottom: 0px !important;
        }
        @media @tablet {
            gap: 1.5rem;
        }
        .form-row {
            display: flex;
            flex-direction: column;
            width: 100%;
            gap: 1.5rem;

            .date {
                max-width: 100%;
                box-sizing: border-box;
            }
            label {
                width: 100% !important;
                font-size: inherit;
                input,
                select,
                textarea {
                    width: 100%;
                    font-size: inherit;
                }
            }
            .form-cols {
                display: flex;
                gap: 1.5rem;
                width: 100%;
            }
        }

        .form-column {
            display: flex;
            flex: 1;
            flex-direction: column;
            justify-content: flex-start;

            width: 100%;
            gap: 1rem;
            border-radius: 4px;
        }

        h3 {
            font-size: 1.2rem;
            font-weight: bold;
        }

        p {
            margin-bottom: 0.5rem;
            color: var(--hover-color);
        }

        input,
        select,
        textarea,
        .data-protection {
            padding: 10px 20px;
            border: 0px solid white;
            border-bottom: 3px solid @main-color;
            outline: 0px solid white;
            color: black;
            background-color: @background-color;
            resize: none;
        }

        .data-protection {
            display: flex;

            flex-wrap: nowrap;
            gap: 5px !important;
            justify-content: start;
            flex-direction: row !important;
        }

        input[type="date"] {
            font-family: inherit;
            width: 100% !important;
            position: relative;
        }

        select {
            padding: 10px 20px;
            border: 0;
            border-bottom: 3px solid @main-color;
            outline: none;
        }

        select:focus {
            border-bottom-color: @main-color;
        }

        #time-select {
            appearance: none;
            background-repeat: no-repeat;
            background-position: right 20px center;
            background-size: 18px;

            option {
                padding: 10px 20px;
                background-color: @background-color;
            }
        }
        @media @mobile {
            .date {
                width: 100vw !important;
            }
        }
        @media @tablet {
            .date {
                width: 100% !important;
            }
            .form-cols {
                flex-direction: row;
            }
        }
    }
    i .max-width {
        max-width: @body-maxwidth !important;
    }

    .datasec {
        display: flex;
        align-items: center !important;
        .link {
            height: 100%;
            display: flex;
            align-items: flex-end !important;
            text-decoration: underline;
            margin-right: 3px;
            color: rgb(14, 91, 146);
        }
    }

    .additional {
        display: flex;
        @media @mobile {
            flex-direction: column !important;
        }
        @media @tablet {
            flex-direction: row !important;
        }
        gap: 2.5rem;
        div {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: start;
        }
        .submit-request {
            flex: 1;
            box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.05);
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: start;
            background-color: @main-color;
            color: @background-color;
            padding: 10px 20px;
        }
    }
}
