:root {
    --primary-blue: #1565c0;
    --primary-blue-dark: #0d47a1;
    --primary-blue-soft: #eaf3fc;
    --ink: #17324d;
    --muted: #60758a;
    --line: #dbe6f0;
    --surface: #ffffff;
    --page: #f3f7fb;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --shadow: 0 18px 45px rgba(25, 71, 112, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    padding-bottom: 0;
    background: var(--page);
    color: var(--ink);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#idJumbo {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: clamp(2rem, 5vw, 3.75rem) 1rem clamp(4.5rem, 8vw, 6.5rem);
    border-radius: 0;
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue)) !important;
    color: #fff;
    text-align: center;
}

#idJumbo::after {
    position: absolute;
    right: -8rem;
    bottom: -13rem;
    width: 28rem;
    height: 28rem;
    border: 4rem solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
}

#idJumbo h3,
#idJumbo h4,
#idJumbo p,
#idJumbo img {
    position: relative;
    z-index: 1;
}

#idJumbo h3 {
    max-width: 900px;
    margin: 0 auto 1.25rem;
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    line-height: 1.25;
}

#idJumbo h4 {
    margin: 1.1rem auto 0;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.35;
}

#idJumbo .lead {
    max-width: 720px;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

#idimg {
    display: block;
    width: 92px;
    height: 92px;
    margin: 0 auto;
    object-fit: contain;
}

.consultation-page {
    position: relative;
    z-index: 2;
    margin-top: -3.25rem;
    padding: 0 0 2rem;
}

.consultation-container {
    width: calc(100% - 2rem);
    max-width: 920px;
}

.consultation-card {
    padding: clamp(1.35rem, 4vw, 2.75rem);
    border: 1px solid rgba(219, 230, 240, 0.8);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.consultation-heading {
    max-width: 680px;
    margin: 0 auto 2rem;
    text-align: center;
}

.consultation-eyebrow {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.consultation-heading h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.45rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.consultation-heading p {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.search-form {
    max-width: 720px;
    margin: 0 auto 2rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f9fbfd;
}

.search-controls {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.form-field {
    flex: 1;
    min-width: 0;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 650;
}

.form-field .form-control {
    width: 100%;
    max-width: none;
    height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid #b9cad9;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-size: 1rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.14);
    outline: none;
}

.form-field .form-control.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1);
}

.field-help {
    margin: 0.6rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 138px;
    height: 48px;
    padding: 0 1.4rem;
    border: 0;
    border-radius: 9px;
    background: var(--primary-blue);
    box-shadow: 0 7px 16px rgba(21, 101, 192, 0.24);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.search-button:hover {
    background: var(--primary-blue-dark);
    box-shadow: 0 9px 20px rgba(13, 71, 161, 0.28);
    transform: translateY(-1px);
}

.search-button:focus-visible {
    outline: 3px solid rgba(21, 101, 192, 0.28);
    outline-offset: 3px;
}

.search-button:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

.button-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.search-button.is-loading .button-label {
    display: none;
}

.search-button.is-loading .button-loader {
    display: block;
}

.status-message {
    max-width: 720px;
    margin: 0 auto 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #9ec5ee;
    border-radius: 10px;
    background: var(--primary-blue-soft);
    color: var(--primary-blue-dark);
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
}

.status-message--error {
    border-color: #f2b8b5;
    background: var(--danger-soft);
    color: var(--danger);
}

.result-section {
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.result-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    color: #fff;
}

.result-heading__icon {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.17);
    font-weight: 700;
}

.result-heading span:not(.result-heading__icon) {
    display: block;
    margin-bottom: 0.15rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.result-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1rem, 3vw, 1.18rem);
    font-weight: 500;
    line-height: 1.35;
}

.result-heading h2 strong {
    font-weight: 750;
}

.result-table-wrapper {
    overflow-x: auto;
}

.result-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.result-table th,
.result-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.result-table tr:last-child th,
.result-table tr:last-child td {
    border-bottom: 0;
}

.result-table th {
    width: 32%;
    background: #f7fafc;
    color: #38536c;
    font-size: 0.88rem;
    font-weight: 700;
}

.result-table td {
    color: var(--ink);
    font-size: 0.94rem;
    line-height: 1.5;
}

.is-hidden {
    display: none !important;
}

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

body > hr {
    display: none;
}

body > .container footer {
    padding: 0.5rem 0 1.5rem;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

body > .container footer a {
    color: var(--primary-blue);
    font-weight: 650;
    text-decoration: none;
}

body > .container footer a:hover {
    text-decoration: underline;
}

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

@media (max-width: 575.98px) {
    #idJumbo {
        padding-bottom: 4.75rem;
    }

    #idimg {
        width: 76px;
        height: 76px;
    }

    .consultation-page {
        margin-top: -2.75rem;
    }

    .consultation-container {
        width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    .consultation-card {
        border-radius: 16px;
    }

    .consultation-heading {
        margin-bottom: 1.4rem;
    }

    .search-controls {
        display: block;
    }

    .search-button {
        width: 100%;
        margin-top: 0.85rem;
    }

    .result-heading {
        align-items: flex-start;
        padding: 1rem;
    }

    .result-table,
    .result-table tbody,
    .result-table tr,
    .result-table th,
    .result-table td {
        display: block;
        width: 100%;
    }

    .result-table tr {
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--line);
    }

    .result-table tr:last-child {
        border-bottom: 0;
    }

    .result-table th,
    .result-table td {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .result-table th {
        margin-bottom: 0.3rem;
        color: var(--primary-blue-dark);
        font-size: 0.78rem;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
