/* page */

:root {
    --accent-color: #054164;
    --accent-monochromatic: #00527c;
    --accent-complementary: #491900;
    --accent-red: #e74c3c;
    --text-grey: rgb(68, 68, 68);
    --text-light-grey: rgb(122, 122, 122);
    --light-grey: #ECECEE;
    --success-color: #2ab400;
    --success-color-hover: #208800;
    --failure-color: #d13800;
    --failure-color-hover: rgb(168, 45, 0);
}

body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

}

input::placeholder,
textarea::placeholder {
    color: var(--text-grey);
    opacity: 1;
}

section:nth-of-type(odd) {
    background-color: transparent;
}

h1 {
    text-align: center;
    margin-bottom: 1.5em;
    font-weight: normal;
    font-size: 36px;
}

/* form */

.row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
    margin-bottom: 16px;
    margin-left: 0;
    margin-right: 0;
    /* gap: 16px; */
    width: 100%;
}

.row input,
.row select,
.row textarea {
    width: 100%;
    color: var(--text-grey);
}

.field-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-bottom: 5px;
}

.field-wrap.col-6 {
    flex: 1 1 0;
    max-width: 50%;
}

.field-wrap.col-4 {
    flex: 1 1 0;
    max-width: 33.33%;
}

.field-wrap.col-3 {
    flex: 1 1 0;
    max-width: 25%;
}

.field-wrap.col-12 {
    flex: 1 1 0;
    max-width: 100%;
}

.row .field-wrap+.field-wrap {
    margin-left: 16px;
}

.row-label {
    font-size: 14px;
    color: var(--text-grey);
    margin-bottom: 4px;
}

.col-30 {
    /* width: 30%; */
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
}

.col-30:has(#submitbutton) {
    justify-content: center;
}

.col-30 label {
    padding: 0;
    margin-bottom: 0;
    color: var(--text-grey);
    font-size: 14px;
    white-space: nowrap;
    gap: 4px;
    padding-bottom: 5px;
}

.col-70 {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    align-content: center;
}

.col-100 {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.col-100 label {
    cursor: pointer;
    margin-bottom: 0;
}

.col-100 span {
    align-self: center;
}

.col-100 input[type="checkbox"] {
    width: 18px;
    margin-right: 8px;
    margin-top: 0;
    flex-shrink: 0;
}

select {
    height: 38px;
    padding: 6px 10px;
    background-color: #fff;
    border: 1px solid #D1D1D1;
    border-radius: 4px;
    box-sizing: border-box;
}

.select1 {
    width: 100%;
}

.input2 {
    background: #fff;
    border: 1px solid #D1D1D1;
}

label {
    font-size: 14px;
    font-weight: normal;
}

legend {
    /* text-transform: uppercase; */
    font-family: 'Raleway';
    color: var(--text-grey);
    padding-bottom: 5px;
}

.top-nav-row {
    display: flex;
    justify-content: flex-end;
}

form img {
    width: 20px;
    align-self: center;
    margin-left: 3px;
}

form a {
    color: var(--accent-color);
}

/* validation states — date inputs excluded: their :placeholder-shown is unreliable */
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="date"]):not(:placeholder-shown):valid {
    border-color: #43a047;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%2343a047' stroke-width='2'/%3E%3Cpath d='M7 12l3 3 7-7' fill='none' stroke='%2343a047' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 36px;
}

input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="date"]):not(:placeholder-shown):invalid {
    border-color: #e53935;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%23e53935' stroke-width='2'/%3E%3Cline x1='12' y1='8' x2='12' y2='13' stroke='%23e53935' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16' r='1' fill='%23e53935'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 36px;
}

input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="date"]):not(:placeholder-shown):invalid~.field-hint,
textarea:not(:placeholder-shown):invalid~.field-hint {
    display: block;
}

.plain-fields input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="date"]):not(:placeholder-shown):valid,
.plain-fields input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="date"]):not(:placeholder-shown):invalid {
    border-color: #D1D1D1;
    background-image: none;
    padding-right: 10px;
}

.confirm-button {
    background-color: var(--success-color) !important;
    display: inline-block;
    border-color: var(--success-color) !important;
}

.confirm-button:hover {
    background-color: var(--success-color-hover) !important;
}

.reject-button {
    background-color: var(--failure-color) !important;
    border-color: var(--failure-color) !important;
    color: white !important;
    border: solid 2px var(--failure-color) !important;
}

.reject-button:hover {
    background-color: var(--failure-color-hover) !important;
}

.button-row {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.button-row input[type="submit"] {
    max-width: none;
    width: auto;
}

.readonly-value {
    display: inline-block;
    padding: 6px 0;
    color: #555;
}

.button-row input[type="submit"]:disabled {
    background-color: #6ab66dab;
    cursor: default;
}

.field-hint {
    display: none;
    color: #e53935;
    font-size: 12px;
    margin-top: 4px;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    font-weight: 600;
    min-width: unset;
}

.btn-primary {
    background: var(--accent-color);
    border: solid 2px var(--accent-color);
    color: white !important;
    text-transform: none;
    font-family: inherit;
    letter-spacing: normal;
    font-size: 14px;
    height: 100%;
}

.btn-primary:hover {
    background: var(--accent-monochromatic);
    border: solid 2px var(--accent-monochromatic);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: default;
}


.btn-secondary {
    background-color: white;
    color: var(--text-grey);
    border: solid 2px var(--light-grey);
}

.btn-secondary:hover {
    background-color: var(--light-grey);
    border-color: var(--light-grey);
    color: var(--text-grey);

}


/* error/success messages */
.error {
    color: #FF0000;
    flex-shrink: 0;
}

.error3 {
    display: block;
    color: #FF0000;
    font-size: 12px;
    margin-top: 3px;
}

.alert {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* tooltip */
.tooltip-wrap {
    display: inline-block;
    position: relative;
    margin-left: 4px;
    vertical-align: middle;
    cursor: pointer;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #9facb3;
    color: #fff;
    font-size: 11px;
    font-style: italic;
    font-family: Georgia, serif;
    flex-shrink: 0;
}

.tooltip-icon:hover {
    background: var(--failure-color);
}

.tooltip-text {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--failure-color);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    width: max-content;
    max-width: 220px;
    white-space: normal;
    z-index: 10;
    line-height: 1.4;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--failure-color);
}

.tooltip-wrap:hover .tooltip-text {
    display: block;
}


.form-category {
    margin-bottom: 5%;
}

/* top bar */
.top-bar {
    position: relative;
}

/* other page settings */
section {
    padding: 0;
}

#content .container {
    display: flex;
    flex-direction: column;
    margin-top: 1%;
    width: 70%;
}

.col-lg-12 {
    width: 50%;
    justify-self: center;
    align-self: center;
}


/* notice */

.notice {
    background: #f2f7fa;
    border: 1px solid #d6e4ec;
    border-left: 4px solid #0b3f5f;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 28px;
}

.notice ol {
    margin: 8px 0 12px;
    padding-left: 20px;
}

.notice li + li {
    margin-top: 6px;
}

/* media types */

@media screen and (max-width: 1185px) {
    .container {
        padding: 0;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* .col-30 label {
        white-space: wrap;
    } */

    .col-30:has(input[type="submit"]) {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .col-lg-12,
    form {
        max-width: 100%;
        width: 100%;
    }

    .form-category {
        width: 100%;
    }
}

@media screen and (max-width: 600) {
    .form-category {
        margin-bottom: 10%;

    }
}