﻿:root {
    --input-height: 50px;
}

#postal-code-check-block-form {
    display: flex;
    flex-direction: column;
}

.form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-default);
}

.input-group {
    display: flex;
    flex-direction: column;
    max-width: 100px;
}

.input-group > label {
    margin-bottom: 5px;
}

.input-group > input {
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    height: var(--input-height);
    &:focus {
        outline: none;
    }
}

.postal-code-check-input.invalid {
    border: 1px solid red;
}

#postalCodeFormSubmitBtn {
    align-self: flex-end;
    height: var(--input-height);
    min-width: 150px;
}

.validation-messages {
    display: flex;
    flex-direction: column;
}

.error {
    display: none;
    margin: 0;
    margin-top: var(--spacing-default);
    &.active {
        display: block;
        color: red;
    }
}

.error~.error {
    margin-top: var(--spacing-default);
}

.postal-code-form-button-container {
    display: flex;
}