/* v206 - desktop/tablet ergonomics for the existing Gravity Forms 44, 43 and 41.
   Presentation only. Keep GF grid spans, required fields, input values, email
   confirmation, conditional logic, upload validation and notifications intact. */

/* Match the alignment of the step numerals across all three forms. On phones,
   the existing v203-v205 size/spacing rules remain authoritative. */
.etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
.etr-reg-form-content .gform_wrapper .gf_step_number {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  vertical-align:middle;
  flex-shrink:0;
  line-height:1 !important;
  padding:0 !important;
}

@media (min-width:651px) {
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper {
    --gf-ctrl-radius:11px;
    --gf-ctrl-padding-block:12px;
    --gf-ctrl-padding-inline:14px;
    --gf-form-gap-y:20px;
    width:100%;
    max-width:930px;
    margin-inline:auto;
  }

  /* Preserve the existing GF 12-column grid and field widths. */
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper :is(.gform_body,.gform_fields,.gfield,.ginput_container,.ginput_complex) {
    min-width:0;
    max-width:100%;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper .gform_fields {
    row-gap:22px;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper fieldset.gfield {
    padding:0;
    margin:0;
    border:0;
  }

  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper :is(.gfield_label,.gform-field-label:not(.gform-field-label--type-sub)) {
    display:block;
    margin-bottom:8px;
    font-size:15px;
    font-weight:750;
    line-height:1.4;
    color:#263743;
    overflow-wrap:anywhere;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper :is(.ginput_container,.ginput_complex)
  :is(input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]),select,textarea) {
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:52px;
    padding:12px 14px;
    font-size:16px;
    line-height:1.45;
    border:1px solid #bac8d1;
    border-radius:11px;
    background-color:#fff;
    color:#172b38;
    box-shadow:none;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper :is(.ginput_container,.ginput_complex)
  :is(input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]),select,textarea):focus {
    border-color:#b98610;
    outline:2px solid #e1b12f;
    outline-offset:1px;
    box-shadow:0 0 0 3px rgba(245,199,59,.13);
  }

  /* Split only the subinputs of a single complex field, such as name/surname
     or email/confirm, into natural desktop columns. Never change GF page grid. */
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper .ginput_complex {
    display:flex;
    flex-wrap:wrap;
    column-gap:16px;
    row-gap:12px;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper .ginput_complex > span {
    box-sizing:border-box;
    flex:1 1 245px;
    width:auto;
    max-width:100%;
    min-width:0;
    margin:0;
    padding:0;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper .ginput_complex > span.ginput_full {
    flex-basis:100%;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper .ginput_complex :is(label,.gform-field-label--type-sub) {
    display:block;
    margin-top:6px;
    font-size:13px;
    line-height:1.45;
  }

  /* Desktop radio/checkbox choices use the same large, whole-row click target
     as mobile. The pre-existing scripts already support whole-row clicks. */
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper :is(.gfield_radio,.gfield_checkbox) {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
    gap:10px;
    padding:0;
    margin:0;
    width:100%;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper :is(.gfield_radio,.gfield_checkbox) .gchoice {
    box-sizing:border-box;
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:52px;
    padding:12px 14px;
    margin:0;
    border:1px solid #d2dce3;
    border-radius:11px;
    background:#fff;
    cursor:pointer;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper :is(.gfield_radio,.gfield_checkbox) .gchoice:has(input:checked) {
    border-color:#c89b26;
    background:#fff8e6;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper :is(.gfield_radio,.gfield_checkbox) .gchoice:focus-within {
    outline:2px solid #b98610;
    outline-offset:1px;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper :is(.gfield_radio,.gfield_checkbox) .gchoice input:is([type="radio"],[type="checkbox"]) {
    position:static;
    display:block;
    flex:0 0 20px;
    width:20px;
    height:20px;
    margin:0;
    accent-color:#bd8c0e;
    cursor:pointer;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper :is(.gfield_radio,.gfield_checkbox) .gchoice label {
    display:block;
    flex:1;
    min-width:0;
    width:auto;
    margin:0;
    padding:0;
    font-size:15px;
    font-weight:600;
    line-height:1.5;
    cursor:pointer;
    overflow-wrap:anywhere;
  }

  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper .gfield_description {
    font-size:13px;
    line-height:1.55;
    margin-top:8px;
    overflow-wrap:anywhere;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper .gsection_title {
    font-size:20px;
    line-height:1.4;
    margin:12px 0 7px;
  }

  /* Upload appearance only: native/GF upload behavior and limits untouched. */
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper input[type="file"] {
    box-sizing:border-box;
    display:block;
    width:100%;
    max-width:100%;
    padding:12px;
    font-size:14px;
    color:#293c49;
    border:1px dashed #bdcbd4;
    border-radius:11px;
    background:#f8fafb;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper input[type="file"]::file-selector-button {
    min-height:41px;
    margin:0 13px 0 0;
    padding:9px 15px;
    border:1px solid #d7ab30;
    border-radius:9px;
    background:#ffdf73;
    color:#14232e;
    font:inherit;
    font-weight:750;
    cursor:pointer;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper .gform_drop_area {
    padding:20px;
    border-radius:11px;
    min-width:0;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper .gform_drop_area .gform_button_select_files {
    min-height:45px;
    white-space:normal;
  }

  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper .gf_page_steps {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:14px;
    padding:0 0 18px;
    margin:0 0 25px;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper .gf_step {
    box-sizing:border-box;
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-width:0;
    width:auto;
    margin:0;
    padding:6px 12px 6px 0;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper .gf_step_number {
    box-sizing:border-box;
    flex:0 0 40px;
    width:40px;
    height:40px;
    min-height:40px;
    margin:0;
    border-radius:50%;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper .gf_step_label {
    display:block;
    max-width:190px;
    min-width:0;
    font-size:13px;
    line-height:1.4;
    white-space:normal;
    overflow-wrap:anywhere;
  }

  /* Keep existing button colors (dark for lease, gold for driver/business). */
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper :is(.gform_page_footer,.gform_footer) {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
    padding-top:22px;
  }
  .etr-reg-page:is(.etr-reg-nuoma-isigijimui-registracija,.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija)
  .etr-reg-form-content .gform_wrapper :is(.gform_page_footer,.gform_footer)
  :is(.gform_next_button,.gform_previous_button,.gform_button,input[type="submit"],button[type="submit"]) {
    box-sizing:border-box;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    min-height:52px;
    min-width:170px;
    max-width:100%;
    margin:0;
    padding:12px 22px;
    border-radius:11px;
    font-size:16px;
    line-height:1.4;
    font-weight:800;
    text-align:center;
    white-space:normal;
    cursor:pointer;
  }
}
