/* =========================================
   RESET
   ========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-width: 320px;
}

body {
    background: #ffffff;
    color: #111111;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


/* =========================================
   APP
   ========================================= */

.app {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
    height: 64px;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;
}


.header-inner {
    width: 100%;
    max-width: 1100px;

    height: 100%;

    margin: 0 auto;

    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #111111;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: -0.01em;
}


.brand-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000000;
    color: #ffffff;

    border-radius: 7px;

    font-size: 9px;
    font-weight: 900;
}


.header-label {
    color: #737373;

    font-size: 13px;
}


/* =========================================
   MAIN
   ========================================= */

.main {
    flex: 1;
}


.container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 64px 24px 80px;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    max-width: 650px;

    margin-bottom: 36px;
}


.eyebrow {
    margin: 0 0 14px;

    color: #737373;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.12em;
}


.hero h1 {
    margin: 0;

    color: #111111;

    font-size: clamp(36px, 5vw, 56px);

    line-height: 1.05;

    letter-spacing: -0.045em;

    font-weight: 700;
}


.hero-text {
    max-width: 570px;

    margin: 20px 0 0;

    color: #737373;

    font-size: 17px;

    line-height: 1.55;
}


/* =========================================
   LOOKUP CARD
   ========================================= */

.lookup-card {
    width: 100%;
    max-width: 820px;

    padding: 28px;

    background: #ffffff;

    border: 1px solid #e5e5e5;

    border-radius: 16px;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.025),
        0 15px 40px rgba(0, 0, 0, 0.045);
}


.form-label {
    display: block;

    margin-bottom: 10px;

    color: #111111;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================
   SEARCH ROW
   ========================================= */

.search-row {
    width: 100%;

    display: flex;
    align-items: stretch;

    gap: 10px;
}


/* =========================================
   NUMBER PLATE
   ========================================= */

.plate {
    position: relative;

    min-width: 0;
    flex: 1;

    height: 58px;

    display: flex;

    overflow: hidden;

    background: #f9c900;

    border: 1px solid #d8ae00;

    border-radius: 9px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.45);

    transition:
        box-shadow 150ms ease,
        border-color 150ms ease;
}


.plate:focus-within {
    border-color: #111111;

    box-shadow:
        0 0 0 3px rgba(0,0,0,0.08);
}


.gb-strip {
    width: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #003399;

    color: #ffffff;

    border-right: 1px solid rgba(0,0,0,0.1);
}


.gb-strip span {
    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.04em;
}


#registration {
    width: 100%;
    min-width: 0;

    height: 100%;

    padding: 0 16px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #111111;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: clamp(20px, 3vw, 28px);

    font-weight: 900;

    letter-spacing: 0.09em;

    text-align: center;

    text-transform: uppercase;
}


#registration::placeholder {
    color: #6b6b6b;

    opacity: 0.75;

    font-size: 0.8em;

    font-weight: 700;

    letter-spacing: 0.04em;
}


/* =========================================
   SEARCH BUTTON
   ========================================= */

.search-button {
    height: 58px;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 22px;

    border: 0;
    border-radius: 9px;

    background: #000000;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 150ms ease,
        transform 100ms ease,
        opacity 150ms ease;
}


.search-button:hover {
    background: #222222;
}


.search-button:active {
    transform: scale(0.985);
}


.search-button:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 3px;
}


.search-button:disabled {
    opacity: 0.5;

    cursor: wait;

    transform: none;
}


/* =========================================
   HINT
   ========================================= */

