/* ==========================================
   SAHEM AUTO PARTS SEARCH
   NEW WHITE & RED DESIGN
========================================== */

html body .car-search-box {

    max-width: 1280px;
    margin: 50px auto;
    background: #ffffff !important;
    border-radius: 24px;
    padding: 45px;
    direction: rtl;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);

}

/* الخلفية الحمراء */

.car-search-box::before{

    content:"";

    position:absolute;

    top:0;

    right:0;

    width:140px;

    height:100%;

    background:linear-gradient(180deg,#ff2d2d,#d60000);

    clip-path:polygon(100% 0,100% 100%,0 80%,0 20%);

}

.car-search-box::after{

    content:"";

    position:absolute;

    left:-80px;

    bottom:-80px;

    width:220px;

    height:220px;

    background:rgba(227,6,19,.05);

    border-radius:50%;

}

.car-search-box *{

    position:relative;

    z-index:2;

    box-sizing:border-box;

}

/*==========================
HEADER
===========================*/

.car-search-header{

    text-align:center;

    margin-bottom:35px;

}

.car-search-header h2{

    margin:0;

    font-size:42px;

    font-weight:800;

    color:#222;

}

.car-search-header h2 span{

    color:#e30613;

}

.car-search-header p{

    margin-top:10px;

    color:#666;

    font-size:15px;

    line-height:1.8;

}

/*==========================
GRID
===========================*/

.car-search-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

    margin-bottom:22px;

}

.car-search-grid2{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:20px;

    margin-bottom:30px;

}

/*==========================
FIELDS
===========================*/

.car-search-box .field{

    display:flex;

    flex-direction:column;

}

.car-search-box label{

    color:#222;

    font-size:15px;

    font-weight:700;

    margin-bottom:10px;

}

/*==========================
INPUTS
===========================*/

.car-search-box select,

.car-search-box input{

    width:100%;

    height:58px;

    background:#ffffff;

    border:1px solid #dedede;

    border-radius:12px;

    padding:0 18px;

    color:#333;

    font-size:15px;

    transition:.3s;

    outline:none;

}

.car-search-box input::placeholder{

    color:#999;

}

.car-search-box select option{

    color:#222;

}

.car-search-box select:hover,

.car-search-box input:hover{

    border-color:#bbbbbb;

}

.car-search-box select:focus,

.car-search-box input:focus{

    border-color:#e30613;

    box-shadow:0 0 0 4px rgba(227,6,19,.12);

}

/* OEM */

#oem{

    direction:ltr;

    text-align:right;

}
/*==========================
SEARCH BUTTON
===========================*/

.search-btn-box{

    text-align:center;

}

.car-search-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    min-width:220px;

    height:58px;

    border:none;

    border-radius:12px;

    background:linear-gradient(180deg,#ff2d2d,#d60000);

    color:#fff;

    font-size:18px;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

    box-shadow:0 12px 30px rgba(227,6,19,.25);

}

.car-search-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 18px 35px rgba(227,6,19,.35);

}

.car-search-btn:active{

    transform:translateY(0);

}

/* أيقونة البحث */

.car-search-btn::before{

    content:"";

    font-size:18px;

}

/*==========================
INPUT HOVER
===========================*/

.car-search-box input:hover,

.car-search-box select:hover{

    border-color:#bcbcbc;

}

.car-search-box input:focus,

.car-search-box select:focus{

    background:#fff;

}

/*==========================
SCROLL FIX
===========================*/

.car-search-box select{

    appearance:none;

    -webkit-appearance:none;

    -moz-appearance:none;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23d60000' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5l6.5 6 6.5-6' stroke='%23d60000' stroke-width='2' fill='none'/%3E%3C/svg%3E");

    background-repeat:no-repeat;

    background-position:left 18px center;

    padding-left:45px;

}

/*==========================
RED DECORATION
===========================*/

.car-search-header{

    position:relative;

}

.car-search-header::after{

    content:"";

    width:120px;

    height:3px;

    background:#e30613;

    display:block;

    margin:18px auto 0;

    border-radius:30px;

}

.car-search-box::before{

    box-shadow:0 0 60px rgba(227,6,19,.25);

}

/*==========================
ANIMATION
===========================*/

.car-search-box{

    animation:fadeIn .5s ease;

}

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*==========================
RESPONSIVE
===========================*/

@media(max-width:992px){

.car-search-grid{

grid-template-columns:1fr 1fr;

}

.car-search-grid2{

grid-template-columns:1fr;

}

}

@media(max-width:768px){

html body .car-search-box{

margin:20px 15px;

padding:25px 20px;

border-radius:20px;

}

.car-search-box::before{

display:none;

}

.car-search-header h2{

font-size:30px;

line-height:1.4;

}

.car-search-header p{

font-size:14px;

}

.car-search-grid{

grid-template-columns:1fr;

gap:15px;

}

.car-search-grid2{

grid-template-columns:1fr;

gap:15px;

}

.car-search-box select,

.car-search-box input{

height:54px;

font-size:15px;

}

.car-search-btn{

width:100%;

height:56px;

font-size:17px;

}

}

/*==========================
LARGE SCREEN
===========================*/

@media(min-width:1400px){

html body .car-search-box{

max-width:1350px;

}

}