:root {
    --seha-green: #1b8354;
    --seha-green-hover: #157347;
    --bg: #FFFFFF;
    --header-bg: #FFFFFF;
    --footer-bg: #F3F4F6;
    --text: #161616;
    --muted: #6B7280;
    --border: #D1D5DB;
    --card: #FFFFFF;
    --font-seha: 'IBM Plex Sans Arabic', Cairo, Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    height: 100%;
}

body {
    font-family: var(--font-seha);
    background: var(--bg);
    color: var(--text);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Header = official seha.sa ===== */
.seha-header {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    background: transparent;
    padding: 0 !important;
}

.seha-header .header-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.seha-header .nav-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 8px #53617029;
    height: 72px;
    padding-right: clamp(24px, 4vw, 80px);
    padding-left: clamp(12px, 2vw, 40px);
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
}

.seha-header .logo {
    width: 104px;
    height: 48px;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Mobile logo + menu (below xxl 1400px) */
.seha-header .sm-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 136px;
    height: 80px;
    padding: 16px;
    margin-inline-start: 2px;
    position: relative;
    z-index: 1002;
    box-sizing: border-box;
}

.seha-header .menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    margin-inline-end: 16px;
    position: relative;
    z-index: 1002;
}

.seha-header .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    box-shadow: none;
    position: relative;
    z-index: 1003;
}

.seha-header .menu-toggle-icon {
    display: block;
    width: 23px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='23.2' height='15.75' viewBox='0 0 23.2 15.75'%3e%3cpath d='M26.734 12.375H5.467A1.058 1.058 0 0 1 4.5 11.25a1.058 1.058 0 0 1 .967-1.125H26.734A1.058 1.058 0 0 1 27.7 11.25a1.058 1.058 0 0 1-.966 1.125z' transform='translate(-4.5 -3.375)' fill='%23161616'/%3e%3cpath d='M26.734 19.125H5.467A1.058 1.058 0 0 1 4.5 18a1.058 1.058 0 0 1 .967-1.125H26.734A1.058 1.058 0 0 1 27.7 18a1.058 1.058 0 0 1-.966 1.125z' transform='translate(-4.5 -3.375)' fill='%23161616'/%3e%3cpath d='M26.734 5.625H5.467A1.058 1.058 0 0 1 4.5 4.5a1.058 1.058 0 0 1 .967-1.125H26.734A1.058 1.058 0 0 1 27.7 4.5a1.058 1.058 0 0 1-.966 1.125z' transform='translate(-4.5 -3.375)' fill='%23161616'/%3e%3c/svg%3e");
}

.seha-header .menu-toggle.is-open .menu-toggle-icon {
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3e%3cpath d='M16.6 1.4L1.4 16.6M1.4 1.4l15.2 15.2' stroke='%23161616' stroke-width='2' stroke-linecap='round'/%3e%3c/svg%3e");
}

.seha-header .desktop-logo { display: none; }

