* {
  box-sizing: border-box;
}

:root {
  --card-accent: #003259;
  --card-accent-soft: rgba(0, 50, 89, 0.08);
  --card-bg: #ffffff;
  --card-bg-muted: #f5f8fb;
  --card-border: #d5dde5;
  --card-border-inner: #e2e8ef;
  --card-radius: 12px;
  --card-radius-inner: 10px;
  --card-shadow:
    0 1px 2px rgba(15, 39, 68, 0.04), 0 8px 24px rgba(15, 39, 68, 0.06);
  --card-shadow-quiet: 0 1px 2px rgba(15, 39, 68, 0.05);
  --card-label: #5b6b7c;
  --card-value: #0f2744;
  --card-muted: #3d4f61;
  --page-ground: #eef2f6;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "IBM Plex Sans", "Inter", Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--page-ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--card-value);
  max-width: 100%;
  overflow-x: hidden;
}

.header {
  background-color: var(--card-accent);
  color: white;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.12);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  padding: 18px 24px;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-width: 0;
}

.logo img {
  width: 120px;
  max-width: 100%;
  height: auto;
  margin-left: 10px;
}

.header-email {
  font-size: 14px;
  opacity: 0.92;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(320px, 40vw);
}

.header-right p {
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header-exit {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.header-exit:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  background-color: var(--page-ground);
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
}

.content-container {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  background-color: transparent;
  border-radius: 0;
  margin: 24px auto 32px;
  padding: 0 24px 24px;
  overflow-x: hidden;
}

/* Shared card shell: top accent bar */
.visa-info,
.section-border,
.bank-replenishment {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.visa-info::before,
.section-border::before,
.bank-replenishment::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-accent) 0%, #1a7a9c 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.visa-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: stretch;
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px 16px 16px;
  outline: none;
  background: var(--card-bg);
  overflow: visible;
  z-index: 5;
}

.visa-info-highlight {
  background: var(--card-bg);
  border-color: var(--card-border);
}

.visa-info-card {
  min-width: 0;
  padding: 14px 16px;
  background: var(--card-bg-muted);
  border-radius: var(--card-radius-inner);
  border: 1px solid var(--card-border-inner);
  box-shadow: none;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}

.visa-info-card:last-child {
  border-right: 1px solid var(--card-border-inner);
}

.visa-info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--card-label);
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 0;
  line-height: 1.3;
}

.visa-info-value {
  font-size: 15px;
  font-weight: 600;
  margin-top: 0;
  color: var(--card-value);
  line-height: 1.4;
  letter-spacing: 0;
}

.visa-info-date-input {
  min-height: 20px;
  height: 40px;
  padding: 8px 12px;
  background-color: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  color: var(--card-value);
}

.visa-info-date-input:focus {
  outline: none;
  border-color: var(--card-accent);
  box-shadow: 0 0 0 3px rgba(0, 50, 89, 0.12);
  background: #fff;
}

.visa-info-lock {
  margin-left: 0;
  align-self: center;
  justify-self: center;
  flex-shrink: 0;
}

.visa-info .top-content {
  min-width: 0;
  max-width: none;
}

#meetTimeWrapper {
  z-index: 20;
}

.payment-info {
  margin-bottom: 24px;
}

.applicant-info {
  margin-bottom: 24px;
  width: 100%;
}

.applicant-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* First applicant card: photo + content */
.applicant-card--first {
  padding: 0;
  overflow: hidden;
}

.applicant-card-inner {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 20px 16px;
}

.applicant-card-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  width: clamp(120px, 20vw, 200px);
}

.applicant-card-photo,
.applicant-card-photo.photo-upload {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius-inner);
  border: 1px solid var(--card-border);
  background: var(--card-bg-muted);
  box-shadow: var(--card-shadow-quiet);
}

.applicant-card-photo .photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.applicant-card-content {
  flex: 1;
  min-width: 0;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

/* Standalone photo-upload (if used elsewhere) */
.photo-upload {
  width: clamp(120px, 20vw, 200px);
  height: clamp(120px, 20vw, 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius-inner);
  background: var(--card-bg-muted);
  border: 1px solid var(--card-border);
}

.photo-upload input[type="file"] {
  display: none;
}

.photo-upload:hover {
  border-color: rgba(0, 50, 89, 0.35);
}

.photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-bottom: 24px;
  font-family: inherit;
}

.status-table tbody tr {
  background: var(--card-bg);
  border-radius: var(--card-radius-inner);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow-quiet);
}

.status-table td {
  padding: 16px 18px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--card-value);
  line-height: 1.45;
  letter-spacing: 0;
  vertical-align: middle;
}

