/* Request an NZeTA landing — styles to match live nzeta.immigration.govt.nz.
   Loaded after nzeta-live-shell.css. Values mirror the live styles.css. */

inz-eta-application,
inz-eta-application-header,
inz-eta-application-main,
inz-eta-application-information,
inz-eta-application-guidance,
inz-eta-screening-questions,
inz-locale-toggle,
inz-form-section,
inz-select-autocomplete,
inz-tooltip {
  display: block;
}

/* 5-step progress stepper — exact live inz-eta-application-header styles */
inz-eta-application-header {
  width: 85%;
  display: block;
  margin: 42px auto 50px;
}
.bread-crumb-container {
  display: flex;
  justify-content: space-between;
}
.bread-crumb-container > div {
  flex-basis: 23%;
  background-color: rgb(243, 243, 243);
  justify-content: center;
  padding: 30px;
  display: flex;
  margin-right: 3px;
  color: rgb(40, 45, 58);
  cursor: pointer;
  font-family: "fira-sans-book", "Arial", "Helvetica Neue", "Sans-Serif";
  box-sizing: border-box;
}
.bread-crumb-container > div.selected {
  cursor: default;
}
.bread-crumb-container > div:focus {
  outline: solid 3px rgba(192, 192, 192, 0.5) !important;
}
.bread-crumb-container > div.disabled {
  color: rgb(214, 215, 218);
  cursor: default;
}
.bread-crumb-container > div:last-child {
  margin-right: 0;
}
.bread-crumb-container > div.selected {
  background-color: rgb(40, 45, 56);
  color: rgb(255, 255, 255);
}
.bread-crumb-container > div > * {
  align-self: center;
}
.bread-crumb-container > div > span {
  margin-left: 10px;
  display: block;
}
.bread-crumb-container > div span {
  font-size: 16px;
  font-family: "fira-sans-book";
}
.bread-crumb-container > div span.step {
  font-size: 30px !important;
}

/* Language toggle — exact live inz-locale-toggle styles */
inz-locale-toggle {
  display: block;
}
inz-locale-toggle section {
  display: flex;
  flex-wrap: wrap-reverse;
  padding-bottom: 10px;
  position: relative;
}
inz-locale-toggle section h2 {
  width: 100%;
}
inz-locale-toggle section > div:not(.wrapper) {
  height: 16px;
  width: 1px;
}
inz-locale-toggle .wrapper {
  position: absolute;
  right: 0;
  top: 0;
}
inz-eta-check-status inz-locale-toggle .wrapper.hasPageTitle {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.locale-switcher {
  display: flex;
  column-gap: 10px;
}
.locale-switcher mat-slide-toggle,
.locale-switcher .mat-mdc-slide-toggle {
  display: inline-flex;
  margin-top: -2px;
  --mdc-switch-unselected-track-color: rgb(50, 56, 73);
  --mdc-switch-selected-track-color: rgb(50, 56, 73);
  --mdc-switch-unselected-focus-track-color: rgb(50, 56, 73);
  --mdc-switch-selected-focus-track-color: rgb(50, 56, 73);
  --mdc-switch-unselected-pressed-track-color: rgb(50, 56, 73);
  --mdc-switch-selected-pressed-track-color: rgb(50, 56, 73);
  --mdc-switch-unselected-hover-track-color: rgb(50, 56, 73);
  --mdc-switch-selected-hover-track-color: rgb(50, 56, 73);
  --mdc-switch-unselected-handle-color: rgb(255, 255, 255);
  --mdc-switch-selected-handle-color: rgb(255, 255, 255);
  --mdc-switch-unselected-focus-handle-color: rgb(255, 255, 255);
  --mdc-switch-selected-focus-handle-color: rgb(255, 255, 255);
  --mdc-switch-unselected-pressed-handle-color: rgb(255, 255, 255);
  --mdc-switch-selected-pressed-handle-color: rgb(255, 255, 255);
  --mdc-switch-unselected-hover-handle-color: rgb(255, 255, 255);
  --mdc-switch-selected-hover-handle-color: rgb(255, 255, 255);
  --mat-switch-unselected-handle-size: 16px;
  --mat-switch-selected-handle-size: 16px;
  --mdc-switch-track-height: 20px;
  --mdc-switch-track-shape: 10px;
  --mdc-switch-track-width: 48px;
}
.locale-switcher .mdc-switch {
  position: relative;
  display: flex;
  align-items: center;
  width: 48px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none !important;
}
.locale-switcher .mdc-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: rgb(50, 56, 73);
}
.locale-switcher .mdc-switch__handle-track {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0 2px !important;
  transition: transform 75ms cubic-bezier(0, 0, .2, 1);
}
.locale-switcher .mdc-switch--selected .mdc-switch__handle-track {
  transform: translateX(28px);
}
.locale-switcher .mdc-switch__handle {
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  display: flex;
}
.locale-switcher .mdc-label {
  display: none;
}
.locale-label {
  white-space: nowrap;
}
.locale-label.active {
  color: rgb(50, 56, 73);
}
#requiredFieldAlert {
  align-self: flex-end;
  color: rgb(50, 56, 73);
  font-size: 16px;
  margin-top: 10px;
  text-align: end;
}
#requiredFieldAlert > span {
  color: rgb(227, 79, 38);
  font-weight: 600;
}

