/* =============================================================================
 * GZ ID Lookup: Page Builder CSS (ID_LOOKUP)
 * Everything is scoped under .gz-idl so it won't affect the rest of Banner.
 * ========================================================================== */
 
.gz-idl {
    --idl-green:       #275d38;
    --idl-green-dark:  #1d4529;
    --idl-green-tint:  #eef4f0;
    --idl-ink:         #1f2421;
    --idl-muted:       #5c6660;
    --idl-line:        #cfd6d1;
    --idl-error:       #b3261e;
    --idl-error-tint:  #fdf1f0;
    --idl-radius:      8px;
 
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    padding: 32px 16px 48px;
    font-family: inherit;
    color: var(--idl-ink);
}
 
.gz-idl *,
.gz-idl *::before,
.gz-idl *::after {
    box-sizing: inherit;
}
 
.gz-idl__card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border: 1px solid var(--idl-line);
    border-top: 4px solid var(--idl-green);
    border-radius: var(--idl-radius);
    padding: 28px 28px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
 
/* ---------- header ---------- */
.gz-idl__head { margin-bottom: 20px; }
 
.gz-idl__title {
    margin: 0 0 6px;
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--idl-green);
}
 
.gz-idl__subtitle {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
}
 
.gz-idl__lede,
.gz-idl__muted {
    margin: 0;
    color: var(--idl-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}
 
/* ---------- fields ---------- */
.gz-idl__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
 
.gz-idl__field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
 
.gz-idl__field label {
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}
 
.gz-idl__field input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    font: inherit;
    font-size: 1rem;
    color: var(--idl-ink);
    background: #fff;
    border: 1px solid var(--idl-line);
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
 
.gz-idl__field input:focus {
    outline: none;
    border-color: var(--idl-green);
    box-shadow: 0 0 0 3px rgba(39, 93, 56, 0.2);
}
 
.gz-idl__msg {
    display: none;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--idl-error);
}
 
/* Override Banner's red borders until the user tries to submit */
.gz-idl .gz-idl__form:not(.submitted) .gz-idl__field input.ng-invalid {
    border-color: var(--idl-line) !important;
    background: #fff !important;
    box-shadow: none !important;
}
 
/* Errors appear only after a submit attempt (form gets .submitted).
   Angular adds .ng-invalid to inputs automatically. */
.gz-idl__form.submitted input.ng-invalid {
    border-color: var(--idl-error);
    background: var(--idl-error-tint);
}
 
.gz-idl__form.submitted input.ng-invalid + .gz-idl__msg { display: block; }
 
/* ---------- step 2: verification method choice ---------- */
.gz-idl__methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
 
.gz-idl__method {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--idl-line);
    border-radius: 20px;
    cursor: pointer;
}
 
.gz-idl__method input { margin: 0; }
 
.gz-idl__method.active {
    border-color: var(--idl-green);
    background: var(--idl-green-tint);
    color: var(--idl-green);
}
 
/* ---------- captcha ---------- */
.gz-idl__captcha-wrap {
    min-height: 78px;
    margin: 4px 0 16px;
}
 
.gz-idl__hint {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--idl-muted);
}
 
/* ---------- messages ---------- */
.gz-idl__error {
    margin: 0 0 16px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--idl-error);
    background: var(--idl-error-tint);
    border-left: 3px solid var(--idl-error);
    border-radius: 4px;
}
 
/* ---------- buttons ---------- */
.gz-idl__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
 
.gz-idl__actions--center { justify-content: center; margin-top: 20px; }
 
.gz-idl__btn {
    min-width: 120px;
    height: 42px;
    padding: 0 20px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--idl-green);
    border: 1px solid var(--idl-green);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
 
.gz-idl__btn:hover:not([disabled]) { background: var(--idl-green-dark); }
.gz-idl__btn:focus-visible         { outline: 3px solid rgba(39, 93, 56, 0.35); outline-offset: 2px; }
.gz-idl__btn[disabled]             { opacity: 0.5; cursor: not-allowed; }
 
.gz-idl__btn--ghost {
    color: var(--idl-green);
    background: #fff;
}
 
.gz-idl__btn--ghost:hover:not([disabled]) { background: var(--idl-green-tint); }
 
/* ---------- result ---------- */
.gz-idl__result,
.gz-idl__nomatch { text-align: center; padding: 8px 0; }
 
.gz-idl__result-label {
    margin: 0 0 6px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--idl-muted);
}
 
.gz-idl__id {
    display: inline-block;
    margin: 0;
    padding: 12px 24px;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--idl-green);
    background: var(--idl-green-tint);
    border-radius: var(--idl-radius);
}
 
.gz-idl__nomatch p {
    margin: 0;
    color: var(--idl-muted);
    line-height: 1.5;
}
 
/* ---------- callouts ---------- */
.gz-idl__callout {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 4px solid var(--idl-line);
    border-radius: 4px;
    background: #f6f7f6;
    font-size: 0.95rem;
    line-height: 1.45;
}
 
.gz-idl__callout p { margin: 0 0 6px; }
.gz-idl__callout p:last-child { margin-bottom: 0; }
 
.gz-idl__callout--success { border-left-color: var(--idl-green); background: var(--idl-green-tint); }
.gz-idl__callout--warning { border-left-color: #b7791f; background: #fdf6e7; }
.gz-idl__callout--danger  { border-left-color: var(--idl-error); background: var(--idl-error-tint); }
 
.gz-idl__center { text-align: center; }
.gz-idl__callout .gz-idl__id { margin-top: 8px; }
 
/* ---------- help text ---------- */
.gz-idl__optional {
    font-weight: 400;
    color: var(--idl-muted);
}
 
.gz-idl__help {
    margin: -4px 0 16px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--idl-muted);
}
 
/* ---------- link cards (result / no match) ---------- */
.gz-idl__link {
    display: block;
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid var(--idl-line);
    border-radius: var(--idl-radius);
    color: var(--idl-ink);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
 
a.gz-idl__link:hover,
a.gz-idl__link:focus {
    border-color: var(--idl-green);
    background: var(--idl-green-tint);
    text-decoration: none;
}
 
.gz-idl__link-title {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--idl-green);
}
 
a.gz-idl__link-title { text-decoration: underline; }
 
.gz-idl__link-text {
    display: block;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--idl-muted);
}
 
.gz-idl__contact {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 0.9rem;
    line-height: 1.6;
}
 
.gz-idl__contact a { color: var(--idl-green); }
 
.gz-idl__actions--left { justify-content: flex-start; margin-top: 12px; }
 
/* ---------- small screens ---------- */
@media (max-width: 560px) {
    .gz-idl          { padding: 16px; }
    .gz-idl__card    { padding: 20px 16px; }
    .gz-idl__row     { grid-template-columns: 1fr; }
    .gz-idl__actions { justify-content: stretch; }
    .gz-idl__actions .gz-idl__btn { flex: 1; }
}
 
/* the reCAPTCHA widget is a fixed 304px wide */
@media (max-width: 360px) {
    #gzIdlCaptcha { transform: scale(0.88); transform-origin: 0 0; }
}