/* Omid native forms 20261124.5 — approved survey design 2.
 * Layered important declarations override imported theme form rules.
 * The rules are restricted to native forms, including their hidden states.
 */
@layer omid-native-form-ui {
  .native-form[data-native-form] { --nf-brand:#075b5c!important; --nf-line:#d4e4e3!important; --nf-input:#fcfefe!important; --nf-text:#183e43!important; --nf-muted:#61797c!important; line-height:1.8!important }
  .omid-hospital-context .native-form[data-native-form] { --nf-brand:#0b7d75!important; --nf-line:#d4e4e3 !important}
  .native-form .native-form-span-1{--native-span:1}.native-form .native-form-span-2{--native-span:2}.native-form .native-form-span-3{--native-span:3}.native-form .native-form-span-4{--native-span:4}.native-form .native-form-span-5{--native-span:5}.native-form .native-form-span-6{--native-span:6}.native-form .native-form-span-7{--native-span:7}.native-form .native-form-span-8{--native-span:8}.native-form .native-form-span-9{--native-span:9}.native-form .native-form-span-10{--native-span:10}.native-form .native-form-span-11{--native-span:11}.native-form .native-form-span-12{--native-span:12}
  .native-form form, .native-form .gform_body { margin:0!important; padding:0!important }
  .native-form .gform_fields { display:grid!important; grid-template-columns:repeat(12,minmax(0,1fr))!important; gap:24px 20px!important; align-items:start!important; margin:0!important; padding:0!important; counter-reset:native-question }
  .native-form .gfield { grid-column:span var(--native-span,12)!important; min-inline-size:0!important; width:auto!important; max-width:100%!important; margin:0!important; padding:0!important; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; float:none!important; overflow:visible!important }
  .native-form .gfield:not([hidden]) { display:block!important }
  .native-form .gfield_label:not(.native-form-visually-hidden) { display:block!important; width:100%!important; margin:0 0 8px!important; padding:0!important; border:0!important; color:var(--nf-text)!important; background:transparent!important; font-family:inherit!important; font-size:14px!important; font-weight:700!important; line-height:1.9!important; text-align:start!important; white-space:normal!important; float:none!important; position:static!important }
  .native-form .ginput_container { position:relative!important; min-width:0!important; margin:0!important; clear:both!important }
  .native-form .ginput_container > :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea),
  .native-form .native-form-subinput > input,
  .native-form .omid-amount-field > input { display:block!important; width:100%!important; min-width:0!important; min-height:50px!important; height:auto!important; margin:0!important; padding:12px 14px!important; border:1px solid var(--nf-line)!important; border-radius:10px!important; background:var(--nf-input)!important; color:var(--nf-text)!important; font:inherit!important; font-size:16px!important; line-height:1.5!important; box-shadow:0 1px 2px #163c4304!important; text-align:start!important }
  .native-form .ginput_container > select { appearance:auto!important; padding-inline-end:12px!important }
  .native-form .ginput_container > textarea { min-height:130px!important; resize:vertical!important }
  .native-form .omid-amount-field > input { padding-inline-end:72px!important }
  .native-form :is(input,textarea)::placeholder { color:#91a6a9!important; opacity:1!important }
  .native-form :is(input,select,textarea,button):focus-visible { outline:2px solid var(--nf-brand)!important; outline-offset:3px!important; box-shadow:none!important }
  .native-form .native-form-subinputs { gap:12px!important }
  .native-form .native-form-sublabel:not(.native-form-visually-hidden) { margin:6px 0 0!important; font-size:12px!important }
  .native-form .native-form-subinput--above .native-form-sublabel:not(.native-form-visually-hidden) { margin:0 0 6px!important }
  .native-form .gfield_description, .native-form .gfield_validation_message { margin:7px 0 0!important; padding:0!important; font-size:12px!important; line-height:1.8!important }
  .native-form .gfield_description > :is(p,ul,ol) { margin:0!important }
  .native-form .gfield_description:empty { display:none!important }
  .native-form .gfield_error .ginput_container > :is(input,select,textarea) { border-color:#b42318!important }
  .native-form .native-form-actions { display:flex!important; flex-wrap:wrap!important; gap:12px!important; margin:28px 0 0!important; padding:0!important }
  .native-form .native-form-actions > button:not([hidden]) { display:inline-flex!important; align-items:center!important; justify-content:center!important; min-height:50px!important; margin:0!important; padding:12px 26px!important; border:1px solid var(--nf-brand)!important; border-radius:11px!important; background:var(--nf-brand)!important; color:#fff!important; font:inherit!important; font-size:16px!important; font-weight:700!important; line-height:1.5!important; box-shadow:none!important }
  .native-form .native-form-actions > .native-form-previous { background:var(--nf-input)!important; color:var(--nf-brand)!important }

  /* Full-width choice buttons. Preserve native radio and checkbox semantics. */
  .native-form .native-form-choices { display:grid!important; grid-template-columns:1fr!important; gap:8px!important; margin:0!important; padding:0!important }
  .native-form .native-form-choices > .gchoice { display:flex!important; flex-direction:row!important; align-items:center!important; justify-content:flex-start!important; gap:10px!important; min-width:0!important; width:100%!important; min-height:46px!important; height:auto!important; margin:0!important; padding:11px 14px!important; border:1px solid #c4e7e1!important; border-radius:10px!important; background:#d9f0ec!important; color:#1e5d59!important; font:inherit!important; font-size:14px!important; line-height:1.7!important; text-align:start!important; cursor:pointer!important; box-shadow:none!important; position:relative!important }
  .native-form .native-form-choices > .gchoice > input { appearance:none!important; display:block!important; position:static!important; float:none!important; flex:0 0 18px!important; width:18px!important; height:18px!important; min-width:18px!important; min-height:18px!important; margin:0!important; padding:0!important; border:1.5px solid currentColor!important; border-radius:50%!important; background:transparent!important; color:inherit!important; opacity:1!important; box-shadow:none!important }
  .native-form .native-form-choices > .gchoice > input[type=checkbox] { border-radius:5px!important }
  .native-form .native-form-choices > .gchoice > input:checked { border:5px solid #fff!important; background:#0b7d75!important }
  .native-form .native-form-choices > .gchoice > span { display:block!important; flex:1!important; min-width:0!important; margin:0!important; padding:0!important; color:inherit!important; white-space:normal!important }
  .native-form .native-form-choices > .gchoice:has(input:checked) { background:#0b7d75!important; border-color:#0b7d75!important; color:#fff!important; font-weight:700!important }
  .native-form .native-form-choices > .gchoice:has(input:checked)::after { content:'✓'; display:block!important; flex:none; color:#fff!important; font-size:17px; line-height:1 }
  .native-form .native-form-choices > .gchoice:focus-within { outline:2px solid var(--nf-brand)!important; outline-offset:3px!important }
  .native-form .gfield--type-radio { padding:18px!important; border:1px solid #dcebe7!important; border-radius:14px!important; background:#fbfefd!important; counter-increment:native-question }
  .native-form .gfield--type-radio > .gfield_label:not(.native-form-visually-hidden) { display:flex!important; align-items:flex-start!important; gap:9px!important; margin-bottom:14px!important }
  .native-form .gfield--type-radio > .gfield_label:not(.native-form-visually-hidden)::before { content:counter(native-question); display:grid; place-items:center; flex:0 0 25px; height:25px; margin-top:1px; border-radius:8px; background:#e6f3f0; color:#0d7972; font-size:12px; line-height:1 }

  /* Persian dates are selected, without opening the mobile keyboard. */
  .native-form .gfield--type-date:has(.native-form-calendar) { position:relative!important; z-index:110!important }
  .native-form .ginput_container > input[data-native-jalali] { direction:ltr!important; text-align:right!important; padding-left:58px!important; padding-right:14px!important; cursor:pointer!important }
  .native-form .native-form-calendar-button { display:inline-flex!important; align-items:center!important; justify-content:center!important; position:absolute!important; left:6px!important; right:auto!important; top:6px!important; transform:none!important; width:38px!important; height:38px!important; margin:0!important; padding:0!important; border:0!important; border-radius:8px!important; background:#edf6f5!important; color:var(--nf-brand)!important; box-shadow:none!important; z-index:2!important }
  .native-form .native-form-calendar-button svg { display:block!important; width:21px!important; height:21px!important; flex:none!important }
  .native-form[dir=ltr] .ginput_container > input[data-native-jalali] { text-align:left!important; padding-left:14px!important; padding-right:58px!important }
  .native-form[dir=ltr] .native-form-calendar-button { left:auto!important; right:6px!important }
  .native-form .native-form-calendar { position:absolute!important; top:calc(100% + 8px)!important; inset-inline-start:0!important; width:min(340px,100%)!important; max-width:calc(100vw - 36px)!important; max-height:65vh!important; overflow:auto!important; padding:16px!important; border:1px solid var(--nf-line)!important; border-radius:16px!important; background:var(--nf-input)!important; color:var(--nf-text)!important; box-shadow:0 12px 36px #163d4426!important; z-index:120!important }
  .native-form .native-calendar-toolbar { display:flex!important; justify-content:space-between!important; gap:8px!important; margin-bottom:8px!important }
  .native-form :is(.native-calendar-close,.native-calendar-clear) { display:block!important; width:auto!important; min-height:32px!important; margin:0 0 8px!important; padding:4px 8px!important; border:0!important; border-radius:6px!important; background:transparent!important; color:var(--nf-brand)!important; font:inherit!important; font-size:12px!important; box-shadow:none!important }
  .native-form .native-calendar-controls { display:grid!important; grid-template-columns:1fr 1fr!important; gap:10px!important; margin:0 0 12px!important }
  .native-form .native-calendar-select-label { display:block!important; margin:0!important; padding:0!important; font-size:12px!important; line-height:1.7!important; color:var(--nf-muted)!important }
  .native-form .native-calendar-controls select { display:block!important; appearance:auto!important; width:100%!important; min-height:44px!important; margin:5px 0 0!important; padding:8px 10px!important; border:1px solid var(--nf-line)!important; border-radius:9px!important; background:var(--nf-input)!important; color:var(--nf-text)!important; font:inherit!important; font-size:15px!important; line-height:1.5!important; box-shadow:none!important }
  .native-form :is(.native-calendar-days,.native-calendar-weekdays) { display:grid!important; grid-template-columns:repeat(7,minmax(0,1fr))!important; gap:5px!important; direction:rtl!important; margin:0!important; padding:0!important }
  .native-form .native-calendar-weekdays { margin-bottom:6px!important; text-align:center!important; color:var(--nf-muted)!important; font-size:12px!important }
  .native-form .native-calendar-days button { display:flex!important; align-items:center!important; justify-content:center!important; width:100%!important; min-width:0!important; height:36px!important; min-height:36px!important; margin:0!important; padding:0!important; border:0!important; border-radius:7px!important; background:#edf6f5!important; color:var(--nf-text)!important; font:inherit!important; font-size:14px!important; box-shadow:none!important }
  .native-form .native-calendar-days button:is(:hover,[aria-pressed=true]) { background:var(--nf-brand)!important; color:#fff!important }
  .native-form [hidden] { display:none!important }
  @media(max-width:640px) { .native-form .gform_fields { gap:24px 14px!important } .native-form .gfield { grid-column:span 12!important } .native-form .native-form-actions > button { flex:1!important } .native-form .gfield--type-radio { padding:16px!important } }
  html[data-omid-theme=dark] .native-form[data-native-form] { --nf-input:#17383c!important; --nf-text:#ecf7f5!important; --nf-muted:#a5bfbe!important; --nf-line:#386064 !important}
  html[data-omid-theme=dark] .native-form .gfield--type-radio { background:#17383c!important; border-color:#386064!important }
  html[data-omid-theme=dark] .native-form :is(.native-calendar-days button,.native-form-calendar-button) { background:#254f50!important; color:#effffb!important }
  @media(prefers-reduced-motion:reduce) { .native-form * { transition:none!important } }
}
