/* CarteTunisie V33 — registration design white / violet, scoped to signup only.
   No shared stylesheet, DB table or registration route is modified. */
body:has(.ct33-page) { margin:0; background:#faf9ff; }
body:has(.ct33-page) .ct33-main { padding:0!important; margin:0!important; max-width:none!important; width:100%!important; min-height:100svh; }
.ct33-page,.ct33-page * { box-sizing:border-box; }
.ct33-page {
  --ct33-navy:#101a48; --ct33-purple:#6d18dc; --ct33-violet:#8532ec;
  --ct33-muted:#616a89; --ct33-edge:#dcdcf0;
  position:relative; isolation:isolate; min-height:100svh; width:100%;
  overflow:clip; color:var(--ct33-navy);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(ellipse at 72% 57%, rgba(233,221,255,.58),transparent 54%),
    radial-gradient(ellipse at 24% 30%, #fff 0%,#fcfaff 47%,transparent 75%),
    linear-gradient(135deg,#ffffff 0%,#f7f2ff 100%);
  padding:clamp(18px,2.5vw,36px) max(26px,env(safe-area-inset-right)) clamp(20px,3vw,48px);
}
.ct33-orbit { pointer-events:none; position:absolute; z-index:-1; }
.ct33-orbit-top {
  width:55vw; height:30vw; min-width:450px; min-height:230px;
  right:-26vw; top:-19vw; border-radius:0 0 50% 50%; transform:rotate(-8deg);
  background:linear-gradient(130deg,#ebe0ff 12%,#ccadff 73%,#d9c3ff);
  opacity:.75;
}
.ct33-orbit-bottom {
  width:60vw; height:30vw; left:-28vw; bottom:-21vw; border-radius:50% 50% 0 0; transform:rotate(12deg);
  background:linear-gradient(110deg,#c4a2ff 0%,#e3d0ff 60%,#f0eaff 100%);
}
.ct33-layout {
  width:min(100%,1670px); min-height:calc(100svh - clamp(44px,5vw,84px)); margin-inline:auto;
  display:grid; grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);
  gap:clamp(22px,3.8vw,70px); align-items:center;
}
.ct33-languages {
  position:absolute; z-index:4; top:clamp(18px,2vw,30px); right:clamp(22px,3vw,55px);
  display:flex; gap:2px; padding:3px; border:1px solid rgba(102,55,192,.19);
  border-radius:999px; background:rgba(255,255,255,.89); box-shadow:0 7px 23px rgba(73,42,131,.07);
}
.ct33-languages a {
  display:grid; place-items:center; min-width:43px; height:30px; padding:0 11px;
  border-radius:999px; color:#1a2356; font-size:12px; font-weight:800; text-decoration:none;
}
.ct33-languages a.is-active { color:#fff; background:linear-gradient(115deg,#ad31ed,#5c0fcb); box-shadow:0 4px 11px rgba(109,24,220,.22); }
.ct33-languages a:focus-visible,.ct33-page a:focus-visible,.ct33-page button:focus-visible { outline:3px solid #2a9dff; outline-offset:3px; }
.ct33-brand-panel { min-width:0; position:relative; display:flex; align-items:flex-start; justify-content:center; flex-direction:column; gap:0; }
.ct33-brand-link {
  display:flex; align-items:center; gap:13px; width:min(100%,440px);
  text-decoration:none; color:#111b4a;
}
.ct33-brand-mark { display:block; flex:none; width:clamp(73px,6.1vw,94px); height:clamp(64px,5.5vw,81px); object-fit:contain; mix-blend-mode:multiply; }
.ct33-brand-name { display:flex; flex-direction:column; min-width:0; }
.ct33-brand-name strong { font-size:clamp(21px,2.15vw,32px); line-height:1.06; white-space:nowrap; letter-spacing:-1.2px; font-weight:900; }
.ct33-brand-name em { font-style:normal; color:#7021d6; }
.ct33-brand-name small { font-size:clamp(9px,.76vw,11px); font-weight:650; color:#313a70; white-space:nowrap; margin-top:5px; font-style:italic; }
.ct33-brand-story { margin:clamp(14px,2.5vh,34px) 0 0 clamp(10px,1vw,18px); }
.ct33-brand-story h1 {
  color:var(--ct33-navy); font-size:clamp(30px,3.15vw,49px); font-weight:850;
  letter-spacing:-1.2px; line-height:1.18; margin:0;
}
.ct33-brand-story h1 span { color:#6c1edc; }
.ct33-story-line { display:block; margin-top:clamp(17px,3.7vh,38px); width:58px; height:5px; background:#7722dd; border-radius:4px; }
.ct33-illustration-wrap {
  width:min(100%,630px); margin-top:clamp(5px,1.3vw,18px);
  position:relative; filter:drop-shadow(0 16px 27px rgba(102,61,169,.06));
}
.ct33-illustration { width:100%; height:auto; display:block; object-fit:contain; mix-blend-mode:multiply; }
.ct33-card {
  min-width:0; width:100%; max-width:800px; justify-self:center;
  padding:clamp(24px,2.5vw,42px);
  border:1px solid rgba(255,255,255,.95); border-radius:clamp(23px,2vw,34px);
  background:rgba(255,255,255,.93);
  box-shadow:0 24px 65px rgba(81,57,150,.15),0 1px 5px rgba(61,43,105,.05);
}
.ct33-heading { display:flex; gap:18px; align-items:center; margin:0 0 16px; }
.ct33-heading-icon {
  width:68px; height:68px; flex:none; display:grid; place-items:center;
  background:linear-gradient(135deg,#f5efff,#eee3ff); border-radius:17px; color:#7422de;
  box-shadow:0 6px 21px rgba(93,46,184,.08);
}
.ct33-heading-icon svg { width:34px; height:34px; }
.ct33-heading h2 { margin:0; color:var(--ct33-navy); font-size:clamp(25px,2.15vw,35px); line-height:1.2; font-weight:850; letter-spacing:-.75px; }
.ct33-heading p { margin:6px 0 0; color:#616a85; font-size:clamp(12px,.92vw,15px); line-height:1.5; }
.ct33-selected-plan {
  display:flex; align-items:center; gap:10px; min-width:0;
  background:#f2ebff; color:#454166; border-radius:15px;
  min-height:54px; padding:11px 17px; margin-bottom:20px;
  font-size:clamp(12px,1vw,14px); line-height:1.4;
}
.ct33-selected-plan .ct33-offer-icon { flex:none; width:25px; height:25px; color:#7924da; }
.ct33-selected-plan span { flex:1; min-width:0; }
.ct33-selected-plan strong { color:#131e4a; font-weight:850; }
.ct33-selected-plan a { white-space:nowrap; color:#6d1bd6; font-weight:800; text-decoration:underline; text-underline-offset:2px; }
.ct33-selected-plan a:hover { color:#4113ac; }
.ct33-form-section { margin:0; }
.ct33-form-section + .ct33-form-section { margin-top:22px; }
.ct33-section-title { display:flex; align-items:center; gap:11px; margin:0 0 12px; }
.ct33-section-title > svg { width:23px; height:23px; color:#7820e0; flex:none; }
.ct33-section-title h3 {
  font-size:clamp(12px,1vw,14px); margin:0; color:#17204c; font-weight:850;
  line-height:1.35; text-transform:uppercase; letter-spacing:.15px; white-space:nowrap;
}
.ct33-section-title::after { content:""; height:1px; background:#d4b4ff; min-width:20px; flex:1; }
.ct33-field { margin:0 0 13px; }
.ct33-field label { display:block; color:#14204a; font-size:13px; font-weight:750; line-height:1.35; margin:0 0 6px; }
.ct33-field label span { color:#e53873; }
.ct33-field label small { color:#323c67; font-size:12px; font-weight:600; }
.ct33-input-wrap { position:relative; display:flex; align-items:center; min-width:0; }
.ct33-input-wrap > svg { flex:none; width:20px; height:20px; position:absolute; left:15px; color:#2f3a78; pointer-events:none; }
.ct33-input-wrap > input {
  width:100%; height:46px; border:1.5px solid #d6d6e7; background:#fff;
  border-radius:13px; color:#121b46; font-weight:500; font-size:14px; line-height:1.3; font-family:inherit;
  padding:9px 14px 9px 46px; outline:none; box-shadow:0 1px 2px rgba(24,32,88,.025);
  transition:box-shadow .16s,border-color .16s; min-width:0;
}
.ct33-input-wrap > input::placeholder { color:#7b8297; opacity:1; }
.ct33-input-wrap > input:focus { border-color:#8547ec; box-shadow:0 0 0 3px rgba(128,62,224,.12); }
.ct33-input-wrap-password > input { padding-right:48px; }
.ct33-password-toggle {
  position:absolute; right:7px; top:50%; transform:translateY(-50%);
  display:grid; place-items:center; padding:0; border:0; background:transparent;
  color:#2f3a78; cursor:pointer; width:36px; height:35px; border-radius:9px;
}
.ct33-password-toggle:hover { background:#f0eaff; }
.ct33-password-toggle svg { width:21px; height:21px; }
.ct33-submit {
  width:100%; display:flex; align-items:center; justify-content:center; gap:10px;
  min-height:53px; margin-top:18px; border:none; border-radius:14px; cursor:pointer;
  background:linear-gradient(115deg,#7b1de3 0%,#6913d2 58%,#7117e6 100%);
  box-shadow:0 10px 22px rgba(100,24,204,.21); color:#fff;
  font-family:inherit; font-size:17px; font-weight:850; text-align:center; text-decoration:none;
  transition:filter .15s,transform .15s;
}
.ct33-submit svg { width:22px; height:22px; }
.ct33-submit:hover { filter:brightness(1.08); }
.ct33-submit:active { transform:translateY(1px); }
.ct33-back-link { display:block; width:max-content; max-width:100%; margin:16px auto 0; color:#6a1ed2; font-weight:700; font-size:13px; text-decoration:underline; text-underline-offset:2px; text-align:center; }
.ct33-back-link:hover { color:#3c118f; }
.ct33-feedback { margin:0 0 14px; padding:11px 14px; border-radius:12px; font-size:13px; }
.ct33-feedback.flash-error { color:#9f2435; background:#fff0f1; border:1px solid #f4bcc4; }
.ct33-feedback.flash-success { color:#0b7544; background:#ecfff4; border:1px solid #afebc8; }
.ct33-heading-success { margin:0 0 22px; }
.ct33-heading-success .ct33-heading-icon { color:#188958; background:#e7fff1; }
.ct33-success-return { padding-inline:24px; }
/* Arabic text direction; only numbers/password credentials stay LTR */
html[dir="rtl"] .ct33-page { direction:rtl; }
html[dir="rtl"] .ct33-languages { left:clamp(22px,3vw,55px); right:auto; }
html[dir="rtl"] .ct33-brand-story { margin-left:0; margin-right:clamp(10px,1vw,18px); }
html[dir="rtl"] .ct33-input-wrap > svg { right:15px; left:auto; }
html[dir="rtl"] .ct33-input-wrap > input { padding:9px 46px 9px 14px; text-align:right; }
html[dir="rtl"] .ct33-input-wrap > input[dir="ltr"] { text-align:left; }
html[dir="rtl"] .ct33-password-toggle { right:auto; left:7px; }
html[dir="rtl"] .ct33-input-wrap-password > input { padding-left:48px; }
/* Keep the selected plan and form pleasant on medium laptop screens. */
@media (min-width:841px) and (max-height:820px) {
  .ct33-page { padding-top:12px; padding-bottom:12px; }
  .ct33-layout { min-height:calc(100svh - 24px); }
  .ct33-card { padding:20px 28px; }
  .ct33-heading { margin-bottom:12px; }
  .ct33-heading-icon { width:53px; height:53px; }
  .ct33-heading-icon svg { width:29px; height:29px; }
  .ct33-selected-plan { min-height:45px; margin-bottom:14px; padding:9px 13px; }
  .ct33-form-section + .ct33-form-section { margin-top:14px; }
  .ct33-section-title { margin-bottom:8px; }
  .ct33-field { margin-bottom:9px; }
  .ct33-field label { margin-bottom:4px; }
  .ct33-input-wrap > input { height:40px; }
  .ct33-submit { min-height:45px; margin-top:12px; }
  .ct33-back-link { margin-top:10px; }
}
/* Tablet and mobile: keep the same brand and form, with no tiny side-by-side columns. */
@media (max-width:840px) {
  .ct33-page { padding:70px 16px 27px; }
  .ct33-languages { top:16px; right:16px; }
  html[dir="rtl"] .ct33-languages { left:16px; right:auto; }
  .ct33-layout { width:100%; min-height:0; display:flex; flex-direction:column; align-items:stretch; gap:14px; }
  .ct33-brand-panel { align-items:center; text-align:center; }
  .ct33-brand-link { width:max-content; max-width:100%; justify-content:center; gap:9px; }
  .ct33-brand-mark { width:54px; height:51px; }
  .ct33-brand-name strong { font-size:clamp(17px,3.6vw,24px); letter-spacing:-.5px; }
  .ct33-brand-name small { font-size:8px; }
  .ct33-brand-story { margin:12px 0 0!important; }
  .ct33-brand-story h1 { font-size:clamp(22px,4.6vw,31px); line-height:1.16; letter-spacing:-.4px; }
  .ct33-story-line { width:37px; height:4px; margin:12px auto 0; }
  .ct33-illustration-wrap { width:min(100%,440px); margin-top:5px; }
  .ct33-card { max-width:610px; margin-inline:auto; padding:clamp(17px,4vw,27px); }
  .ct33-heading { gap:12px; }
  .ct33-heading-icon { width:50px; height:50px; border-radius:14px; }
  .ct33-heading-icon svg { width:27px; height:27px; }
  .ct33-heading h2 { font-size:clamp(20px,4.8vw,29px); }
  .ct33-heading p { font-size:13px; }
  .ct33-orbit-top { right:-380px; top:-120px; }
  .ct33-orbit-bottom { bottom:-140px; }
}
@media (max-width:480px) {
  .ct33-page { padding:55px 12px 20px; }
  .ct33-languages { top:12px; right:12px; }
  html[dir="rtl"] .ct33-languages { left:12px; right:auto; }
  .ct33-languages a { min-width:36px; height:27px; padding:0 7px; font-size:11px; }
  .ct33-brand-link { width:max-content; max-width:100%; }
  .ct33-brand-mark { width:47px; height:44px; }
  .ct33-brand-name strong { font-size:17px; }
  .ct33-brand-name small { font-size:7px; }
  .ct33-brand-story { margin-top:0!important; }
  .ct33-brand-story h1 { font-size:clamp(20px,6vw,27px); }
  .ct33-story-line { margin-top:8px; height:3px; }
  .ct33-illustration-wrap { width:min(96%,332px); margin-top:0; }
  .ct33-layout { gap:5px; }
  .ct33-card { padding:19px 15px 20px; border-radius:22px; }
  .ct33-heading { gap:10px; margin-bottom:14px; }
  .ct33-heading-icon { width:43px; height:43px; border-radius:12px; }
  .ct33-heading-icon svg { width:23px; height:23px; }
  .ct33-heading h2 { font-size:21px; letter-spacing:-.4px; }
  .ct33-heading p { font-size:11px; margin-top:4px; }
  .ct33-selected-plan { min-height:48px; padding:9px 10px; gap:6px; margin-bottom:16px; font-size:11px; flex-wrap:wrap; }
  .ct33-selected-plan .ct33-offer-icon { width:20px; height:20px; }
  .ct33-selected-plan a { font-size:11px; }
  .ct33-section-title { gap:7px; margin-bottom:11px; }
  .ct33-section-title h3 { font-size:11px; }
  .ct33-section-title > svg { width:19px; height:19px; }
  .ct33-field label { font-size:12px; }
  .ct33-field { margin-bottom:12px; }
  .ct33-input-wrap > input { height:43px; font-size:13px; border-radius:11px; }
  .ct33-submit { margin-top:15px; min-height:49px; }
}
@media (prefers-reduced-motion:reduce) {
  .ct33-page button,.ct33-page input { transition:none!important; }
}
