:root {
    --green-900: #063f63;
    --green-800: #0b6f9f;
    --green-700: #1687bd;
    --yellow-500: #f5c518;
    --yellow-300: #ffe08a;
    --charcoal-900: #17201b;
    --charcoal-700: #33413a;
    --gray-200: #e4e8e6;
    --gray-100: #f3f6f4;
    --white: #ffffff;
    --danger: #b42318;
    --success: #16794d;
    --shadow: 0 22px 60px rgba(6, 63, 99, 0.14);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--charcoal-900);
    background:
        linear-gradient(180deg, rgba(245, 197, 24, 0.08), transparent 320px),
        var(--gray-100);
    font-family: Arial, "Cairo", Tahoma, "Noto Kufi Arabic", "Noto Sans Arabic", sans-serif;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    background: var(--green-900);
    color: var(--white);
    border-bottom: 5px solid var(--yellow-500);
}

.header-inner,
.hero-grid,
.emergency-notice,
.form-shell,
.site-footer,
.poster-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark,
.result-logo,
.poster-logo {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 74px;
    min-height: 58px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--green-900);
}

.brand-mark img,
.result-logo img,
.poster-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.brand-placeholder {
    padding: 8px;
    text-align: center;
    font-weight: 800;
    font-size: 0.72rem;
    line-height: 1.25;
}

.brand-mark {
    width: 170px;
    min-height: 72px;
}

.result-logo {
    width: 190px;
    min-height: 86px;
}

.poster-logo {
    width: 150px;
    min-height: 76px;
}

.brand-mark img,
.poster-logo img {
    padding: 4px;
}

.brand-copy {
    min-width: 0;
}

.brand-copy span,
.brand-copy strong {
    display: block;
}

.brand-copy span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
}

.brand-copy strong {
    font-size: 1.1rem;
    letter-spacing: 0;
}

.poster-link,
.return-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.poster-link:hover,
.poster-link:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.hero-section {
    padding: 54px 0 28px;
    background:
        linear-gradient(135deg, rgba(6, 63, 99, 0.96), rgba(11, 111, 159, 0.92)),
        repeating-linear-gradient(45deg, rgba(245, 197, 24, 0.18) 0 10px, transparent 10px 22px);
    color: var(--white);
}

.hero-grid,
.notice-grid,
.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.hero-copy {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--yellow-300);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2 {
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0;
}

.hero-copy h1 {
    font-size: clamp(1.65rem, 4vw, 3rem);
    max-width: 780px;
}

.hero-copy p:not(.eyebrow) {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.emergency-notice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    margin-top: 28px;
    padding: 22px;
    border: 2px solid var(--yellow-500);
    border-inline-start: 8px solid var(--yellow-500);
    border-radius: var(--radius);
    background: #fffaf0;
    box-shadow: var(--shadow);
}

.notice-symbol,
.status-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--yellow-500);
    color: var(--green-900);
    font-size: 1.35rem;
    font-weight: 900;
}

.emergency-notice h2 {
    color: var(--green-900);
    font-size: 1.16rem;
}

.emergency-notice p {
    margin: 8px 0 0;
}

.form-shell {
    margin-top: 30px;
    margin-bottom: 42px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.form-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gray-200);
}

.form-heading h2 {
    color: var(--green-900);
    font-size: 1.7rem;
}

.reference-note {
    margin: 0;
    color: var(--charcoal-700);
    font-size: 0.92rem;
}

.report-form {
    display: grid;
    gap: 22px;
    margin-top: 24px;
}

.form-section {
    min-width: 0;
    margin: 0;
    padding: 0 0 24px;
    border: 0;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-of-type {
    border-bottom: 0;
}

.form-section > legend {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
    color: var(--green-900);
    font-size: 1.05rem;
    font-weight: 900;
}

.form-section > legend span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--green-800);
    color: var(--white);
    font-size: 0.9rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.field-wide {
    grid-column: 1 / -1;
}

