/*
    Ohio BMV Online Services - Exact Replica CSS
    Based on the official Ohio BMV website styles
*/

:root {
    --white: white;
    --black: black;
    --lt-gray: #f6f6f6;
    --med-gray: #EFEFEF;
    --drk-gray: #d9d9d9;
    --bmv-red: #cf152d;
    --bmv-blue: #3d7aa9;
    --lt-blue: #6183e9;
    --drk-blue: #183eaf;
    --alert-red: #be0f11;
    --bold: 700;
    --semi: 600;
    --reg: 400;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.shift {
    margin: 0 !important;
    padding-left: 9rem !important;
}

body {
    margin: 0px !important;
    padding: 0px !important;
    font-size: 16px;
    font-weight: var(--reg);
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--black);
    background: var(--med-gray) !important;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover, a:focus {
    color: #23527c;
}

ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Official Header Banner */
.officialheader {
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.offical-site-Header {
    padding: 6px 20px;
}

.official-site-content {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #333;
}

.official-site-content span {
    margin-right: 5px;
}

.how-you-know {
    color: #0066cc;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.how-you-know i {
    font-size: 8px;
}

/* Skip to Content */
.skip-to-content-container {
    position: absolute;
}

.skip-to-content-link {
    position: absolute;
    left: -999px;
    top: -999px;
}

.skip-to-content-link:focus {
    left: 0;
    top: 0;
    padding: 6px;
    background: #fff;
    border: 1px solid #990000;
    z-index: 9999;
}

/* Top Navigation */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--white);
    border-bottom: 1px solid #e5e5e5;
}

.logo-container {
    display: flex;
    align-items: center;
}

.mobile-nav-trigger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
}

.top-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-nav-list--primary {
    gap: 5px;
}

.top-nav-list-item {
    list-style: none;
}

.top-nav-list-item-link {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    transition: color 0.2s;
}

.top-nav-list-item-link:hover {
    color: var(--bmv-red);
}

.top-nav-list--secondary {
    gap: 10px;
}

.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--black);
    transition: background 0.2s;
}

.nav-icon-link:hover {
    background: var(--lt-gray);
    color: var(--black);
}

.nav-icon-link.user-icon {
    background: #4caf50;
    color: white;
}

.nav-icon-link.user-icon:hover {
    background: #43a047;
    color: white;
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--bmv-red);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Homepage Banner */
.homepage-banner {
    position: relative;
    display: flex;
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    margin-top: -0.75rem;
}

.clip-mask {
    display: flex;
    align-items: flex-start;
    width: 100%;
    height: 300px;
    clip-path: ellipse(83% 103% at 41% -9%);
    background-color: var(--bmv-blue);
    background-repeat: no-repeat;
    background-image: url('./Ohio BMV Online Services_files/header-photo-dk.jpg');
    background-position: 100% 0%;
    background-size: cover;
    z-index: 1;
}

.red-swoosh {
    position: absolute;
    right: 0;
    width: 95%;
    height: 300px;
    clip-path: ellipse(76% 62% at 52% 32%);
    background: var(--bmv-red);
    z-index: 0;
}

.banner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 500px;
    margin: 30px 0 0 40px;
    margin-top: 30px;
}

.banner-title {
    position: relative;
    font-size: 48px;
    line-height: 51px;
    font-weight: 400;
    color: white;
    margin-bottom: 30px;
    text-shadow: 2px 2px 6px #000000;
}

.banner-title::after {
    content: '';
    position: absolute;
    left: -26px;
    top: -14px;
    width: 45px;
    height: 45px;
    clip-path: ellipse(16% 16% at 19% 24%);
    background: var(--bmv-red);
    z-index: 0;
}

.banner-title > span {
    font-weight: 700;
}

.banner-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: white;
    margin-bottom: 10px;
}

/* Home Search */
.home-search {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.home-search > .search-container {
    position: relative;
    z-index: 0;
}

input.search-field {
    width: 340px;
    height: 40px;
    padding: 0 20px 0 50px;
    border: 0;
    border-radius: 30px;
    margin: 10px 5px 0 0;
    outline: none;
    font-size: 16px;
}

input.search-field::placeholder {
    font-size: 16px;
    color: #999;
}

.home-search > .search-container::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f002";
    position: absolute;
    top: 20px;
    left: 18px;
    width: 16px;
    height: 16px;
    z-index: 1;
    color: #666;
}

.search-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 130px;
    height: 40px;
    border-radius: 28px;
    color: white;
    font-size: 18px;
    font-weight: 400;
    margin: 10px 10px 0 0;
    background: var(--bmv-red);
    transition: background 0.2s;
}

