/* ===========================
   Reset & Base Styles
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo', sans-serif;
    font-weight: 400;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ===========================
   Header / Logo Section
   =========================== */

#logowrap {
    background: #002868;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

#logo h3 {
    font-family: 'Exo', sans-serif;
    font-size: 2rem;
    margin-bottom: 0px;
    line-height: 1.4;
    text-align: center;
}

.site-logo {
    max-width: 170px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
}

#logo p {
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
}

#logo .phone-numbers {
    font-size: 1.8rem;
    margin: 15px 0;
    margin-top: 10px;
}

#logo .phone-numbers a {
    display: inline-block;
    margin: 0 10px;
}

#logo .phone-numbers a:first-child {
    margin-left: 0;
}

#logo a {
    color: #f1d600;
    font-weight: bold;
}

#logo a:hover {
    color: #fff;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

#logo .mobile-only h3 {
    font-size: 1.4em;
    text-align: center;
}

/* ===========================
   Navigation Menu
   =========================== */

#navwrap {
    background-color: #002868;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.nav-menu li a {
    color: #fff;
    font-weight: 600;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    background-color: rgba(255,255,255,0.1);
    color: #f1d600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #002868;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    float: right;
    margin-bottom: 20px;
}

.mobile-nav-menu {
    list-style: none;
    padding-top: 40px;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu li a {
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li.active a {
    background-color: rgba(255,255,255,0.1);
    color: #f1d600;
}

/* ===========================
   Banner Section
   =========================== */

#bannerwrap {
    background-color: #fff;
    padding: 30px 0;
    margin-bottom: 30px;
}

.banner-title h3 {
    text-align: center;
    color: #002868;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* Flexslider Styling */
.flexslider {
    margin: 0;
    background: #fff;
    border: none;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.flexslider .slides {
    margin: 0;
    padding: 0;
}

.flexslider .slides li {
    position: relative;
}

.flexslider .slides img {
    width: 100%;
    display: block;
}

/* Slider Caption Overlay */
.slide-caption {
    position: absolute;
    bottom: 0; /* 30px */
    left: 0; /* 30px */
    background: rgba(0, 0, 0, 0.1);
    color: #ed0400;
    padding: 1rem 1.5rem;
    font-family: 'Arial', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    border-radius: 5px;
    text-align: left;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    -webkit-text-stroke: 0.5px #fff; /* width and color */
    letter-spacing: -2px;
}

.flex-control-nav {
    position: absolute;
    bottom: 15px;
    right: 30px;
    width: auto;
    text-align: right;
    z-index: 10;
}

.flex-control-paging li {
    display: inline-block;
    margin: 0 5px;
}

.flex-control-paging li a {
    background: rgba(255,255,255,0.5);
    width: 12px;
    height: 12px;
    display: block;
    border-radius: 50%;
    cursor: pointer;
    text-indent: -9999px;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    color: transparent;
}

.flex-control-paging li a span {
    display: none !important;
}

.flex-control-paging li a.flex-active {
    background: #f1d600;
}

/* ===========================
   Main Content Section
   =========================== */

#mainWrap {
    background-color: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.main-col {
    padding-right: 20px;
}

.main-col article header h2 {
    color: #002868;
    font-size: 48px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.feature-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-number {
    background: #002868;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.feature-item h3 {
    color: #333;
    font-size: 25px;
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   Cash 4 Cars Page Layout
   =========================== */

.cash-page-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 30px;
}

.cash-page-sidebar {
    text-align: center;
}

.cash-page-sidebar img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cash-page-sidebar h4 {
    color: #002868;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.cash-page-main h3 {
    color: #333;
    font-size: 25px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ===========================
   PPI Page Styling
   =========================== */

.ppi-image {
    margin-top: 30px;
    text-align: center;
}

.ppi-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ===========================
   Sidebar
   =========================== */

.sidebar {
    position: relative;
}

.sidebar-widget {
    background: #002868;
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    border: 1px solid #658E15;
    border-top-right-radius: 0px;
}

/* Corner fold effect - matching original theme */
.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 16px 16px 0;
    border-color: transparent #f5f5f5 #658E15 transparent;
    z-index: 2;
}

/* Phone icon in background */
.sidebar-widget::after {
    content: '\f095';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2.5em;
    z-index: 1;
}

.sidebar-widget h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.widget-content {
    text-align: center;
}

.phone-number {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.phone-number a {
    color: #fff;
    font-weight: bold;
}

.phone-number a:hover {
    color: #f1d600;
}

.phone-number i {
    margin-right: 8px;
}

.services-list {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-top: 20px;
}

/* ===========================
   Footer
   =========================== */

#footerwrap {
    background: #002868;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-content a {
    color: #f1d600;
}

.footer-content a:hover {
    color: #fff;
}

.footer-content h4 {
    margin-top: 20px;
}

/* ===========================
   Social Media Fixed Bar
   =========================== */

.social-wrap {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    min-height: 0;
    margin-top: 120px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.social-wrap a {
    background: #002868;
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% 0 0 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
}

.social-wrap a:hover {
    width: 65px;
}

.social-wrap a:nth-child(1):hover {
    background: #1877f2;
}

.social-wrap a:nth-child(2):hover {
    background: #000000;
}

.social-wrap a:nth-child(3):hover {
    background: #FF0000;
}

.social-wrap a:nth-child(4):hover {
    background: #e4405f;
}

/* ===========================
   Back to Top Button
   =========================== */

#toTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ed0400;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#toTop:hover {
    background: #003d99;
    transform: translateY(-5px);
}

#toTop.visible {
    display: flex;
}

#toTop i {
    font-size: 1.2rem;
}

#toTop span {
    display: none;
}

.multilineh h3 {
    margin: 10px 0;
    padding: 0;
    line-height: 1.4;
}

/* ===========================
   Cookie Consent Customization
   =========================== */

.cc-window {
    font-family: 'Open Sans', sans-serif;
}

.cc-btn {
    border-radius: 5px;
}

/* ===========================
   Utility Classes
   =========================== */

.text-primary {
    color: #002868;
}

/* ===========================
   Responsive Design
   =========================== */

@media screen and (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar-widget {
        position: relative;
        top: 0;
    }

    .main-col {
        padding-right: 0;
    }

    .cash-page-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    #logo h3 {
        font-size: 1.2rem;
    }

    .site-logo {
        max-width: 180px;
    }

    .banner-title h3 {
        font-size: 1.4rem;
    }

    .slide-caption {
        position: static;
        bottom: auto;
        left: auto;
        background: #002868;
        color: #fff;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        text-align: center;
        border-radius: 0;
        text-shadow: none;
        -webkit-text-stroke: 0;
        letter-spacing: normal;
        max-width: 100%;
    }

    .flexslider .slides li {
        display: flex;
        flex-direction: column;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .feature-item {
        flex-direction: column;
        gap: 10px;
    }

    .feature-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .feature-item h3 {
        font-size: 1rem;
    }

    .main-col article header h2 {
        font-size: 1.5rem;
    }

    .social-wrap {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        padding: 10px 0;
        background: rgba(0, 40, 104, 0.95);
        z-index: 999;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        gap: 20px;
        margin-top: 0;
    }

    .social-wrap a {
        border-radius: 50%;
        width: 40px;
        height: 40px;
        position: static;
        font-size: 1.2rem;
    }

    .social-wrap a:hover {
        width: 40px;
        right: 0;
        transform: scale(1.1);
    }

    body {
        padding-top: 60px;
    }

    #toTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    #logo h3 {
        font-size: 1rem;
    }

    .site-logo {
        max-width: 150px;
    }

    .banner-title h3 {
        font-size: 1.2rem;
    }

    .slide-caption {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .phone-number {
        font-size: 1.2rem;
    }

    .services-list {
        font-size: 1rem;
    }

    .footer-content p {
        font-size: 0.9rem;
    }
}

/* ===========================
   Animations
   =========================== */

@keyframes fadeInUpBig {
    from {
        opacity: 0;
        transform: translate3d(0, 2000px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRightBig {
    from {
        opacity: 0;
        transform: translate3d(2000px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ===========================
   Print Styles
   =========================== */

/* ========================================
   Contact Page Styles
   ======================================== */

.contact-info {
    background: #f8f9fa;
    padding: 25px;
    border-left: 4px solid #002868;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
}

.contact-info p {
    margin: 0 0 15px 0;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info a {
    color: #002868;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    color: #f1d600;
}

.contact-form-wrapper {
    margin-bottom: 40px;
}

.contact-form-wrapper h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #002868;
}

#form-message {
    margin-bottom: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 16px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#contact-form {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #002868;
    box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#recaptcha-notice {
    font-size: 13px;
    color: #666;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.submit-btn {
    background: #002868;
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.submit-btn:hover {
    background: #f1d600;
    color: #002868;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.services-section {
    background: #f8f9fa;
    padding: 30px;
    border-left: 4px solid #002868;
    margin-top: 40px;
}

.services-section h3 {
    font-size: 24px;
    color: #002868;
    margin-bottom: 20px;
    font-weight: 700;
}

.services-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.services-grid li {
    padding: 12px 15px;
    background: #ffffff;
    border-left: 3px solid #f1d600;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Mobile Responsiveness */
@media only screen and (max-width: 768px) {
    .contact-info {
        padding: 20px;
        font-size: 15px;
    }

    #contact-form {
        padding: 20px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 14px;
    }

    .submit-btn {
        width: 100%;
        padding: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .services-section {
        padding: 20px;
    }
}

@media only screen and (max-width: 480px) {
    .contact-form-wrapper h3 {
        font-size: 16px;
    }

    .services-section h3 {
        font-size: 20px;
    }

    .services-grid li {
        font-size: 14px;
        padding: 10px 12px;
    }
}

@media print {
    .social-wrap,
    #toTop,
    #navwrap,
    .mobile-menu-overlay {
        display: none;
    }
}
