/*
==========================================
404 Page
==========================================
*/

.error-404-page{
    padding:80px 0;
}

/*
==========================================
404 Layout
==========================================
*/

.error-404{
    max-width:760px;
    margin:0 auto;
    padding:60px 40px;
    text-align:center;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

/*
==========================================
Error Code
==========================================
*/

.error-code{
    display:block;
    margin-bottom:20px;
    font-size:120px;
    font-weight:800;
    line-height:1;
    color:#d50000;
}

/*
==========================================
Title
==========================================
*/

.error-404 .page-title{
    margin:0 0 20px;
    font-size:38px;
    font-weight:700;
    line-height:1.3;
    color:#222;
}

/*
==========================================
Description
==========================================
*/

.error-404 .page-content p{
    max-width:560px;
    margin:0 auto 35px;
    color:#666;
    font-size:17px;
    line-height:1.8;
}

/*
==========================================
Search Form
==========================================
*/

.error-404 .search-form{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin-bottom:35px;
    flex-wrap:wrap;
}

.error-404 .search-field{
    flex:1;
    min-width:260px;
    padding:14px 18px;
    border:1px solid #d1d5db;
    border-radius:8px;
    font-size:16px;
    transition:.3s ease;
}

.error-404 .search-field:focus{
    outline:none;
    border-color:#d50000;
    box-shadow:0 0 0 3px rgba(213,0,0,.10);
}

.error-404 .search-submit{
    padding:14px 28px;
    border:none;
    border-radius:8px;
    background:#d50000;
    color:#fff;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s ease;
}

.error-404 .search-submit:hover{
    background:#b00000;
    transform:translateY(-2px);
}

/*
==========================================
Action Button
==========================================
*/

.error-actions{
    margin-top:20px;
}

.home-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 30px;
    background:#111;
    color:#fff;
    text-decoration:none;
    font-weight:600;
    border-radius:8px;
    transition:.3s ease;
}

.home-button:hover{
    background:#d50000;
    color:#fff;
    transform:translateY(-2px);
}

/*
==========================================
Accessibility
==========================================
*/

.home-button:focus-visible,
.error-404 .search-field:focus-visible,
.error-404 .search-submit:focus-visible{
    outline:2px solid #d50000;
    outline-offset:3px;
}

/*
==========================================
Responsive
==========================================
*/

@media (max-width:768px){

    .error-404{
        padding:50px 30px;
    }

    .error-code{
        font-size:90px;
    }

    .error-404 .page-title{
        font-size:32px;
    }

}

@media (max-width:576px){

    .error-404-page{
        padding:50px 0;
    }

    .error-404{
        padding:35px 20px;
    }

    .error-code{
        font-size:72px;
    }

    .error-404 .page-title{
        font-size:26px;
    }

    .error-404 .page-content p{
        font-size:15px;
    }

    .error-404 .search-form{
        flex-direction:column;
    }

    .error-404 .search-field,
    .error-404 .search-submit{
        width:100%;
    }

    .home-button{
        width:100%;
    }

}