.search-btn:hover {
    background: #b01226;
    color: white;
}

/* Title Large */
.title-lrg {
    font-size: 34px;
    font-weight: 700;
    margin: 40px 40px 20px;
    line-height: 36px;
    color: var(--black);
}

/* Tile Row / Grid */
.tile-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Tiles */
a.tile, button.tile {
    display: block;
    position: relative;
    width: 32%;
    min-height: 230px;
    padding: 30px;
    margin: 10px;
    border-radius: 4px;
    background: white;
    overflow: hidden;
    transition: all .3s ease-in-out;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(33.333% - 20px);
    border: 1px solid var(--med-gray);
    text-align: left;
}

a.tile::after, button.tile::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--bmv-blue);
    transition: all .25s ease-in-out;
}

a.tile:hover::after, button.tile:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--bmv-blue);
}

a.tile:hover, button.tile:hover {
    text-decoration: none;
    box-shadow: 0px 0px 30px 0px rgba(0,0,0, 0.05);
}

.tile-icon {
    position: absolute;
    top: 32px;
    right: 26px;
}

.text-dark {
    color: #333 !important;
}

a.tile > .title, button.tile > .title {
    max-width: 230px;
    font-size: 24px;
    color: black;
    font-weight: 700;
    line-height: 28px;
    padding: 0 0 15px 0;
}

a.tile > .title::after, button.tile > .title::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 10px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background: var(--bmv-red);
    opacity: 0;
    transition: all .25s ease-in-out;
}

.tile-desciption {
    color: black;
    font-size: 16px;
    line-height: 1.5;
}

.tile-desciption ul {
    margin-top: 10px;
}

.tile-desciption ul li {
    margin-bottom: 5px;
}

/* Content Band Full */
.content-band-full {
    width: 100%;
    margin: 0;
    background: var(--med-gray);
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

/* Register Ribbon */
.register-ribbon {
    display: flex;
    align-items: center;
    padding: 5px 50px;
}

.reg-img-box {
    position: relative;
    width: 178px;
    height: 145px;
    z-index: 0;
}

.reg-img-box::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 28px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--med-gray);
    box-shadow: 0px 0px 60px 0px rgba(0,0,0, 0.2);
    z-index: 0;
}

.reg-img {
    position: absolute;
    z-index: 2;
}

.reg-text-box {
    width: 240px;
    font-weight: 700;
    font-size: 30px;
    line-height: 28px;
    margin: 0 50px;
    margin-right: 25px;
    color: var(--black);
}

.reg-text-box > span {
    font-weight: 600;
    font-size: 22px;
    line-height: 30px;
}

a.reg-btn-outline, a.reg-btn-outline:hover {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    margin: 0 10px;
    border-radius: 24px;
    border: 4px solid var(--bmv-red);
    color: var(--bmv-red);
    font-weight: 600;
    background: transparent;
    transition: all 0.2s;
}

a.reg-btn-outline:hover {
    background: var(--bmv-red);
    color: white;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .clip-mask {
        background-color: var(--bmv-blue);
    }
    
    a.tile, button.tile {
        flex-basis: 45%;
    }
}

@media (max-width: 991.98px) {
    .top-nav {
        flex-wrap: wrap;
    }
    
    .top-nav-list--primary {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e5e5e5;
        flex-wrap: wrap;
    }
    
    a.tile, button.tile {
        flex-basis: 100%;
        margin: 10px 20px;
    }
    
    .register-ribbon {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .reg-text-box {
        margin: 20px 0;
    }
}

@media (max-width: 575px) {
    .clip-mask {
        background: var(--bmv-blue);
        height: 400px;
    }

    .red-swoosh {
        height: 396px;
        clip-path: ellipse(111% 60% at 26% 23%);
    }

    .banner-content {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .banner-title {
        font-size: 32px;
        line-height: 36px;
    }

    .banner-title::before {
        content: '';
        position: absolute;
        left: 0px;
        top: -10px;
        width: 35px;
        height: 35px;
        clip-path: ellipse(16% 16% at 19% 24%);
        background: var(--bmv-red);
        z-index: 0;
    }

    .banner-title::after {
        display: none;
    }

    input.search-field {
        width: 100%;
    }

    .home-search {
        flex-direction: column;
        align-items: stretch;
    }

    .search-btn {
        width: 100%;
        margin: 10px 0 0 0;
    }

    .title-lrg {
        font-size: 28px;
        margin: 30px 20px 15px;
    }

    .mobile-nav-trigger {
        display: block;
    }

    .top-nav-list--primary {
        display: none;
    }

    .top-nav-list--primary.active {
        display: flex;
        flex-direction: column;
    }
}