* {
    box-sizing: border-box;
}

:root {
    --brand: #7700fd;
    --brand-rgb: 119, 0, 253;
    --button: #b254ff;
    --button-hover: #a341ee;
    --page-bg: #ffffff;
    --lower-bg: #f8f5ff;
    --surface: #ffffff;
    --text: #17151d;
    --muted: #667085;
    --muted-2: #9aa1b2;
    --border: #eceaf0;
    --danger: #b92b49;
    --shadow: 0 14px 42px rgba(25, 20, 35, .055);
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    background: var(--lower-bg);
    color-scheme: light;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page-bg);
    color: var(--text);
    font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.lookup-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lookup-main {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 50% 10%, rgba(var(--brand-rgb), .025), transparent 29%),
        linear-gradient(to bottom, #ffffff 0, #ffffff 60%, var(--lower-bg) 60%, var(--lower-bg) 100%);
}

.lookup-hero {
    width: min(100% - 32px, 980px);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: clamp(58px, 8vh, 86px) 0 0;
}

.lookup-logo {
    width: auto;
    max-width: 185px;
    height: 58px;
    display: block;
    object-fit: contain;
    margin-bottom: clamp(48px, 6.5vh, 70px);
}

.lookup-heading {
    text-align: center;
}

.lookup-heading h1 {
    margin: 0;
    font-size: clamp(34px, 3.75vw, 46px);
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 800;
}

.lookup-heading h1 span {
    color: var(--brand);
}

.lookup-heading p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: clamp(13px, 1.05vw, 15px);
    line-height: 1.65;
}

.lookup-form {
    position: relative;
    width: min(100%, 610px);
    display: block;
    margin-top: 37px;
}

.lookup-field {
    position: relative;
    display: block;
    min-width: 0;
}

.lookup-search-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 21px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: #9bacc3;
    pointer-events: none;
}

.lookup-search-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lookup-code-prefix {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 52px;
    transform: translateY(-50%);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%) translateX(-4px);
    transition: opacity .15s ease, transform .15s ease;
}

.lookup-field.is-active .lookup-code-prefix {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.lookup-field input {
    width: 100%;
    height: 61px;
    padding: 0 177px 0 52px;
    border: 1.5px solid rgba(var(--brand-rgb), .38);
    border-radius: 999px;
    outline: 0;
    background: rgba(255, 255, 255, .96);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .02em;
    box-shadow: 0 10px 26px rgba(54, 36, 82, .045);
    transition: border-color .15s ease, box-shadow .15s ease, padding-left .15s ease;
}

.lookup-field.is-active input {
    padding-left: 82px;
}

.lookup-field input:focus {
    border-color: var(--button);
    box-shadow: 0 0 0 4px rgba(178, 84, 255, .08), 0 12px 30px rgba(54, 36, 82, .055);
}

.lookup-field input::placeholder {
    color: #c0c9d8;
    font-weight: 600;
    letter-spacing: 0;
}

.lookup-button {
    position: absolute;
    z-index: 3;
    top: 6px;
    right: 7px;
    min-width: 153px;
    height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--button);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 9px 22px rgba(178, 84, 255, .20);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.lookup-button:hover:not(:disabled) {
    background: var(--button-hover);
    box-shadow: 0 11px 26px rgba(178, 84, 255, .25);
}

.lookup-button:active:not(:disabled) {
    transform: translateY(1px);
}

.lookup-button:disabled {
    cursor: not-allowed;
    opacity: .62;
    box-shadow: none;
}

.lookup-button-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform .15s ease;
}

.lookup-button:hover:not(:disabled) .lookup-button-arrow {
    transform: translateX(2px);
}

.lookup-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lookup-spin .7s linear infinite;
}

@keyframes lookup-spin {
    to { transform: rotate(360deg); }
}

.lookup-error {
    width: min(100%, 610px);
    margin: 12px auto 0;
    padding: 12px 16px;
    border: 1px solid rgba(185, 43, 73, .22);
    border-radius: 12px;
    background: rgba(185, 43, 73, .065);
    color: var(--danger);
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
}

