:root {
  --red: #d50000;
  --red-dark: #b90000;
  --charcoal: #454545;
  --footer: #222222;
  --footer-dark: #151515;
  --blue: #367fb9;
  --blue-dark: #286aa0;
  --orange: #f1ac43;
  --orange-dark: #df931f;
  --text: #171717;
  --muted: #777b83;
  --border: #e7e7e7;
  --container: 1436px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fff;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  height: 99px;
  background: #fff;
}

.header-inner,
.navigation-inner,
.content-inner,
.footer-inner,
.footer-bottom-inner {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
}

.brand img {
  display: block;
  width: 180px;
  height: 77px;
  object-fit: contain;
  object-position: left center;
}

.brand-description {
  margin: 0 0 0 31px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.05;
  color: #202020;
}

.language {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 108px;
  margin-right: 6px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: #363636;
}

.turkish-flag {
  display: inline-grid;
  width: 20px;
  height: 14px;
  place-items: center;
  color: #fff;
  background: #e30a17;
  font-size: 7px;
  line-height: 1;
}

.language-arrow {
  width: 0;
  height: 0;
  margin-left: 1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #585858;
}

.main-navigation {
  height: 81px;
  background: var(--red);
}

.navigation-inner {
  height: 100%;
  display: flex;
  align-items: stretch;
}

.nav-item {
  min-width: 207px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  color: #fff;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.23);
  font-size: 20px;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav-item:nth-child(2) {
  min-width: 270px;
}

.nav-item-small {
  min-width: 96px;
}

.nav-item:hover {
  background: var(--red-dark);
}

.nav-item.active {
  position: relative;
  background: var(--charcoal);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 4px;
  background: #fff;
}

.portal-view {
  background: #fff;
}

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

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

.content-divider {
  height: 1px;
  margin: 40px 0 25px;
  background: var(--border);
}

.passport-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 15px 20px;
}

.passport-form input {
  width: 438px;
  height: 57px;
  padding: 0 20px;
  color: #242424;
  background: #fff;
  border: 1px solid #cfd3d7;
  border-radius: 5px;
  outline: none;
  font-family: Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.passport-form input::placeholder {
  color: #9b9b9b;
  letter-spacing: 0;
  text-transform: none;
}

.passport-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(54, 127, 185, 0.12);
}

.passport-hint {
  position: absolute;
  top: 59px;
  left: 50%;
  width: 438px;
  margin: 0;
  transform: translateX(-50%);
  color: #888;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.form-actions {
  display: flex;
  gap: 38px;
}

.button {
  position: relative;
  width: 200px;
  height: 57px;
  padding: 0 18px;
  border-radius: 5px;
  color: #fff;
  font-size: 17px;
  border: 1px solid transparent;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  transition:
    background 150ms ease,
    transform 100ms ease,
    box-shadow 150ms ease;
}

.button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.button-orange {
  background: var(--orange);
  border-color: var(--orange-dark);
}

.button-orange:hover {
  background: #eba135;
}

.button-blue {
  background: var(--blue);
  border-color: var(--blue-dark);
}

.button-blue:hover {
  background: #2f75ad;
}

.button-loader {
  display: none;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.passport-form.loading .button-label {
  display: none;
}

.passport-form.loading .button-loader {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.site-footer {
  color: #95999d;
  font-family: Arial, sans-serif;
}

.footer-main {
  min-height: 102px;
  background: var(--footer);
}

.footer-inner {
  min-height: 102px;
  display: flex;
  align-items: center;
}

.footer-inner img {
  width: 190px;
  height: 75px;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1) brightness(2.6);
}

.footer-inner p {
  margin: 0 0 0 51px;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.2px;
}

.footer-bottom {
  min-height: 63px;
  background: var(--footer-dark);
  border-top: 1px solid #2c2c2c;
}

.footer-bottom-inner {
  min-height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.footer-bottom strong {
  font-weight: 700;
}

.footer-bottom a {
  color: #898e92;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-bottom a:hover {
  color: #fff;
}

.customer-view {
  min-height: 360px;
  padding: 38px 0 46px;
}

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.dashboard-heading h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 400;
}

.outline-button {
  height: 42px;
  padding: 0 20px;
  color: #555;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.outline-button:hover {
  color: var(--red);
  border-color: var(--red);
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  min-height: 145px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-top: 3px solid var(--blue);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.045);
}

.info-card.status-card {
  border-top-color: #4b9c62;
}

.card-icon {
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 18px;
}

.status-icon {
  background: #4b9c62;
}

.info-card > div:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-label {
  color: #888;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.info-card strong {
  overflow: hidden;
  color: #242424;
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-secondary {
  overflow: hidden;
  color: #858585;
  font-family: Arial, sans-serif;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.faq-view {
  min-height: 360px;
  padding: 42px 0 50px;
}

.faq-inner {
  max-width: 920px;
}

.faq-inner .eyebrow {
  text-align: center;
}

.faq-list {
  margin-top: 30px;
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  padding: 19px 8px;
  cursor: pointer;
  font-size: 16px;
}

.faq-list p {
  margin: -5px 8px 20px;
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100vw - 48px));
  padding: 14px 18px;
  color: #fff;
  background: #343434;
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-left-color: var(--red);
}

.toast.success {
  border-left-color: #50a568;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 200px 1fr auto;
  }

  .brand-description {
    margin-left: 8px;
  }

  .passport-form {
    display: grid;
    grid-template-columns: minmax(280px, 438px) auto;
  }

  .passport-form input {
    width: 100%;
  }

  .passport-hint {
    left: 0;
    transform: none;
  }

  .form-actions {
    gap: 12px;
  }

  .button {
    width: 160px;
  }

  .customer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: auto;
  }

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

  .brand img {
    width: 150px;
    height: 64px;
  }

  .brand-description {
    display: none;
  }

  .language {
    min-width: auto;
    margin: 0;
  }

  .main-navigation {
    height: 64px;
    overflow-x: auto;
  }

  .navigation-inner {
    width: 100%;
  }

  .nav-item,
  .nav-item:nth-child(2),
  .nav-item-small {
    min-width: auto;
    flex: 1 0 auto;
    padding: 0 22px;
    font-size: 16px;
  }

  .login-view {
    min-height: 370px;
    padding-top: 36px;
  }

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

  .content-divider {
    margin: 30px 0 24px;
  }

  .passport-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .passport-form input {
    width: 100%;
  }

  .passport-hint {
    position: static;
    width: 100%;
    margin-top: -10px;
  }

  .form-actions {
    width: 100%;
    gap: 12px;
    margin-top: 4px;
  }

  .button {
    width: auto;
    flex: 1;
    font-size: 15px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 0;
  }

  .footer-inner img {
    width: 150px;
    height: 52px;
  }

  .footer-inner p {
    margin: 5px 0 0;
    font-size: 13px;
  }

  .footer-bottom-inner {
    gap: 18px;
    font-size: 12px;
  }

  .customer-view {
    padding: 30px 0;
  }

  .dashboard-heading {
    align-items: flex-start;
    gap: 18px;
  }

  .dashboard-heading h1 {
    font-size: 23px;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .content-inner,
  .footer-inner,
  .footer-bottom-inner {
    width: min(calc(100% - 28px), var(--container));
  }

  .language span:nth-child(2) {
    display: none;
  }

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

  .button {
    width: 100%;
    flex: none;
  }

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

  .info-card {
    padding: 20px 16px;
  }
}
