.gcccp-wrap {
    /* GCC Lab brand colors, sampled from the official logo */
    --gcccp-color-primary: #782130;   /* maroon, from "Lab" */
    --gcccp-color-secondary: #4f1620; /* darker maroon, hover states */
    --gcccp-color-heading: #201c1d;   /* charcoal, from "GCC" */
    --gcccp-color-muted: #6e6667;     /* gray, from the Arabic subtitle */
    --gcccp-color-success: #1e7e34;
    --gcccp-color-danger: #8a1f2c;
    /* Warm neutrals (not the cool blue-gray of the original placeholder theme),
       chosen to sit quietly behind the logo's charcoal/maroon/white without a
       visible color clash. */
    --gcccp-color-bg: #faf8f8;
    --gcccp-color-border: #e2dbdb;
    --gcccp-color-text: #2a2425;

    max-width: 640px;
    margin: 2rem auto;
    background: var(--gcccp-color-bg);
    border: 1px solid var(--gcccp-color-border);
    border-radius: 10px;
    overflow: hidden;
    color: var(--gcccp-color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gcccp-header {
    /* Always a plain white band, regardless of light/dark mode — this is what
       the logo was designed against, so it sits on its native background
       instead of a mismatched chip floating on a colored card. */
    background: #fff;
    border-bottom: 3px solid var(--gcccp-color-primary);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: center;
}

.gcccp-logo {
    height: 48px;
    width: auto;
}

.gcccp-body {
    padding: 2rem;
}

.gcccp-title {
    margin: 0 0 1.25rem;
    color: var(--gcccp-color-heading);
}

.gcccp-portal-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--gcccp-color-primary);
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
}

.gcccp-portal-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.2);
}

.gcccp-portal-user a {
    color: #fff;
    text-decoration: underline;
}

.gcccp-portal-link {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--gcccp-color-muted);
}

.gcccp-lookup-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.gcccp-lookup-row {
    display: flex;
    gap: 0.5rem;
}

.gcccp-lookup-row input[type="text"] {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--gcccp-color-border);
    border-radius: 4px;
    font-size: 1rem;
}

.gcccp-lookup-row button {
    padding: 0.6rem 1.4rem;
    background: var(--gcccp-color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.gcccp-lookup-row button:hover {
    background: var(--gcccp-color-secondary);
}

.gcccp-result {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 6px;
    border: 1px solid var(--gcccp-color-border);
    background: #fff;
}

.gcccp-status-banner {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin: 0 0 1rem;
    color: #fff;
}

.gcccp-status-active .gcccp-status-banner {
    background: var(--gcccp-color-success);
}

.gcccp-status-revoked .gcccp-status-banner {
    background: var(--gcccp-color-danger);
}

.gcccp-status-error {
    color: var(--gcccp-color-danger);
}

.gcccp-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.gcccp-details th {
    text-align: left;
    padding: 0.4rem 0.6rem 0.4rem 0;
    color: var(--gcccp-color-muted);
    font-weight: 600;
    width: 40%;
    vertical-align: top;
}

.gcccp-details td {
    padding: 0.4rem 0;
}

.gcccp-download-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--gcccp-color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.gcccp-download-btn:hover {
    background: var(--gcccp-color-secondary);
    color: #fff;
}

.gcccp-pdf-preview {
    display: block;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    margin-top: 1rem;
    border: 1px solid var(--gcccp-color-border);
    border-radius: 6px;
    background: #fff;
}

@media (prefers-color-scheme: dark) {
    .gcccp-wrap {
        --gcccp-color-bg: #211d1e;
        --gcccp-color-border: #3a3334;
        --gcccp-color-text: #ece7e7;
        --gcccp-color-heading: #ece7e7;
        --gcccp-color-muted: #a89f9f;
    }
    .gcccp-result {
        background: #2b2526;
    }
    /* The header stays white on purpose (see .gcccp-header) so the logo is
       always legible, even when the rest of the page switches to dark mode. */
}