.field span,
.choice-group legend {
    color: var(--charcoal-700);
    font-size: 0.92rem;
    font-weight: 800;
}

.field strong {
    color: var(--danger);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd5d0;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--charcoal-900);
    padding: 10px 12px;
    outline: 0;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea {
    min-height: 136px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(22, 135, 189, 0.17);
}

.choice-group {
    min-width: 0;
    margin: 18px 0 0;
    padding: 0;
    border: 0;
}

.segmented-control {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid #cbd5d0;
    border-radius: var(--radius);
    background: var(--white);
}

.segmented-control label {
    position: relative;
    cursor: pointer;
}

.segmented-control input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.segmented-control span {
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: 8px 18px;
    font-weight: 800;
    color: var(--charcoal-700);
}

.segmented-control label + label span {
    border-inline-start: 1px solid #cbd5d0;
}

.segmented-control input:checked + span {
    background: var(--green-800);
    color: var(--white);
}

.helper-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.helper-grid p {
    margin: 0;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--gray-100);
    color: var(--charcoal-700);
    font-size: 0.9rem;
}

.file-drop {
    display: grid;
    gap: 7px;
    place-items: center;
    min-height: 142px;
    padding: 22px;
    border: 2px dashed #9aae9f;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #f7faf8);
    cursor: pointer;
    text-align: center;
}

.file-drop:hover,
.file-drop:focus-within {
    border-color: var(--green-700);
    background: #f7fbf2;
}

.file-drop input {
    width: min(100%, 420px);
}

.file-title {
    color: var(--green-900);
    font-weight: 900;
}

.file-meta {
    color: var(--charcoal-700);
    font-size: 0.88rem;
}

.file-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-100);
    color: var(--charcoal-700);
    font-size: 0.9rem;
}

.file-list .file-warning {
    border-color: rgba(180, 35, 24, 0.35);
    background: #fff4f2;
    color: var(--danger);
}

.acknowledgment {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fbfcfb;
}

.acknowledgment input {
    width: 20px;
    height: 20px;
    margin-top: 5px;
    accent-color: var(--green-800);
}

.acknowledgment > span {
    display: grid;
    gap: 8px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 24px;
    border: 0;
    border-radius: var(--radius);
    background: var(--green-800);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(11, 111, 159, 0.24);
}

.submit-button:hover,
.submit-button:focus-visible {
    background: var(--green-700);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.form-actions p {
    margin: 0;
    color: var(--charcoal-700);
    font-size: 0.9rem;
}

.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.site-footer {
    padding: 26px 0 38px;
    color: var(--charcoal-700);
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.workers-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(11, 111, 159, 0.12), transparent 320px),
        var(--gray-100);
}

.workers-main {
    width: min(720px, calc(100% - 28px));
    margin: 34px auto 48px;
}

.workers-card {
    display: grid;
    gap: 24px;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    border-top: 7px solid var(--green-800);
}

.workers-logo {
    display: grid;
    place-items: center;
    width: 220px;
    min-height: 104px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
}

.workers-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.workers-title {
    text-align: center;
}

.workers-title .eyebrow {
    color: var(--green-800);
}

.workers-title h1 {
    color: var(--green-900);
    font-size: clamp(1.55rem, 5vw, 2.2rem);
}

.workers-title p {
    margin: 10px auto 0;
    max-width: 560px;
    color: var(--charcoal-700);
}

.workers-inline-qr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 3px solid var(--green-900);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #f8faf9);
    box-shadow: 0 14px 34px rgba(6, 63, 99, 0.12);
}

.workers-inline-qr-copy {
    min-width: 0;
}

.workers-inline-qr-copy .eyebrow {
    color: var(--green-800);
}

.workers-inline-qr-copy h2 {
    color: var(--green-900);
    font-size: 1.35rem;
}

.workers-inline-qr-copy p {
    margin: 8px 0 0;
    color: var(--charcoal-700);
}

.workers-inline-qr-panel {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 190px;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
}

