﻿
html, body {
    min-height: 100%;
}

body, div, form, input, select, textarea, label {
    padding: 0;
    margin: 0;
    outline: none;
    font-family: 'Poppins', Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #3d3d3d;
    line-height: 22px;
}

h1 {
    position: absolute;
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 3rem);
    color: #fff;
    z-index: 2;
    line-height: 1.3;
}

legend {
    padding: 8px 20px;
    font-family: 'Poppins', Roboto, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background-color: #2b2d77;
    border-radius: 4px;
}

textarea {
    width: 100%;
    padding: 8px 10px;
    resize: vertical;
}

.testbox {
    display: flex;
    justify-content: center;
    align-items: center;
    height: inherit;
    padding: 20px 16px;
}

form {
    width: 100%;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(43,45,119,.13);
}

.banner {
    position: relative;
    height: 200px;
    background-image: url("/img/banner/registration1.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 6px;
    overflow: hidden;
}

    .banner::after {
        content: "";
        background-color: rgba(43, 45, 119, 0.55);
        position: absolute;
        width: 100%;
        height: 100%;
    }

input, select, textarea {
    margin-bottom: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

input {
    width: 100%;
    padding: 8px 10px;
}

    input[type="date"] {
        padding: 7px 10px;
    }

textarea {
    width: 100%;
    padding: 8px 10px;
}

.item:hover p, .item:hover i, .question:hover p, .question label:hover, input:hover {
    color: #317bd6;
}

.item input:hover, .item select:hover, .item textarea:hover {
    border: 1px solid #317bd6;
    box-shadow: 0 0 0 3px rgba(49,123,214,.15);
    color: #2b2d77;
}

.item {
    position: relative;
    margin: 10px 0;
}

    .item span {
        color: red;
    }

input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

.item i, input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    font-size: 20px;
    color: #317bd6;
}

.item i {
    right: 3%;
    top: 27px;
    z-index: 1;
}

.week {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.columns {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

    .columns div {
        width: calc(50% - 5px);
        min-width: 200px;
    }

[type="date"]::-webkit-calendar-picker-indicator {
    right: 1%;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
}

input[type=radio], input[type=checkbox] {
    display: none;
}

label.radio {
    position: relative;
    display: inline-block;
    margin: 5px 20px 15px 0;
    cursor: pointer;
}

.question span {
    margin-left: 30px;
}

.question-answer label {
    display: block;
}

label.radio:before {
    content: "";
    position: absolute;
    left: 0;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid #ced4da;
}

input[type=radio]:checked + label:before, label.radio:hover:before {
    border: 2px solid #317bd6;
}

select {
    width: 100%;
    padding: 8px 10px;
}

label.radio:after {
    content: "";
    position: absolute;
    top: 6px;
    left: 5px;
    width: 8px;
    height: 4px;
    border: 3px solid #317bd6;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    opacity: 0;
}

input[type=radio]:checked + label:after {
    opacity: 1;
}

.flax {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-block {
    margin-top: 16px;
    text-align: center;
}

button[type=submit] {
    min-width: 150px;
    padding: 11px 30px;
    border: none;
    border-radius: 30px;
    background: #317bd6;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    letter-spacing: .3px;
    box-shadow: 0 4px 12px rgba(49,123,214,.35);
    transition: background .25s ease, transform .25s ease;
}

button[type=submit]:hover {
    background: #2b2d77;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .columns div {
        width: 100%;
    }
    .flax {
        flex-direction: column;
        align-items: center;
    }
    form {
        padding: 16px;
    }
}

}

input[type=radio]:checked + label:after {
    opacity: 1;
}

.flax {
    display: flex;
    justify-content: space-around;
}

.btn-block {
    margin-top: 10px;
    text-align: center;
}

button {
    width: 150px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #234262;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
}

    button:hover {
        background: #3d5d7e;
    }

@media (min-width: 568px) {
    .name-item, .city-item {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

        .name-item input, .name-item div {
            width: calc(50% - 20px);
        }

            .name-item div input {
                width: 97%;
            }

            .name-item div label {
                display: block;
                padding-bottom: 5px;
            }
}

fieldset {
    min-width: 0;
    border-width: 2px;
    border-style: double;
    border-color: threedface;
    border-image: initial;
    display: block;
    margin-inline-start: 2px;
    margin-inline-end: 2px;
    padding-block-start: 0.35em;
    padding-inline-start: 0.75em;
    padding-inline-end: 0.75em;
    padding-block-end: 0.625em;
    min-inline-size: min-content;
}