.lookup-info-area {
    width: 100%;
    margin-top: 92px;
    padding: 0 20px 72px;
}

.lookup-info-grid {
    width: min(100%, 840px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 auto;
}

.lookup-info-card {
    min-height: 158px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 18px 18px;
    border: 1px solid rgba(230, 228, 234, .74);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.lookup-info-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 12px;
    background: rgba(var(--brand-rgb), .08);
    color: var(--brand);
}

.lookup-info-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lookup-info-card h2 {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.lookup-info-card p {
    max-width: 235px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.lookup-footer {
    padding: 25px 18px 28px;
    background: var(--lower-bg);
    color: #91a0b8;
    font-size: 12px;
    text-align: center;
}

.lookup-footer a {
    color: var(--brand);
    text-decoration: none;
}

.lookup-footer a:hover {
    text-decoration: underline;
}

.lookup-footer strong {
    color: inherit;
    font-weight: 700;
}

@media (max-width: 800px) {
    .lookup-main {
        background: linear-gradient(to bottom, #fff 0, #fff 54%, var(--lower-bg) 54%, var(--lower-bg) 100%);
    }

    .lookup-hero {
        padding-top: 48px;
    }

    .lookup-logo {
        max-width: 165px;
        height: 52px;
        margin-bottom: 46px;
    }

    .lookup-info-area {
        margin-top: 62px;
        padding-bottom: 58px;
    }

    .lookup-info-grid {
        grid-template-columns: 1fr;
        width: min(calc(100% - 42px), 420px);
        gap: 16px;
    }

    .lookup-info-card {
        min-height: 0;
        padding: 20px 19px;
    }
}

@media (max-width: 560px) {
    .lookup-main {
        background: linear-gradient(to bottom, #fff 0, #fff 50%, var(--lower-bg) 50%, var(--lower-bg) 100%);
    }

    .lookup-hero {
        width: min(100% - 26px, 980px);
        padding-top: 34px;
    }

    .lookup-logo {
        max-width: 145px;
        height: 46px;
        margin-bottom: 34px;
    }

    .lookup-heading h1 {
        font-size: clamp(30px, 10vw, 38px);
    }

    .lookup-heading p {
        margin-top: 10px;
        font-size: 13px;
    }

    .lookup-form {
        margin-top: 27px;
    }

    .lookup-field input {
        height: 58px;
        padding-right: 136px;
        padding-left: 47px;
        font-size: 13px;
    }

    .lookup-field.is-active input {
        padding-left: 76px;
    }

    .lookup-search-icon {
        left: 18px;
        width: 18px;
        height: 18px;
    }

    .lookup-code-prefix {
        left: 47px;
        font-size: 13px;
    }

    .lookup-button {
        top: 6px;
        right: 6px;
        min-width: 124px;
        height: 46px;
        padding: 0 16px;
        font-size: 12px;
    }

    .lookup-button-arrow {
        font-size: 16px;
    }

    .lookup-info-area {
        margin-top: 45px;
        padding: 0 10px 45px;
    }

    .lookup-info-grid {
        width: min(calc(100% - 54px), 360px);
    }

    .lookup-info-card {
        padding: 20px 18px;
        border-radius: 17px;
    }

    .lookup-info-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 13px;
    }

    .lookup-info-card h2 {
        font-size: 14px;
    }

    .lookup-info-card p {
        font-size: 12px;
    }

    .lookup-footer {
        padding: 22px 14px 24px;
        font-size: 11px;
    }
}

@media (max-width: 390px) {
    .lookup-field input {
        padding-right: 119px;
        padding-left: 45px;
    }

    .lookup-field.is-active input {
        padding-left: 74px;
    }

    .lookup-button {
        min-width: 107px;
        padding-inline: 13px;
    }

    .lookup-button-arrow {
        display: none;
    }
}
