/* v204: existing v203 mobile controls extended only to GF 43 (driver) and GF 41
   (business). Both forms remain owned by Gravity Forms. No fields, validation,
   conditional logic, confirmation, email or tracking are changed. */
@media (max-width: 650px) {
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content {
    padding:20px 13px 24px;
  }
  .etr-reg-page:is(.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:13px;
    --gf-form-gap-y:19px;
    width:100%;
    max-width:100%;
  }
  /* All fields stay in the same Gravity Forms pages and conditional groups. */
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .gform_fields {
    grid-template-columns:minmax(0,1fr)!important;
    gap:18px 0!important;
    min-width:0;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .gfield {
    grid-column:1/-1!important;
    min-width:0;
    max-width:100%;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper fieldset.gfield {
    margin:0;
    padding:0;
    border:0;
  }
  .etr-reg-page:is(.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)) {
    font-size:15px;
    font-weight:750;
    line-height:1.4;
    overflow-wrap:anywhere;
    margin-bottom:7px;
  }
  .etr-reg-page:is(.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;
    display:block;
    width:100%!important;
    max-width:100%!important;
    min-width:0;
    min-height:52px;
    height:auto;
    padding:12px 13px;
    font-size:16px!important;
    line-height:1.4;
    border-radius:11px;
    border:1px solid #b9c8d1;
    background-color:#fff;
    color:#172b38;
    box-shadow:none;
  }
  .etr-reg-page:is(.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,.14);
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper :is(.ginput_complex,.ginput_container_name,.ginput_container_address) {
    min-width:0;
    max-width:100%;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .ginput_complex {
    flex-wrap:wrap;
    gap:12px 0;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .ginput_complex > span {
    box-sizing:border-box;
    flex:1 1 100%;
    width:100%!important;
    max-width:100%!important;
    min-width:0;
    padding:0!important;
    margin:0;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .ginput_complex :is(label,.gform-field-label--type-sub) {
    font-size:13px;
    line-height:1.4;
    margin-top:5px;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper :is(.gfield_radio,.gfield_checkbox) {
    display:grid!important;
    grid-template-columns:minmax(0,1fr);
    gap:8px!important;
    padding:0;
    margin:0;
  }
  .etr-reg-page:is(.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!important;
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:49px;
    padding:10px 12px;
    align-items:center;
    gap:11px;
    margin:0!important;
    border:1px solid #d2dce3;
    border-radius:11px;
    background:#fff;
    -webkit-tap-highlight-color:transparent;
    cursor:pointer;
  }
  .etr-reg-page:is(.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-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper :is(.gfield_radio,.gfield_checkbox) .gchoice:focus-within {
    outline:2px solid #d6a526;
    outline-offset:1px;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper :is(.gfield_radio,.gfield_checkbox) .gchoice input[type="radio"],
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper :is(.gfield_radio,.gfield_checkbox) .gchoice input[type="checkbox"] {
    display:block;
    position:static;
    flex:0 0 20px;
    width:20px;
    height:20px;
    margin:0!important;
    accent-color:#bd8c0e;
    cursor:pointer;
  }
  .etr-reg-page:is(.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!important;
    padding:1px 0;
    font-size:15px;
    font-weight:600;
    line-height:1.4;
    cursor:pointer;
    overflow-wrap:anywhere;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .gfield_description {
    font-size:13px;
    line-height:1.5;
    margin-top:7px;
    overflow-wrap:anywhere;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper :is(.gfield--type-section,.gfield--type-page) .gsection_title {
    margin:10px 0 4px;
    font-size:19px;
    line-height:1.35;
    overflow-wrap:anywhere;
  }
  /* Keep Gravity Forms file inputs, attachment validation and document requirements. */
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper :is(.ginput_container_fileupload,.ginput_container_fileupload input[type="file"]) {
    max-width:100%;
    min-width:0;
  }
  .etr-reg-page:is(.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%;
    padding:10px;
    font-size:14px;
    line-height:1.5;
    color:#293c49;
    border:1px dashed #bdcbd4;
    border-radius:11px;
    background:#f8fafb;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper input[type="file"]::file-selector-button {
    display:inline-block;
    max-width:100%;
    min-height:40px;
    margin:0 10px 6px 0;
    padding:8px 12px;
    font:inherit;
    font-size:14px;
    font-weight:700;
    border:1px solid #d7ab30;
    border-radius:9px;
    background:#ffdf73;
    color:#14232e;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .gform_drop_area {
    padding:14px 11px;
    min-width:0;
    border-radius:11px;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .gform_drop_area .gform_button_select_files {
    min-height:44px;
    max-width:100%;
    white-space:normal;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .gf_page_steps {
    padding-bottom:13px;
    margin-bottom:18px;
    line-height:1.4;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .gform_page_footer {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding-top:20px;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .gform_page_footer :is(input[type="button"],input[type="submit"],button) {
    box-sizing:border-box;
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%!important;
    max-width:100%!important;
    min-height:52px;
    margin:0!important;
    padding:12px 16px;
    font-size:16px;
    font-weight:800;
    line-height:1.4;
    border-radius:11px;
    white-space:normal;
    text-align:center;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper :is(.gfield_error,.gfield--error) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    border-color:#b83f34;
  }
}


/* Driver has three actual Gravity Forms pages; business has two. Keep real GF
   progress navigation visible but prevent long labels overflowing mobile. */
@media (max-width:650px) {
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper :is(.gform_page_footer,.gform_footer) {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    min-width:0;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper :is(.gform_page_footer,.gform_footer) :is(input[type="button"],input[type="submit"],button) {
    box-sizing:border-box;
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%!important;
    max-width:100%!important;
    min-height:52px;
    margin:0!important;
    padding:12px 16px;
    font-size:16px;
    font-weight:800;
    white-space:normal;
    text-align:center;
    line-height:1.35;
  }
  .etr-reg-vairuotojo-registracija .etr-reg-form-content .gform_wrapper .gf_page_steps {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    width:100%;
  }
  .etr-reg-verslui-registracija .etr-reg-form-content .gform_wrapper .gf_page_steps {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
    width:100%;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .gf_step {
    box-sizing:border-box;
    display:flex;
    align-items:flex-start;
    gap:5px;
    min-width:0;
    width:auto;
    margin:0!important;
    padding:5px 1px;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .gf_step_label {
    display:block;
    min-width:0;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    font-size:11px;
    line-height:1.35;
  }
  .etr-reg-page:is(.etr-reg-vairuotojo-registracija,.etr-reg-verslui-registracija) .etr-reg-form-content .gform_wrapper .gf_step_number {
    flex:0 0 auto;
  }
}


/* v205: vertically center step numbers inside GF progress circles on both
   driver and business registration forms. */
.etr-reg-page:is(.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;
  line-height:1 !important;
  padding:0 !important;
}