.status-table td:first-child {
  border-radius: var(--card-radius-inner) 0 0 var(--card-radius-inner);
  border-right: none;
  box-shadow: inset 3px 0 0 var(--card-accent);
  overflow-wrap: anywhere;
}

.status-table td:last-child {
  border-radius: 0 var(--card-radius-inner) var(--card-radius-inner) 0;
  text-align: right;
  width: 1%;
  white-space: nowrap;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #0f766e;
  background: #e6f7f3;
  border: none;
  letter-spacing: 0;
}

.status-icon.red {
  color: #b42318;
  background: #fef3f2;
  border-color: transparent;
}

.footer {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: #0f2744;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.footer-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.footer-top {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-top p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.footer-top p:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
  min-width: 200px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-left li {
  margin: 0 0 12px 0;
  padding: 0;
}

.footer-left li:last-of-type {
  margin-bottom: 20px;
}

.footer-left a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footer-left a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-left p {
  margin: 0 0 8px 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.footer-left p:last-child {
  margin-bottom: 0;
}

.footer-right {
  text-align: right;
  min-width: 220px;
}

.footer-right p {
  margin: 0 0 14px 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.footer-right p:last-child {
  margin-bottom: 0;
}

.footer-right #footerEmail {
  margin-top: 4px;
}

.footer-certification {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-certification p {
  margin: 0;
}

.footer-certification a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.footer-certification a:hover {
  color: #fff;
  text-decoration: underline;
}

.certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.certification-badge {
  width: 80px;
  height: 80px;
  background-color: #003366;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  text-align: center;
}

.additional-info {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.additional-info ul {
  list-style-type: none;
  padding: 0;
}

.additional-info li {
  margin-bottom: 5px;
}

.logo {
  height: 50px;
  background-color: #003259;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.footer-image {
  width: 200px;
  height: 200px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  margin-left: 20px;
}

a {
  color: #e0ffff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

.highlighted-row {
  background-color: rgba(178, 34, 34, 0.3);
  /* Прозрачный фон с цветом #B22222 */
}

.highlighted-row-green {
  background-color: rgba(152, 251, 152, 0.3);
  /* Прозрачный фон с цветом #98FB98 */
}

.visa-info-highlight {
  background: var(--card-bg);
  border-color: var(--card-border);
}

.status-table .biometric-done {
  background: #f0faf5;
  border-color: #c6e6d5;
}

.status-table .application-transferred {
  background: #faf5f5;
  border-color: #e8d0d0;
}

.underline {
  text-decoration: underline;
}

#photoPreview {
  width: 200px;
  object-fit: contain;
}

.section-border {
  outline: none;
  padding: 20px 22px 18px;
  margin-bottom: 16px;
}

.section-border span,
.section-border div {
  font-size: 15px;
  font-weight: 400;
  color: var(--card-value);
  line-height: 1.55;
  letter-spacing: 0;
}

.bank-replenishment {
  outline: none;
  padding: 20px 22px 18px;
  margin-bottom: 16px;
}

.bank-replenishment h3 {
  color: var(--card-value);
  font-weight: 600;
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 10px;
  letter-spacing: 0;
  text-transform: none;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border-inner);
}

.bank-replenishment p,
.bank-replenishment span,
.bank-replenishment div {
  margin: 8px 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--card-muted);
  line-height: 1.55;
  letter-spacing: 0;
}

body {
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

@keyframes loginFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-wrapper {
  --auth-ink: #212529;
  --auth-muted: #62707c;
  --auth-border: #ced4da;
  --auth-page: #ffffff;
  --auth-required: #b10e1e;
  --auth-navy: #ba4b18;
  --auth-navy-hover: #9a3e14;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  padding: 0;
  overflow: auto;
  font-family: "IBM Plex Sans", "Inter", Arial, Helvetica, sans-serif;
  background: var(--auth-page);
}

.login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 5rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(33, 37, 41, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.login-logo2 {
  width: 180px;
  height: 58px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.login-lang {
  position: relative;
  flex-shrink: 0;
}

.login-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(33, 37, 41, 0.12);
  box-shadow: 0 1px 2px rgba(33, 37, 41, 0.06);
  background: #fff;
  color: #212529;
  font-size: 16px;
  font-weight: 400;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.login-lang-toggle:hover {
  background: #f8f9fa;
}

.login-lang-toggle[aria-expanded="true"] .login-lang-chevron {
  transform: rotate(180deg);
}

.login-lang-chevron {
  transition: transform 0.15s ease;
}

.login-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 4px;
  list-style: none;
  min-width: 100%;
  background: #fff;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(33, 37, 41, 0.12);
  z-index: 30;
}

.login-lang-menu[hidden] {
  display: none;
}

.login-lang-menu li {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 400;
  color: #212529;
  cursor: pointer;
  white-space: nowrap;
}

.login-lang-menu li:hover,
.login-lang-menu li[aria-selected="true"] {
  background: #f1f3f5;
}

.login-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.login-wrapper .login-container {
  position: relative;
  z-index: 2;
}

.login-container {
  width: 100%;
  max-width: 600px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
  border: 1px solid #e5e8eb;
  outline: none;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(33, 37, 41, 0.08);
  overflow: hidden;
  animation: loginFadeUp 0.35s ease-out both;
}

.login-body {
  padding: 30px;
  background: #fff;
}

.login-header-title {
  margin: 0 0 12px;
  padding-bottom: 0;
  border-bottom: none;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--auth-ink);
  line-height: 1.25;
  text-transform: none;
}

.login-intro {
  margin: 0 0 8px;
  max-width: none;
  font-size: 18px;
  font-weight: 400;
  color: var(--auth-muted);
  line-height: 1.45;
}

.login-required-note {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 400;
  color: var(--auth-muted);
  line-height: 1.45;
}

.login-required {
  color: var(--auth-required);
  font-weight: 400;
}

.login-form-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-container .form-group {
  margin-bottom: 18px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: none;
  box-shadow: none;
}

.login-container .form-group:last-of-type {
  margin-bottom: 18px;
}

.login-container .form-group:focus-within {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.login-container .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0;
  text-transform: none;
}

.login-container .form-group input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
  color: var(--auth-ink);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.login-container .form-group input::placeholder {
  color: #8a97a6;
  font-weight: 400;
}

.login-container .form-group input:hover {
  border-color: #adb5bd;
}

.login-container .form-group input:focus {
  outline: none;
  border-color: #868e96;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.08);
}

.login-field-error {
  margin: 8px 0 0;
  padding: 0;
  border: none;
  background: none;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #b10e1e;
}

.login-field-error[hidden] {
  display: none;
}

.login-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #fff3cc;
  color: #856404;
  border: none;
  border-left: 2px solid #856404;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  box-sizing: border-box;
}

.login-auth-alert-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.login-auth-alert[hidden] {
  display: none;
}

.login-container .captcha-container {
  margin: 2px 0 22px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 0;
  max-width: 100%;
}

.login-container .captcha-container::before {
  display: none;
}

.login-turnstile {
  display: inline-block;
}

.login-actions {
  display: flex;
  justify-content: stretch;
}

.login-container .sign-in-button {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  color: #fff;
  background: var(--auth-navy);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  transition: background-color 0.15s ease;
}

.login-container .sign-in-button:hover {
  background: var(--auth-navy-hover);
  box-shadow: none;
  transform: none;
}

.login-container .sign-in-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(186, 75, 24, 0.25);
}

.login-container .sign-in-button:active {
  background: #823410;
  box-shadow: none;
  transform: none;
}

.login-container .sign-in-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.login-container .sign-in-button:disabled:hover {
  background: var(--auth-navy);
}

.login-footer {
  width: 100%;
  margin-top: auto;
  padding: 20px 32px;
  border-top: none;
  background: #e9ecef;
  box-sizing: border-box;
}

.login-copyright {
  margin: 0;
  max-width: none;
  font-size: 15px;
  font-weight: 400;
  color: #62707c;
  text-align: left;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .login-top {
    padding: 12px 16px;
  }

  .login-logo2 {
    width: 140px;
    height: auto;
  }

  .login-main {
    padding: 28px 16px 36px;
    justify-content: flex-start;
  }

  .login-body {
    padding: 24px;
  }

  .login-header-title {
    font-size: 22px;
  }

  .login-intro,
  .login-required-note {
    font-size: 16px;
  }

  .login-footer {
    padding: 16px;
  }
}

/* Legacy form-group/captcha/button when used outside login (e.g. other forms) */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.captcha-container {
  margin: 1rem 0;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.sign-in-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #1023d1;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.sign-in-button:hover {
  background-color: #1023d1;
}

.footer-links {
  margin-top: 1rem;
  text-align: center;
}

.footer-links a {
  color: #464a4e;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.top-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 20%;
  max-width: 165px;
}

.w100 {
  width: 100%;
}
.time-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 165px;
  z-index: 20;
}