@media screen and (max-width: 1200px) {
  inz-locale-toggle .wrapper {
    margin-bottom: 12px;
    order: 1;
    position: static;
    width: 100%;
  }
  .locale-switcher {
    justify-content: end;
  }
}
@media screen and (max-width: 945px) {
  .locale-switcher {
    float: left;
  }
  #requiredFieldAlert {
    float: right;
    margin-top: 0;
  }
}
@media screen and (max-width: 500px) {
  .locale-switcher {
    float: none;
    justify-content: unset;
  }
  #requiredFieldAlert {
    float: none;
    margin-top: 10px;
    text-align: start;
  }
}

/* Guidance columns — exact live inz-eta-application-guidance styles */
.inz-eta-application-guidance-component {
  box-sizing: border-box;
  border-bottom: 1px solid rgb(213, 214, 217);
  margin-bottom: 30px;
  color: rgb(50, 56, 73);
}

.inz-style-h2-main-section-title {
  font-family: gustan-extrabold, Arial, "Helvetica Neue", Sans-Serif;
  font-size: 30px;
  line-height: 38px;
  color: #323849;
  font-weight: 600;
  display: block;
  margin: 0 0 25px;
}
.inz-style-secondary-page-title {
  font-family: gustan-extrabold, Arial, "Helvetica Neue", Sans-Serif;
  font-size: 38px;
  line-height: 38px;
  color: rgb(50, 56, 73);
  font-weight: 600;
  margin: 0 0 4px;
}

.flex-container {
  display: flex;
  margin: 40px 0 20px 0;
}
.flex-container > div {
  margin-right: 30px;
  display: flex;
  flex-direction: column;
  flex: 1 1 33.33%;
  border-left: 1px solid rgb(213, 214, 217);
  padding-left: 20px;
  box-sizing: border-box;
}
.flex-container > div:first-child {
  border-left: none;
  padding-left: 0;
}
.flex-container > div:last-child {
  margin-right: 0;
}
.flex-container .items-container {
  display: flex;
  flex-direction: column;
  font-family: fira-sans-book, Arial, "Helvetica Neue", Sans-Serif;
  font-size: 16px;
  line-height: 25px;
  color: rgb(50, 56, 73);
}
.flex-container .inz-style-h2-main-section-title,
.flex-container .bottom-space {
  margin-bottom: 25px;
}
.flex-container .items-container a {
  font-family: fira-sans-book, Arial, "Helvetica Neue", Sans-Serif;
  font-size: 16px;
  line-height: 25px;
  color: #0e7ac3;
  text-decoration: none;
  border-bottom: 2px dotted rgb(214, 215, 218) !important;
}
.flex-container .items-container a:hover {
  text-decoration: none;
  color: #0e7ac3;
}
.flex-container .items-container .list-item .inz-style-list {
  font-family: fira-sans-book, Arial, "Helvetica Neue", Sans-Serif;
  font-size: 16px;
  line-height: 25px;
  color: #323849;
  display: flex;
  margin-bottom: 10px;
}
.flex-container .items-container .list-item .inz-style-list:last-child {
  margin-bottom: 25px;
}
.flex-container .items-container .list-item .inz-style-list .bullet {
  font-family: fira-sans-bold, Arial, "Helvetica Neue", Sans-Serif;
  color: #00b1e3;
  padding-right: 25px;
}

/* Store badges — exact live (Google Play PNG has transparent padding) */
.mobile-app-links {
  display: block;
  line-height: 0;
}
.mobile-app-links p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}
.mobile-app-links a.android,
.mobile-app-links a.ios,
.flex-container .items-container .mobile-app-links a.android,
.flex-container .items-container .mobile-app-links a.ios {
  border: none !important;
  border-bottom: none !important;
  text-decoration: none !important;
  display: inline-block;
  line-height: 0;
  vertical-align: top;
}
.mobile-app-links a.android img {
  /* live: width 184px + margin -12px crops Play badge padding */
  width: 184px !important;
  max-width: none !important;
  height: auto !important;
  margin: -12px !important;
  display: block;
  border: 0;
}
.mobile-app-links a.ios img {
  /* natural badge ~160px — matches Play black area after -12px crop */
  width: 160px !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  display: block;
  border: 0;
}

