body {
  background: #fff;
}

#customer-site {
  --portal-width: 950px;
  --portal-gutter: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

#customer-site > main {
  flex: 1 0 auto;
}

#customer-site > footer {
  flex-shrink: 0;
}

#local-admin {
  min-height: 100vh;
  background: var(--background);
}

#local-admin .admin-login-view {
  display: grid;
}

#local-admin .admin-app-view {
  min-height: calc(100vh - 100px);
}

#local-admin .eyebrow,
.record-dialog .eyebrow {
  text-align: left;
}

.record-dialog form {
  margin: 0;
}

.record-dialog[open] {
  display: block;
}

#local-admin-passport-number {
  text-transform: uppercase;
}

.finance-dashboard {
  max-width: 980px;
}

.finance-dashboard .dashboard-heading {
  margin-bottom: 20px;
}

.finance-shell {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 5px;
  box-shadow: 0 8px 28px rgba(28, 39, 54, 0.08);
}

.finance-security-note {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: #28588d;
  background: #eef6ff;
  border-bottom: 1px solid #d7e7f8;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.finance-security-note p {
  margin: 0;
}

.finance-shield {
  width: 25px;
  height: 25px;
  display: grid;
  flex: 0 0 25px;
  place-items: center;
  color: #fff;
  background: #327fc5;
  border-radius: 50%;
  font-weight: 700;
}

.finance-section {
  margin: 20px;
  padding: 20px;
  border: 1px solid #dfe2e6;
  border-radius: 4px;
}

.finance-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6e8ea;
}

.finance-heading-kicker {
  display: block;
  margin-bottom: 4px;
  color: #707780;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.finance-section-heading h2 {
  margin: 0;
  color: #1e2630;
  font-size: 19px;
  font-weight: 500;
}

.reference-number {
  padding: 6px 9px;
  color: #263443;
  background: #f5f6f7;
  border: 1px solid #ccd1d6;
  border-radius: 3px;
  font-family: Consolas, monospace;
  font-size: 10px;
}

.applicant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}

.application-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.application-field span {
  color: #80858b;
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.application-field strong {
  overflow: hidden;
  color: #18212a;
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-status-badge {
  padding: 6px 10px;
  color: #347647;
  background: #eaf6ed;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.finance-form {
  display: grid;
  gap: 17px;
}

.finance-control {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.finance-control > span {
  color: #4f5660;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.finance-control select,
.finance-control input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  color: #222b34;
  background: #fff;
  border: 1px solid #cdd2d8;
  border-radius: 4px;
  outline: none;
  font-family: Arial, sans-serif;
  font-size: 13px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.finance-control input[readonly] {
  color: #4c555f;
  background: #f6f7f8;
}

.finance-control select:focus,
.finance-control input:focus {
  border-color: #367fb9;
  box-shadow: 0 0 0 3px rgba(54, 127, 185, 0.12);
}

.bank-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  padding-top: 2px;
}

.account-match-notice {
  grid-column: 1 / -1;
  padding: 13px 15px;
  color: #5e4b12;
  background: #fffbea;
  border: 1px solid #e4c448;
  border-radius: 3px;
  font-family: Arial, sans-serif;
}

.account-match-notice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.account-match-notice p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.finance-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #555d66;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1.45;
}

.finance-consent input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: #367fb9;
}

.finance-submit-button {
  grid-column: 1 / -1;
  min-height: 47px;
  padding: 0 22px;
  color: #fff;
  background: #367fb9;
  border: 1px solid #286a9f;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25px;
}

.finance-submit-button:hover {
  background: #2e72a8;
}

.finance-result-section {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px;
  padding: 35px 25px;
  color: #29333d;
  background: #f8f9fa;
  border: 1px solid #dfe2e6;
  border-radius: 4px;
  text-align: center;
}

.finance-result-section h2 {
  margin: 19px 0 8px;
  font-size: 19px;
  font-weight: 500;
}

.finance-result-section p {
  max-width: 540px;
  margin: 0;
  color: #6c737b;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1.6;
}

.countdown-ring,
.result-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: #1f65aa;
  background: #fff;
  border: 5px solid #d8e0e8;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(30, 45, 60, 0.08);
}