.time-trigger {
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  box-sizing: border-box;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  font-size: 14px;
  min-height: 20px;
  height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--card-value);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.time-trigger:hover {
  border-color: #b8c4d1;
}

.time-popup {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: white;
  border: 1px solid #ccc;
  padding: 12px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 9999;
  width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.time-option {
  background-color: #e3f2fd;
  border-radius: 20px;
  padding: 6px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  user-select: none;
}

.time-option.selected {
  background-color: #42a5f5;
  color: white;
  font-weight: bold;
}

.selected-pill {
  background-color: #90caf9;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 13px;
}

.time-selected {
  font-size: 0.9em;
  margin-top: 10px;
  max-width: 600px;
}

#multiDatePicker ::placeholder {
  color: black;
}
.lock-button {
  background-color: #b42318;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  box-shadow: var(--card-shadow-quiet);
}

.lock-button img {
  width: 24px;
  height: 24px;
}

.locked {
  background-color: #b42318;
}

.unlocked {
  background-color: #0f766e;
}

.submit-date {
  width: 100%;
  display: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: var(--card-accent);
  border-radius: 8px;
  height: 40px;
  transition: background-color 0.15s ease;
}

.submit-date:hover {
  background-color: #004370;
}

.thx-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.thx-popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.thx-popup-content {
  background-color: #fff;
  padding: 40px 60px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  font-size: 24px;

  color: #333;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  max-width: 90%;
}