.input-hint {
    margin: 10px 0 0;

    color: #8a8a8a;

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================
   LOADING
   ========================================= */

.loading {
    margin-top: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #737373;

    font-size: 13px;
}


.spinner {
    width: 17px;
    height: 17px;

    border: 2px solid #e5e5e5;

    border-top-color: #111111;

    border-radius: 50%;

    animation: spin 700ms linear infinite;
}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================
   ERROR
   ========================================= */

.error {
    margin-top: 22px;

    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 15px;

    background: #fafafa;

    border: 1px solid #e5e5e5;

    border-left: 3px solid #111111;

    border-radius: 9px;

    color: #111111;

    font-size: 13px;
}


.error-symbol {
    width: 22px;
    height: 22px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #111111;
    color: #ffffff;

    border-radius: 50%;

    font-size: 12px;
    font-weight: 700;
}


.error p {
    margin: 4px 0 0;

    color: #737373;

    line-height: 1.5;
}


/* =========================================
   RESULT
   ========================================= */

.result {
    margin-top: 28px;

    overflow: hidden;

    border: 1px solid #e5e5e5;

    border-radius: 13px;

    background: #ffffff;
}


.result-top {
    min-height: 86px;

    padding: 18px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #eeeeee;
}


.result-caption {
    display: block;

    margin-bottom: 5px;

    color: #999999;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.12em;
}


.result-registration {
    color: #111111;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 25px;
    font-weight: 900;

    letter-spacing: 0.1em;
}


.found {
    padding: 6px 9px;

    background: #f3f3f3;

    border-radius: 999px;

    color: #333333;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================
   RESULT CONTENT
   ========================================= */

.result-content {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}


.result-block {
    min-width: 0;

    padding: 21px;

    border-bottom: 1px solid #eeeeee;
}


.result-block:nth-child(1) {
    border-right: 1px solid #eeeeee;
}


.result-label {
    display: block;

    margin-bottom: 7px;

    color: #808080;

    font-size: 12px;
}


.result-main {
    display: block;

    color: #111111;

    font-size: 19px;

    line-height: 1.3;

    font-weight: 700;

    overflow-wrap: anywhere;
}


.result-sub {
    display: block;

    margin-top: 5px;

    color: #a0a0a0;

    font-size: 11px;
}


.age-block {
    grid-column: 1 / -1;

    border-bottom: 0;

    background: #fafafa;
}


.age {
    display: block;

    color: #111111;

    font-size: 26px;

    font-weight: 700;

    letter-spacing: -0.02em;
}


/* =========================================
   INFO
   ========================================= */

.result-info {
    margin-top: 13px;

    display: flex;
    align-items: flex-start;

    gap: 8px;

    color: #858585;

    font-size: 11px;

    line-height: 1.55;
}


.result-info svg {
    flex-shrink: 0;

    color: #a0a0a0;
}


.result-info p {
    margin: 0;
}


/* =========================================
   EXAMPLE
   ========================================= */

.example {
    margin-top: 18px;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #555555;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
}


.example:hover {
    color: #000000;
}


.example strong {
    padding: 5px 8px;

    background: #f4f4f4;

    border-radius: 5px;

    color: #222222;

    font-family: monospace;

    font-size: 12px;
}


/* =========================================
   FOOTER
   ========================================= */

.footer {
    border-top: 1px solid #eeeeee;
}


.footer-inner {
    max-width: 1100px;

    margin: 0 auto;

    padding: 20px 24px;

    display: flex;
    justify-content: space-between;

    color: #a0a0a0;

    font-size: 11px;
}


/* =========================================
   HIDDEN
   ========================================= */

.hidden {
    display: none !important;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 640px) {

    .header-inner {
        padding: 0 18px;
    }


    .header-label {
        display: none;
    }


    .container {
        padding:
            42px
            18px
            60px;
    }


    .hero {
        margin-bottom: 28px;
    }


    .hero h1 {
        font-size: 38px;
    }


    .hero-text {
        font-size: 16px;
    }


    .lookup-card {
        padding: 18px;

        border-radius: 13px;
    }


    .search-row {
        flex-direction: column;
    }


    .plate {
        width: 100%;

        height: 58px;
    }


    .search-button {
        width: 100%;
    }


    .result-content {
        grid-template-columns: 1fr;
    }


    .result-block {
        border-right: 0 !important;
    }


    .age-block {
        grid-column: auto;
    }


    .footer-inner {
        padding:
            18px;

        flex-direction: column;

        gap: 5px;
    }

}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

}