.countdown-ring span {
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 700;
}

.result-icon {
  color: #fff;
  background: #de991d;
  border: 0;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.result-icon.approved {
  background: #4b9c62;
}

#local-finance-retry {
  width: min(100%, 245px);
  margin-top: 20px;
}

@media (max-width: 760px) {
  #local-admin .admin-login-view {
    min-height: calc(100vh - 90px);
  }

  .finance-dashboard .dashboard-heading {
    flex-direction: column;
  }

  .finance-section {
    margin: 12px;
    padding: 16px;
  }

  .finance-security-note {
    padding: 11px 14px;
  }

  .applicant-grid,
  .bank-details {
    grid-template-columns: 1fr;
  }

  .account-match-notice,
  .finance-consent,
  .finance-submit-button {
    grid-column: auto;
  }

  .finance-section-heading {
    flex-direction: column;
  }

  .finance-result-section {
    margin: 12px;
  }
}

/* PNR Login View Styles */
.site-header {
  height: 69px;
}

.header-inner,
.navigation-inner,
.content-inner,
.footer-inner,
.footer-bottom-inner {
  width: min(
    calc(
      100% - (var(--portal-gutter) * 2) - env(safe-area-inset-left) -
        env(safe-area-inset-right)
    ),
    var(--portal-width)
  );
  margin-right: auto;
  margin-left: auto;
}

.header-inner {
  grid-template-columns: 190px 1fr auto;
}

.brand {
  align-self: start;
  margin-top: 1px;
}

.brand img {
  width: 141px;
  height: 60px;
}

.brand-description {
  margin: 0;
  transform: translateY(-2px);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.18;
}

.language {
  align-self: start;
  gap: 8px;
  min-width: auto;
  margin-top: 10px;
  margin-right: 1px;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
}

.turkish-flag {
  width: 15px;
  height: 11px;
  font-size: 5px;
}

.language-arrow {
  border-left-width: 3px;
  border-right-width: 3px;
  border-top-width: 4px;
}

.main-navigation {
  height: 61px;
  background: #c60000;
}

.navigation-inner {
  margin-right: auto;
  margin-left: auto;
}

.nav-item,
.nav-item:nth-child(2),
.nav-item-small {
  min-width: 0;
  padding: 0 18px;
  flex: 0 0 auto;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.8px;
}

.nav-item {
  width: 174px;
}

.nav-item:first-child {
  justify-content: flex-start;
  padding-left: 40px;
}

.nav-item:nth-child(2) {
  width: 201px;
  justify-content: flex-start;
  padding-left: 23px;
}

.nav-item-small {
  width: 74px;
  justify-content: flex-start;
  padding-left: 25px;
}

.nav-item.active {
  background: #444;
}

.nav-item.active::after {
  left: 15px;
  right: 19px;
  height: 3px;
}

.login-view {
  min-height: 0;
  padding: 37px 0 0;
  border-bottom: 0;
}

.customer-login-view {
  min-height: 330px;
  padding: 45px 0 38px;
  border-bottom: 1px solid var(--border);
}

.customer-login-container h1 {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
}

.customer-login-container .passport-form {
  padding-bottom: 26px;
}

.main-navigation .nav-item {
  appearance: none;
}

.login-container-pnr {
  padding: 0;
}

.pnr-warning-box {
  min-height: 0;
  margin-bottom: 19px;
  padding: 15px 15px 14px;
  color: #8a6d3b;
  background-color: #fcf8e3;
  border: 1px solid #faebcc;
  border-radius: 4px;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.72;
}

.pnr-warning-box ul {
  margin: 0 0 24px;
  padding-left: 36px;
  list-style-type: disc;
}

.pnr-warning-box ul:last-child {
  margin-bottom: 0;
}