/* Scale up when visible */
.thx-popup-overlay.show .thx-popup-content {
  transform: scale(1);
}

.thx-popup-content img {
  width: 60px;
  height: 60px;
}
.thx-popup-content a {
  align-self: center;
}
.popup-text {
  font-size: 18px;
}

.popup-close {
  position: absolute;
  top: 24px;
  right: 16px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-close img {
  width: 24px;
  height: 24px;
}

.file-button {
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--card-accent);
  border-radius: 10px;
  cursor: pointer;
  max-width: 220px;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
  color: white;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--card-shadow-quiet);
  border: none;
}

.file-button img {
  width: 22px;
  height: 22px;
}

.file-button:hover {
  background-color: #004370;
  transform: none;
}

.invoice {
  /* opacity: 0.6; */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(70vw, 100%);
  max-width: 100%;
  overflow: scroll;
  height: 80vh;
  overflow-x: hidden;
  padding-right: 20px;
}
.invoice-header {
  align-self: flex-end;
  font-size: 24px;
  margin-bottom: 12px;
  font-family: Arial, Helvetica, sans-serif;
}

.invoice-subheader {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 32px;
}

.invoice-header-img {
  display: flex;
  gap: 30px;
}

.invoice-subheader img {
  width: min(30vw, 180px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.invoice p {
  font-size: 14px;
}

.invoice-number {
  align-self: flex-end;
}

.invoice-org {
  width: 300px;
  font-size: 16px;
  height: 100%;
  line-height: 30px;
  font-family: Arial, Helvetica, sans-serif;
  border: none;
  resize: none;
}

.double-line {
  height: 1px;
  border-top: 1px solid black;
  width: 100%;
}
.double-line {
  margin-top: 2px;
}

.invoice-top {
  display: flex;

  width: 100%;
  margin-top: 32px;
}
.invoice-top-left {
  flex: 1;
  display: flex;
  gap: 30px;
}
.invoice-top-left p {
  width: fit-content;
  margin: 0;
  white-space: nowrap;
  font-size: 14px;
}

.invoice-top-left-double {
  display: flex;
  gap: 8px;
  width: 100%;
}

.invoice-top-left-double textarea {
  flex: 1;
  font-size: 16px;
  line-height: 30px;
  height: 70px;
  font-family: Arial, Helvetica, sans-serif;
  resize: none;
  border: none;

  padding: 0;
}

.invoice-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  width: 50%;
  gap: 16px;
}

.invoice-top-right p {
  margin: 0;
}

.invoice-top-right-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  width: 100%;
}

.invoice-top-right-row p:first-child {
  font-size: 14px;
  width: 100%;
  text-align: right;
}
.invoice-top-right-row p:last-child {
  width: 30%;
  text-align: left;
}

.invoice-top-right-row {
  font-size: 12px;
}

.invoice-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.invoice-list-header {
  height: 30px;
  width: 99%;
  background-color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;

  border: 1px solid black;
  border-right: none;
  gap: 1%;
}

.invoice-list-header-item {
  color: black;
  font-size: 14px;

  display: flex;
  align-items: center;
  width: 22%;
  font-weight: bold;
  border-right: 1px solid black;
  height: 100%;
}

.invoice-list-header-item-first {
  width: 34%;

  padding-left: 8px;
  justify-content: flex-start;
  border-right: 1px solid black;
  height: 100%;
}

.invoice-list-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 30px;
  gap: 1%;

  border-bottom: 1px solid black;
}

