/* AutoChipper kentekenzoeker - correctie v15 */

@font-face {
    font-family: "Kenteken";
    src: url("../fonts/Kenteken.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}


#public-brand-page {
    position: relative;
    width: 100%;
    text-align: center;
}

#public-brand-page #brand-header-container {
    position: relative;
    top: auto;
    height: auto;
    line-height: normal;
    padding: 18px 15px 16px;
    box-sizing: border-box;
}

#public-brand-page #brand-header-container .font-default {
    margin: 0;
    font-weight: 600;
}

#public-brand-page #brand-content-container {
    margin-top: 0;
    padding-top: 5px;
}

#kentekenzoeker-container {
    box-sizing: border-box;
    width: 100%;
    padding: 34px 20px 38px;
    text-align: center;
}

.kentekenzoeker-title {
    margin: 0 0 18px;
    color: #ffffff;
    font-family: poppins, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.kentekenzoeker-subtitle {
    display: none;
    margin: 0;
    color: #b8b8b8;
    font-family: poppins, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

#kentekenzoeker-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.kentekenplaat {
    position: relative;
    display: block;
    width: min(480px, calc(100vw - 76px));
    max-width: 100%;
    margin: 0 auto 22px;
    cursor: text;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible;
    container-type: inline-size;
}

.kentekenplaat--image,
.kentekenplaat--image::before,
.kentekenplaat--image::after {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.kentekenplaat--image {
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.kentekenplaat-bg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.kentekenplaat-inputwrap {
    position: absolute;
    z-index: 3;
    top: 8%;
    bottom: 8%;
    left: 10.8%;
    right: 1%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}

.kentekenplaat:focus-within::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    box-shadow: 0 0 0 3px rgba(0,174,239,0.28);
    pointer-events: none;
}

#kentekenzoeker-form #kenteken-invoer {
    position: relative;
    z-index: 4;
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    color: #111111 !important;
    text-align: center !important;
    text-transform: uppercase;
    font-family: "Kenteken", "Arial Narrow", "Roboto Condensed", Arial, sans-serif !important;
    /* 62px bij een plaatbreedte van 407px, exact volgens de referentieplaat. */
    font-size: clamp(46px, 7vw, 79px) !important;
    font-size: 15.23cqw !important;
    font-weight: 400 !important;
    font-synthesis: none !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    caret-color: #111111;
}

#kentekenzoeker-form #kenteken-invoer::placeholder {
    color: rgba(17,17,17,0.32);
    opacity: 1;
}

#kentekenzoeker-knop {
    min-width: 300px;
    max-width: 100%;
    padding: 15px 26px;
    border: 1px solid #00aeef;
    border-radius: 8px;
    background: #13ace7;
    color: #07131a;
    font-family: poppins, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0;
    box-shadow: 0 10px 26px rgba(0, 174, 239, 0.25);
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    margin: 0 auto;
}

#kentekenzoeker-knop:hover,
#kentekenzoeker-knop:focus {
    background: #0b9ad1;
    color: #061018;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 174, 239, 0.28);
}

#kentekenzoeker-knop[disabled] {
    cursor: wait;
    opacity: 0.62;
    transform: none;
}

.kentekenzoeker-status {
    display: none;
    width: 620px;
    max-width: 100%;
    margin: 24px auto 0;
    box-sizing: border-box;
    color: #ffffff;
    font-family: poppins, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

.kentekenzoeker-status.is-visible { display: block; }
.kentekenzoeker-status.is-error {
    padding: 13px 16px;
    border: 1px solid rgba(220, 68, 68, 0.68);
    border-radius: 6px;
    background: rgba(130, 23, 23, 0.22);
}
.kentekenzoeker-vehicle {
    padding: 16px 18px;
    border: 1px solid rgba(0, 174, 239, 0.45);
    border-radius: 7px;
    background: rgba(4, 26, 36, 0.78);
    text-align: left;
}
.kentekenzoeker-vehicle strong { color: #00aeef; }
.kentekenzoeker-candidates { display: grid; gap: 9px; margin-top: 13px; }
.kentekenzoeker-candidate {
    display: block;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    text-align: left;
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease;
}
.kentekenzoeker-candidate:hover,
.kentekenzoeker-candidate:focus {
    border-color: #00aeef;
    background: rgba(0, 174, 239, 0.12);
    color: #ffffff;
}
.kentekenzoeker-candidate small { display: block; margin-top: 3px; color: #b8b8b8; }
.kentekenzoeker-manual-link { display: inline-block; margin-top: 13px; color: #00aeef; text-decoration: underline; }


@media (min-width: 610px) {
    .kentekenzoeker-title {
        font-size: 19px;
    }
}

@media (min-width: 800px) {
    .kentekenzoeker-title {
        font-size: 22px;
    }
}

@media (max-width: 620px) {
    #kentekenzoeker-container { padding: 30px 14px 36px; }
    #kentekenzoeker-form { gap: 0; }
    .kentekenzoeker-title { font-size: 16px; margin-bottom: 16px; }
    .kentekenzoeker-subtitle { margin-bottom: 18px; }
    .kentekenplaat {
        width: min(340px, calc(100vw - 42px));
        max-width: calc(100vw - 42px);
    }
    #kentekenzoeker-knop {
        min-width: 0;
        width: auto;
        max-width: 290px;
        font-size: 14px;
        line-height: 1.15;
        padding: 14px 18px;
        margin: 8px auto 10px;
        box-sizing: border-box;
    }
    #public-brand-page #brand-header-container { padding: 18px 15px 16px; }
}

@media (max-width: 420px) {
    #kentekenzoeker-form { gap: 0; }
    .kentekenzoeker-title { margin-bottom: 15px; }
    .kentekenplaat {
        width: min(312px, calc(100vw - 36px));
        max-width: calc(100vw - 36px);
    }
    #kentekenzoeker-knop {
        max-width: 270px;
        padding: 13px 16px;
        font-size: 13px;
    }
}