.pnr-warning-box li {
  margin-bottom: 0;
}

.pnr-warning-box li:last-child {
  margin-bottom: 0;
}

.pnr-warning-box strong {
  overflow-wrap: anywhere;
}

.pnr-warning-heading {
  font-weight: 700;
  margin: 0 0 0;
  color: #8a6d3b;
}

.pnr-login-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 100%;
}

.pnr-input-wrapper input {
  width: 100%;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  font-size: 12px;
  color: #555;
  outline: none;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.pnr-input-wrapper input:focus {
  border-color: #66afe9;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.birthdate-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.birthdate-select-wrapper select {
  width: 100%;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  font-size: 12px;
  color: #555;
  background-color: #fff;
  outline: none;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.birthdate-select-wrapper select:focus {
  border-color: #367fb9;
  box-shadow: 0 0 0 3px rgba(54, 127, 185, 0.12);
}

.birthdate-select-wrapper select:last-child {
  height: 31px;
  margin-top: 1px;
}

/* Captcha styling */
.captcha-wrapper {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
  margin-top: 2px;
}

.captcha-img-box {
  width: 190px;
  height: 66px;
}

#local-captcha-canvas {
  width: 190px;
  height: 66px;
  border: 0;
  border-radius: 0;
  background: #fff;
  display: block;
}

.captcha-refresh-btn {
  display: none;
}

.captcha-input-box {
  display: flex;
  align-items: center;
  width: min(267px, 100%);
  height: 32px;
}

.captcha-icon {
  width: 35px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eee;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 3px 0 0 3px;
  color: #222;
}

#local-captcha-input {
  flex: 1;
  height: 100%;
  min-width: 0;
  padding: 0 11px;
  border: 1px solid #ccc;
  border-radius: 0 3px 3px 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  font-size: 11px;
  color: #555;
  outline: none;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
}

#local-captcha-input::placeholder {
  text-transform: none;
  letter-spacing: 0;
}

#local-captcha-input:focus {
  border-color: #367fb9;
}

.pnr-submit-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
  margin-right: -13px;
  margin-left: -13px;
  padding: 19px 13px 3px;
  border-top: 1px solid #ddd;
}

.pnr-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #5cb85c;
  border: 1px solid #4cae4c;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  color: #fff;
  height: 43px;
  min-width: 92px;
  padding: 0 16px 2px;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.pnr-btn-submit:hover {
  background-color: #4cae4c;
}

@media (max-width: 991px) {
  #customer-site {
    --portal-gutter: 20px;
  }

  .header-inner {
    grid-template-columns: 170px 1fr auto;
  }

  .brand-description {
    font-size: 10px;
  }

  .pnr-warning-box {
    font-size: 12px;
    line-height: 1.7;
  }
}

