:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color-scheme:light;--ink:#1d1d1f;--muted:#69717c;--line:#dce1e6;--accent:#147d64}*{box-sizing:border-box}html{scroll-padding-top:16px}body{margin:0;background:#f5f5f7;color:var(--ink);line-height:1.55}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;border-radius:12px;background:var(--accent);color:#fff;font-weight:650;padding:.75rem 1rem;min-height:44px;touch-action:manipulation}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #168367;outline-offset:3px}a{color:inherit}.site-head{max-width:820px;margin:auto;padding:1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.site-head a{display:flex;align-items:center;min-height:44px}.layout{max-width:820px;margin:auto;padding:0 1rem 80px}.intro h1{font-size:clamp(1.65rem,4.5vw,2.35rem);line-height:1.3;margin:1rem 0 .5rem}.intro p{max-width:65ch;margin:.4rem 0}.note,.hint{color:var(--muted);font-size:.9rem}.intro .note{font-size:.78rem;margin-top:.65rem}.step-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:1.5rem 0 1rem}.step{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;color:var(--muted);font-size:.82rem}.step-number{display:flex;align-items:center;justify-content:center;border-radius:50%;width:30px;height:30px;background:#e7e9ed;font-weight:700}.step.current{color:#0c654f;font-weight:700}.step.current .step-number{background:var(--accent);color:white}.form-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:clamp(16px,4vw,32px);box-shadow:0 8px 30px #1d1d1f06}.step-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1.2rem}.step-head h2{margin:0;font-size:1.35rem}.step-head h2:focus{outline:none}.step-count{color:var(--muted);font-size:.85rem;white-space:nowrap}.question{display:grid;gap:.45rem;margin:.8rem 0 .35rem}.question strong,legend{font-size:1rem;font-weight:650}.field-group{min-width:0;margin-bottom:1rem}input:not([type=checkbox]),textarea,select{display:block;width:100%;min-width:0;min-height:48px;padding:.75rem .85rem;border:1px solid #bbc2ca;border-radius:12px;background:#fff;color:var(--ink);font-size:16px;line-height:1.5}textarea{resize:vertical;min-height:105px}.contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.name-hint{margin-top:-.55rem}.small,.secondary{background:#eef0f2;color:var(--ink)}.small{font-size:.85rem;padding:.5rem .8rem}.suggest-toggle,.text-button{background:transparent;color:#106951;padding:.3rem .35rem;font-size:.85rem;min-height:40px}.suggestions{border:1px solid var(--line);border-radius:12px;margin:.3rem 0;max-height:270px;overflow:auto;overscroll-behavior:contain}.suggestions[hidden]{display:none}.suggestions button{display:flex;flex-direction:column;gap:2px;width:100%;min-height:58px;text-align:start;background:#fff;color:var(--ink);border-radius:0;border-bottom:1px solid #edf0f3;padding:.7rem .9rem}.suggestions button span{font-size:.85rem;font-weight:400;color:var(--muted)}.suggestions button:hover,.suggestions button:focus-visible,.suggestions button[aria-selected=true]{background:#edf7f2}.suggestions p{padding:.5rem .8rem}.translation-slot:empty{display:none}.translation-slot{padding:.65rem .8rem;margin-top:.3rem;background:#f2f8f5;border-radius:10px;font-size:.9rem;overflow-wrap:anywhere}.translation-slot p{margin:.2rem 0;white-space:pre-wrap}.translation-slot .hint{font-size:.8rem}.translation-caption{display:flex;justify-content:space-between;align-items:center;gap:.5rem;color:#497366;font-size:.75rem}.translation-caption .text-button{min-height:36px;padding:0 .3rem}.translation-slot .question{margin:0 0 .5rem}.warning,#error{color:#a32929;font-size:.9rem}.photo-section{display:flex;gap:14px;align-items:center;flex-wrap:wrap;border:1px dashed #cbd2d7;border-radius:14px;padding:14px;margin-top:.8rem}.photo-section strong{font-size:.95rem}.photo-section small{font-weight:400;color:var(--muted)}.photo-placeholder,.photo-thumb{display:flex;align-items:center;justify-content:center;width:64px;height:76px;border-radius:8px;object-fit:contain;background:#eef1f2;color:#93a09a;font-size:1.5rem}.photo-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:6px}.upload-button{position:relative;overflow:hidden;display:inline-flex;align-items:center;min-height:44px;padding:.4rem .7rem;border-radius:10px;background:#eaf4ee;color:#146750;font-size:.9rem;cursor:pointer}.upload-button input{position:absolute;inset:0;opacity:0;cursor:pointer;max-width:100%}.upload-button:focus-within{outline:3px solid var(--accent);outline-offset:3px}#photo-status{flex-basis:100%;font-size:.8rem;margin:0}#photo-status:empty{display:none}fieldset{border:0;padding:0;margin:1rem 0;min-width:0}legend{margin-bottom:.8rem}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.choice{display:flex;gap:.6rem;align-items:center;min-height:52px;padding:.7rem .8rem;border:1px solid var(--line);border-radius:12px;font-size:.95rem;cursor:pointer}.choice:has(input:checked){background:#edf7f2;border-color:#9ac9b6}.choice input{width:20px;height:20px;flex:none;accent-color:var(--accent)}.actions{display:flex;gap:.7rem;margin-top:1.5rem;justify-content:flex-end}.actions button{min-height:50px;min-width:110px}.draft-footer{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-top:.5rem}.draft-footer p{font-size:.75rem}.draft-footer .text-button{white-space:nowrap;font-size:.75rem;color:var(--muted)}.review-edit{display:flex;flex-wrap:wrap;gap:.5rem}.review-edit button{font-size:.8rem}.paper{background:white;color:#161719;direction:ltr;text-align:left;margin:1.2rem auto;padding:2rem;border:1px solid var(--line);max-width:720px;overflow-wrap:anywhere}.cv-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1.2rem;border-bottom:2px solid #333}.cv-heading>div{min-width:0;flex:1}.paper h2{font-size:1.7rem;margin:0}.paper .contact{font-size:.95rem;margin:.5rem 0 1rem}.cv-photo{width:95px;height:125px;object-fit:contain;flex:none;margin-bottom:.5rem}.cv-block{margin:1.3rem 0}.cv-block h3{font-size:.94rem;text-transform:uppercase;border-bottom:1px solid #ccc;padding-bottom:.2rem}.cv-block p{margin:.4rem 0}.cv-block:last-child{margin-bottom:0}footer{max-width:820px;margin:auto;padding:1rem;font-size:.8rem}@media(max-width:600px){.layout{padding-inline:12px}.form-card{border-radius:18px}.step-list{gap:3px}.step{font-size:.69rem;gap:5px}.step-number{width:27px;height:27px}.contact-grid{grid-template-columns:1fr;gap:0}.step-head h2{font-size:1.2rem}.choice{padding:.65rem .5rem;font-size:.85rem;gap:.45rem}.actions button{flex:1;min-width:0}.paper{padding:1rem}.paper h2{font-size:1.3rem}.cv-photo{width:70px;height:95px}.cv-heading{gap:.7rem}.review-edit button{flex:1;padding:.4rem;font-size:.75rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@media print{@page{size:A4;margin:16mm}body{background:white}body>*:not(main),.intro,.step-list,.step-head,.actions,.draft-footer,.review-edit,.hint,.warning,#error,#translation-summary{display:none!important}.layout,.form-card{max-width:none!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important}.paper{max-width:none!important;padding:0!important;margin:0!important;border:0!important}.paper h2{font-size:20pt}.cv-photo{width:28mm;height:36mm}.cv-heading,.cv-block{break-inside:avoid}#wizard:not(:has(.paper)),body.translation-incomplete .paper{display:none!important}}

/* Examples are placeholders only; entered text keeps its normal contrast. */
input::placeholder,textarea::placeholder{color:#757d87;opacity:1;font-weight:400}

.restore-draft{margin:0 0 1rem;font-weight:500}


/* الرجوع للخطوات السابقة باللمس ولوحة المفاتيح، دون تعبئة بيانات تلقائية. */
button.step{background:transparent;color:var(--muted);border-radius:10px;padding:0;min-height:64px;font-weight:400}.step.completed .step-number{background:#e2f2ec;color:#106951}.step.completed{color:#106951}.actions{padding-block:.4rem}.suggestions{scrollbar-gutter:stable}.form-card{scroll-margin-block-start:1rem}.photo-section input{font-size:16px}
@media(max-width:600px){.actions{gap:.5rem}.actions button{min-height:52px}.draft-footer{align-items:flex-start;flex-wrap:wrap}.draft-footer p{flex:1;min-width:160px}.step-list{margin-block:1.1rem}.form-card{padding:16px}.question{margin-block:1rem .4rem}}