.workers-inline-qr-panel img {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.workers-inline-qr-panel span {
    color: var(--green-900);
    font-size: 0.82rem;
    font-weight: 900;
    overflow-wrap: anywhere;
    text-align: center;
}

.worker-form {
    display: grid;
    gap: 18px;
}

.worker-type-group {
    margin: 0;
    padding: 0;
    border: 0;
}

.worker-type-group legend {
    margin-bottom: 10px;
    color: var(--charcoal-700);
    font-weight: 900;
}

.workers-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.workers-choice-grid label {
    position: relative;
    cursor: pointer;
}

.workers-choice-grid input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.workers-choice-grid span {
    display: grid;
    gap: 4px;
    min-height: 96px;
    padding: 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fbfcfd;
    color: var(--charcoal-900);
    text-align: center;
    align-content: center;
}

.workers-choice-grid small[lang="ur"] {
    font-size: 0.9rem;
}

.workers-choice-grid strong {
    font-size: 1.25rem;
    color: var(--green-900);
}

.workers-choice-grid small {
    color: var(--charcoal-700);
    font-weight: 800;
}

.workers-choice-grid input:checked + span {
    border-color: var(--green-800);
    background: rgba(11, 111, 159, 0.08);
    box-shadow: 0 0 0 3px rgba(22, 135, 189, 0.17);
}

.worker-message-field textarea {
    min-height: 180px;
    font-size: 1.05rem;
}

.worker-photo-section {
    margin: 0;
    padding: 0;
    border: 0;
}

.worker-photo-section legend {
    margin-bottom: 10px;
    color: var(--charcoal-700);
    font-weight: 900;
}

.worker-file-drop {
    min-height: 116px;
    padding: 18px;
}

.workers-submit {
    width: 100%;
    min-height: 58px;
    font-size: 1.1rem;
}

.workers-page[data-workers-lang="ar"] .lang-en,
.workers-page[data-workers-lang="ar"] .lang-ur,
.workers-page[data-workers-lang="en"] .lang-ar,
.workers-page[data-workers-lang="en"] .lang-ur,
.workers-page[data-workers-lang="ur"] .lang-ar,
.workers-page[data-workers-lang="ur"] .lang-en {
    display: none !important;
}

.workers-portal-header,
.workers-portal-main {
    width: min(960px, calc(100% - 28px));
    margin-inline: auto;
}

.workers-portal-header {
    position: relative;
    margin-top: 24px;
    padding: 22px;
    border-top: 6px solid var(--green-800);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.workers-portal-top {
    position: relative;
    min-height: 126px;
}

.workers-language-selector {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: grid;
    gap: 8px;
    direction: ltr;
}

.language-label {
    color: var(--green-900);
    font-size: 0.86rem;
    font-weight: 900;
}

.language-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.language-buttons button {
    min-height: 34px;
    border: 1px solid rgba(11, 111, 159, 0.24);
    border-radius: 999px;
    background: #f7fbfd;
    color: var(--green-900);
    padding: 6px 10px;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.language-buttons button.is-active,
.language-buttons button:focus-visible {
    background: var(--green-800);
    color: var(--white);
}

.workers-top-qr-card {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 142px;
    padding: 12px;
    border: 1px solid rgba(6, 63, 99, 0.12);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 16px 38px rgba(6, 63, 99, 0.16);
    text-align: center;
}

.workers-top-qr-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.workers-top-qr-card div {
    display: grid;
    gap: 2px;
}

.workers-top-qr-card span {
    color: var(--green-900);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.35;
}

.workers-portal-brand {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 0 150px 4px;
    text-align: center;
}

.workers-portal-logo {
    display: grid;
    place-items: center;
    width: min(260px, 100%);
    min-height: 112px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
}

.workers-portal-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.portal-kicker {
    margin: 0;
    color: var(--green-800);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.workers-portal-brand h1,
.workers-portal-brand h2 {
    color: var(--green-900);
}

.workers-portal-brand h1 {
    font-size: clamp(1.75rem, 4vw, 2.55rem);
}

.workers-portal-brand h2 {
    font-size: clamp(1.25rem, 3vw, 1.82rem);
}

.workers-header-description {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    width: min(760px, 100%);
    margin-top: 8px;
    align-items: start;
}

.workers-header-description p {
    margin: 0;
    color: var(--charcoal-700);
    font-weight: 700;
}

.workers-header-description .lang-en {
    text-align: left;
}

.workers-header-rtl {
    display: grid;
    gap: 4px;
    text-align: right;
}

.workers-portal-main {
    margin-top: 18px;
    margin-bottom: 46px;
}

.workers-report-panel {
    display: grid;
    gap: 22px;
    padding: 22px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.workers-form-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: end;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gray-200);
}

.workers-form-heading h2 {
    color: var(--green-900);
    font-size: clamp(1.2rem, 3vw, 1.65rem);
}

.workers-form-heading p {
    margin: 6px 0 0;
    color: var(--charcoal-700);
}

.workers-heading-right {
    display: grid;
    gap: 4px;
    text-align: right;
}

.workers-heading-left {
    text-align: left;
}

.workers-simple-form {
    gap: 20px;
}

.workers-form-block {
    min-width: 0;
    margin: 0;
}

.workers-form-block legend,
.workers-field-label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    color: var(--charcoal-700);
    font-size: 0.96rem;
    font-weight: 900;
}

.workers-form-block legend .lang-en,
.workers-field-label .lang-en {
    text-align: left;
}

.workers-form-block legend .lang-ar,
.workers-form-block legend .lang-ur,
.workers-field-label .lang-ar,
.workers-field-label .lang-ur {
    text-align: right;
}

.workers-type-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.worker-type-card {
    position: relative;
    cursor: pointer;
}

.worker-type-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.type-card-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    min-height: 126px;
    padding: 18px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--charcoal-900);
    box-shadow: 0 10px 24px rgba(6, 63, 99, 0.06);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.type-status-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.62);
}

