form {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 30px 10px;
    margin: 40px 0;
}

legend {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

legend.multiline {
    align-items: flex-start;
}

legend img {
    width: 22px;
    height: 22px;
}

label {
    font-size: 14px;
    font-weight: 300;
    margin: 12px 0 6px 0;
}

.select {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;

    padding: 10px 12px;
    margin: 6px 0;

    border: 0;
    border-radius: 6px;

    background-color: #fff;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.07);

    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;

    color: #243d63;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;

    border-color: #243d63;

    box-shadow:
        0 0 0 3px rgba(36, 61, 99, 0.08);
}

input:user-valid,
select:user-valid,
textarea:user-valid {
    border-color: rgba(50, 130, 80, 0.45);

    box-shadow:
        0 0 0 3px rgba(50, 130, 80, 0.06);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
    border-color: rgba(180, 50, 50, 0.5);

    box-shadow:
        0 0 0 3px rgba(180, 50, 50, 0.06);
}

.select {
    position: relative;
}

.select:has(input:user-valid)::after,
.select:has(select:user-valid)::after {
    content: "✓";

    position: absolute;

    right: 35px;
    bottom: 17px;

    font-size: 13px;
    font-weight: 500;

    color: #328250;

    pointer-events: none;
}

input::placeholder {
    color: rgba(45, 66, 94, 0.6);
}

.form-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border: none;
    margin-bottom: 50px;
}

.form-section p {
    margin-top: 0;
    text-align: left;
}

.grid-2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.checkbox-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border: none;
    gap: 20px;
}

.checkbox {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 12px;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 20px;
    height: 20px;

    border: 1px solid #243d63;
    border-radius: 5px;
    background: white;

    cursor: pointer;
    transition: .2s;

    margin: 0;
    padding: 0;
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;

    width: 20px;
    height: 20px;

    border: 1.5px solid #243d63;
    border-radius: 30px;
    background-color: rgba(36, 61, 99, 0);

    cursor: pointer;
    transition: .2s;

    margin: 0;
    padding: 0;
}

input[type="checkbox"]:checked {
    background: rgba(36, 61, 99, 0.6);
    border: 1.5px solid #243d63;
}

input[type="radio"]:checked {
    background: rgba(36, 61, 99, 0.6);
    border: 1.5px solid #243d63;
}

input[type="date"],
input[type="time"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;

    font-family: inherit;
    font-size: 14px;

    padding: 10px 12px;

    border: 0;
    border-radius: 6px;

    background-color: #fff;
    color: #243d63;

    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.07);
}

.checkbox label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    text-align: left;
    font-weight: 400;
    font-size: 15px;
}

.contact-section {
}

.contact-section-content {
    background: white;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.07);
    border-radius: 8px;
}

.contact-section p {
    margin: 0;
}

.contact-options {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
}

.contact-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 400;
}

.contact-option img {
    width: 24px;
    height: 24px;
}

.contact-section label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    background-color: rgba(36, 61, 99, 0.1);
    padding: 12px;
    border-radius: 6px;
}

@media screen and (min-width: 768px) {

    form {
        padding: 30px;
    }

    .grid-2, .contact-options {
        flex-direction: row;
        gap: 20px;
    }

}

@media screen and (min-width: 1024px) {

    .grid-2 {
        flex-direction: column;
        gap: 20px;
    }

    .form-grid {
        width: 100%;
        display: flex;
        gap: 40px;
    }
    
    #form-left {
        width: 600px;
        gap: 0px;
    }

    .form-section#form-left {
        gap: 0px;
        border-right: 1.5px solid rgba(36, 61, 99, 0.1);
        padding-right: 50px;
    }

    .form-section#form-left .grid-2 {
        gap: 0px;
    }

    #form-right {
        width: 100%;
    }

    .test {
        display: flex;
        gap: 40px;
    }

    .test fieldset {
        width: 50%;
    }

}