.invoice-list-item-value {
  width: 22%;
  border-right: 1px solid black;
  height: 100%;
  display: flex;
  align-items: center;
}

.invoice-list-item-value input {
  text-align: center;
}

.invoice-list-item input {
  width: 100%;
}
.invoice-list-item-value-first {
  width: 34%;
  padding-left: 8px;
  height: 100%;
  border-right: 1px solid black;
  border-left: 1px solid black;
  justify-content: flex-start;
}
.invoice-list-item-value-first input {
  text-align: left;
}
.invoice-list-item-value-first input {
  width: 100%;
}

.invoice-list-item-delete {
  display: flex;
  justify-content: center;
  align-items: center;
  color: red;
  cursor: pointer;
  font-size: 14px;
  width: 10%;
}

.invoice-list-content {
  width: calc(99% + 1px);
  display: flex;
  flex-direction: column;

  justify-content: center;
}
.invoice-list-button {
  cursor: pointer;
  height: 36px;
  padding: 0px 16px;
  border-radius: 4px;
  border: 1px solid #4caf50;
  color: #4caf50;
  display: flex;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

.invoice-details-wrapper {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  margin-top: 16px;
}

.invoice-details {
  display: none;
  flex-direction: column;
  width: 60%;
}
.invoice-details p {
  font-size: 13px;
  width: fit-content;
  margin: 0;
  margin-bottom: 8px;
}

.invoice-details-textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  border: none;
  resize: none;
  height: fit-content;
  line-height: 20px;
}

.invoice-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 30%;
  gap: 16px;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 14px;
  padding-bottom: 4px;
  margin-right: 1%;
  border-bottom: 1px solid black;
}
.invoice-total-row p {
  margin: 0;
}
.invoice-total-row p:nth-child(1) {
  font-weight: bold;
}
.tax {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tax-input {
  width: 70px;
  text-align: center;
}

.clear-tax {
  height: 30px;
  width: 30px;
  background-color: #003366;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
}

.invoice-amount-input {
  padding-left: 8px;
  width: 80px;
}

.invoice-total-add-button {
  color: #4caf50;
  cursor: pointer;
  font-weight: bold;
  margin: 12px 0px;
}
.invoice-terms-textarea {
  align-self: flex-start;
  resize: none;
  width: 60%;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  border: none;
  line-height: 20px;
}

.invoice-terms {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-top: 40px;
}

.invoice-terms p {
  margin-bottom: 4px;
  font-size: 13px;
}

.invoice-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.invoice-checkbox input {
  height: 20px;
  width: 20px;
}

@media (max-width: 768px) {
  .content-container {
    padding: 16px 16px 24px;
    margin: 16px auto 24px;
  }

  .header-content {
    padding: 14px 16px;
  }

  .applicant-info {
    margin-bottom: 20px;
  }

  .applicant-details {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .applicant-card-inner {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    padding: 18px 16px 14px;
  }

  .applicant-card-photo-col {
    width: clamp(100px, 40vw, 160px);
  }

  .applicant-card-photo,
  .applicant-card-photo.photo-upload {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    min-width: 0;
    min-height: 0;
  }

  .applicant-card-content {
    width: 100%;
    min-height: 0;
  }

  .visa-info {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 12px 12px;
  }

  .visa-info-card {
    min-width: 100%;
  }

  .visa-info-lock {
    justify-self: center;
    grid-column: auto;
  }

  .payment-info .bank-replenishment {
    margin-left: 0;
    margin-right: 0;
  }

  .section-border,
  .bank-replenishment {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 18px 16px 14px;
  }

  .footer-content {
    padding: 28px 20px 24px;
  }

  .footer-top {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 28px;
  }

  .footer-left,
  .footer-right {
    min-width: 0;
  }

  .footer-right {
    text-align: left;
  }

  .footer-certification {
    margin-top: 24px;
    padding-top: 20px;
  }

  /* .invoice-list-header-item {
    width: 16%;
  }
  .invoice-list-header-item-first {
    width: 44.45%;
  }
  .invoice-list-item-value {
    width: 17.9%;
  }
  .invoice-list-item-value-first {
    width: 45.3%;
  } */
  .thx-popup-content {
    max-width: 95%;
    padding: 40px 20px;
  }
  .invoice {
    width: 100%;
    max-width: 100%;
  }
  .invoice-subheader img {
    left: 5px;
  }
}

.chat-wrapper {
  position: fixed;
  bottom: 24px;
  right: 32px;
  max-width: calc(100% - 24px);
  display: none;
  justify-content: center;
  align-items: flex-end;
  flex-direction: column;
  z-index: 1000;
}

.chat {
  height: 520px;
  width: 380px;
  max-width: 100%;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.3s ease,
    transform 0.25s ease;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  color: #fff;
  border-radius: 16px 16px 0 0;
  min-height: 64px;
  flex-shrink: 0;
}

.chat-header-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-header-left-image {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  flex-shrink: 0;
}

.chat-header-left-image img {
  height: 26px;
  width: 26px;
  opacity: 0.95;
}

.chat-header-left-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-header-left-text-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}

.chat-header-left-text-status {
  font-size: 12px;
  font-weight: 500;
  color: rgba(74, 222, 128, 0.95);
  letter-spacing: 0.02em;
}

.chat-header-right {
  cursor: pointer;
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.chat-header-right:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.95);
}

