/* MedFix — Shared Stylesheet (sub-pages) */
:root{
  --navy:#0C3765;--navy-2:#123F6E;--primary:#32B3B7;--primary-600:#2A9A9E;--primary-50:#E4F4F4;
  --green:#32B3B7;--amber:#f5a623;--red:#e25563;--slate:#475569;--ink:#0C3765;--muted:#64748b;
  --line:#e5ebf3;--bg:#f6f9fc;--white:#fff;--radius:16px;
  --shadow-sm:0 1px 2px rgba(16,27,45,.06),0 1px 3px rgba(16,27,45,.05);
  --shadow-md:0 8px 24px rgba(16,27,45,.08);--shadow-lg:0 20px 50px rgba(16,27,45,.12);--maxw:1180px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter','Noto Sans Arabic',sans-serif;background:var(--bg);color:var(--ink);line-height:1.8;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.btn{display:inline-flex;align-items:center;gap:8px;font-family:inherit;font-size:15px;font-weight:600;padding:13px 24px;border-radius:12px;border:none;cursor:pointer;transition:transform .18s,box-shadow .18s,background .18s}
.btn-primary{background:var(--navy);color:#fff;box-shadow:0 4px 14px rgba(50,179,183,.28)}
.btn-primary:hover{background:#09263F;transform:translateY(-2px)}
.btn-ghost{background:transparent;color:var(--ink);border:1.5px solid var(--line)}
.btn-ghost:hover{border-color:var(--primary);color:var(--primary)}
.btn-block{width:100%;justify-content:center}

/* NAV */
header.nav{position:sticky;top:0;z-index:50;background:rgba(246,249,252,.9);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:72px}
.logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:20px;color:var(--navy)}
.logo .mark{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,var(--primary),#3CC3C7);display:grid;place-items:center;box-shadow:0 4px 12px rgba(50,179,183,.3)}
.logo .mark svg{width:19px;height:19px}
.nav-links{display:flex;align-items:center;gap:28px}
.nav-links a{font-size:15px;font-weight:500;color:var(--slate)}
.nav-links a:hover{color:var(--primary)}
.nav-cta{display:flex;align-items:center;gap:12px}
@media(max-width:880px){.nav-links{display:none}.nav-cta .btn-ghost{display:none}}

/* PAGE HERO (sub-page header band) */
.page-hero{background:var(--navy);position:relative;overflow:hidden;padding:54px 0}
.page-hero::before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.05) 1px,transparent 0);background-size:30px 30px}
.page-hero .wrap{position:relative;z-index:1}
.page-hero .crumb{font-size:13px;color:#9fb2cc;margin-bottom:10px}
.page-hero .crumb a:hover{color:#fff}
.page-hero h1{color:#fff;font-size:32px;font-weight:700;letter-spacing:-.4px}
.page-hero p{color:#b9c8de;font-size:16px;margin-top:8px;max-width:680px}

/* CONTENT */
main{padding:54px 0 70px;min-height:40vh}
.content{max-width:820px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:44px}
.content h2{font-size:21px;font-weight:700;color:var(--ink);margin:30px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.content h2:first-child{margin-top:0}
.content h3{font-size:16px;font-weight:600;margin:18px 0 8px}
.content p{font-size:15.5px;color:var(--slate);margin-bottom:12px}
.content ul{margin:0 22px 14px;color:var(--slate);font-size:15.5px}
.content ul li{margin-bottom:7px}
.content .meta{font-size:13px;color:var(--muted);margin-bottom:6px}
.content table{width:100%;border-collapse:collapse;margin:14px 0;font-size:14.5px}
.content table th,.content table td{border:1px solid var(--line);padding:10px 12px;text-align:right}
.content table th{background:#fafcfe;font-weight:600}

/* draft note */
.draft-note{display:flex;gap:11px;align-items:flex-start;background:#fff8ec;border:1px solid #f5d9a5;border-radius:12px;padding:14px 16px;margin-bottom:26px;font-size:14px;color:#8a5a12}
.draft-note svg{width:19px;height:19px;flex-shrink:0;color:var(--amber);margin-top:2px}
.draft-note b{color:#6e480e}

/* disclaimer emphasis */
.alert-box{background:#fdeef0;border:1px solid #f3c2c8;border-radius:12px;padding:16px 18px;margin:18px 0;color:#8c2c38;font-size:15px}
.alert-box b{color:#6e1f29}

/* AUTH */
.auth-shell{display:flex;align-items:center;justify-content:center;padding:60px 24px;min-height:calc(100vh - 72px)}
.auth-card{width:100%;max-width:420px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-md);padding:38px 34px}
.auth-card .logo{justify-content:center;margin-bottom:8px}
.auth-card h1{text-align:center;font-size:22px;font-weight:700;margin-bottom:6px}
.auth-card .sub{text-align:center;font-size:14px;color:var(--muted);margin-bottom:26px}
.field{margin-bottom:16px}
.field label{display:block;font-size:14px;font-weight:600;margin-bottom:7px;color:var(--ink)}
.field input{width:100%;font-family:inherit;font-size:15px;padding:12px 14px;border:1.5px solid var(--line);border-radius:11px;background:#fbfdff;transition:border-color .15s}
.field input:focus{outline:none;border-color:var(--primary)}
.field-row{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:20px}
.field-row a{color:var(--primary);font-weight:600}
.auth-foot{text-align:center;font-size:14px;color:var(--muted);margin-top:22px}
.auth-foot a{color:var(--primary);font-weight:600}

/* CONTACT / DEMO form */
.form-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:start}
.form-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:34px}
.form-card textarea{width:100%;font-family:inherit;font-size:15px;padding:12px 14px;border:1.5px solid var(--line);border-radius:11px;background:#fbfdff;min-height:110px;resize:vertical}
.form-card textarea:focus{outline:none;border-color:var(--primary)}
.info-card{background:var(--navy);border-radius:var(--radius);padding:30px;color:#cdd9ea}
.info-card h3{color:#fff;font-size:18px;margin-bottom:18px}
.info-item{display:flex;gap:12px;align-items:flex-start;margin-bottom:18px;font-size:14px}
.info-item svg{width:20px;height:20px;color:var(--green);flex-shrink:0;margin-top:2px}
.info-item b{color:#fff;display:block;margin-bottom:2px;font-size:13px}
@media(max-width:780px){.form-grid{grid-template-columns:1fr}}

/* FAQ */
.faq-list{max-width:780px;margin:0 auto}
.faq-item{background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:14px;overflow:hidden}
.faq-item summary{cursor:pointer;list-style:none;padding:18px 22px;font-size:16px;font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:12px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary .ico{width:24px;height:24px;flex-shrink:0;color:var(--primary);transition:transform .2s}
.faq-item[open] summary .ico{transform:rotate(45deg)}
.faq-item .ans{padding:0 22px 20px;color:var(--slate);font-size:15px}

/* STATUS pages (404, payment) */
.status{text-align:center;max-width:520px;margin:0 auto;padding:70px 24px}
.status .badge{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;margin:0 auto 24px}
.status .badge svg{width:38px;height:38px}
.status.ok .badge{background:#E4F4F4} .status.ok .badge svg{color:var(--green)}
.status.err .badge{background:#fdeef0} .status.err .badge svg{color:var(--red)}
.status.info .badge{background:var(--primary-50)} .status.info .badge svg{color:var(--primary)}
.status h1{font-size:30px;font-weight:700;margin-bottom:12px}
.status p{font-size:16px;color:var(--slate);margin-bottom:26px}
.status .big{font-size:72px;font-weight:700;color:var(--primary);line-height:1;margin-bottom:8px}

/* About */
.about-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:34px}
.about-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;box-shadow:var(--shadow-sm)}
.about-card .ic{width:46px;height:46px;border-radius:12px;background:var(--primary-50);color:var(--primary);display:grid;place-items:center;margin-bottom:14px}
.about-card .ic svg{width:23px;height:23px}
.about-card h3{font-size:17px;margin-bottom:7px}
.about-card p{font-size:14.5px;color:var(--slate)}
@media(max-width:780px){.about-grid{grid-template-columns:1fr}}

/* FOOTER */
footer{background:#0C3765;color:#9fb2cc;padding:60px 0 26px;margin-top:40px}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:36px;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,.08)}
.foot-brand .logo{color:#fff;margin-bottom:14px}
.foot-brand p{font-size:14px;max-width:300px}
.foot-col h4{color:#fff;font-size:14px;font-weight:700;margin-bottom:16px}
.foot-col a{display:block;font-size:14px;color:#9fb2cc;padding:6px 0}
.foot-col a:hover{color:#fff}
.foot-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding-top:24px;font-size:13px}
.foot-bottom .vat{color:#7b8db0}
.foot-bottom .legal-mini{display:flex;gap:18px;flex-wrap:wrap}
@media(max-width:880px){.foot-grid{grid-template-columns:1fr 1fr}.page-hero h1{font-size:25px}}

/* MOBILE MENU */
.mobile-only{display:none}
.menu-toggle{display:none;background:none;border:none;cursor:pointer;padding:0}
@media(max-width:880px){
  .menu-toggle{display:grid;place-items:center;width:42px;height:42px;color:var(--navy);margin-inline-start:6px}
  header.nav.nav-open .nav-links{display:flex;flex-direction:column;align-items:stretch;gap:0;position:absolute;top:72px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 14px 28px rgba(11,37,69,.08);padding:6px 20px 14px}
  header.nav.nav-open .nav-links a{padding:13px 0;border-bottom:1px solid var(--line)}
  header.nav.nav-open .nav-links a:last-child{border-bottom:0}
  .nav-links .mobile-only{display:block}
  .nav-cta .btn-primary{white-space:nowrap;padding:10px 14px;font-size:14px}
}

/* FORM ERROR */
.form-error{background:#fdecec;color:#a12b2b;border:1px solid #f5c2c2;border-radius:10px;padding:12px 14px;font-size:14px;margin-bottom:16px;line-height:1.8}

/* SUPPORT PAGE */
.field select{width:100%;font-family:inherit;font-size:15px;padding:12px 14px;border:1.5px solid var(--line);border-radius:11px;background:#fbfdff;color:var(--ink)}
.field select:focus{outline:none;border-color:var(--primary)}
.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-title{font-size:20px;margin-bottom:20px;color:var(--ink)}
.support-channels{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:36px}
.channel-card{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow-sm);color:var(--slate);font-size:14px;transition:transform .2s,box-shadow .2s}
.channel-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.channel-card b{color:var(--ink);font-size:16px}
.channel-card .ch-ic{width:44px;height:44px;border-radius:12px;background:var(--primary-50);color:var(--primary);display:grid;place-items:center;margin-bottom:6px}
.channel-card .ch-ic svg{width:22px;height:22px}
.sla-list{display:grid;gap:10px}
.sla-row{display:flex;align-items:center;gap:10px;font-size:14px}
.sla-tag{min-width:58px;text-align:center;font-size:12px;font-weight:700;padding:3px 10px;border-radius:20px}
.sla-tag.crit{background:#fdecec;color:#c53030}.sla-tag.high{background:#fdf3e2;color:#b7791f}.sla-tag.med{background:#e7f0fb;color:#2b6cb0}.sla-tag.low{background:#eef2f7;color:#475569}
.sla-note{margin-top:16px;font-size:13px}.sla-note a{color:#fff;text-decoration:underline}
.support-tips{margin-top:36px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px 30px}
.support-tips h3{font-size:17px;margin-bottom:10px;color:var(--ink)}
.support-tips ul{padding-right:18px;color:var(--slate);font-size:15px;line-height:2}
.support-tips li a{color:var(--primary);font-weight:600}
@media(max-width:780px){.support-channels{grid-template-columns:1fr}.field-pair{grid-template-columns:1fr;gap:0}}

/* Honeypot field: invisible to people, no layout shift in RTL */
.hp{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;opacity:0}

/* DEMO PAGE */
.cred{display:flex;align-items:center;gap:12px;background:#f6f9fc;border:1px solid var(--line);border-radius:11px;padding:12px 14px;margin-bottom:12px}
.cred-label{font-size:13px;color:var(--muted);min-width:110px}
.cred code{flex:1;font-family:'Inter',monospace;font-size:16px;font-weight:600;color:var(--ink);text-align:left}
.copy-btn{background:#fff;border:1px solid var(--line);border-radius:8px;width:34px;height:34px;display:grid;place-items:center;cursor:pointer;color:var(--slate)}
.copy-btn svg{width:16px;height:16px}
.copy-btn.copied{background:var(--primary-50);color:var(--primary);border-color:var(--primary)}
.demo-card .btn-block{margin-top:8px}
.demo-note{margin-top:14px;font-size:13px;color:var(--muted);line-height:1.8}
.demo-next p{color:var(--slate);margin-bottom:16px}
.demo-actions{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:560px){.cred{flex-wrap:wrap;gap:6px 10px}.cred-label{min-width:0;width:100%}.cred code{font-size:15px;word-break:break-all}}

/* ABOUT PAGE */
.about-title{text-align:center;font-size:26px;color:var(--ink);margin:56px 0 0}
.steps{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin:28px 0 0;padding:0}
.step{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px 18px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--slate)}
.step b{color:var(--ink);font-size:15.5px}
.step-no{width:34px;height:34px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:700;margin-bottom:6px}
.about-cta{margin-top:56px;background:var(--navy);border-radius:var(--radius);padding:34px 36px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.about-cta h3{color:#fff;font-size:22px;margin-bottom:6px}
.about-cta p{color:#cdd9ea;font-size:15px}
.about-cta-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:980px){.steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.steps{grid-template-columns:1fr}.about-title{font-size:22px}}

/* Buttons on dark panels (shared with the homepage) */
.btn-light{background:rgba(255,255,255,.12);color:#fff;border:1.5px solid rgba(255,255,255,.22)}
.btn-light:hover{background:rgba(255,255,255,.2)}
.btn-white{background:#fff;color:var(--primary)}
.btn-white:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(0,0,0,.18)}
.faq-item .ans a{color:var(--primary);font-weight:600}
/* faint MedFix logo behind the footer */
footer{position:relative;overflow:hidden}
footer::before{content:"";position:absolute;inset:auto auto -70px -90px;width:780px;height:205px;background:url(logo-white.svg) no-repeat center/contain;opacity:.045;pointer-events:none}
footer > .wrap{position:relative;z-index:1}
@media(max-width:880px){footer::before{width:460px;height:121px;left:-60px;bottom:-30px}}


/* New Saudi riyal symbol (official SAMA artwork), drawn in the current text colour */
.sar{display:inline-block;width:.82em;height:.92em;vertical-align:-0.08em;fill:currentColor}



@media(max-width:380px){.nav-cta{gap:6px}.nav-cta .btn-primary{padding:8px 9px;font-size:12.5px}.logo img{height:24px!important}}









/* Mobile field with searchable country picker (intl-tel-input) */
.phone-wrap .iti{width:100%;display:block}
.phone-wrap input[type=tel]{width:100%;font-family:inherit;font-size:15px;padding-top:12px;padding-bottom:12px;padding-right:14px;border:1.5px solid var(--line);border-radius:11px;background:#fbfdff;direction:ltr;text-align:left}
.phone-wrap input[type=tel]:focus{outline:none;border-color:var(--primary)}
.phone-wrap .iti__selected-dial-code{font-family:'Inter',sans-serif;color:var(--ink)}
.phone-wrap .iti__country-selector{border-radius:12px;border:1px solid var(--line);box-shadow:0 12px 30px rgba(12,55,101,.14);overflow:hidden}
.phone-wrap .iti__search-input{font-family:inherit;font-size:14px}
html[lang="ar"] .phone-wrap .iti__country-name{direction:rtl}
.phone-wrap .iti__country{font-size:14px;padding:9px 12px}
.phone-wrap .iti__country.iti__highlight{background:var(--primary-50)}

/* Language switcher */
.lang-switch{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--navy);padding:8px 12px;border-radius:10px;border:1px solid var(--line);background:#fff}.lang-switch:hover{border-color:var(--primary);color:var(--primary)}.lang-switch svg{width:15px;height:15px}.lang-switch .ls-short{display:none}@media(max-width:880px){.lang-switch{padding:7px 9px;font-size:13px}.lang-switch .ls-full{display:none}.lang-switch .ls-short{display:inline}}

.page-hero .hero-note{margin-top:10px;font-size:15px}
.page-hero .hero-note a{color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px}