.is-complaint .type-status-dot {
    background: var(--danger);
}

.is-improvement .type-status-dot {
    background: var(--success);
}

.type-text {
    display: grid;
    gap: 4px;
}

.type-text strong {
    color: var(--green-900);
    font-size: 1.08rem;
    line-height: 1.35;
}

.type-text .lang-en {
    text-align: left;
}

.type-text .lang-ar,
.type-text .lang-ur {
    text-align: right;
}

.worker-type-card input:checked + .type-card-body {
    border-color: var(--green-800);
    background: rgba(11, 111, 159, 0.08);
    box-shadow: 0 0 0 4px rgba(22, 135, 189, 0.16), 0 18px 36px rgba(6, 63, 99, 0.12);
}

.worker-type-card input:focus-visible + .type-card-body {
    border-color: var(--green-800);
    box-shadow: 0 0 0 4px rgba(22, 135, 189, 0.2);
}

.worker-type-card:hover .type-card-body {
    transform: translateY(-1px);
}

.workers-simple-form .field textarea {
    min-height: 190px;
    border-radius: 12px;
    background: #fbfdff;
    font-size: 1.05rem;
}

.workers-simple-form .file-drop {
    border-radius: 12px;
    background: #fbfdff;
}

.workers-simple-form .file-title {
    display: grid;
    gap: 3px;
}

.workers-simple-form .file-title .lang-en {
    text-align: center;
}

.workers-submit {
    min-height: 64px;
    border-radius: 12px;
    font-size: 1.08rem;
}

