@font-face {
    font-family: 'IranSansXRegular';
    src: url("../fonts/iransans/IRANSansXFaNum-Regular.ttf") format("truetype");
}

@font-face {
    font-family: 'IranSansXLight';
    src: url("../fonts/iransans/IRANSansXFaNum-UltraLight.ttf") format("truetype");
}

:root {
    --dark: #1f1b14;
    --white: #fff;
    --green: #24e46e;
    --red: #ff343c;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--green);
}

body {
    background-color: var(--dark);
    color: var(--white);
    font-family: "IranSansXLight", serif;
    font-size: 18px;
    line-height: 1.8;
}

a {
    color: var(--green);
    text-decoration: none;
}

#formWarranty {
    border: 1px solid var(--green);
    border-radius: 15px;
    position: relative;
    background: rgba( 0, 0, 0, .8);
}

#formWarranty:before {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    content: "";
    z-index: -1;
    background-image: url("../images/bg/bg-warranty.webp");
    background-size: cover;
    background-position: bottom center;
}

#formWarranty label {
    padding-right: 1rem;
    margin-bottom: .25rem;
}

.form-control {
    background-color: var(--dark);
    color: var(--white);
    border: 1px solid var(--white);
    border-radius: 15px;
    height: 50px;
}

.form-control.has-error {
    border-color:  var(--red);
}

.form-control:focus {
    background-color: var(--dark);
    box-shadow: none;
    border-color: #24e46e;
    color: var(--white);
}

.submit {
    background-color: transparent;
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: 25px;
    padding: .75rem 2rem;
    font-size: 1.3rem;
}

#feedback {
    position: absolute;
    color: var(--red);
    left: 0;
    right: 0;
    bottom: 0;
}

.feedback {
    display: none;
    font-size: .8rem;
}

.feedback.has-error {
    color: var(--red);
}

#feedback.success {
    color: var(--green);
}

.warranty-label {
    width: 150px;
}

.form-title:before,
.form-title:after {
    content: "";
    position: absolute;
    width: 22%;
    top: 50%;
    height: 1px;
    background-color: var(--white);
}

.form-title:before {
    left: 0;
}

.form-title:after {
    right: 0;
}

.form-title span {
    color: var(--white);
    z-index: 1;
    position: relative;
    padding: 0 1rem;
}

#addSerialField {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    border-radius: 25px;
    display: inline-block;
    padding: .5rem 1.5rem;
}

.warranty-inquiry {
    color: var(--dark);
    text-decoration: none;
    background-color: var(--green);
    padding: .5rem 1rem;
    display: block;
    border-radius: 15px;
    font-size: .8rem;
}

.serial-remove {
    text-decoration: none;
    color: var(--red);
    font-size: .8rem;
}

.serial-wrap {
    display: none;
}

.current-date {
    font-size: 1.3rem;
    color: var(--green);
}

#sellerRating {
    direction: ltr;
}

#sellerRating a {
    color: var(--white);
}

#sellerRating a.active {
    color: var(--green);
}

.img-border {
    border: 1px solid var(--green);
    border-radius: 40px;
}

@media (min-width: 576px) {
    .form-title:before,
    .form-title:after {
        width: 30%;
    }
}

@media (min-width: 768px) {
    .warranty-label {
        width: 200px;
    }

    .form-title:before,
    .form-title:after {
        width: 35%;
    }
}

@media (min-width: 992px) {
    .form-title:before,
    .form-title:after {
        width: 40%;
    }
}