@media (max-width: 945px) {
  .flex-container {
    flex-direction: column;
  }
  .flex-container > div {
    margin-right: 0;
    flex: 1 1 auto;
    border-left: none;
    padding-left: 0;
  }
}

/* Form section + nationality select — exact live component styles */
inz-eta-screening-questions form {
  display: flex;
  flex-direction: column;
}
inz-form-section {
  display: flex;
  flex-direction: column;
  background-color: rgb(243, 243, 243);
  padding: 30px;
  margin-bottom: 20px;
  font-family: fira-sans-book, Arial, "Helvetica Neue", Sans-Serif;
  color: rgb(50, 56, 73);
  box-sizing: border-box;
}
inz-form-section p,
inz-form-section ul {
  font-family: fira-sans-book, Arial, "Helvetica Neue", Sans-Serif;
  font-size: 16px;
  line-height: 25px;
  color: rgb(90, 95, 109);
}
@media screen and (max-width: 720px) {
  inz-form-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

inz-select-autocomplete {
  box-shadow: none;
  box-sizing: border-box;
  filter: none;
  margin-bottom: 8px;
  padding-top: 8px;
  padding-bottom: 9px;
  display: flex;
  flex-direction: column;
  font-family: fira-sans-book, Arial, "Helvetica Neue", Sans-Serif;
  color: rgb(50, 56, 73);
}
inz-select-autocomplete > .layout {
  box-shadow: none;
  box-sizing: border-box;
  filter: none;
  display: flex;
  flex-direction: column;
  font-family: fira-sans-book, Arial, "Helvetica Neue", Sans-Serif;
  color: rgb(50, 56, 73);
  margin-bottom: 0;
  padding: 0;
  flex: 1 1 auto;
}
.oneLiner {
  padding-left: 0.45em;
  display: inline-flex;
  align-items: center;
}
#qCitizenship .oneLiner label.required,
.oneLiner label.required {
  font-family: gustan-extrabold, Arial, "Helvetica Neue", Sans-Serif;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  color: rgb(50, 56, 73);
  margin: 0 0 4px;
  padding: 0 10px 0 0;
  display: block;
}
.required::after {
  font-family: gustan-extrabold, Arial, "Helvetica Neue", Sans-Serif;
  content: " *";
  color: rgb(227, 79, 38);
  font-size: 16px !important;
}
inz-tooltip {
  font-family: fira-sans-book, Arial, "Helvetica Neue", Sans-Serif;
  color: rgb(50, 56, 73);
}
inz-tooltip .tooltip-image {
  background: url("./assets/images/help-icon.svg") no-repeat;
  display: inline-block;
  margin-top: -2px;
  width: 19px;
  height: 19px;
  border: 2px solid transparent;
  border-bottom: none !important;
}

#qCitizenship mat-form-field,
#qCitizenship .mat-mdc-form-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}
#qCitizenship .mat-mdc-text-field-wrapper {
  position: relative;
  background: rgb(245, 245, 245);
  overflow: visible;
}
#qCitizenship .mat-mdc-form-field-infix {
  position: relative;
  min-height: 56px;
  padding: 0;
  display: block;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
#qCitizenship .mat-mdc-form-field-focus-overlay {
  display: block;
}
#qCitizenship mat-select,
#qCitizenship .mat-mdc-select,
inz-select-autocomplete#qCitizenship mat-select,
inz-select-autocomplete#qCitizenship .mat-mdc-select {
  position: relative;
  display: block;
  background-color: rgb(255, 255, 255) !important;
  border: 1px solid rgb(213, 214, 217) !important;
  padding: 11px 20px;
  box-sizing: border-box;
  min-height: 41px;
  width: 100%;
}
#qCitizenship mat-select:focus,
#qCitizenship .mat-mdc-select:focus {
  outline: rgba(192, 192, 192, 0.5) solid 3px !important;
  outline-offset: 0 !important;
}
#qCitizenship .mat-mdc-select-trigger {
  display: flex;
  align-items: center;
  min-height: 24px;
  pointer-events: none;
}
#qCitizenship .mat-mdc-select-value {
  flex: 1;
  min-width: 0;
}
#qCitizenship .mat-mdc-select-arrow svg {
  fill: rgba(0, 0, 0, .54);
}
#qCitizenship .nzeta-native-select {
  display: none;
}
#qCitizenship .mat-mdc-select {
  cursor: pointer;
}
#qCitizenship .mat-mdc-select-value,
#qCitizenship #qCitizenship-value {
  font-family: gustan-extrabold, Arial, "Helvetica Neue", Sans-Serif;
  font-size: 16px;
  color: rgb(50, 56, 73);
}

