body.selfium-service-page {
    --selfium-bg: #020617;
    --selfium-text: #f8fafc;
    --selfium-muted: #94a3b8;
    --selfium-panel: rgba(255,255,255,.02);
    --selfium-border: rgba(255,255,255,.12);
    --selfium-field: #0f172a;
    margin: 0;
    min-height: 100vh;
    background: var(--selfium-bg);
    color: var(--selfium-text);
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}
body.selfium-service-page[data-theme="light"] {
    --selfium-bg: #f8fafc;
    --selfium-text: #0f172a;
    --selfium-muted: #475569;
    --selfium-panel: #ffffff;
    --selfium-border: rgba(15,23,42,.16);
    --selfium-field: #ffffff;
}
.selfium-service-header, .selfium-service-main, .selfium-service-footer { box-sizing: border-box; }
.selfium-service-header { border-bottom: 1px solid var(--selfium-border); background: var(--selfium-bg); }
.selfium-service-bar { max-width: 1200px; margin: auto; padding: 18px 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.selfium-service-brand { color: var(--selfium-text); font-weight: 800; font-size: 1.4rem; text-decoration: none; white-space: nowrap; }
.selfium-service-brand span { color: #60a5fa; }
.selfium-service-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; flex: 1; }
.selfium-service-nav a, .selfium-service-footer a, .selfium-service-back { color: var(--selfium-text); text-decoration: none; }
.selfium-service-nav a[aria-current="page"] { color: #60a5fa; text-decoration: underline; text-underline-offset: 6px; }
.selfium-service-theme { border: 1px solid var(--selfium-border); background: var(--selfium-panel); color: var(--selfium-text); border-radius: 10px; padding: 10px 14px; cursor: pointer; font: inherit; }
.selfium-service-main { max-width: 1000px; padding: 28px 20px 48px; margin: auto; }
.selfium-service-back { display: inline-block; margin-bottom: 20px; }
.selfium-service-panel { padding: clamp(16px, 4vw, 36px); background: var(--selfium-panel); border: 1px solid var(--selfium-border); border-radius: 20px; }
.selfium-service-page-title { font-size: clamp(1.5rem, 4vw, 2.1rem); text-align: center; margin: 0 0 24px; color: var(--selfium-text); }
body.selfium-service-page .selfium-service-panel .elementor-heading-title,
body.selfium-service-page .selfium-service-panel .everest-forms label,
body.selfium-service-page .selfium-service-panel .everest-forms .evf-label,
body.selfium-service-page .selfium-service-panel .everest-forms .description { color: var(--selfium-text); }
body.selfium-service-page .selfium-service-panel .everest-forms input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.selfium-service-page .selfium-service-panel .everest-forms select,
body.selfium-service-page .selfium-service-panel .everest-forms textarea {
    background-color: var(--selfium-field); color: var(--selfium-text); border-color: var(--selfium-border); max-width: 100%; font: inherit;
}
body.selfium-service-page .selfium-service-panel .everest-forms input::placeholder,
body.selfium-service-page .selfium-service-panel .everest-forms textarea::placeholder { color: var(--selfium-muted); opacity: 1; }
body.selfium-service-page .selfium-service-panel .everest-forms input[type="email"],
body.selfium-service-page .selfium-service-panel .everest-forms input[type="tel"],
body.selfium-service-page .selfium-service-panel .everest-forms input[type="url"] { direction: ltr; text-align: left; }
.selfium-service-footer { max-width: 1200px; padding: 24px 20px; margin: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--selfium-border); color: var(--selfium-muted); }
.selfium-service-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.selfium-service-header a, .selfium-service-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.selfium-service-header a:focus-visible, .selfium-service-footer a:focus-visible, .selfium-service-back:focus-visible, .selfium-service-theme:focus-visible { outline: 3px solid #60a5fa; outline-offset: 4px; }
.selfium-service-skip { position: absolute; top: 0; right: 20px; transform: translateY(-150%); padding: 12px; background: #2563eb; color: #fff; z-index: 10000; }
.selfium-service-skip:focus { transform: none; }
@media (max-width: 640px) {
    .selfium-service-nav { order: 3; flex-basis: 100%; gap: 4px 16px; }
    .selfium-service-theme { margin-inline-start: auto; }
    .selfium-service-main { padding: 20px 12px 32px; }
    .selfium-service-panel { padding: 16px 12px; }
}

/* Limit the original page logo; its intrinsic size is 1024 x 725. */
body.selfium-service-page .selfium-service-panel .elementor-widget-image img.wp-image-368 {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: min(180px, 100%) !important;
    max-height: 110px !important;
    object-fit: contain;
    margin: 0 auto 12px;
}
body.selfium-service-page .selfium-service-panel .elementor-widget-image {
    min-height: 0;
    margin-bottom: 8px;
}
/* The site's existing important background must not force dark mode here. */
body.selfium-service-page[data-theme="light"],
body.selfium-service-page[data-theme="dark"],
body.selfium-service-page:not([data-theme]) {
    background: var(--selfium-bg) !important;
    color: var(--selfium-text) !important;
    color-scheme: dark;
}
body.selfium-service-page[data-theme="light"] { color-scheme: light; --selfium-link: #1d4ed8; --selfium-border: #94a3b8; }
body.selfium-service-page[data-theme="dark"], body.selfium-service-page:not([data-theme]) { --selfium-link: #93c5fd; }
.selfium-service-brand { direction: ltr; unicode-bidi: isolate; }
body.selfium-service-page .selfium-service-main { background: transparent; }
body.selfium-service-page .selfium-service-back { color: var(--selfium-link); font-weight: 600; }
body.selfium-service-page .selfium-service-nav a[aria-current="page"],
body.selfium-service-page .selfium-service-brand span { color: var(--selfium-link); }
body.selfium-service-page .selfium-service-theme { background: var(--selfium-field); color: var(--selfium-text); }
body.selfium-service-page .selfium-service-panel .everest-forms,
body.selfium-service-page .selfium-service-panel .everest-forms .evf-container {
    background: transparent !important; color: var(--selfium-text);
}
body.selfium-service-page .selfium-service-panel .everest-forms button[type="submit"] {
    background: #1d4ed8 !important; color: #ffffff !important;
    border: 1px solid #1d4ed8; border-radius: 10px;
}
body.selfium-service-page .selfium-service-panel .everest-forms input:focus-visible,
body.selfium-service-page .selfium-service-panel .everest-forms select:focus-visible,
body.selfium-service-page .selfium-service-panel .everest-forms textarea:focus-visible {
    outline: 3px solid var(--selfium-link); outline-offset: 2px;
}

/* Existing form styles declare white text and translucent borders as important. */
body.selfium-service-page .selfium-service-panel .elementor-heading-title,
body.selfium-service-page .selfium-service-panel .everest-forms label,
body.selfium-service-page .selfium-service-panel .everest-forms .evf-label,
body.selfium-service-page .selfium-service-panel .everest-forms .description {
    color: var(--selfium-text) !important;
}
body.selfium-service-page .selfium-service-panel .everest-forms input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.selfium-service-page .selfium-service-panel .everest-forms select,
body.selfium-service-page .selfium-service-panel .everest-forms textarea {
    background: var(--selfium-field) !important;
    color: var(--selfium-text) !important;
    -webkit-text-fill-color: var(--selfium-text);
    border: 1px solid var(--selfium-border) !important;
}
body.selfium-service-page .selfium-service-panel .everest-forms input::placeholder,
body.selfium-service-page .selfium-service-panel .everest-forms textarea::placeholder {
    color: var(--selfium-muted) !important;
    -webkit-text-fill-color: var(--selfium-muted);
}
body.selfium-service-page[data-theme="light"] .selfium-service-panel img.wp-image-368 { filter: brightness(0); }

/* Keep the telephone widget LTR inside RTL forms; theme the dropdown itself. */
body.selfium-service-page .selfium-service-panel .iti { direction: ltr; width: 100%; }
body.selfium-service-page .selfium-service-panel .iti__country-list {
    background: var(--selfium-field); color: var(--selfium-text);
    border: 1px solid var(--selfium-border); border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    max-width: min(360px, calc(100vw - 48px)); width: max-content;
    max-height: 240px; white-space: normal; text-align: left;
}
body.selfium-service-page .selfium-service-panel .iti__country {
    display: flex; align-items: center; gap: 10px; min-height: 44px;
    padding: 10px 14px; color: var(--selfium-text); direction: ltr;
}
body.selfium-service-page .selfium-service-panel .iti__country-name { margin: 0; color: var(--selfium-text); }
body.selfium-service-page .selfium-service-panel .iti__dial-code { color: var(--selfium-muted); margin-left: auto; }
body.selfium-service-page .selfium-service-panel .iti__flag-box { margin: 0; flex-shrink: 0; }
body.selfium-service-page .selfium-service-panel .iti__country.iti__highlight { background: rgba(59,130,246,.18); }
body.selfium-service-page .selfium-service-panel .iti__selected-flag { border-radius: 7px 0 0 7px; }
body.selfium-service-page .selfium-service-panel .iti input[type=tel] { padding-left: 58px !important; }

body.selfium-service-page .selfium-service-panel .iti__country-list { background: var(--selfium-field) !important; color: var(--selfium-text) !important; }

body.selfium-service-page .selfium-service-panel .iti:focus-within { z-index: 1000; }
body.selfium-service-page .selfium-service-panel .iti__country-list { z-index: 1001; }

html:has(body.selfium-service-page), body.selfium-service-page .iti__country-list { scroll-behavior: auto !important; }

body.selfium-service-page .selfium-service-panel .iti__country-list .iti__country { display: flex !important; gap: 10px !important; }
body.selfium-service-page .selfium-service-panel .iti__country-list .iti__dial-code { margin-left: auto !important; padding-left: 12px; }

/* Subscription only: remove the legacy nested card, retain all form fields. */
body.selfium-service-page.page-id-259 .selfium-service-panel .everest-forms {
    width: 100% !important; max-width: none !important;
    margin: 16px 0 0 !important; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important;
}
body.selfium-service-page.page-id-259 .selfium-service-panel .elementor-widget-heading[hidden] { display: none !important; }
body.selfium-service-page.page-id-259 .selfium-service-panel .elementor-widget-image img.wp-image-368 { max-height: 64px !important; }
body.selfium-service-page.page-id-259 .selfium-service-panel .elementor-widget-image { margin: 0 0 8px !important; }
body.selfium-service-page.page-id-259 .selfium-service-panel .everest-forms button[type="submit"] { min-height: 48px; width: 100%; }
