* {
    box-sizing: border-box;
}

:root {
    --primary-color: #232222;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-size: 1.6rem;
    font-family: 'Inter';
    scroll-behavior: smooth;
}

/* todo: Common */
a {
    text-decoration: none;
}

h2 {
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 10px 0;
    min-width: 98px;
    background: var(--primary-color);
    border-radius: 99px;
    font-weight: 500;
    font-size: 1.6rem;
    text-align: center;
    color: #fff;
}

.container {
    width: 70vw;
    max-width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
}

h2.swal2-title {
    font-size: 2.2rem;
}

#swal2-html-container {
    font-size: 1.5rem;
}

button.swal2-confirm.swal2-styled {
    font-size: 1.7rem;
}


/*todo -----------Hero----------- */
.header {
    height: auto;
    font-family: 'Inter';
}

.img__bg {
    background-image: url('../img/background.jpg');
    height: auto;
    background-size: cover;
    padding: 50px 0;
}

/* Row Check */
.row-check {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 10px;
    padding: 20px 0;
    /* gap: 30px; */
}

.row-check .column-1 {
    width: 30%;
}

.row-check .column-1 img {
    width: 45%;
}

.row-check .column-2 {
    display: flex;
    flex-direction: column;
    max-width: 35%;
    width: 35%;
}

.row-check .column-2 p {
    color: #ffcc00;
    line-height: 2.5rem;
}

.row-check .column-2 .form-check {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.column-2 .form-check span {
    color: #fff;
    margin-top: 15px;
    font-weight: 600;
}

.column-2 .form-check .input__check {
    width: 90%;
    height: 40px;
    border: 0.5px solid #232222;
    border-radius: 8px;
    margin: 10px 0;
    padding-left: 10px;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-check .input__check::placeholder {
    color: #666;
    font-weight: 600;
    font-size: 1.6rem;
}

.row-check .column-2 .btn__check {
    margin-top: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 500ms;
    font-weight: 600;
}

.column-2 .btn__check:hover {
    transform: translateY(-0.5rem);
}

/* Check Warranty Not correct */
.column-2 p.not__correct {
    margin-top: 10px;
    color: red;
    opacity: 0;
    visibility: hidden;
    height: 0;
}

.column-2 p.not__active {
    margin-top: 10px;
    color: red;
    opacity: 0;
    visibility: hidden;
    height: 0;
}

/* todo: ================= result__check================ */
.result__check {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Inter';
}

.result__check img {
    height: 300px;
    object-fit: cover;
}

.checking__info-list {
    display: flex;
    text-align: left;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    width: 80%;
}

.checking__info-list tr {
    color: #777;
}

.checking__info-list tr th {
    font-weight: 600;
    vertical-align: middle;
    padding-left: 10px;
    width: 32%;
}

.checking__info-list tr:nth-child(even) {
    background-color: #ebebeb;
}

.checking__info-list tr td {
    vertical-align: middle;
    padding: 10px 0 10px 20px;
}

.checking__info-list td .status {
    display: block;
    margin-top: 10px;
    padding-right: 10px;
    color: green;
    line-height: 1.2;
}


/* -------Column-3------------ */
.row-check .column-3 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    width: 30%;
    color: #fff;
    margin-left: 30px;
    line-height: 1.4;
    padding-left: 20px;
}

.row-check .column-3 h4 {
    text-align: center;
    font-size: 2rem;
    color: #ffcc00;
    font-weight: 600;
}

.row-check .column-3 p {
    text-align: justify;
}



/*todo --------------Main------------- */


/*-----------Warranty Policy-------------  */
.warranty__row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.warranty__guide {
    width: 50%;
}

.warranty__guide p {
    margin: 20px 0;
    line-height: 24px;
    color: #444;
    font-size: 1.5rem;
    text-align: justify;
}

.warranty__guide strong {
    font-weight: 600;
}

/* todo: block-register__image */
.block-register__image {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    width: 50%;
}

.warranty__register {
    width: 50%;
    min-width: 230px;
    margin-top: 20px;
}

.warranty__register form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.warranty__register h3 {
    font-size: 2rem;
    font-weight: 500;
    position: relative;
    display: block;
    margin: 0 auto;
}

.warranty__register h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 1px;
    background-color: #ccc;
}

