/* Carchimp Free Check Styling */
@font-face {
    font-family: 'UKNumberPlate';
    src: url('/wp-content/plugins/carchimp-vehicle-check/fonts/UKNumberPlate.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Home Page Input Styling */
input#wpforms-295-field_1 {
    width: 310px;
    position: relative;
    background: #f7ce46;
    border: 5px solid #f7ce46;
    border-radius: 8px;
    padding: 0 7px 0 58px;
    text-align: center;
    font-size: 50px;
    height: 75px;
    text-transform: uppercase;
    font-family: 'UKNumberPlate', 'Montserrat', sans-serif;
    font-weight: 700;
    outline: none;
    line-height: 50px;
    display: inline-block;
    max-width: 100%;
}

/* GB Flag for Input */
#wpforms-295-field_1-container:before {
    background: #0f4291;
    content: "GB";
    position: absolute;
    border-radius: 8px 0 0 8px;
    font-family: 'UKNumberPlate', 'Montserrat', sans-serif;
    font-size: 16px;
    color: #fff;
    text-align: center;
    padding-top: 35px;
    padding-left: 2px;
    box-sizing: border-box;
    background-image: url(/wp-content/plugins/carchimp-vehicle-check/assets/uk-flag.jpg);
    background-size: 25px 15px;
    background-position: 11px 20px;
    background-repeat: no-repeat;
    z-index: 1;
    width: 45px;
    height: 75px;
}

.carchimp-reg-plate {
    width: auto;
    position: relative;
    background: #f7ce46;
    border: 5px solid #f7ce46;
    border-radius: 8px;
    padding: 0 7px 0 58px;
    font-size: 50px;
    text-transform: uppercase;
    font-family: 'UKNumberPlate', 'Montserrat', sans-serif;
    font-weight: 700;
    outline: none;
    line-height: 65px;
    display: inline-block;
}

.carchimp-reg-plate::before {
    background: #0f4291;
    content: "GB";
    position: absolute;
    left: -5px;
    top: -5px;
    border-radius: 8px 0 0 8px;
    font-family: 'UKNumberPlate', 'Montserrat', sans-serif;
    font-size: 16px;
    color: #fff;
    text-align: center;
    padding-top: 20px;
    padding-left: 2px;
    box-sizing: border-box;
    background-image: url(/wp-content/plugins/carchimp-vehicle-check/assets/uk-flag.jpg);
    background-size: 25px 15px;
    background-position: 11px 20px;
    background-repeat: no-repeat;
    z-index: 1;
    width: 45px;
    height: 75px;
}

.number-plate-input:focus {
    outline: none;
    border-color: #333;
}

.number-plate-input::placeholder {
    color: #333;
}

.free-check-btn {
    width: 350px;
    height: 60px;
}

.wpforms-container {
    text-align: center;
}

/* MOT & Tax Section */
.carchimp-status-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
}

.carchimp-status-box {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 250px;
}

.carchimp-status-box h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Ensure labels align properly */
.carchimp-two-column p {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between label and green box */
    justify-content: flex-start;
}

.mot-status p strong,
.tax-status p strong {
    width: 130px; /* Ensures uniform width for labels */
    text-align: left; /* Aligns labels to the left */
    margin-right: 10px;
}

.status-label {
    padding: 10px 15px;
    font-weight: bold;
    border-radius: 5px;
    color: white;
    min-width: 120px; /* Ensures uniform width for status boxes */
    text-align: center;
}

.green-status {
    background: #2d842e;
}

.red-status {
    background: #dc3545;
}

.green-status,
.red-status {
    width: 200px;
}

.carchimp-column ul {
    list-style: none;
    padding: 0;
}
.carchimp-column ul li {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 16px;
}
.carchimp-column ul li strong {
    text-align: left;
    flex: 1;
}
.carchimp-column ul li span {
    text-align: left;
    flex: 1;
}

.days-left {
    background: #2d842e;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 5px;
}

/* Two-Column Layout */
.carchimp-two-column {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
}

