/* Public lead-capture landing page — rebuilt from the approved design mockup (Landing.dc.html)
   using the resolved design tokens transcribed from
   _ds/industry-388007cf-a065-4b5f-bd2b-01a60a01d210/styles.css (NOT linked directly — that
   stylesheet pulls a Google Fonts import and ships a "blueprint" square-wireframe override meant
   for a different project). Loads Cairo/Tajawal directly via public/landing.html's own <head>
   instead, matching the design update applied across Login/Landing/Dashboard.

   One token override carried over verbatim from the mockup's own <style> block: the mockup sets
   `:root { --color-text: #00336A; }`, i.e. body text/placeholders throughout this screen are
   navy-tinted rather than the design system's default near-black. That is intentional (matches the
   navy CTA buttons) and is reproduced below via --lf-text instead of overriding the global
   --color-text used elsewhere in the app. */

* {
  box-sizing: border-box;
}

:root {
  --lf-text: #00336a;
  --lf-bg: #f2f2f3;
  --lf-surface: #e9e9ea;
  --lf-divider: rgba(29, 31, 32, 0.16);
  --lf-navy: #00336a;
  --lf-navy-hover: #002850;
  --lf-navy-active: #001c3a;
  --lf-accent-900: #1d2d3d;
  --lf-muted: rgba(0, 51, 106, 0.55);
  --lf-shadow-md: 0 3px 10px rgba(43, 43, 45, 0.16);
  --lf-shadow-lg: 0 12px 32px rgba(43, 43, 45, 0.22);
  --lf-space-1: 3.4px;
  --lf-space-2: 6.8px;
  --lf-space-3: 10.2px;
  --lf-space-4: 13.6px;
  --lf-space-6: 20.4px;
  --lf-space-8: 27.2px;
}

body {
  margin: 0;
  font-family: "Tajawal", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--lf-text);
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--lf-navy);
}
a:hover {
  color: var(--lf-accent-900);
}

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--lf-bg);
}

/* — nav — always laid out left-to-right (logo left, language toggle right) regardless of the
     page's current reading direction, matching the mockup's `style="direction:ltr"` on the nav. */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lf-space-2);
  padding: var(--lf-space-3) var(--lf-space-4);
  direction: ltr;
}
.landing-logo {
  height: 60px;
  width: auto;
  display: block;
}
.lang-toggle {
  background: transparent;
  border: none;
  color: #416180;
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
  padding: 0 var(--lf-space-3);
  border-radius: 4px;
  cursor: pointer;
}
.lang-toggle:hover {
  background: rgba(65, 97, 128, 0.1);
}

/* — main column — */
.landing-main {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  padding: var(--lf-space-6) var(--lf-space-4) var(--lf-space-8);
}

.landing-title {
  text-align: center;
  margin-bottom: var(--lf-space-6);
}
.landing-title h1 {
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--lf-space-2);
}
.landing-subtitle {
  color: var(--lf-accent-900);
  margin: 0;
  font-size: 14px;
}

/* — form — */
.lf-form {
  display: grid;
  gap: var(--lf-space-4);
}
.lf-field {
  min-width: 0;
}

.lf-input,
.lf-input.lf-select {
  font-size: 16px;
  line-height: 20px;
  padding: 8px var(--lf-space-3);
  width: 100%;
  height: 36px;
  border-radius: 10px;
  background: var(--lf-surface);
  border: 1px solid var(--lf-divider);
  color: var(--lf-text);
  font: inherit;
}
.lf-input:hover {
  border-color: rgba(29, 31, 32, 0.45);
}
.lf-input:focus-visible {
  outline: 2px solid #5980a6;
  outline-offset: 0;
  border-color: #5980a6;
}
.lf-input::placeholder {
  color: var(--lf-muted);
  font-size: 16px;
}

.lf-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2300336A' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px 14px;
  background-position: right 10px center;
  padding-right: 30px;
}
[dir="rtl"] .lf-select {
  background-position: left 10px center;
  padding-left: 30px;
  padding-right: var(--lf-space-3);
  font-size: 13px;
}
.lf-select.lf-select-placeholder {
  color: var(--lf-muted);
}