.chat-header-right img {
  height: 20px;
  width: 20px;
}

.chat-header-left-image-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  background: #4ade80;
  border: 2px solid #1e3a5f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.chat-button {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.35);
}

.chat-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

.chat-button:active {
  transform: scale(0.98);
}

.chat-button img {
  height: 28px;
  width: 28px;
}

.chat-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
  padding: 16px;
  position: relative;
  gap: 10px;
  min-height: 0;
}

.chat-list::-webkit-scrollbar {
  width: 6px;
}

.chat-list::-webkit-scrollbar-track {
  background: transparent;
}

.chat-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.chat-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.01em;
  padding: 0 20px;
  display: none;
}

.chat-input {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px 16px 16px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0 0 16px 16px;
  flex-shrink: 0;
}

.chat-input textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1a202c;
  padding: 10px 14px;
  border-radius: 12px;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.chat-input textarea::placeholder {
  color: #94a3b8;
}

.chat-input textarea:focus {
  outline: none;
  border-color: rgba(30, 58, 95, 0.4);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.chat-input-button {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  height: 44px;
  width: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.chat-input-button:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.3);
}

.chat-input-button:active {
  transform: scale(0.96);
}

.chat-input-button img {
  height: 22px;
  width: 22px;
}

.chat-list-message {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  max-width: 82%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 12px 14px 28px 14px;
  color: #fff;
  border-radius: 14px 14px 14px 4px;
  width: fit-content;
  position: relative;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chat-list-message p,
.chat-list-message .message-content {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.chat-list-message-operator {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  border-radius: 14px 14px 14px 4px;
  align-self: flex-start;
}

.chat-list-message-user {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  border-radius: 14px 4px 14px 14px;
  align-self: flex-end;
  box-shadow: 0 1px 4px rgba(15, 39, 68, 0.2);
}

.chat-list-message-date {
  font-size: 11px;
  font-weight: 500;
  position: absolute;
  bottom: 8px;
  right: 14px;
  color: rgba(255, 255, 255, 0.75);
  align-self: flex-end;
  letter-spacing: 0.02em;
}

.hide {
  display: none;
}

.status {
  width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  height: auto;
  padding: 14px 18px;
  border-radius: var(--card-radius);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow-quiet);
}

.status-error {
  background-color: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}

.status-success {
  background-color: #f0faf5;
  border: 1px solid #c6e6d5;
  color: #0f766e;
}

.chat-list-date-separator {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  margin: 12px 0 4px;
  padding: 6px 12px;
  letter-spacing: 0.02em;
}

.chat-list-date-separator p {
  margin: 0;
}

button img {
  width: 20px;
  height: 20px;
}

button:hover img {
  opacity: 0.8;
}

.edit-controls {
  display: none;
  align-items: center;
}

.edit-controls input {
  margin-right: 10px;
  padding: 5px;
}

.confirm-edit,
.cancel-edit {
  padding: 5px;
  cursor: pointer;
  background-color: #28a745;
  color: white;
  border: none;
}

.cancel-edit {
  background-color: #dc3545;
}

.edit-input {
  width: 100%;
  margin-bottom: 8px;
  height: 100px;
}
.edit-btn,
.delete-btn {
  padding: 0px;
}

#selectedImagePreview {
  max-width: 50px;
  max-height: 100px;
  margin-right: 10px;
}

#imageModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#imageModalContent {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#modalImage {
  max-width: 80%;
  max-height: 80%;
}

#closeModalButton {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  height: 30px;
  width: 30px;
  z-index: 1001;
}

#closeModalButton img {
  width: 100%;
  height: 100%;
}

.add-image-button img {
  height: 32px;
  width: 32px;
  cursor: pointer;
}

#imagePreviewContainer {
  display: none;
}

#deleteImageButton {
  border: none;
  background-color: transparent;
  cursor: pointer;
}