.seha-header .header-collapse {
    width: 100%;
    display: none;
    flex-direction: column;
    background-color: #f8f9fb;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: 88px;
    padding-bottom: 24px;
    max-height: min(92vh, 720px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: #63636333 0 4px 2px -2px;
}

.seha-header .header-collapse.open { display: flex; }

/* خلفية شفافة تغطي الصفحة — الضغط عليها يغلق القائمة */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(22, 22, 22, 0.28);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
body.nav-open .nav-backdrop { display: block; }

.seha-header .header-section--logo-tabs {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.seha-header .header-section--tabs {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
}

.seha-header .header-section--tabs .link {
    position: relative;
    font-family: 'IBM Plex Sans Arabic', Cairo, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    min-height: 56px;
    color: #161616;
    border-bottom: 1px solid #eee;
    border-radius: 4px;
    transition: background-color .2s ease, color .2s ease;
    box-sizing: border-box;
}

.seha-header .header-section--tabs .link:hover {
    background-color: #f3f4f6;
    color: #161616;
}

.seha-header .header-section--tabs .link.active {
    color: #fff;
    font-weight: 600;
    background-color: #1b8354;
}

.seha-header .header-section--actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px 0;
    width: 100%;
}

.seha-header .register {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 0 16px !important;
    border-radius: 4px;
    color: #000 !important;
    background: transparent;
    white-space: nowrap;
}

.seha-header .register p,
.seha-header .login p {
    margin: 0;
    padding: 0;
    font-family: 'IBM Plex Sans Arabic', Cairo, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.seha-header .register:hover { background-color: #f3f4f6; }

.seha-header .login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 40px;
    height: 40px;
    padding: 0 16px !important;
    border-radius: 4px;
    color: #000 !important;
    background: #f3f4f6;
    white-space: nowrap;
    margin-inline: 10%;
    width: min(220px, 80%);
}

.seha-header .login:hover { background: #e5e7eb !important; }
.seha-header .login img { flex-shrink: 0; }

body.nav-open { overflow: hidden; }

/* Desktop — شاشات عريضة (مثل الموقع الرسمي عند فتح القائمة الكاملة) */
@media (min-width: 1200px) {
    .seha-header .sm-logo,
    .seha-header .menu { display: none !important; }

    .seha-header .desktop-logo { display: flex; align-items: center; }

    .seha-header .header-collapse {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        width: 100%;
        height: 72px;
    }

    .seha-header .header-section--logo-tabs {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: auto;
        height: 72px;
        gap: 32px;
        flex: 1;
    }

    .seha-header .header-section--logo {
        flex-shrink: 0;
        height: 72px;
        display: flex;
        align-items: center;
        padding-left: 16px;
    }

    .seha-header .header-section--tabs {
        flex-direction: row;
        align-items: center;
        width: fit-content;
        max-width: 720px;
        height: 72px;
        gap: 0;
    }

    .seha-header .header-section--tabs .link {
        width: auto;
        border-bottom: none;
        padding: 8px clamp(8px, 1vw, 16px);
        min-height: 40px;
        border-radius: 4px;
    }

    .seha-header .header-section--tabs .link.active {
        background-color: #1b8354;
        color: #fff;
    }

    .seha-header .header-section--actions {
        flex-direction: row;
        width: fit-content;
        max-width: 420px;
        height: 72px;
        padding: 0;
        gap: 8px;
        flex-shrink: 0;
    }

    .seha-header .login {
        margin-top: 0;
        margin-inline: clamp(8px, 2vw, 30px);
        width: clamp(139px, 9vw, 145px);
    }

    body.nav-open { overflow: auto; }
}

/* Page — مطابق لـ .sl-inquiry في seha.sa */
.page.sl-inquiry {
    flex: 1 0 auto;
    width: min(100% - 32px, 1720px);
    margin-inline: auto;
    padding-block: 0 40px;
    font-family: var(--font-seha);
    min-height: 65vh;
}

/* خلفية خضراء فاتحة بعرض الشاشة الكامل */
.sl-inquiry__hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 24px;
    border-radius: 0;
    background: #f7fdf9;
}

.sl-inquiry__hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: min(100% - 32px, 1720px);
    margin-inline: auto;
    padding: 40px 24px;
    text-align: start;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    font-family: var(--font-seha);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #00000073;
    margin: 0;
    text-align: start;
}

.breadcrumb a:hover { color: var(--seha-green); }
.breadcrumb .sep { opacity: .55; }

.page-title,
.sl-inquiry__hero h1 {
    margin: 0;
    width: 100%;
    color: #161616;
    font-family: var(--font-seha);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -.5px;
    text-align: start;
}

.page-desc,
.sl-inquiry__hero p {
    margin: 0;
    width: 100%;
    color: #161616;
    font-family: var(--font-seha);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: start;
}

.sl-inquiry__body {
    width: 100%;
    margin: 0;
    padding: 0;
}

.sl-inquiry__card {
    width: min(100%, 640px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 8px #1018280f, 0 2px 4px #1018280a;
    text-align: start;
}

.sl-inquiry__card-title {
    margin: 0;
    color: #161616;
    font-family: var(--font-seha);
    font-size: 20px;
    font-weight: 700;
    text-align: start;
}

.sl-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: start;
}

.sl-field label {
    color: #384250;
    font-family: var(--font-seha);
    font-size: 14px;
    font-weight: 600;
    text-align: start;
}

.sl-field input {
    width: 100%;
    height: 40px;
    border: 1px solid #9da4ae;
    border-radius: 4px;
    padding-inline: 12px;
    font-family: var(--font-seha);
    font-size: 14px;
    color: #161616;
    background: #fff;
    text-align: start;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.sl-field input::placeholder { color: #6c737f; }

.sl-field input:focus {
    border-color: #1b8354;
    box-shadow: 0 0 0 3px #1b83541f;
}

.sl-field input:disabled {
    background: #f9fafb;
    color: #161616;
    text-align: center;
    cursor: default;
    opacity: 1;
}

.sl-alert {
    margin: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    text-align: start;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.sl-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.sl-results__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: start;
}

.sl-results__item span {
    color: #6c737f;
    font-size: 13px;
    font-family: var(--font-seha);
}

.sl-results__item span:after { content: ":"; }

.sl-results__item b {
    color: #161616;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-seha);
    overflow-wrap: anywhere;
}

.sl-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.sl-btn {
    flex: 1;
    min-width: 0;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-family: var(--font-seha);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.sl-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sl-btn .sl-search-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.sl-btn .sl-search-icon img {
    position: absolute;
    top: 1.25px;
    left: 1.25px;
    width: 21.5px;
    height: 21.5px;
}

.sl-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.sl-btn--primary {
    background: #1b8354;
    border-color: #1b8354;
    color: #fff;
}

.sl-btn--primary .sl-search-icon img {
    filter: brightness(0) invert(1);
}

.sl-btn--primary:hover:not(:disabled) {
    background: #05603a;
    border-color: #05603a;
    color: #fff;
}

.sl-btn--outline {
    background: #fff;
    border-color: #d2d6db;
    color: #161616;
}

.sl-btn--outline:hover:not(:disabled) {
    background: #f9fafb;
    color: #161616;
}

.sl-btn .fa-spin,
.sl-btn svg.fa-spin {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #fff;
    fill: currentColor;
    animation: fa-spin 1s infinite linear;
    -webkit-animation: fa-spin 1s infinite linear;
}

@-webkit-keyframes fa-spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Footer = official light footer ===== */
.seha-footer {
    background: var(--footer-bg);
    color: #374151;
    margin-top: auto;
    padding: 40px 24px 24px;
    border-top: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.seha-footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.seha-footer h4 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
}

.seha-footer .col a {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    color: #4B5563;
}

.seha-footer .col a:hover { color: var(--seha-green); }

/* روابط تابعنا: نفس مربع أدوات الإتاحة — لا ترث padding روابط الفوتر */
.seha-footer .col a.social-icon-btn,
.seha-footer a.social-icon-btn {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: inherit !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    text-decoration: none !important;
    vertical-align: middle;
}

.seha-footer .col a.social-icon-btn:hover,
.seha-footer a.social-icon-btn:hover {
    color: inherit !important;
    border-color: #9da4ae;
}

.contact-lines .line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 13px;
    color: #4B5563;
}

.contact-lines .line a { padding: 0; color: inherit; }
.contact-lines svg,
.contact-lines .contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6B7280;
    object-fit: contain;
}

.footer-social-access {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    text-align: start;
}

.footer-follow,
.footer-access {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 320px;
    gap: 0;
    text-align: start;
}

.footer-follow h4,
.footer-access h4 {
    text-align: start;
    margin-bottom: 8px;
}

.footer-follow__icons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 0;
}

.social-icon-btn {
    box-sizing: border-box;
    border: 1px solid #D2D6DB;
    padding: 0 !important;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    border-radius: 4px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0;
    background-color: #fff;
    line-height: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.social-icon-btn img {
    width: 17.5px !important;
    height: 17.5px !important;
    max-width: 17.5px !important;
    max-height: 17.5px !important;
    object-fit: contain;
    object-position: center center;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    flex: 0 0 auto;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    vertical-align: middle;
}

.footer-access__items {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 0;
}

.footer-access__btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0;
    gap: 0;
    background: #fff;
    border: 1px solid #D2D6DB;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color .2s ease;
    line-height: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-access__btn:hover { border-color: #9da4ae; }

.footer-access__btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

elevenlabs-convai {
    z-index: 2147483000 !important;
}

.footer-bottom {
    max-width: 1180px;
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom .legal {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.7;
    flex: 1 1 320px;
}

.footer-bottom .legal .copyright-brand {
    color: #111827;
    font-weight: 700;
}

.footer-poweredby {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: #6B7280;
}

.footer-poweredby__icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.footer-bottom .legal .links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.footer-bottom .legal .links a { color: #6B7280; font-size: 12px; }
.footer-bottom .legal .links a:hover { color: var(--seha-green); }

.footer-partners {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 40px;
}

.footer-partners img {
    height: 36px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    display: block;
}

.footer-partners .vision2030-logo { height: 40px; max-width: 120px; }
.footer-partners .moh-logo { height: 38px; }
.footer-partners .ai-logo { height: 36px; }
.footer-partners .lean-logo { height: 28px; }

.footer-partners .contact__divider {
    width: 1px;
    height: 28px;
    background: #D1D5DB;
    display: inline-block;
}

@media (max-width: 980px) {
    .seha-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
    .page-title,
    .sl-inquiry__hero h1 {
        font-size: 48px;
        line-height: 60px;
        letter-spacing: -.96px;
    }
}

@media (max-width: 600px) {
    .sl-results { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .sl-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .seha-footer-grid { grid-template-columns: 1fr; }
    .sl-inquiry__hero-inner { padding: 28px 16px; }
    .page-title,
    .sl-inquiry__hero h1 {
        font-size: 28px;
        line-height: 1.25;
        letter-spacing: -.5px;
    }
    .sl-inquiry__card { padding: 20px 16px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-partners { gap: 12px; }
    .footer-partners .contact__divider { display: none; }
    .footer-social-access,
    .footer-follow,
    .footer-access {
        align-items: flex-start;
        text-align: start;
    }
}