.home-worker-poster-cta {
    width: min(1180px, calc(100% - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 26px auto 0;
    padding: 20px;
    border: 1px solid rgba(11, 111, 159, 0.16);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 16px 44px rgba(6, 63, 99, 0.1);
}

.home-worker-poster-copy h2 {
    display: grid;
    gap: 4px;
    color: var(--green-900);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.home-worker-poster-copy p:not(.eyebrow) {
    margin: 8px 0 0;
    color: var(--charcoal-700);
}

.home-worker-poster-button {
    min-width: 240px;
    border-radius: 12px;
    text-decoration: none;
}

.workers-poster-sheet {
    width: min(210mm, calc(100% - 28px));
    min-height: 297mm;
    margin: 0 auto 24px;
    padding: 18mm;
    border-top: 7px solid var(--green-800);
    background: var(--white);
    box-shadow: var(--shadow);
}

.workers-poster-header {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding-bottom: 10mm;
    border-bottom: 5px solid var(--yellow-500);
    text-align: center;
}

.workers-poster-logo {
    display: grid;
    place-items: center;
    width: 220px;
    min-height: 96px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
}

.workers-poster-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.workers-poster-header p {
    margin: 0;
    color: var(--green-900);
    font-weight: 900;
}

.workers-poster-hero {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 12mm 0 10mm;
    text-align: center;
}

.workers-poster-title {
    display: grid;
    gap: 6px;
}

.workers-poster-title h1 {
    color: var(--green-900);
    font-size: 2.05rem;
}

.workers-poster-title h2 {
    color: var(--charcoal-900);
    font-size: 1.38rem;
}

.workers-poster-qr {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 16px;
    border: 3px solid var(--green-900);
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 16px 38px rgba(6, 63, 99, 0.14);
}

.workers-poster-qr img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    padding: 10px;
    border: 2px solid var(--charcoal-900);
    background: var(--white);
}

.workers-poster-qr p {
    margin: 0;
    color: var(--green-900);
    font-weight: 900;
}

.workers-poster-instructions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.workers-poster-instructions article {
    min-height: 150px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: #f8fafc;
}

.workers-poster-instructions h3 {
    margin: 0 0 8px;
    color: var(--green-900);
    font-size: 1.08rem;
}

.workers-poster-instructions p {
    margin: 0;
    color: var(--charcoal-700);
    font-weight: 700;
}

.workers-poster-footer {
    display: grid;
    gap: 4px;
    margin-top: 12mm;
    padding: 14px;
    border-radius: 12px;
    background: var(--green-900);
    color: var(--white);
    text-align: center;
    font-weight: 900;
}

.workers-poster-footer p {
    margin: 0;
}

.result-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 0;
}

.result-shell {
    width: min(920px, calc(100% - 32px));
}

.result-card {
    display: grid;
    gap: 20px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    border-top: 7px solid var(--green-800);
}

.result-card.error {
    border-top-color: var(--danger);
}

.result-card .status-mark {
    background: var(--success);
    color: var(--white);
}

.result-card.error .status-mark {
    background: var(--danger);
}

.result-logo {
    border-color: var(--gray-200);
}

.result-card h1 {
    color: var(--green-900);
    font-size: 1.5rem;
}

.result-card p {
    margin: 8px 0 0;
}

.error-reference {
    margin: 0;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: #fff4f2;
    color: var(--danger);
    font-weight: 800;
}

.error-list {
    margin: 0;
    padding: 14px 22px;
    border-radius: var(--radius);
    background: #fff4f2;
    color: var(--danger);
}

.smtp-ok {
    background: #edf8f2;
    color: var(--success);
}

.smtp-table-wrap {
    overflow-x: auto;
}

.smtp-table {
    width: 100%;
    border-collapse: collapse;
    direction: ltr;
}

.smtp-table th,
.smtp-table td {
    padding: 10px;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
    vertical-align: top;
}

.smtp-table th {
    width: 72px;
}

.smtp-table .ok {
    color: var(--success);
}

.smtp-table .bad {
    color: var(--danger);
}

.return-link {
    width: fit-content;
    background: var(--green-800);
    border-color: var(--green-800);
}

.not-found-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.poster-body {
    background: #dfe6e2;
}

.poster-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px;
}

