/* Shared presentation layer: mobile-first, survey-focused, multilingual system typography. */
:root{
  --font:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  --bg:#f3f6f3;
  --surface:#ffffff;
  --surface-2:#eef3ef;
  --border:#d8e0d9;
  --text:#142019;
  --muted:#66736b;
  --shadow:0 18px 55px rgba(17,35,25,.09);
  --radius:22px;
}
html,body,button,input,textarea,select,table{font-family:var(--font)!important}
html[lang^="ar"],html[lang^="fa"]{--font:"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif}
html[lang^="zh"]{--font:"Noto Sans CJK SC","PingFang SC","Microsoft YaHei",Arial,sans-serif}
html[lang^="ja"]{--font:"Noto Sans JP","Hiragino Sans","Yu Gothic UI",Arial,sans-serif}
body{letter-spacing:0;line-height:1.45}
.app-topbar{backdrop-filter:blur(18px);background:rgba(255,255,255,.94);box-shadow:0 8px 28px rgba(17,35,25,.05)}
.brand{font-size:17px}.brand-mark{border-radius:50%;font-weight:700;box-shadow:0 7px 18px rgba(47,111,94,.15)}
.btn{border-radius:999px;padding:10px 16px;font-weight:700;box-shadow:0 2px 8px rgba(17,35,25,.035);min-height:42px}
.btn-primary{box-shadow:0 8px 22px color-mix(in srgb,var(--accent) 20%,transparent)}
.builder-panel{background:rgba(255,255,255,.94);backdrop-filter:blur(14px)}
.palette{padding:18px}.palette>.panel-title:first-child{font-size:16px;color:var(--text);letter-spacing:0;text-transform:none;margin-top:0}
.palette .panel-title:not(:first-child){margin-top:22px;padding-top:14px;border-top:1px solid var(--border);font-size:11px;letter-spacing:.08em}
.palette-group{grid-template-columns:1fr;gap:8px}.qtype-btn{min-height:48px;border-radius:14px;padding:10px 12px;display:flex;align-items:center;gap:10px;background:linear-gradient(180deg,#fff,#fafcf9);transition:.16s ease}.qtype-btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(17,35,25,.07)}.qtype-icon{font-size:16px;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);color:var(--accent)}
.builder-hero,.question-card{border-radius:22px;border-color:#dbe3dc}.builder-hero{box-shadow:var(--shadow)}.question-card{box-shadow:0 10px 28px rgba(17,35,25,.055)}.question-card.selected{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent),0 18px 36px rgba(17,35,25,.075)}
.panel-title,.question-type{font-family:var(--font)!important}.question-type{text-transform:none;letter-spacing:.01em;font-size:12px}
.input,input[type=text],input[type=email],input[type=number],input[type=url],input[type=date],input[type=time],input[type=datetime-local],input[type=password],input[type=search],textarea,select{border-radius:14px;background:rgba(255,255,255,.98);padding:12px 14px;font-size:16px}
.background-preview{height:110px;border-radius:16px;border:1px solid var(--border);background-size:cover;background-position:center;display:grid;place-items:center;color:var(--muted);overflow:hidden}.background-preview-empty{background:linear-gradient(135deg,#f7faf7,#ebf0eb)}
.settings-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:8px;padding:14px 0 2px;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.98) 26%)}

/* Respondent experience */
body.survey-modern{min-height:100%;background:#f3f6f3;background-size:cover!important;background-position:center!important;background-attachment:fixed!important;color:#142019}
body.survey-modern::before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 15% 10%,rgba(255,255,255,.66),transparent 32%),linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.42));z-index:-1}
body.survey-modern .survey-page{max-width:none;margin:0;padding:0 22px 64px}
.respondent-topbar{height:66px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 24px;background:rgba(255,255,255,.93);border-bottom:1px solid rgba(216,224,217,.92);backdrop-filter:blur(18px);position:sticky;top:0;z-index:120}
.respondent-brand{display:flex;align-items:center;gap:11px;min-width:0}.respondent-brand-mark{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:800;font-size:14px;flex:none}.respondent-brand-logo{height:36px;max-width:150px;object-fit:contain;flex:none}.respondent-brand-copy{min-width:0}.respondent-brand-title{font-size:15px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46vw}.respondent-brand-sub{font-size:11px;color:var(--muted);margin-top:1px}.respondent-step-label{font-size:12px;color:var(--muted);white-space:nowrap;font-weight:650}
.experience-progress{height:3px;background:#e1e7e2;position:sticky;top:66px;z-index:119}.experience-progress-fill{height:100%;width:0;background:var(--accent);transition:width .3s ease}
.survey-modern .progress{display:none!important}
.experience-stage{min-height:calc(100svh - 69px);display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:clamp(28px,6vh,64px) 0 86px}
.experience-hidden{display:none!important}.experience-question-hidden{display:none!important}.survey-modern #form,.survey-modern #questions{width:100%}.survey-modern .submit-bar{display:none!important}

/* Intro and ordinary questions: calm, readable, one-question-at-a-time. */
.survey-modern .survey-head,.survey-modern .survey-question,.survey-modern .section-block{width:min(720px,100%);margin:0 auto;border:1px solid rgba(213,222,215,.75);border-radius:24px;background:rgba(255,255,255,.94);box-shadow:0 18px 55px rgba(17,35,25,.075);animation:experienceRise .24s ease}
@keyframes experienceRise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.survey-modern .survey-head{padding:40px 44px;text-align:left}.survey-modern .survey-logo{display:block;margin:0 0 22px;max-height:66px;max-width:200px}.survey-modern .survey-title{font-size:clamp(36px,5vw,50px);line-height:1.06;letter-spacing:-.025em;margin:0 0 16px;font-weight:780}.survey-modern .survey-desc{margin:0;max-width:620px;font-size:18px;line-height:1.58;color:#5d6a62}.survey-kicker{font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--accent);margin-bottom:12px}.survey-intro-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:22px}.survey-intro-meta span{padding:6px 10px;border-radius:999px;background:#f1f5f1;color:#506057;font-size:12px;border:1px solid #dce4de}.survey-start-row{display:flex;justify-content:flex-start;margin-top:28px}.survey-start-row .btn{font-size:16px;padding:12px 22px;min-height:48px}
.survey-modern .survey-question{position:relative;padding:38px 42px}.survey-modern .survey-question::before{display:none}.step-kicker-modern{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin:0 0 11px}.survey-modern .survey-question h3{font-size:clamp(26px,3.2vw,35px);line-height:1.16;margin:0 0 12px;padding:0;font-weight:760;max-width:630px}.survey-modern .qdesc{font-size:16px;line-height:1.58;color:#68746c;margin:0 0 25px;max-width:620px}.required-mark{color:var(--accent);font-size:.7em;vertical-align:super}
.survey-modern .answer-slot>input,.survey-modern .answer-slot>textarea,.survey-modern .answer-slot>select{font-size:17px;min-height:54px;border-radius:14px;border:1px solid #d5ded7;background:#fff;box-shadow:0 1px 0 rgba(255,255,255,.75) inset}.survey-modern .answer-slot>textarea{min-height:145px}
.survey-modern .option-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.survey-modern .option-label{position:relative;padding:15px 16px;border-radius:15px;border:1px solid #d8e1da;background:#fff;font-size:16px;transition:.14s ease;min-height:58px;align-items:center}.survey-modern .option-label:hover{border-color:var(--accent);box-shadow:0 8px 18px rgba(17,35,25,.05)}.survey-modern .option-label:has(input:checked){border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 8%,transparent)}.survey-modern .option-label input{accent-color:var(--accent);width:18px;height:18px}
.survey-modern .rating-row{gap:10px;flex-wrap:wrap}.survey-modern .rating-btn{width:52px;height:52px;border-radius:14px;font-size:17px}.survey-modern .matrix{border-collapse:separate;border-spacing:0;overflow:auto;border:1px solid var(--border);border-radius:14px;display:block;max-width:100%}.survey-modern .matrix th,.survey-modern .matrix td{background:#fff}.survey-modern .matrix input{width:20px;height:20px}
.survey-modern .record-box,.survey-modern .media-chip,.survey-modern .rank-item{border-radius:14px}.survey-modern .section-block{padding:38px 42px}.survey-modern .section-block>h2{font-size:34px;margin:0 0 14px}
.experience-nav{width:min(720px,100%);margin:16px auto 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.experience-nav .btn{min-width:108px;padding:10px 18px;min-height:46px}.experience-nav-right{margin-left:auto;display:flex;gap:8px}

/* Map page: the map is the page, with a lightweight floating panel. */
.map-page-active{overflow:hidden}.map-page-active .respondent-topbar{position:fixed;left:0;right:0;top:0}.map-page-active .experience-progress{position:fixed;left:0;right:0;top:66px}.map-page-active .experience-stage{position:fixed;inset:69px 0 0;min-height:0;padding:0;display:block;z-index:80}.map-page-active .survey-page{padding:0!important}.map-page-active #form,.map-page-active #questions{height:100%}
.survey-modern .map-page-card{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#dfe7e0!important;box-shadow:none!important;overflow:hidden!important;backdrop-filter:none!important}
.map-page-canvas{position:absolute;inset:0}.map-page-canvas .map-box{position:absolute;inset:0;width:100%;height:100%!important;border:0!important;border-radius:0!important}
.leaflet-container{direction:ltr!important;font-family:var(--font)!important;background:#dfe7e0}
.map-floating-panel{position:absolute;z-index:900;top:20px;left:20px;width:min(380px,calc(100% - 40px));max-height:calc(100% - 40px);overflow:auto;padding:20px;background:rgba(255,255,255,.95);border:1px solid rgba(255,255,255,.95);border-radius:20px;box-shadow:0 18px 50px rgba(9,30,18,.17);backdrop-filter:blur(16px)}
[dir="rtl"] .map-floating-panel{left:auto;right:20px;text-align:right}
.map-panel-handle{display:none}.map-floating-panel h3{font-size:27px!important;line-height:1.12!important;margin:0 0 8px!important}.map-floating-panel .qdesc{font-size:14px!important;margin:0 0 13px!important}.map-point-limit{padding:9px 11px;border-radius:12px;background:#eef4ef;color:#4f6056;font-size:13px;line-height:1.45;margin-bottom:11px}.map-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.map-search-row input{min-width:0;border-radius:12px!important;padding:10px 12px!important;font-size:16px!important;min-height:44px}.map-search-button,.map-action{border:1px solid #d7e0d9;background:#fff;color:#1c2c22;border-radius:999px;padding:9px 12px;font:inherit;font-size:13px;font-weight:750;cursor:pointer;min-height:42px}.map-search-button{background:var(--accent);border-color:var(--accent);color:#fff}.map-actions-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.map-location-status{font-size:12px;line-height:1.42;color:#68746c;margin-top:9px}.map-count{display:inline-flex;margin-top:9px;padding:6px 9px;border-radius:999px;background:#17251d;color:#fff;font-size:11px;font-weight:750}.map-city-results{display:grid;gap:6px;margin-top:7px}.map-city-results button{text-align:left;border:1px solid #d6dfd8;background:#fff;padding:10px;border-radius:11px;font:inherit;font-size:13px;cursor:pointer;min-height:44px}.map-city-results button:hover{border-color:var(--accent);background:#f7faf7}.map-page-active .experience-nav{position:fixed;right:20px;bottom:20px;width:auto;margin:0;z-index:1100;padding:7px;background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.95);border-radius:999px;box-shadow:0 14px 38px rgba(9,30,18,.15);backdrop-filter:blur(14px)}[dir="rtl"] .map-page-active .experience-nav{right:auto;left:20px}.map-page-active .experience-nav .btn{min-width:auto}.map-page-active .experience-back{background:#fff}
.leaflet-control-zoom a,.leaflet-control-attribution{font-family:var(--font)!important}.leaflet-control-attribution{font-size:10px!important}
.modal-backdrop{backdrop-filter:blur(7px)}.survey-modern .modal{border-radius:20px;padding:22px}

@media(max-width:760px){
  body.survey-modern{background-attachment:scroll!important}
  .respondent-topbar{height:54px;padding:0 10px;gap:8px}.respondent-brand{gap:7px;min-width:0}.respondent-brand-mark{width:29px;height:29px;font-size:12px}.respondent-brand-logo{height:30px;max-width:94px}.respondent-brand-title{font-size:13px;max-width:36vw}.respondent-brand-sub{display:none}.respondent-step-label{font-size:11px}.experience-progress{top:54px}
  body.survey-modern .survey-page{padding:0 10px 30px}.experience-stage{padding:18px 0 76px;min-height:calc(100svh - 57px);justify-content:flex-start}
  .survey-modern .survey-head{padding:26px 21px 24px;border-radius:18px;box-shadow:0 10px 32px rgba(17,35,25,.07)}.survey-modern .survey-logo{max-height:52px;margin-bottom:18px}.survey-modern .survey-title{font-size:clamp(31px,9vw,39px);line-height:1.08;letter-spacing:-.02em;margin-bottom:13px}.survey-modern .survey-desc{font-size:16px;line-height:1.55}.survey-kicker{margin-bottom:9px}.survey-intro-meta{margin-top:18px;gap:6px}.survey-intro-meta span{font-size:11px;padding:5px 8px}.survey-start-row{margin-top:22px}.survey-start-row .btn{width:100%;justify-content:center;min-height:50px;font-size:16px}
  .survey-modern .survey-question,.survey-modern .section-block{padding:25px 20px;border-radius:18px;box-shadow:0 10px 32px rgba(17,35,25,.065)}.survey-modern .survey-question h3{font-size:25px;line-height:1.18}.survey-modern .qdesc{font-size:15px;margin-bottom:20px}.survey-modern .answer-slot>input,.survey-modern .answer-slot>textarea,.survey-modern .answer-slot>select{font-size:16px;min-height:50px}.survey-modern .option-list{grid-template-columns:1fr;gap:9px}.survey-modern .option-label{min-height:56px;padding:14px 15px;font-size:16px}.survey-modern .rating-btn{min-width:48px;width:48px;height:48px}.experience-nav{margin-top:12px;position:sticky;bottom:8px;background:rgba(243,246,243,.92);padding:7px;border-radius:999px;backdrop-filter:blur(10px);z-index:50}.experience-nav .btn{min-width:94px;min-height:46px;font-size:14px}

  /* Mobile map: keep most of the viewport available for selecting geometry. */
  .map-page-active .respondent-topbar{height:54px}.map-page-active .experience-progress{top:54px}.map-page-active .experience-stage{inset:57px 0 0}
  .map-floating-panel{top:auto;bottom:8px;left:8px;right:8px;width:auto;max-height:220px;padding:13px 13px 11px;border-radius:18px;box-shadow:0 12px 36px rgba(9,30,18,.2);overflow:auto;overscroll-behavior:contain;backdrop-filter:blur(12px)}
  [dir="rtl"] .map-floating-panel{left:8px;right:8px;text-align:right}
  .map-floating-panel:has(.map-city-results:not(:empty)){max-height:min(58svh,430px)}
  .map-panel-handle{display:block;width:34px;height:4px;border-radius:999px;background:#cbd4cd;margin:0 auto 9px}.map-floating-panel .step-kicker-modern{font-size:9px;margin-bottom:5px}.map-floating-panel h3{font-size:20px!important;line-height:1.15!important;margin:0 0 5px!important}.map-floating-panel .qdesc{font-size:12px!important;line-height:1.35!important;margin:0 0 7px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.map-point-limit{font-size:11px;line-height:1.35;padding:7px 8px;margin-bottom:7px}.map-search-row{grid-template-columns:minmax(0,1fr) auto;gap:6px}.map-search-row input{min-height:44px!important;padding:9px 10px!important}.map-search-button{min-height:44px;padding:8px 12px}.map-actions-row{flex-wrap:nowrap;overflow-x:auto;gap:6px;margin-top:7px;padding-bottom:1px;scrollbar-width:none}.map-actions-row::-webkit-scrollbar{display:none}.map-action{flex:0 0 auto;min-height:42px;padding:8px 11px;font-size:12px}.map-location-status{font-size:11px;margin-top:6px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.map-count{margin-top:6px;font-size:10px;padding:5px 8px}.map-city-results{max-height:150px;overflow:auto}.map-city-results button{font-size:12px;min-height:42px}
  .map-page-active .experience-nav{right:8px;left:auto;top:66px;bottom:auto;padding:5px;gap:4px}.map-page-active .experience-nav .btn{min-height:42px;padding:8px 10px;font-size:12px}.map-page-active .experience-nav-right{margin-left:0}[dir="rtl"] .map-page-active .experience-nav{right:auto;left:8px}
  .leaflet-control-zoom{margin-top:10px!important;margin-left:10px!important}.leaflet-control-zoom a{width:36px!important;height:36px!important;line-height:36px!important;font-size:20px!important}
}

@media(max-width:390px){
  .respondent-brand-title{max-width:30vw}.respondent-step-label{display:none}.survey-modern .survey-head{padding:23px 18px}.survey-modern .survey-title{font-size:30px}.survey-modern .survey-question{padding:23px 17px}.map-floating-panel{max-height:205px}.map-page-active .experience-nav .experience-back{padding-inline:9px}.map-page-active .experience-nav .experience-next{padding-inline:11px}
}


/* Map fullscreen: native when available, fixed-viewport fallback when embedded. */
.experience-stage:fullscreen,.experience-stage:-webkit-full-screen{width:100vw!important;height:100vh!important;height:100dvh!important;min-height:0!important;max-width:none!important;margin:0!important;padding:0!important}
body.map-viewport-fullscreen.map-page-active .experience-stage{inset:0!important;min-height:0!important}
body.map-viewport-fullscreen .respondent-topbar,body.map-viewport-fullscreen .experience-progress{display:none!important}

/* Multi-logo support: large logos at the bottom of the welcome page, small
   semi-transparent logos in the topbar of every subsequent page. */
.survey-intro-logos{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin-top:26px}
.survey-intro-logos img{height:52px;max-width:170px;object-fit:contain}
.respondent-brand-logos{display:flex;align-items:center;gap:10px}
.respondent-brand-logos .respondent-brand-logo{height:30px;max-width:110px;object-fit:contain;opacity:.62;transition:opacity .15s ease}
.respondent-brand-logos .respondent-brand-logo:hover{opacity:1}
body.survey-welcome-active .respondent-brand-logos{visibility:hidden}
@media(max-width:720px){
  .survey-intro-logos{gap:12px;margin-top:18px}
  .survey-intro-logos img{height:38px;max-width:120px}
  .respondent-brand-logos .respondent-brand-logo{height:22px;max-width:70px}
}

/* Photo-choice question type */
.photo-choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.photo-choice-card{border:1.5px solid var(--border);border-radius:14px;padding:0;background:var(--surface);overflow:hidden;cursor:pointer;text-align:left;display:flex;flex-direction:column;transition:border-color .15s ease,box-shadow .15s ease}
.photo-choice-card img{width:100%;height:110px;object-fit:cover;display:block}
.photo-choice-placeholder{width:100%;height:110px;display:grid;place-items:center;background:var(--surface-2,#f1f5f1);color:var(--muted);font-size:12px}
.photo-choice-label{padding:9px 10px;font-size:13px;font-weight:600;color:var(--text)}
.photo-choice-card[aria-pressed="true"],.photo-choice-card.selected{border-color:var(--accent);box-shadow:0 0 0 2px rgba(47,111,94,.18)}
@media(max-width:720px){
  .photo-choice-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:9px}
  .photo-choice-card img,.photo-choice-placeholder{height:88px}
  .photo-choice-label{padding:7px 8px;font-size:12px}
}