body.intro-active {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100vh;
  justify-content: flex-start;
  align-items: stretch;
  overflow: auto;
  background: #fff;
}

body.cabinet-page {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 100vh;
  justify-content: flex-start;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
}

.login-top a {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.intro-screen {
  --intro-orange: #b94c19;
  --intro-orange-hover: #a24316;
  --intro-navy: #031b30;
  --intro-muted: #62707c;
  --intro-border: #e0e5ea;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background: #fff;
  font-family: Inter, "IBM Plex Sans", Arial, Helvetica, sans-serif;
  color: var(--intro-navy);
}

.intro-screen.hidden,
.login-wrapper.hidden {
  display: none !important;
}

.intro-header {
  background: #fff;
}

.intro-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.intro-logo {
  max-height: 58px;
  width: auto;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.intro-lang {
  position: relative;
  flex-shrink: 0;
}

.intro-lang-toggle {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--intro-border);
  border-radius: 5px;
  background: #fff;
  color: var(--intro-muted);
  font-family: inherit;
  font-size: 14px;
  line-height: 40px;
  white-space: nowrap;
  cursor: pointer;
}

.intro-lang-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.4em;
  vertical-align: 0.2em;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-left: 0.3em solid transparent;
}

.intro-lang-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.intro-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  z-index: 20;
  min-width: 100%;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--intro-border);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.intro-lang-menu[hidden] {
  display: none;
}

.intro-lang-menu li {
  padding: 0.25rem 1.5rem;
  color: #000;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}

.intro-lang-menu li:hover {
  background: #f8f9fa;
}

.intro-header-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.intro-flash {
  background: #fdbe53;
  padding: 12px 0;
}

.intro-flash-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.intro-flash-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.intro-flash p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--intro-navy);
}

.intro-hero {
  background:
    linear-gradient(rgba(6, 52, 91, 0.8), rgba(6, 52, 91, 0.8)),
    url("https://liftassets.vfsglobal.com/_nuxt/img/30b7cb4.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50%;
  color: #fff;
  min-height: 280px;
  padding: 4rem 0 6.5rem;
}

.intro-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 12px;
}

.intro-hero h1 {
  margin: 0;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.2;
  font-family: inherit;
}

.intro-actions {
  max-width: 1140px;
  width: 100%;
  margin: -5rem auto 0;
  padding: 0 12px;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
}

.intro-footer {
  background: #f8f9fa;
  margin-top: 5rem;
  padding: 1.1rem 0;
}

.intro-footer p {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--intro-muted);
}

.intro-cards {
  display: flex;
  width: 100%;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.1);
}

.intro-card {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.5rem 1rem 4.5rem;
  border-right: 2px solid var(--intro-border);
}

.intro-card:last-child {
  border-right: none;
}

.intro-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.87);
}

.intro-card p {
  margin: 0;
  padding-bottom: 2rem;
  font-size: 16px;
  line-height: 1.5;
  color: var(--intro-muted);
}

.intro-cta {
  position: absolute;
  bottom: 1rem;
  left: 5%;
  width: 90%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px 0 16px;
  border: 1px solid var(--intro-orange);
  border-radius: 5px;
  background: var(--intro-orange);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 3px 0 rgba(232, 96, 32, 0.3);
}

.intro-cta span {
  flex: 1;
}

.intro-cta:hover {
  background: var(--intro-orange-hover);
  border-color: var(--intro-orange-hover);
}

.intro-install {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.5rem;
}

.intro-install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  background: var(--card-accent);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 50, 89, 0.28);
}

.intro-install-btn:hover {
  background: #002744;
}

.intro-install-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.intro-install-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.intro-install-icon--apple {
  filter: brightness(0) invert(1);
}

.intro-install-hint {
  margin: 10px 0 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  color: var(--intro-muted);
}

@media (max-width: 1199.9px) {
  .intro-flash {
    order: -1;
  }

  .intro-header-inner {
    flex-wrap: wrap;
    gap: 12px 0;
    justify-content: space-between;
  }

  .intro-logo {
    order: 1;
    max-height: 39px;
  }

  .intro-header-end {
    order: 2;
  }

  .intro-hero {
    padding: 2rem 0 4rem;
  }

  .intro-header-inner,
  .intro-flash-inner,
  .intro-hero-inner,
  .intro-actions,
  .intro-footer p {
    max-width: 540px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .intro-hero h1 {
    font-size: 32px;
  }

  .intro-actions {
    margin-top: 1.5rem;
  }

  .intro-footer {
    margin-top: 2rem;
  }

  .intro-cards {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .intro-card {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--intro-border);
  }

  .intro-card:last-child {
    border-bottom: none;
  }
}

.imm-doc-form {
  max-width: 760px;
  padding: 8px 0 24px;
}

.imm-doc-title {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: #0b0c0c;
}

.imm-doc-desc {
  margin: 0 0 28px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.45;
  color: #0b0c0c;
}

.imm-doc-desc p {
  margin: 0 0 12px;
}

.imm-doc-desc p:last-child {
  margin-bottom: 0;
}

.imm-kx-wrap {
  margin: 0 0 32px;
  max-width: 360px;
}

.imm-kx-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 2px solid #0b0c0c;
  background: #fff;
  cursor: text;
}