/* Live-like searchable select panel */
.nzeta-select-pane {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1000;
  display: block;
}
.nzeta-select-overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: auto;
  width: auto;
  z-index: 1000;
}
.nzeta-select-pane[hidden] {
  display: none !important;
}
.nzeta-select-pane .mat-mdc-select-panel {
  background: #fff;
  border: 1px solid rgb(213, 214, 217);
  box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
  max-height: 275px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}
.nzeta-select-overlay .mat-mdc-select-panel {
  width: 100%;
}
.mat-mdc-option.ngx-search.contains-mat-select-search {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 0;
  padding: 0;
  margin: 0;
  cursor: default;
  opacity: 1;
  background: #fff !important;
  color: rgb(50, 56, 73) !important;
  display: block;
  pointer-events: auto;
}
.mat-mdc-option.ngx-search .mat-icon.search {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 20px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  color: rgba(0, 0, 0, .54);
  pointer-events: none;
}
.mat-mdc-option.ngx-search .mdc-list-item__primary-text {
  display: block;
  width: 100%;
  padding: 0;
}
.mat-mdc-option.ngx-search .mat-select-search-inner {
  position: relative;
  border-bottom: none;
  background: #fff;
}
.mat-mdc-option.ngx-search .mat-select-search-inner-row {
  position: relative;
}
.mat-mdc-option.ngx-search .mat-select-search-input {
  padding-left: 44px;
  padding-right: 16px;
}
.mat-mdc-option.ngx-search.contains-mat-select-search:hover,
.nzeta-select-pane .mat-mdc-option.ngx-search:hover {
  background: #fff !important;
  color: rgb(50, 56, 73) !important;
}
.mat-select-search-inner {
  position: relative;
  flex: 0 0 auto;
  border-bottom: 1px solid rgb(213, 214, 217);
  background: #fff;
}
.mat-select-search-input {
  box-sizing: border-box;
  width: 100%;
  border: none;
  outline: none;
  font-family: fira-sans-book, Arial, "Helvetica Neue", Sans-Serif;
  font-size: 16px;
  font-style: italic;
  color: rgb(50, 56, 73);
  background: #fff;
  padding: 0 44px 0 16px;
  height: 48px;
  line-height: 48px;
}
.mat-select-search-input::placeholder {
  color: rgba(0, 0, 0, .42);
  font-style: italic;
}
.mat-select-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239e9e9e'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.mat-mdc-select-panel-options {
  overflow-y: auto;
  flex: 1 1 auto;
  max-height: 226px;
  -webkit-overflow-scrolling: touch;
}
.nzeta-select-pane .mat-mdc-option {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  cursor: pointer;
  box-sizing: border-box;
  font-family: gustan-extrabold, Arial, "Helvetica Neue", Sans-Serif;
  font-size: 16px;
  line-height: 24px;
  color: rgb(50, 56, 73);
  background: #fff;
}
.nzeta-select-pane .mat-mdc-option .mdc-list-item__primary-text {
  font-family: inherit;
  font-weight: 600;
}
.nzeta-select-pane .mat-mdc-option.mat-mdc-option-active,
.nzeta-select-pane .mat-mdc-option.mat-active,
.nzeta-select-pane .mat-mdc-option:hover {
  background: #dc2a5f !important;
  color: #fff !important;
}
.mat-select-search-no-entries-found {
  padding: 12px 16px;
  font-family: fira-sans-book, Arial, "Helvetica Neue", Sans-Serif;
  font-size: 14px;
  color: rgb(90, 95, 109);
}
#qCitizenship .mdc-line-ripple {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(0, 0, 0, .42);
  display: block;
}
#qCitizenship .mat-mdc-form-field-subscript-wrapper {
  display: block;
  height: auto;
}
.span-form-readonly-value {
  margin-top: 10px;
  margin-bottom: 8px;
  overflow-wrap: break-word;
  color: rgb(50, 56, 73);
  font-family: fira-sans-book, Arial, "Helvetica Neue", Sans-Serif;
  font-size: 16px;
  line-height: 25px;
}

@media (max-width: 945px) {
  inz-eta-application-header {
    width: 100%;
    margin: 5px auto 20px;
  }
  .bread-crumb-container {
    display: flex;
    justify-content: space-between;
  }
  .bread-crumb-container > div {
    flex-basis: 10%;
    padding: 15px;
  }
  .bread-crumb-container > div span {
    padding: 0;
    margin: 0;
  }
  .bread-crumb-container > div span.text {
    display: none;
  }
  .bread-crumb-container > div.selected {
    flex: 4 1 auto;
  }
  .bread-crumb-container > div.selected span.text {
    display: block;
    margin-left: 10px;
  }
}
