body {
    margin: 0;
    position: relative;
}

.wrapper {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 20px 50px;
    border: 1px solid #aaa;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.form__header {
    text-transform: uppercase;
    background: #c0c0c0;
}

#form > .header {
    width: 100%;
    text-align: center;
    text-decoration: underline;
    margin-bottom: 0;
}

#form > .subHeader {
    text-align: center;
    margin-top: 0;
    font-size: 14px;
}

.exeption {
    margin-left: 0;
    margin-right: 20px;
}

fieldset {
    border: none;
}

header {
    padding: 5px 0;
    border-top: 2px solid #0c4da1;
    border-bottom: 2px solid #0c4da1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #0c4da1;
}

.logo > img {
    height: 80px;
}

.header__title {
    text-align: center;
    font-size: 32px;
}

.contact {
    padding-left: 0;
    font-size: 11px;
    text-transform: uppercase;
    list-style: none;
    text-align: right;
}

.mainTitle {
    text-align: center;
    margin-bottom: 0;
}

form {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row;
    overflow: hidden;
}

h3 {
    flex-basis: 100%;
}

label {
    line-height: 25px;
    margin-left: 10px;
    display: block;
}

label.wide {
    width: 100%;
}

input {
    min-width: 225px;
    margin-left: 10px;
    border: none;
    border-bottom: 2px solid black;
}

.form__text {
    width: 100%;
    font-size: 12px;
    text-align: center;
}

.form__btn {
    background: #0c4da1;
    color: #fff;
    font-size: 17px;
    border: none;
    border-radius: 5px;
    padding: 14px 70px;
    margin: 30px auto;
}

.form__btn:hover {
    background: #1262CE;
}

.layer {
    display: none;
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.layer.active {
    display: block;
}

.popup {
    position: absolute;
    margin: auto;
    width: 100%;
    max-width: 800px;
    bottom: 30%;
    background: white;
    /*display: none;*/
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: none;
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.popup.active {
    display: flex;
}

.popup__header {
    color: #0c4da1;
}

.popup__btn {
    text-decoration: none;
    margin: 20px auto 20px;
    width: 15%;
    display: block;
    background: #0c4da1;
    color: #fff;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    padding: 10px 20px;
}

.popup__btn:hover {
    background: #1262CE;
}

.header__contact {
    font-size: 13px;
}

.container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    padding-top: 200px;
}

.tag-ingo {
    color: white;
    font-size: 19px;
}

#btnSaveSign, #clearButton {
    color: #fff;
    background: #0c4da1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    margin: 10px 15px;

}

#signArea {
    width: 502px;
    margin: 15px auto;
}

.sign-container {
    width: 90%;
    margin: auto;
}

.tag-ingo {
    font-family: cursive;
    /*font-size: 12px;*/
    text-align: left;
    font-style: oblique;
}

.center-text {
    text-align: center;
}

.hidden {
    display: none;
}

#show {
    border: none;
    border-bottom: 2px solid black;
    background: white;
    height: 20px;
    width: 250px;
}

/**/
.warranty {
    margin-top: 25px;
}

#foo {
    resize: none;
    width: 100%;
    display: block
}

.warranty .fhead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
}

.warranty .fhead input {
    min-width: 0;
}

.warranty h4 {
    width: 100%;
}

.t1 {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    width: 99%;
}

.th {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    align-items: stretch;
}

.tb {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
}

.tb {
    -webkit-background-origin: border-box;
    background-origin: border-box;
    border: 1px solid;
    border-collapse: collapse;
}

.tr {
    display: flex;
    flex-direction: row;
}

.tr .td {
    border-bottom: none;
}

.tr .td:first-child {
    width: 70%;
}

.tr:last-child .td {
    border-bottom: 1px solid;
}

.td {
    -webkit-background-origin: border-box;
    background-origin: border-box;
    border: 1px solid;
    width: 50%;
}

.td input {
    min-width: unset;
    border: none;
    width: 99%;
    margin: 0;
}


/*******automatic credit card billing*******/

.fields-wrap {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    margin-top: 20px;
    margin-bottom: 30px;

}

@media screen and (max-width: 915px) {
    .fields-wrap {
        flex-direction: column;
        align-items: unset;
    }
}

.link-light {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

/* The container */
.container-label {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default radio button */
.container-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio button */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #fff;
    border: 1px solid black;
}

/* On mouse-over, add a grey background color */
.container-label:hover input ~ .checkmark {
    background-color: white;
}

/* When the radio button is checked, add a blue background */
.container-label input:checked ~ .checkmark {
    background-color: white;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.container-label input:checked ~ .checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.container-label .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.authorize {
    margin-top: 40px;
}

.authorize p {
    margin: 0;
    text-align: center;
}

/*.fields-wrap input, .fields-wrap label {*/
    /*min-width: unset;*/
    /*display: flex;*/
/**/
/*}*/

/**************/

/**/

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

    form {
        flex-direction: row;
    }
}

@media screen and (max-width: 915px) {

    .wrapper {
        position: relative;
        overflow: hidden;
    }

    #show {
        width: 100%;
    }

    form {
        flex-direction: column;
    }

    label {
        display: inline-flex;
        white-space: nowrap;
    }

    input {
        width: 100%;
    }

    .logo > img {
        height: 50px;
    }

    .header__title {
        font-size: 29px;
    }

    .contact, .header__contact {
        font-size: 9px;
    }
}

@media screen and (max-width: 768px) {
    .wrapper {
        padding: 15px 10px;
    }

    .logo > img {
        height: 45px;
    }

    .header__title {
        font-size: 25px;
    }

    .contact, .header__contact {
        display: none;
    }

    .header__title {
        font-size: 1.5em;
    }

    .form {
        font-size: 15px;
    }

}

@media screen and (max-width: 568px) {

    header {
        display: block;
    }

    .form {
        font-size: 10px;
    }

    .new_line {
        display: block;
    }

    .new_line > input {
        display: block;
        width: 100% !important;
        margin: 0;
    }

    .mainTitle {
        font-size: 1.5em;
    }

    .form__text {
        font-size: 8px;
    }

    .logo {
        display: none;
    }

    #btnSaveSign {
        position: absolute;
        left: 20px;
    }

    #clearButton {
        position: absolute;
        right: 20px;
    }

    .warranty .fhead {
        align-items: flex-start;
        flex-direction: column;

    }
    .warranty .fhead>label {
        width: 100%;
    }
}

@media screen and (max-width: 414px) {

    .wrapper {
        padding: 10px 5px;
    }

    .mainTitle {
        font-size: 1.2em;
    }

    .header__title {
        font-size: 1.3em;
    }

    .form {
        font-size: 9px;
    }
}
