body, html {
    -webkit-text-size-adjust: none;
    direction: rtl;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

.main {
    min-height: 100vh;
    background: linear-gradient(
        to bottom,
        #D71921 0%,
        #D71921 33.3%,
        #F4F3F3 33.3%,
        #F4F3F3 100%
    );
}

.main h2, h1 {
    color: #FFF;
    text-align: right;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-top: 33px;
}

.main h1 {
    font-size: 28px;
}

.head {
    display: flex;
    align-items: center;
    justify-content: center;
}

.head h1,
.head h2 {
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 1rem;
}

.box {
    width: 90%;
    max-width: 400px;
    margin: -1px auto 5px auto;
    background-color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.box-top {
    margin: 0 22px 0 22px;
    text-align: center;
    background: #F0F9FF;
    padding: 12px 24px;
    border-radius: 8px;
}

.box-top span {
    color: #2B2F33;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 25px;
    letter-spacing: -1px;

}

.box-form {
    margin: 0 16px 60px 16px;
}

.box-content {
    margin: 0 24px;
    display: flex;
    flex-direction: column;
}

.box-button {
    display: flex;
    justify-content: center;
}

.box-button a {
    border-radius: 8px;
    background: #D71921;
    padding: 14px 77px;
    margin: 30px 8px 8px 8px ;
    border: none;
    outline: none;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    color: #FFF;
    text-decoration: none;
}

.box-content span:first-child {
    color: #2B2F33;
    text-align: right;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 24px;
}

.box-content span:nth-child(2) {
    color: #4B5259;

    text-align: right;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 8px;
}

.box-content p {
    color: #4B5259;
    text-align: justify;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.box-content-bottom span{
    margin: 42px 24px;
    color: #D71921;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.box-content2{
    margin-bottom: 2px;
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
}

.discount-box{
    background: #F4F3F3;
    height: 100%;
    padding: 10px;
}

.input {
    display: flex;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #E5E5E5;
    overflow: hidden;
    margin-top: 20px;
    padding-right: 16px;
}

.input svg {
    margin: 18px 0 20px 8px;
}

.input input {
    width: 100%;
    border: 0;
    background-color: inherit;
    outline: none;
    color: #313334;
    text-align: right;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    padding-right: 0!important;
}

.input input:focus {
    border-width: 0;
}

button {
    border-radius: 8px;
    padding: 12px 35px;
    border: none;
    outline: none;
    transition: all 0.2S ease-in-out;
    width: 100%;
    background: #D71921;
    color: #FFF;
    margin-top: 32px;
}

.input button:active {
    opacity: 70%;
}

.input button span {
    color: #FFF;
    text-align: right;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

input::placeholder {
    font-size: 16px;
}

.rectangle {
    margin-top: -20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}
.error {
    display: flex;
    align-items: center;
    color: #BB392E;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    gap: 4px;
    margin-top: 3px;
}
.error-input {
    border: 1px solid #BB392E !important;
}
.back {
    display: flex;
    justify-content: end;
    margin-left: 2px;
}

.discount-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row-reverse;
    justify-content: center;
}

.discount-box {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 24px;
    border: 2px dashed #999;
    border-radius: 8px;
    background-color: #f8f8f8;
    font-family: Arial, sans-serif;
}

.label {
    color: #222;
    font-weight: bold;
    font-size: 16px;
}

.code {
    color: #000;
    font-weight: bold;
    font-size: 18px;
}

.discount-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: red;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: red;
    cursor: pointer;
}