.poster-button {
    min-height: 42px;
    border: 0;
    border-radius: var(--radius);
    background: var(--green-800);
    color: var(--white);
    padding: 9px 16px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.poster-page {
    min-height: 297mm;
    max-width: 210mm;
    padding: 18mm;
    background: var(--white);
    box-shadow: var(--shadow);
}

.poster-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 5px solid var(--yellow-500);
}

.poster-logo {
    width: 94px;
    min-height: 70px;
    border-color: var(--gray-200);
}

.poster-title {
    text-align: center;
    color: var(--green-900);
}

.poster-title h1 {
    font-size: 1.65rem;
}

.poster-title h2 {
    margin-top: 4px;
    font-size: 1.18rem;
    color: var(--charcoal-700);
}

.poster-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68mm minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding-top: 18px;
}

.poster-copy {
    min-width: 0;
}

.poster-copy h3 {
    margin: 0 0 10px;
    color: var(--green-900);
    font-size: 1.2rem;
}

.poster-copy h4 {
    margin: 16px 0 8px;
    color: var(--green-800);
    font-size: 1rem;
}

.poster-copy p,
.poster-copy li {
    color: var(--charcoal-700);
    font-size: 0.88rem;
}

.poster-copy p {
    margin: 0 0 10px;
}

.poster-copy ul,
.poster-copy ol {
    margin: 0;
    padding-inline-start: 22px;
}

.poster-copy li + li {
    margin-top: 5px;
}

.urdu-poster-copy {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 2px solid var(--gray-200);
}

.urdu-poster-copy h3,
.urdu-poster-copy p {
    grid-column: 1;
}

.urdu-poster-copy h4:first-of-type,
.urdu-poster-copy ul {
    grid-column: 2;
}

.urdu-poster-copy h4:last-of-type,
.urdu-poster-copy ol {
    grid-column: 3;
}

.qr-panel {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 12px;
    border: 3px solid var(--green-900);
    border-radius: var(--radius);
    background: #f8faf9;
    text-align: center;
}

.qr-placeholder {
    position: relative;
    width: 58mm;
    height: 58mm;
    border: 8px solid var(--white);
    outline: 2px solid var(--charcoal-900);
    background:
        linear-gradient(90deg, var(--charcoal-900) 12px, transparent 12px) 0 0 / 34px 34px,
        linear-gradient(var(--charcoal-900) 12px, transparent 12px) 0 0 / 34px 34px,
        var(--white);
}

.qr-placeholder::before,
.qr-placeholder::after {
    content: "";
    position: absolute;
    width: 18mm;
    height: 18mm;
    border: 4mm solid var(--charcoal-900);
    background: var(--white);
}

.qr-placeholder::before {
    top: 4mm;
    left: 4mm;
}

.qr-placeholder::after {
    right: 4mm;
    bottom: 4mm;
}

.qr-code-image {
    width: 58mm;
    height: 58mm;
    object-fit: contain;
    padding: 3mm;
    border: 2px solid var(--charcoal-900);
    background: var(--white);
}

.qr-url {
    margin: 0;
    color: var(--green-900);
    font-weight: 900;
    direction: ltr;
}

.poster-bottom {
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--green-900);
    color: var(--white);
    text-align: center;
    font-weight: 900;
}

.poster-bottom p {
    margin: 0;
}

