.receipt-lookup-page {
    --receipt-lookup-bg: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
    --receipt-lookup-panel: rgba(255, 255, 255, 0.94);
    --receipt-lookup-border: rgba(15, 23, 42, 0.08);
    --receipt-lookup-text: #11213a;
    --receipt-lookup-muted: #617089;
    --receipt-lookup-accent: #0d74c7;
    --receipt-lookup-accent-strong: #0b5fa3;
    --receipt-lookup-success: #108a57;
    --receipt-lookup-warning: #a15c00;
    --receipt-lookup-danger: #b42318;
    --receipt-lookup-shadow: 0 28px 70px rgba(17, 33, 58, 0.10);
    background: var(--receipt-lookup-bg);
    color: var(--receipt-lookup-text);
}

.receipt-lookup-page__hero {
    overflow: hidden;
    padding: 72px 0 28px;
    position: relative;
}

.receipt-lookup-page__hero::before,
.receipt-lookup-page__hero::after {
    border-radius: 999px;
    content: "";
    position: absolute;
}

.receipt-lookup-page__hero::before {
    background: radial-gradient(circle, rgba(13, 116, 199, 0.14) 0%, rgba(13, 116, 199, 0) 72%);
    height: 340px;
    right: -60px;
    top: -60px;
    width: 340px;
}

.receipt-lookup-page__hero::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0) 72%);
    height: 220px;
    left: -40px;
    top: 120px;
    width: 220px;
}

.receipt-lookup-page__hero-grid {
    align-items: end;
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.receipt-lookup-page__eyebrow {
    background: rgba(13, 116, 199, 0.10);
    border: 1px solid rgba(13, 116, 199, 0.12);
    border-radius: 999px;
    color: var(--receipt-lookup-accent-strong);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 8px 12px;
    text-transform: uppercase;
}

.receipt-lookup-page__title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.03;
    margin: 18px 0 16px;
}

.receipt-lookup-page__lead,
.receipt-lookup-page__hero-note {
    color: var(--receipt-lookup-muted);
    line-height: 1.75;
}

.receipt-lookup-page__lead {
    font-size: 1.06rem;
    margin: 0;
}

.receipt-lookup-page__hero-note {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--receipt-lookup-border);
    border-radius: 24px;
    box-shadow: var(--receipt-lookup-shadow);
    font-size: 0.96rem;
    padding: 22px 24px;
}

.receipt-lookup-shell {
    display: grid;
    gap: 24px;
}

.receipt-lookup-card,
.receipt-lookup-result-card {
    background: var(--receipt-lookup-panel);
    border: 1px solid var(--receipt-lookup-border);
    border-radius: 30px;
    box-shadow: var(--receipt-lookup-shadow);
}

.receipt-lookup-card {
    padding: 30px;
}

.receipt-lookup-card__header h2,
.receipt-lookup-results__header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.receipt-lookup-card__header p,
.receipt-lookup-results__header p {
    color: var(--receipt-lookup-muted);
    margin: 0;
}

.receipt-lookup-feedback {
    border-radius: 18px;
    font-size: 0.96rem;
    font-weight: 600;
    margin-top: 20px;
    padding: 16px 18px;
}

.receipt-lookup-feedback--error,
.receipt-lookup-feedback--blocked {
    background: rgba(180, 35, 24, 0.08);
    color: var(--receipt-lookup-danger);
}

.receipt-lookup-feedback--success {
    background: rgba(16, 138, 87, 0.08);
    color: var(--receipt-lookup-success);
}

.receipt-lookup-feedback--empty {
    background: rgba(161, 92, 0, 0.08);
    color: var(--receipt-lookup-warning);
}

.receipt-lookup-form {
    margin-top: 24px;
}

.receipt-lookup-form__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.receipt-lookup-form__field label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.receipt-lookup-form__field .form-control {
    border: 1px solid rgba(17, 33, 58, 0.14);
    border-radius: 16px;
    min-height: 58px;
}

.receipt-lookup-form__field .form-control:focus {
    border-color: rgba(13, 116, 199, 0.35);
    box-shadow: 0 0 0 0.2rem rgba(13, 116, 199, 0.12);
}

.receipt-lookup-form__turnstile {
    margin-top: 22px;
}

#receipt-lookup-turnstile-feedback {
    color: var(--receipt-lookup-muted);
    margin-top: 10px;
}

.receipt-lookup-form__actions {
    margin-top: 24px;
}

.receipt-lookup-button {
    align-items: center;
    background: linear-gradient(135deg, var(--receipt-lookup-accent) 0%, #1d4ed8 100%);
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.96rem;
    font-weight: 700;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.receipt-lookup-button:hover,
.receipt-lookup-button:focus {
    color: #ffffff;
    filter: brightness(1.03);
    text-decoration: none;
    transform: translateY(-1px);
}

.receipt-lookup-button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.15);
    opacity: 0.6;
    transform: none;
}

.receipt-lookup-button--secondary {
    background: rgba(13, 116, 199, 0.10);
    color: var(--receipt-lookup-accent-strong);
}

.receipt-lookup-button--secondary:hover,
.receipt-lookup-button--secondary:focus {
    color: var(--receipt-lookup-accent-strong);
}

.receipt-lookup-results__header {
    margin-bottom: 18px;
}

.receipt-lookup-results__actions {
    margin: 18px 0 20px;
}

.receipt-lookup-results__list {
    display: grid;
    gap: 18px;
}

.receipt-lookup-result-card {
    align-items: center;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 24px;
}

.receipt-lookup-result-card__topline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.receipt-lookup-result-card__reference,
.receipt-lookup-result-card__method {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 9px 12px;
}

.receipt-lookup-result-card__reference {
    background: rgba(13, 116, 199, 0.10);
    color: var(--receipt-lookup-accent-strong);
}

.receipt-lookup-result-card__method {
    background: rgba(17, 33, 58, 0.06);
    color: var(--receipt-lookup-text);
}

.receipt-lookup-result-card__candidate {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.receipt-lookup-result-card__meta {
    color: var(--receipt-lookup-muted);
    margin: 0;
}

.receipt-lookup-result-card__stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.receipt-lookup-result-card__stats span {
    color: var(--receipt-lookup-muted);
    display: block;
    font-size: 0.8rem;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.receipt-lookup-result-card__stats strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

@media (max-width: 991px) {
    .receipt-lookup-page__hero {
        padding-top: 56px;
    }

    .receipt-lookup-page__hero-grid,
    .receipt-lookup-result-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .receipt-lookup-card {
        padding: 22px;
    }

    .receipt-lookup-form__grid,
    .receipt-lookup-result-card__stats {
        grid-template-columns: 1fr;
    }
}
