* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;

    display: flex;
    flex-direction: column;

    align-items: center;
}

h3 {
    margin-top: 0;
    margin-bottom: 28px;
}

form {
    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;

    .errors {
        ul {
            list-style-type: none;
            margin: 12px 0;
            padding: 0;

            font-size: 12px;
            color: red;
        }
    }

    .captcha_image {
        margin: 6px 0 4px 0;
    }

    .help-text {
        color: #555;
        font-size: 14px;
        margin: 6px 0 0 0;
    }
}

section {
    width: 90%;
    max-width: 400px;

    padding: 12px 14px;

    &:empty {
        display: none;
    }
}

.data-table {
    margin-top: 8px;

    display: grid;

    grid-template-columns: 33% 1fr;
    grid-column-gap: 8px;
    grid-row-gap: 4px;
}

.data-table div:nth-child(odd) {
    font-weight: bold;
}

.data-table div:nth-child(even) {
    display: flex;
    align-items: center;
}

.box {
    position: relative;

    border: 1px solid #ddd;

    border-radius: 3px;
    margin-bottom: 20px;

    line-height: 1.33;
}

.box:last-child {
    margin-bottom: 0;
}

.box .box-label {
    line-height: 1;

    position: absolute;

    top: 0;
    left: 12px;

    transform: translateY(-50%);

    background-color: white;

    padding: 0 2px;

    font-size: 14px;
    font-weight: bold;
}

.box p {
    padding: 0;

    margin: 5px 0;

    width: 100%;

    display: flex;
    align-items: center;
}

.box p:last-child {
    margin-bottom: 0;
}

.box.registration-status img {
    margin-right: 6px;
}

.box input {
    width: 100%;
    border: 1px solid #aaa;
    padding: 6px 8px;
    border-radius: 2px;
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;

    width: 100%;

    margin-top: 0;
    padding-top: 0;
}

.buttons button {
    padding: 8px 20px;
    background: #295f82;

    border: 0;
    color: white;
    border-radius: 3px;

    margin-right: 8px;
    cursor: pointer;
}

.buttons button:last-child {
    margin-right: 0;
}

.buttons button.secondary {
    background: #4c98cc;
}