@media (max-width: 820px) {
    .header-inner,
    .form-heading,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-grid,
    .notice-grid,
    .field-grid,
    .helper-grid,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: 36px;
    }

    .emergency-notice {
        grid-template-columns: 1fr;
    }

    .form-shell {
        padding: 20px;
    }

    .poster-main {
        grid-template-columns: 1fr;
    }

    .qr-panel {
        order: -1;
    }

    .urdu-poster-copy {
        grid-template-columns: 1fr;
    }

    .urdu-poster-copy h3,
    .urdu-poster-copy p,
    .urdu-poster-copy h4:first-of-type,
    .urdu-poster-copy ul,
    .urdu-poster-copy h4:last-of-type,
    .urdu-poster-copy ol {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .header-inner,
    .hero-grid,
    .emergency-notice,
    .form-shell,
    .site-footer {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        align-items: flex-start;
    }

    .brand-mark {
        width: 132px;
        min-height: 64px;
    }

    .poster-link,
    .submit-button,
    .return-link {
        width: 100%;
    }

    .header-actions {
        width: 100%;
    }

    .segmented-control {
        width: 100%;
    }

    .file-list li {
        flex-direction: column;
    }

    .workers-main {
        width: min(100% - 22px, 720px);
        margin-top: 22px;
    }

    .workers-card {
        padding: 18px;
    }

    .workers-inline-qr {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        padding: 14px;
        text-align: center;
    }

    .workers-inline-qr-panel {
        width: 150px;
        padding: 8px;
    }

    .workers-inline-qr-panel img {
        width: 124px;
        height: 124px;
    }

    .workers-choice-grid {
        grid-template-columns: 1fr;
    }

    .workers-logo {
        width: min(240px, 100%);
    }
}

@media (max-width: 820px) {
    .workers-portal-top {
        min-height: 112px;
    }

    .workers-portal-brand {
        padding: 126px 0 0;
    }

    .workers-header-description,
    .workers-form-heading,
    .workers-form-block legend,
    .workers-field-label,
    .home-worker-poster-cta,
    .workers-poster-instructions {
        grid-template-columns: 1fr;
    }

    .workers-heading-left,
    .workers-header-description .lang-en,
    .workers-form-block legend .lang-en,
    .workers-field-label .lang-en {
        text-align: center;
    }

    .workers-heading-right,
    .workers-header-rtl,
    .workers-form-block legend .lang-ar,
    .workers-form-block legend .lang-ur,
    .workers-field-label .lang-ar,
    .workers-field-label .lang-ur {
        text-align: center;
    }

    .home-worker-poster-button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .workers-portal-header,
    .workers-portal-main {
        width: min(100% - 20px, 960px);
    }

    .workers-portal-header,
    .workers-report-panel {
        padding: 16px;
    }

    .workers-portal-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: start;
        min-height: 0;
    }

    .workers-language-selector,
    .workers-top-qr-card {
        position: static;
    }

    .workers-language-selector {
        justify-self: start;
    }

    .language-buttons {
        gap: 5px;
    }

    .language-buttons button {
        min-height: 32px;
        padding: 5px 8px;
        font-size: 0.78rem;
    }

    .workers-top-qr-card {
        width: 98px;
        padding: 8px;
    }

    .workers-top-qr-card img {
        width: 70px;
        height: 70px;
    }

    .workers-top-qr-card span {
        font-size: 0.66rem;
    }

    .workers-portal-brand {
        padding: 18px 0 0;
    }

    .workers-portal-logo {
        width: min(220px, 100%);
        min-height: 96px;
    }

    .workers-type-card-grid {
        grid-template-columns: 1fr;
    }

    .type-card-body {
        min-height: 108px;
        padding: 16px;
    }

    .workers-poster-sheet {
        width: min(100% - 20px, 210mm);
        padding: 18px;
    }

    .workers-poster-logo {
        width: 180px;
    }

    .workers-poster-qr img {
        width: 220px;
        height: 220px;
    }
}

@page {
    size: A4;
    margin: 0;
}

@media print {
    body {
        background: var(--white);
    }

    .poster-actions,
    .site-header,
    .site-footer {
        display: none !important;
    }

    .poster-page {
        width: 210mm;
        min-height: 297mm;
        margin: 0;
        box-shadow: none;
    }

    .workers-poster-sheet {
        width: 210mm;
        min-height: 297mm;
        margin: 0;
        padding: 16mm;
        box-shadow: none;
        border-top-width: 7px;
    }

    .workers-poster-qr img {
        width: 320px;
        height: 320px;
    }

    .workers-poster-instructions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .workers-poster-actions {
        display: none !important;
    }
}
