.registration-page-container {
    max-width: 640px;
    margin: 0 auto;
}

.registration-form-hold {
    padding: 2em;
    background: #fff;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.02);
    font-size: 1.25rem;

    hr {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

.custom-content {
    hr {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    ul {
        list-style: disc;
        padding-left: 40px;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        font-size: 14px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    th {
        padding: 0.5em;
        text-align: left;
        font-weight: 600;
        border-bottom: 1px solid #e4e6ea;
        font-size: 14px;
    }

    tbody tr {
        border-bottom: 1px solid #e4e6ea;
        transition: background-color 0.2s ease;
    }

    tfoot tr {
        border-top: 1px solid #e4e6ea;
        border-bottom: none;
        font-weight: 600;
    }

    tbody tr:last-child {
        border-bottom: none;
    }

    td {
        padding: 0.5em;
        color: #1c1e21;
        border: none;
        vertical-align: middle;
    }

    tbody tr:nth-child(even) {
        background-color: #fafbfc;
    }

    /* Responsive design */
    @media (max-width: 768px) {
        table {
            font-size: 13px;
        }

        th,
        td {
            padding: 12px;
        }
    }
}

.registration-form-layout {
    display: flex;
    flex-direction: column;
    gap: 1em;

    .layout-row {
        display: flex;
        flex-direction: row;
        gap: 1em;

        & > * {
            flex: 1;
        }

        @media (max-width: 575px) {
            flex-direction: column;
        }
    }

    .layout-col {
        display: flex;
        flex-direction: column;
        gap: 0.5em;
    }

    .form-element {
        margin: 0;
    }

    .checkbox-item label {
        font-weight: normal;
    }

    hr {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    dialog {
        border: none;
        outline: none;
        padding: 2em;

        background: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);

        opacity: 0;
        transform: scale(0.9);
        transition: 0.2s ease allow-discrete;
    }

    dialog::backdrop {
        background: rgba(0, 0, 0, 0.25);
        opacity: 0;
        transition: 0.2s ease allow-discrete;
    }

    dialog[open] {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    dialog[open]::backdrop {
        opacity: 1;
    }

    @starting-style {
        dialog[open] {
            opacity: 0;
            transform: scale(0.9);
        }

        dialog[open]::backdrop {
            opacity: 0;
        }
    }

    .input-as-button {
        cursor: pointer;
    }

    #notifications, .alert {
        margin: 0 !important;
    }
}

.date-time-selector-modal {
    display: flex;
    flex-direction: column;
    gap: 1em;
    font-size: 1.25rem;
}

.date-time-selector-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .selected-time-display {
        display: flex;
        gap: 0.25em;
    }

    @media (max-width: 575px) {
        .selected-time-display {
            flex-direction: column;
            gap: 0;
        }
    }
}

.date-time-selector {
    display: flex;
    flex-direction: row;
    gap: 2em;
    max-height: 15em;

    .date-selector {
        display: flex;
        justify-content: center;
    }

    .time-selector {
        flex: 1;
        width: 250px;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        position: relative;
        padding-right: 4px;
        padding-bottom: 4px;
    }

    .date-time-separator {
        width: 1px;
        background-color: #e4e6ea;
    }

    hr {
        margin: 0;
    }

    @media (max-width: 575px) {
        gap: 1em;
        flex-direction: column;
        max-height: max-content;

        .date-time-separator {
            width: 100%;
            height: 1px;
        }

        .time-selector {
            flex: auto;
            height: 11em;
            max-width: 100%;
        }
    }
}

.time-list {
    max-height: 300px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 0.5em;
}

.time-option-item {
    padding: 0.5em 0.25em;
    line-height: 1em;
    border: 1px solid #0518BD;
    border-radius: 3px;
    color: #0518BD;
    transition: 0.2s;
    background: white;

    &:hover {
        background-color: #c6caff;
    }

    &.selected {
        background-color: #0518BD;
        color: white;
    }
}

.time-selector-info {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid;
    border-color: #0518BD transparent;
    animation: loader-spin 0.5s infinite linear;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes loader-spin {
    to {
        transform: translate(-50%, -50%) rotate(.5turn)
    }
}

.loading-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999999;
}

.registration-success-layout {
    display: flex;
    gap: 3em;
    flex-direction: column;
    align-items: center;
    padding: 4em 0;
}

.registration-success-checkmark {
    max-width: 10em;
    aspect-ratio: 1/1;

    & svg {
        width: 100%;
    }
}

.registration-success-message {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

.input-error {
    border-color: #f12c2c !important;
}

.input-error-message {
    display: none;
}

.input-error + .input-error-message {
    display: block;
    padding-top: 0.25em;
    color: #f12c2c;
}

#autoservice-registration-modal .modal-content {
    max-width: 400px;
    margin: 0 auto;
}
#autoservice-registration-modal .modal-content .modal-header {
    padding: 1rem;
}
#autoservice-registration-modal .modal-content .modal-header .modal-title {
    font-size: 1.5rem;
}
#autoservice-registration-modal .modal-content .modal-header button {
    font-size: 30px;
    line-height: 21px;
}
#autoservice-registration-modal .modal-content .modal-body {
    font-size: 1.2rem;
}