@media (max-width: 760px) {
  #customer-site {
    --portal-gutter: 14px;
  }

  .site-header {
    height: 70px;
  }

  .header-inner {
    min-height: 70px;
    grid-template-columns: 1fr auto;
  }

  .brand {
    align-self: center;
    margin-top: 0;
  }

  .brand img {
    width: 126px;
    height: 54px;
  }

  .brand-description {
    display: none;
  }

  .language {
    align-self: center;
    margin-top: 0;
    font-size: 12px;
  }

  .main-navigation {
    height: 54px;
    overflow: visible;
  }

  .navigation-inner {
    display: grid;
    grid-template-columns: 1fr 1.42fr 0.58fr;
    width: 100%;
    max-width: none;
    padding-right: env(safe-area-inset-right);
    padding-left: env(safe-area-inset-left);
  }

  .nav-item,
  .nav-item:nth-child(2),
  .nav-item-small {
    width: auto;
    min-width: 0;
    justify-content: center;
    padding: 0 8px;
    font-size: 12px;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
  }

  .nav-item:first-child,
  .nav-item:nth-child(2),
  .nav-item-small {
    justify-content: center;
    padding-left: 8px;
  }

  .login-view {
    padding-top: 24px;
  }

  .customer-login-view {
    min-height: 360px;
    padding: 34px 0 30px;
  }

  .customer-login-container h1 {
    font-size: 19px;
  }

  .customer-login-container .content-divider {
    margin: 28px 0 22px;
  }

  .customer-login-container .passport-form input {
    height: 52px;
    font-size: 16px;
  }

  .customer-login-container .button {
    min-height: 52px;
  }

  .pnr-warning-box {
    min-height: 0;
    margin-bottom: 16px;
    padding: 14px 12px;
    font-size: 12px;
    line-height: 1.65;
  }

  .pnr-warning-box ul {
    margin-bottom: 18px;
    padding-left: 24px;
  }

  .pnr-warning-heading {
    margin-bottom: 3px;
  }

  .pnr-login-form {
    gap: 10px;
  }

  .pnr-input-wrapper input,
  .birthdate-select-wrapper select,
  .birthdate-select-wrapper select:last-child {
    height: 44px;
    margin-top: 0;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 16px;
  }

  .birthdate-select-wrapper {
    gap: 10px;
  }

  .captcha-wrapper {
    gap: 14px;
  }

  .captcha-img-box,
  #local-captcha-canvas {
    max-width: 100%;
  }

  .captcha-input-box,
  .captcha-icon {
    height: 44px;
  }

  #local-captcha-input {
    font-size: 16px;
  }

  .pnr-submit-wrapper {
    margin-top: 4px;
    margin-right: calc(-1 * var(--portal-gutter));
    margin-left: calc(-1 * var(--portal-gutter));
    padding-right: var(--portal-gutter);
    padding-left: var(--portal-gutter);
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .pnr-btn-submit {
    min-height: 44px;
  }

  .footer-main,
  .footer-inner {
    min-height: 92px;
  }

  .footer-inner {
    padding: 14px 0;
  }

  .footer-inner img {
    width: 126px;
    height: 48px;
  }

  .footer-inner p {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.45;
  }

  .footer-bottom,
  .footer-bottom-inner {
    min-height: 52px;
  }

  .footer-bottom-inner {
    font-size: 11px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .pnr-input-wrapper input,
  .birthdate-select-wrapper select,
  .birthdate-select-wrapper select:last-child {
    min-height: 44px;
    font-size: 16px;
  }

  .captcha-input-box,
  .captcha-icon {
    min-height: 44px;
  }

  #local-captcha-input {
    font-size: 16px;
  }

  .pnr-btn-submit {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  #customer-site {
    --portal-gutter: 10px;
  }

  .site-header,
  .header-inner {
    height: 64px;
    min-height: 64px;
  }

  .brand img {
    width: 116px;
    height: 50px;
  }

  .language {
    gap: 5px;
  }

  .main-navigation {
    height: 52px;
  }

  .nav-item,
  .nav-item:nth-child(2),
  .nav-item-small {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 11px;
  }

  .login-view {
    padding-top: 16px;
  }

  .customer-login-view {
    min-height: 380px;
    padding-top: 28px;
  }

  .customer-login-container .form-actions {
    flex-direction: column-reverse;
  }

  .customer-login-container .button {
    width: 100%;
  }

  .pnr-warning-box {
    padding: 12px 10px;
    font-size: 11.5px;
    line-height: 1.6;
  }

  .pnr-warning-box ul {
    padding-left: 20px;
  }

  .captcha-img-box,
  #local-captcha-canvas {
    width: 190px;
    height: 66px;
  }

  .captcha-input-box {
    width: 100%;
  }

  .pnr-submit-wrapper {
    padding-top: 12px;
  }

  .pnr-btn-submit {
    width: 100%;
  }
}

@media (max-width: 350px) {
  .language > span:nth-child(2) {
    display: none;
  }

  .nav-item,
  .nav-item:nth-child(2),
  .nav-item-small {
    font-size: 10px;
  }
}