.imm-kx-field.is-error {
  border-color: #d4351c;
}

.imm-kx-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #f3f2f1;
  border-right: 2px solid #0b0c0c;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: #0b0c0c;
  user-select: none;
}

.imm-kx-field.is-error .imm-kx-prefix {
  border-right-color: #d4351c;
}

.imm-kx-input {
  flex: 1;
  min-width: 0;
  height: 45px;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 19px;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0.06em;
  background: #fff;
  color: #0b0c0c;
}

.imm-kx-error {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #d4351c;
}

.imm-kx-error[hidden] {
  display: none;
}

.imm-radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  margin: 0 0 32px;
  width: fit-content;
  max-width: 100%;
}

.imm-radio input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  clip: rect(0, 0, 0, 0);
  appearance: none;
}

.imm-radio-control {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #0b0c0c;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.imm-radio-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0b0c0c;
  display: none;
}

.imm-radio input:checked + .imm-radio-control .imm-radio-dot {
  display: block;
}

.imm-radio-label {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
  color: #0b0c0c;
}

.imm-continue {
  display: block;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 24px;
  border: none;
  background: #307041;
  color: #fff;
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  line-height: 45px;
  cursor: pointer;
  width: fit-content;
}

.imm-continue:hover {
  background: #285f36;
}

.imm-continue:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ukvi-account-btn {
  text-decoration: none;
  text-align: center;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0 8px;
  font-size: 16px;
  white-space: nowrap;
}

.imm-continue[hidden],
.ukvi-account-btn[hidden] {
  display: none !important;
}

.imm-evisa {
  width: 100%;
  max-width: 920px;
  padding: 8px 0 24px;
}

.imm-evisa-profile {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.imm-evisa-photo {
  flex-shrink: 0;
  width: 180px;
  height: 220px;
  overflow: hidden;
  background: #f3f2f1;
  border: 1px solid #b1b4b6;
}

.imm-evisa-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.imm-evisa-rows {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.imm-evisa-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid #b1b4b6;
}

.imm-evisa-row dt {
  flex: 0 0 220px;
  width: 220px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #0b0c0c;
}

.imm-evisa-row dd {
  flex: 1;
  min-width: 0;
  min-height: 1.4em;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #0b0c0c;
}

.imm-share {
  margin-top: 36px;
  max-width: 640px;
}

.imm-share-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: #0b0c0c;
}

.imm-share-desc {
  margin: 0 0 24px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
  color: #0b0c0c;
}

.imm-share-desc.is-sent {
  color: #307041;
}

@media (max-width: 768px) {
  .imm-doc-title {
    font-size: 26px;
  }

  .imm-doc-desc,
  .imm-radio-label {
    font-size: 17px;
  }

  .imm-share-title {
    font-size: 22px;
  }

  .imm-share-desc {
    font-size: 17px;
  }

  .imm-evisa-profile {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .imm-evisa-photo {
    width: 160px;
    height: 196px;
    align-self: center;
  }

  .imm-evisa-row {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }

  .imm-evisa-row dt {
    flex: none;
    width: auto;
  }
}

.onesignal-push-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.onesignal-push-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.onesignal-push-banner-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--card-value);
}

.onesignal-push-banner-text p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--card-muted);
}

.onesignal-push-banner-hint {
  color: var(--card-label) !important;
}

.onesignal-push-banner-actions {
  display: flex;
  gap: 8px;
}

.onesignal-push-allow,
.onesignal-push-later {
  flex: 1;
  min-height: 40px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.onesignal-push-allow {
  border: none;
  background: var(--card-accent);
  color: #fff;
}

.onesignal-push-later {
  border: 1px solid var(--card-border);
  background: #fff;
  color: var(--card-value);
}

.onesignal-foreground-notice {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 16px;
  right: 16px;
  z-index: 1300;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 12px 12px 16px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.onesignal-foreground-notice-open {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.onesignal-foreground-notice-open strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--card-value);
}

.onesignal-foreground-notice-open span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--card-muted);
}

.onesignal-foreground-notice-close {
  flex: none;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--card-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
