@import url("../fonts/iranyekan/iranyekan.css");

body {
    margin: 0;
    padding: 3rem 20%;
    background-color: #ffffff;
    direction: rtl;
    font-family: 'iranyekan';
}

input,
button,
textarea {
    font-family: 'iranyekan';
}

p {
    line-height: 2em;
}

header,
#search {
    text-align: center;
}

header>h1 {
    margin: 1rem 0 0 0;
}

header>p {
    margin-top: 10px 0 0 0;
    color: rgb(50, 50, 50);
}

#search {
    margin-top: 5rem;
}

#search {
    display: flex;
    justify-content: center;
}

.input-wrapper {
    background-color: #f7f7f7;
    padding: 12px 16px;
    width: 400px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #cccccc;
}

.input-wrapper input {
    background: none;
    border: none;
    width: 250px;
    /* padding: 8px 16px; */
    outline: none;
    direction: rtl;
    font-size: 16px;
}

.input-wrapper input::placeholder {
    /* text-align: right; */
    font-size: 14px;
}

.input-wrapper>button {
    border: none;
    background-color: rgb(26, 160, 84);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    font-family: 'iranyekan';
}

.warnings {
    margin-top: 5rem;
}

.warnings>div:first-child {
    margin-top: 2rem;
}

.warnings>div:not(:first-child) {
    margin-top: 2rem;
}

.warnings>div>h2 {
    font-size: 16px;
}


.warnings ol {
    padding-right: 1rem;
    margin-top: 2rem;
}

.warnings li,
.warnings p {
    font-size: 14px;
    line-height: 2em;
}

.warnings li:not(:first-child) {
    margin-top: 10px;
}

#garanti-requirments {
    background-color: rgb(232 245 235);
    padding: 2rem;
    border-radius: 10px;
    color: rgb(34 96 61);
}

#garanti-expiry-requirements {
    background-color: rgb(243 225 222);
    padding: 2rem;
    border-radius: 10px;
    color: rgb(145 15 35);
}

#garanti-resend-product {
    background-color: rgb(214, 225, 255);
    padding: 2rem;
    border-radius: 10px;
    color: rgb(17, 41, 107);
}

#garanti-resend-product>p {
    margin-top: 2rem;
}

footer {
    margin-top: 5rem;
    font-size: 14px;
    text-align: center;
}

footer ul {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

footer ul li {
    list-style: none;
    padding: 0 2rem;
}

footer ul li:first-child {
    padding-right: 0;
}

ul li a {
    text-decoration: none;
    color: #009688;
}

ul li a #search-result {
    width: 100%;
    height: 100%;
    position: fixed;
    display: none;
}

#search-result {
    display: none;
}

#search-result>div:first-child {
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border-radius: 10px;
    width: 400px;
}

.transparent-bg {
    background-color: rgba(0, 0, 0, 0.15);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    height: 100%;
}

#garanti-expiry {
    background-color: #ffe3e3;
    padding: 4px 8px;
    color: #b61919;
    border-radius: 10px;
    width: fit-content;
    margin: 0 auto;
    margin-top: 3rem;
}

#search-result>div:first-child h1 {
    font-size: 18px;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.loading {
    margin: 0 auto;
}

@media only screen and (max-width: 600px) {
    body {
        padding: 3rem 5%;
    }

    header>h1 {
        font-size: 24px;
    }

    header>p {
        font-size: 14px;
    }

    #search-result>div:first-child {
        width: 70%;
    }

    #complain-form-container form>div {
        display: flex !important;
        flex-direction: column !important;
    }
}

@media only screen and (min-width:601px) and (max-width: 1200px) {
    body {
        padding: 3rem 10%;
    }
}

@media only screen and (max-width: 450px) {
    .input-wrapper {
        width: 300px;
    }
}


@keyframes ldio-x2uulkbinbj {
    0% {
        opacity: 0
    }

    20% {
        opacity: 1
    }

    100% {
        opacity: 1
    }
}

.ldio-x2uulkbinbj div {
    position: absolute;
    animation: ldio-x2uulkbinbj 1s linear infinite;
    box-sizing: border-box !important;
}

.ldio-x2uulkbinbj div:nth-child(1) {
    width: 44px;
    height: 44px;
    left: 34px;
    top: 128px;
    border-radius: 50%;
    background: #1aa054;
}

.ldio-x2uulkbinbj div:nth-child(2) {
    width: 66px;
    height: 66px;
    left: 56px;
    top: 84px;
    border-radius: 0 66px 0 0;
    border: 20px solid #2ab265;
    background: none;
    animation-delay: 0.1s;
    border-bottom: 0;
    border-left: 0
}

.ldio-x2uulkbinbj div:nth-child(3) {
    width: 110px;
    height: 110px;
    left: 56px;
    top: 40px;
    border-radius: 0 110px 0 0;
    border: 20px solid #4ac680;
    background: none;
    animation-delay: 0.2s;
    border-bottom: 0;
    border-left: 0
}

.loadingio-spinner-radio-nq4q5u6dq7r {
    width: 60px;
    height: 60px;
    display: inline-block;
    overflow: hidden;
    background: none;
}

.ldio-x2uulkbinbj {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(0.3);
    backface-visibility: hidden;
    transform-origin: 0 0;
    /* see note above */
}

.ldio-x2uulkbinbj div {
    box-sizing: content-box;
}

/* [ldio] generated by https://loading.io */

header>img {
    height: 64px;
}

/* Survey */
#survey-form-container {
    margin-top: 3rem;
    padding: 3rem;
    background-color: #f7f7f7;
    border-radius: 10px;
}

#survey-form-container form label,
.form-button {
    cursor: pointer;
    display: block;
}

#survey-form-container form>label {
    display: block;
}

#survey-form-container form>input {
    margin-top: 16px;
    margin-bottom: 2rem;
    padding: 6px 12px;
    border-radius: 5px;
    border: 1px solid #dadada;
    font-size: 14px;
}

#survey-form-container form>ul {
    margin-bottom: 2rem;
    padding: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2rem;
}

#survey-form-container form li {
    list-style: none;
    display: flex;
    align-items: center;
    direction: ltr;
    flex-direction: row-reverse;
    color: #585858;
    user-select: none;

}

#survey-form-container form li:not(:last-child) label {
    margin-bottom: 8px;

}

#survey-form-container form li label {
    display: flex;
    align-items: center;
}

.form-button {
    margin-top: 3rem;
    background-color: #009688;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 10px;
    border: none;
}

textarea {
    margin-top: 16px;
    padding: 10px;
    width: 300px;
    height: 150px;
    border-radius: 5px;
    border: 1px solid #dadada;
}

/* Complaints */
#complain-form-container {
    margin-top: 3rem;
    padding: 3rem;
    background-color: #f7f7f7;
    border-radius: 10px;
}

#complain-form-container form>div {
    display: grid;
    grid-template-columns: auto auto auto;
}

#complain-form-container form label,
.form-button {
    cursor: pointer;
    display: block;
}

#complain-form-container form input {
    margin-top: 16px;
    margin-bottom: 2rem;
    padding: 6px 12px;
    border-radius: 5px;
    border: 1px solid #dadada;
    font-size: 14px;
}