.lf-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--lf-space-3);
}
.lf-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--lf-space-3);
}
.lf-grid-2 > .lf-field {
  min-width: 0;
}
@media (max-width: 380px) {
  .lf-grid-3 .lf-select {
    font-size: 12px;
    padding-left: 6px;
    padding-right: 6px;
  }
}
@media (max-width: 340px) {
  .lf-grid-3 .lf-select {
    font-size: 10px;
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* — phone: fixed +971 prefix, always LTR regardless of page direction — */
.lf-phone-wrap {
  display: flex;
  align-items: center;
  padding: 0 !important;
  height: 36px;
}
.lf-phone-prefix {
  padding: 0 4px 0 var(--lf-space-3);
  color: var(--lf-muted);
  white-space: nowrap;
  font-size: 14px;
  line-height: 20px;
  display: flex;
  align-items: center;
}
.lf-phone-input {
  border: none !important;
  outline: none;
  background: transparent !important;
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 var(--lf-space-3) 0 2px !important;
  font-size: 14px;
  line-height: 20px;
  color: var(--lf-text);
}
.lf-phone-input::placeholder {
  color: var(--lf-muted);
  font-size: 14px;
}

/* — email: always LTR/left-aligned; in Arabic the placeholder text itself is RTL-aligned — */
.lf-email-input {
  text-align: left;
}
.lf-email-input.lf-ph-rtl::placeholder {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

/* — file uploads: custom paperclip control replacing native file input chrome — */
.lf-file-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--lf-muted);
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  width: 100%;
}
.lf-file-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lf-file-btn svg {
  flex-shrink: 0;
}
.lf-file-btn.lf-file-ok {
  border-color: #1a8a4a !important;
}
.lf-file-btn.lf-file-bad {
  border-color: #c23b3b !important;
}

/* — error banner — */
.lf-error {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  padding: var(--lf-space-2) var(--lf-space-3);
  font-size: 12px;
  margin: 0;
  border-radius: 4px;
}
.lf-error[hidden] {
  display: none;
}
.lf-error div + div {
  margin-top: 2px;
}

/* — checkboxes — */
.lf-checkbox-group {
  display: grid;
  gap: 4px;
}
.lf-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
}
.lf-checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--lf-navy);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}
.lf-checkbox-row label {
  cursor: pointer;
}
.lf-checkbox-row a {
  text-decoration: underline;
}

/* — buttons — */
.lf-btn-primary {
  height: 36px;
  border-radius: 10px;
  background: var(--lf-navy);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  margin-top: var(--lf-space-2);
}
.lf-btn-primary:hover {
  background: var(--lf-navy-hover);
}
.lf-btn-primary:active {
  background: var(--lf-navy-active);
}
.lf-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* — channel-choice big CTA buttons (bigger than the form's 36px fields) — */
.lf-channel-buttons {
  display: grid;
  gap: var(--lf-space-3);
}
.lf-btn-cta {
  min-height: 52px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}
.lf-btn-cta-primary {
  background: var(--lf-navy);
  color: #fff;
  border: none;
}
.lf-btn-cta-primary:hover {
  background: var(--lf-navy-hover);
}
.lf-btn-cta-outline {
  background: transparent;
  color: var(--lf-navy);
  border: 1px solid var(--lf-navy);
}
.lf-btn-cta-outline:hover {
  background: rgba(0, 51, 106, 0.06);
}

/* — cards (channel-choice / thank-you stages) — */
.lf-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--lf-shadow-md);
  padding: var(--lf-space-6);
  text-align: center;
}
.lf-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--lf-space-2);
}
.lf-card-body {
  margin: 0 0 var(--lf-space-6);
  color: var(--lf-accent-900);
}
.lf-edit-link {
  margin-top: var(--lf-space-6);
  margin-bottom: 0;
  font-size: 13px;
}

/* — terms modal — */
.lf-dialog-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--lf-space-4);
  background: rgba(43, 43, 45, 0.5);
  z-index: 50;
}
.lf-dialog-backdrop[hidden] {
  display: none;
}
.lf-dialog {
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--lf-space-3);
  padding: var(--lf-space-4);
  background: #fff;
  box-shadow: var(--lf-shadow-lg);
}
.lf-dialog-title {
  font-weight: 600;
  font-size: 15px;
}
.lf-dialog-body {
  font-size: 12px;
  line-height: 1.6;
  max-height: 55vh;
  overflow-y: auto;
  padding-inline-end: 4px;
}
.lf-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--lf-space-2);
  margin-top: var(--lf-space-2);
}

/* Non-selectable/non-copyable terms body. This CSS layer alone does not stop a determined
   Ctrl+C/right-click in every browser — landing.js also attaches copy/cut/contextmenu/selectstart
   listeners that call preventDefault() on this element; the two together are the actual guard. */
.lf-noselect {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.terms-h1 {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 6px;
}
.terms-h2 {
  font-weight: 600;
  font-size: 12px;
  margin: 14px 0 4px;
  color: var(--lf-navy);
}
.terms-p {
  margin: 0 0 8px;
}
.terms-em {
  margin: 8px 0;
  opacity: 0.7;
  font-style: italic;
}
.terms-list {
  margin: 0 0 8px;
  padding-inline-start: 16px;
}
.terms-list li {
  margin: 0 0 4px;
}
.terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin: 4px 0 8px;
}
.terms-table th {
  text-align: start;
  font-weight: 700;
  border-bottom: 1px solid var(--lf-divider);
  padding: 4px 6px;
}
.terms-table td {
  padding: 3px 6px;
  border-bottom: 1px solid var(--lf-divider);
}