.warranty__col {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.warranty__register label {
    font-weight: 500;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.warranty__register input {
    font-size: 1.6rem;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding-left: 8px;
}

.warranty__register select {
    display: block;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding-left: 8px;
    font-size: 1.5rem;
    font-weight: 500;
}

.warranty__col.country {
    margin-top: 0;
}

.btn__submit {
    cursor: pointer;
    width: 40%;
}

.warranty__register .notify {
    margin-top: 10px;
}

.warranty__register .notify-success {
    color: rgb(0 157 13);
    font-weight: 500;
    display: none;
}

.warranty__register .notify-fail {
    color: red;
    display: none;
    font-weight: 500;
}

/* todo: Warranty image */

.warranty__image {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.warranty__image span {
    color: #777;
    font-weight: 600;
}


/* -----------------------------E2pen Description---------------------- */

.e2pen__des {
    background-color: #f3f3f3;
    margin-top: 50px;
    padding: 20px 0;
}

.desc__col-1 p {
    margin: 20px 0;
    line-height: 24px;
    color: #444;
    font-size: 1.5rem;
    text-align: justify;
}

.desc__row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.desc__col-1 {
    width: 60%;
}

.desc__col-2 {
    width: 40%;
    
}

.desc__col-2 img {
    width: 100%;
    object-fit: cover;
}


/* todo: =======================Policy ===================*/
.policy {
    margin: 40px 0;
    margin-left: auto;
    margin-right: auto;
    width: 50%;   
}

.policy__cover {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.policy__cover h4 {
    color: #777;
    font-weight: 600;
}

.policy__cover p {
    color: #777;
    line-height: 1.6;
}

.policy__desc {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* todo --------------- table info check warranty ------------- */
.info-table {
    width: 70%;
    border-collapse: collapse;
    margin: 10px 0;
    border-radius: 4px;
    overflow: hidden;
}

.info-table td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: middle;
    /* Căn giữa theo chiều dọc */
    line-height: 2;
    color: #ccc;
}

.info-table tr:nth-child(even) {
    background-color: #2a2832;
}

.info-table tr:nth-child(even) td {
    color: #cac8cf;
}


.info-table td:first-child {
    font-weight: 500;
}

.warranty__info {
    font-weight: 500;
    color: #51d45c
}

/* todo: Popup NotActive */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    position: relative;;
    background-color: #fefefe;
    margin: 12% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 100%;
    max-width: 360px;
}

.close {
    position: absolute;
    color: #aaa;
    font-size: 26px;
    font-weight: bold;
    top: 2px;
    right: 8px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.warranty__register.warranty__register-2 {
    width: 86%;
    margin: 0 auto;
}

span.registerForm__required {
    color: #333;
    font-weight: 600;
    text-align: justify;
    line-height: 1.4;
    font-style: italic;
}


/* todo ----------------Responsive---------------- */

/* todo: PC 1200px --> 1399px */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .container {
        width: 80vw;
        max-width: calc(100% - 48px);
        margin-left: auto;
        margin-right: auto;
    }

    .warranty__register {
        width: 22%;
    }

    .checking__info-list {
        width: 90%;
    }

    .row-check .column-1 {
        display: flex;
        align-items: center;
        justify-content: center;
    }

}

/* todo: PC 992px --> 1199px */
@media screen and (min-width: 992px) and (max-width: 1199px) {

    .checking__info-list {
        width: 90%;
    }

    .row-check .column-1 {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .row-check .column-1 img {
        width: 55%;
    }

    .column__left p {
        font-size: 2.2rem;
        margin-top: 10px;
    }

    .row-check {
        padding: 30px 0;
    }

    .feature__list {
        gap: 15px;
    }

    .feature__item {
        padding: 0;
        height: 300px;
    }

    .feature__item .feature__body {
        padding: 10px 10px;
    }

    .item__title {
        font-size: 1.5rem;
    }

    .item__price span:nth-child(1) {
        font-size: 1.3rem;
    }

    .item__price span {
        font-size: 1.5rem;
    }

    .warranty__register h3 {
        font-size: 1.7rem;
    }

    .question {
        padding: 25px 0;
    }

}

/* Tablet & Mobile */
@media screen and (max-width: 991px) {
    .row__check {
        justify-content: space-between;
    }

    .row-check .column-1 {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .row-check .column-1 img {
        width: 60%;
    }

    .desc__col-1 {
        width: 100%;
    }

    .desc__col-2 {
        display: none;
    }

    .policy {
        width: 100%;
    }
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .navbar {
        padding: 18px 0;
    }

    .navbar .logo {
        width: 168px;
    }

    .row-check .column-1 {
        padding-top: 30px;
    }

    .row-check .column-3 p {
        font-size: 1.4rem;
    }

    .checking__info-list {
        width: 100%;
        line-height: 1.2;
    }

    .column__left {
        width: 40%;
    }

    .column__left p {
        margin-top: 20px;
    }

    .feature__list {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .feature__item {
        height: 330px;
    }

    .warranty__row {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .warranty__guide {
        width: 100%;
    }


    .block-register__image {
        justify-content: center;
        gap: 40px;
        width: 100%;
    }

    .warranty__register {
        width: 40%;
    }

    .warranty__image {
        width: 40%;
    }

    .policy {
        width: 100%;
    }

    .desc__col-1 {
        width: 100%;
    }

    .desc__col-1 p {
        font-size: 1.6rem;
    }

    .desc__col-2 {
        display: none;
    }

}


/* Mobile */
@media screen and (max-width: 767px) {
    .row-title {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .column__left {
        width: 100%;
        /* margin-left: 30px; */
    }

    .column__right {
        width: 100%;
    }

    .column__right img {
        width: 400px;
    }

    .row-check {
        flex-direction: column;
        gap: 20px;
    }

    .row-check .column-1,
    .row-check .column-2,
    .row-check .column-3 {
        width: 100%;
    }

    .row-check .column-1 img {
        width: 50%;
    }

    .row-check .column-2 {
        max-width: 100%;
    }

    .row-check .column-3 {
        margin-left: 0;
        padding-left: 0;
    }

    .checking__info-list {
        width: 95%;
    }

    .warranty__row {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .warranty__guide {
        width: 100%;
    }

    .warranty__register {
        width: 70%;
    }

    .warranty__register input.btn {
        margin: 0 auto;;
    }

    .block-register__image {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .warranty__image {
        width: 100%;
    }

    .modal-content {
        margin: 30% auto;
        max-width: 350px;
    }

}