.carchimp-column {
    width: 49%;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.carchimp-column h2 {
    background: #f1f1f1;
    padding: 20px;
    border-radius: 5px 5px 0 0;
}

.carchimp-column h3 {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.carchimp-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Mileage Issues Styling */
.mileage-issues-yes {
    background: #d9534f;
    color: white;
    padding: 5px;
    border-radius: 3px;
}

.mileage-issues-no {
    background: #2d842e;
    color: white;
    padding: 5px;
    border-radius: 3px;
}

/* MOT History Table */

.carchimp-mot-history {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.carchimp-mot-history th,
.carchimp-mot-history td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.carchimp-mot-history th {
    background: #0056b3;
    color: white;
}

.carchimp-mot-pass {
    background: #2d842e;
    color: white;
    padding: 5px;
    border-radius: 3px;
    text-align: center;
}

.carchimp-mot-fail {
    background: #b94a48;
    color: white;
    padding: 5px;
    border-radius: 3px;
    text-align: center;
}

.carchimp-mot-history ul {
    margin-bottom: 10px;
}

.carchimp-mot-history p {
    margin-bottom: 10px;
}

/* Recent Reg Links */
a.recent-reg-link {
    margin: 10px 10px 0px 10px !important;
    display: inline-block;
    font-weight: bold;
}

div.wpforms-container-full .wpforms-form .wpforms-submit-container {
    margin-top: 0 !important;
}

/* Premium Data Teaser Section */
.carchimp-premium-section {
    background: #fff7e6;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0 30px;
    border: 2px solid #fc0;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, .1);
}

.carchimp-premium-section h2 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.premium-data-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 15px;
    text-align: center;
    max-width: 400px;
}

.premium-data-list li {
    font-size: 18px;
    color: #666;
    padding: 8px;
    border-bottom: 1px dashed #ddd;
    display: flex;
    justify-content: space-between;
}

.blurred {
    color: #aaa;
    font-style: italic;
    filter: blur(3px);
    user-select: none;
}

/* Updated Upsell Section Styling */
.carchimp-upsell {
    background: #fffae6;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    margin-top: 20px;
    border: 2px solid #ffcc00;
}

.upsell-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.upsell-text {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
}

.upsell-limited {
    background: #ffe066;
    padding: 3px 5px;
    font-size: 13px;
    font-weight: 700;
    color: #c00;
    display: inline-block;
    border-radius: 5px;
    width: fit-content;
    text-align: center;
}

.upsell-button {
    font-size: 20px;
    padding: 14px 30px;
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    background: #ff6600;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
    text-decoration: none !important;
}

.upsell-button:hover {
    background: #cc5200;
}

.carchimp-header {
    text-align: center;
}

.carchimp-mot-history tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.carchimp-column span.value {
    font-weight: bold;
}

p.dvla-note {
    display: inline-block;
    margin-top: 22px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    input#wpforms-295-field_1 {
        font-size: 2.5rem;
    }

    .carchimp-mot-history tbody tr {
        display: block;
        border: 1px solid #ddd;
        padding: 10px;
        margin-bottom: 10px;
    }

    .carchimp-two-column {
        flex-direction: column;
    }

    .carchimp-column {
        width: 100%;
    }

    .carchimp-status-container {
        flex-direction: column;
        align-items: center;
    }

    .carchimp-status-box {
        width: 100%;
        max-width: 300px;
    }

    .carchimp-mot-history {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .carchimp-mot-history thead {
        display: none; /* Hide headers on small screens */
    }

    .carchimp-mot-history tbody, .carchimp-mot-history tr, .carchimp-mot-history td {
        display: block;
        width: 100%;
        text-wrap: auto;
    }

    .carchimp-mot-history tr {
        margin-bottom: 10px;
        border: 1px solid #ddd;
        padding: 10px;
    }

    .carchimp-mot-history td {
        text-align: left;
        padding: 5px 10px;
        position: relative;
    }

    .carchimp-mot-history td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        background-color: #0056b3; /* Blue background */
        color: white; /* White text */
        padding: 5px 10px;
        margin-bottom: 10px;
    }

    /* Add spacing and border for better readability */
    .carchimp-mot-history td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }
}

.cc-wrap{max-width:980px;margin:0 auto;padding:24px}
.cc-title{text-align:center;margin:0 0 12px 0}
.cc-plate{display:inline-block;margin:6px auto 16px;background:#f2c243;color:#111;font-weight:900;letter-spacing:.06em;padding:.6rem 1rem;border-radius:8px;border:2px solid #caa328}

.cc-upsell{display:flex;gap:16px;align-items:center;justify-content:space-between;background:#fff2d9;border:1px solid #f0d9a6;border-radius:12px;padding:16px 18px;margin:14px 0}
.cc-upsell--muted{background:#f6f7fb;border-color:#e1e5f2}
.cc-upsell__left p{margin:.25rem 0 0 0}
.cc-note{font-size:.85rem;opacity:.8;margin-top:6px}
.cc-btn{display:inline-block;padding:.7rem 1rem;border-radius:10px;background:#e6edf7;border:1px solid #9ec0e6;color:#0b3a79;text-decoration:none;font-weight:800}
.cc-btn--primary{background:#00AEEF;color:#051C2C;border:none}

.cc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}
.cc-card{background:#0e2033;border:1px solid #11355c;border-radius:12px;padding:14px;color:#e9f2ff}
.cc-card__head{font-weight:800;margin-bottom:10px;color:#8fbbe6}
.cc-card--span2{grid-column:span 2}
.cc-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px dashed rgba(255,255,255,.08)}
.cc-row:last-child{border-bottom:0}
.cc-label{opacity:.85}
.cc-value{font-weight:700}

/* Status pills */
.status-ok{background:#1b5e20;color:#fff;padding:.2rem .5rem;border-radius:6px;display:inline-block}
.status-warning{background:#f5a623;color:#111;padding:.2rem .5rem;border-radius:6px;display:inline-block}
.status-expired{background:#d32f2f;color:#fff;padding:.2rem .5rem;border-radius:6px;display:inline-block}
.status-unknown{background:#607d8b;color:#fff;padding:.2rem .5rem;border-radius:6px;display:inline-block}

.cc-list{margin:.4rem 0 0 1rem}
@media (max-width: 720px){
  .cc-grid{grid-template-columns:1fr}
  .cc-card--span2{grid-column:span 1}
  .cc-upsell{flex-direction:column;align-items:flex-start}
}