/* gettraveldoc enterprise guided chat widget */
:root {
  --gtd-chat-blue: #0b3d91;
  --gtd-chat-blue-deep: #0a2f71;
  --gtd-chat-emerald: #0f9d58;
  --gtd-chat-bg: #f5f8ff;
  --gtd-chat-card: #ffffff;
  --gtd-chat-border: #d9e3f2;
  --gtd-chat-text: #0a1e3f;
  --gtd-chat-muted: #5d6e89;
  --gtd-chat-shadow: 0 20px 48px rgba(11, 61, 145, 0.24);
}

.gtd-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gtd-chat-blue), var(--gtd-chat-blue-deep));
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(11, 61, 145, 0.35);
  cursor: pointer;
  z-index: 100001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gtd-chat-greeting {
  position: fixed;
  right: 96px;
  bottom: 28px;
  border: 1px solid rgba(11, 61, 145, 0.25);
  border-radius: 12px;
  background: linear-gradient(155deg, #ffffff 0%, #edf4ff 100%);
  box-shadow: 0 10px 28px rgba(10, 30, 63, 0.2);
  color: var(--gtd-chat-blue-deep);
  padding: 8px 11px;
  width: min(240px, calc(100vw - 110px));
  text-align: left;
  cursor: pointer;
  z-index: 100000;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gtd-chat-greeting::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(11, 61, 145, 0.25);
  border-bottom: 1px solid rgba(11, 61, 145, 0.25);
  background: #eef4ff;
  transform: rotate(-45deg);
}

.gtd-chat-greeting.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gtd-chat-greet-title {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.gtd-chat-greet-text {
  display: block;
  margin-top: 2px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  color: var(--gtd-chat-muted);
  line-height: 1.35;
}

.gtd-chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(11, 61, 145, 0.42);
}

.gtd-chat-launcher i {
  font-size: 1.42rem;
  line-height: 1;
}

.gtd-chat-widget {
  position: fixed;
  right: 22px;
  bottom: 96px;
  width: 380px;
  height: 560px;
  border-radius: 14px;
  border: 1px solid var(--gtd-chat-border);
  background: var(--gtd-chat-card);
  box-shadow: var(--gtd-chat-shadow);
  z-index: 100002;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.gtd-chat-widget.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gtd-chat-header {
  padding: 18px 16px 14px;
  background:
    radial-gradient(220px 90px at 100% 0%, rgba(15, 157, 88, 0.28), transparent 75%),
    linear-gradient(140deg, var(--gtd-chat-blue), var(--gtd-chat-blue-deep));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gtd-chat-header-copy h3 {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-height: 1.35;
}

.gtd-chat-header-copy p {
  margin: 5px 0 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.gtd-chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ff2b5;
  box-shadow: 0 0 0 4px rgba(111, 242, 181, 0.22);
}

.gtd-chat-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1px;
}

/* Widget language selector intentionally hidden:
   language is controlled only by the topbar selector. */
.gtd-chat-lang-wrap,
.gtd-chat-lang-select {
  display: none !important;
}

.gtd-chat-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.gtd-chat-action:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.gtd-chat-action i {
  font-size: 0.9rem;
}

.gtd-chat-body {
  padding: 14px 12px 12px;
  background:
    radial-gradient(260px 140px at 0% 0%, rgba(11, 61, 145, 0.1), transparent 72%),
    linear-gradient(180deg, #f8fbff 0%, var(--gtd-chat-bg) 100%);
  overflow-y: auto;
  scroll-behavior: smooth;
}

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

.gtd-chat-body::-webkit-scrollbar-thumb {
  background: #b8c8df;
  border-radius: 3px;
}

.gtd-chat-row {
  display: flex;
  margin-bottom: 12px;
}

.gtd-chat-row.user {
  justify-content: flex-end;
}

.gtd-chat-row.assistant {
  justify-content: flex-start;
}

.gtd-chat-bubble {
  max-width: 90%;
  border-radius: 12px;
  padding: 12px 12px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13.5px;
  line-height: 1.58;
}

.gtd-chat-row.assistant .gtd-chat-bubble {
  color: var(--gtd-chat-text);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--gtd-chat-border);
  border-left: 3px solid rgba(11, 61, 145, 0.52);
  box-shadow: 0 10px 20px rgba(10, 30, 63, 0.06);
}

.gtd-chat-row.user .gtd-chat-bubble {
  color: #ffffff;
  background: linear-gradient(145deg, var(--gtd-chat-blue), var(--gtd-chat-blue-deep));
  border: 1px solid rgba(11, 61, 145, 0.7);
  box-shadow: 0 8px 16px rgba(11, 61, 145, 0.2);
}

.gtd-chat-bubble h4 {
  margin: 0 0 8px;
  font-size: 13.8px;
  font-weight: 700;
  color: var(--gtd-chat-blue-deep);
  letter-spacing: 0.01em;
}

.gtd-chat-row.user .gtd-chat-bubble h4 {
  color: #ffffff;
}

.gtd-chat-bubble p {
  margin: 0 0 8px;
}

.gtd-chat-bubble p:last-child {
  margin-bottom: 0;
}

.gtd-assistant-list {
  margin: 4px 0 10px 18px;
  padding: 0;
}

.gtd-assistant-list li {
  margin: 0 0 4px;
  padding: 0;
}

.gtd-options-row {
  margin-bottom: 12px;
}

.gtd-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gtd-option-btn {
  border: 1px solid rgba(11, 61, 145, 0.58);
  background: linear-gradient(180deg, #ffffff 0%, #f0f5ff 100%);
  color: var(--gtd-chat-blue-deep);
  border-radius: 8px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.8px;
  line-height: 1.35;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gtd-option-btn:hover,
.gtd-option-btn:focus-visible {
  background: linear-gradient(180deg, #ffffff 0%, #e7f5ee 100%);
  border-color: var(--gtd-chat-emerald);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 157, 88, 0.16);
  outline: none;
}

.gtd-option-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gtd-option-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  background: rgba(11, 61, 145, 0.14);
  color: var(--gtd-chat-blue);
}

.gtd-option-icon i {
  font-size: 11px;
  line-height: 1;
}

.gtd-option-text {
  flex: 1;
}

.gtd-chat-typing-row .gtd-chat-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gtd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6d84aa;
  animation: gtdDotPulse 1.05s infinite ease-in-out;
}

.gtd-dot:nth-child(2) {
  animation-delay: 0.16s;
}

.gtd-dot:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes gtdDotPulse {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.gtd-chat-footer {
  border-top: 1px solid var(--gtd-chat-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #edf4ff 100%);
  padding: 2px 5px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "hint hint"
    "main apply"
    "visa insurance";
  column-gap: 4px;
  row-gap: 3px;
  align-items: center;
  min-height: 0;
}

.gtd-chat-footer-input-wrap {
  grid-area: hint;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(11, 61, 145, 0.28);
  border-radius: 7px;
  background: #ffffff;
  height: 24px;
  padding: 0 6px;
}

.gtd-chat-footer-input-wrap i {
  color: #0f9d58;
  font-size: 11px;
}

.gtd-chat-footer-input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  color: var(--gtd-chat-muted);
  font-size: 10.5px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gtd-chat-footer-input:disabled {
  opacity: 0.7;
}

.gtd-chat-footer-btn {
  border: 1px solid rgba(11, 61, 145, 0.42);
  color: var(--gtd-chat-blue-deep);
  border-radius: 6px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gtd-chat-footer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(10, 30, 63, 0.16);
}

.gtd-chat-footer-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.gtd-chat-footer-btn.is-active,
.gtd-chat-footer-btn[aria-pressed="true"],
.gtd-chat-footer-btn[data-active="1"] {
  background: linear-gradient(140deg, #0f57c0 0%, #0b3d91 60%, #09295f 100%) !important;
  color: #ffffff !important;
  border-color: #0f9d58 !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(10, 30, 63, 0.26);
}

.gtd-chat-footer-btn.is-active i,
.gtd-chat-footer-btn[aria-pressed="true"] i,
.gtd-chat-footer-btn[data-active="1"] i {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.gtd-chat-footer-btn i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex: 0 0 18px;
}

.gtd-footer-main {
  grid-area: main;
  background: linear-gradient(140deg, #ffffff 0%, #eef3ff 100%);
  color: #0a2f71;
  border-color: rgba(11, 61, 145, 0.35);
}

.gtd-footer-main:hover {
  border-color: #0f9d58;
}

.gtd-footer-main i {
  background: rgba(11, 61, 145, 0.12);
  color: var(--gtd-chat-blue);
}

.gtd-footer-apply {
  grid-area: apply;
  background: linear-gradient(140deg, #ffffff 0%, #ecf7f1 100%);
  color: #0a2f71;
  border-color: rgba(15, 157, 88, 0.45);
}

.gtd-footer-apply:hover {
  border-color: var(--gtd-chat-emerald);
  background: linear-gradient(140deg, #ffffff 0%, #def4e8 100%);
}

.gtd-footer-apply i {
  background: rgba(15, 157, 88, 0.15);
  color: #0c7e46;
}

.gtd-footer-service {
  background: linear-gradient(140deg, #ffffff 0%, #eef3ff 100%);
  color: #0a2f71;
  border-color: rgba(11, 61, 145, 0.35);
}

.gtd-footer-service:hover {
  border-color: var(--gtd-chat-emerald);
  background: linear-gradient(140deg, #ffffff 0%, #e4f4ea 100%);
}

.gtd-footer-service i {
  background: rgba(11, 61, 145, 0.12);
  color: var(--gtd-chat-blue);
}

.gtd-footer-visa {
  grid-area: visa;
}

.gtd-footer-insurance {
  grid-area: insurance;
}

.gtd-application-row .gtd-application-bubble {
  width: 100%;
  max-width: 100%;
  border-left-width: 2px;
}

.gtd-apply-form {
  margin-top: 2px;
}

.gtd-apply-grid {
  display: grid;
  gap: 9px;
}

.gtd-apply-field {
  display: grid;
  gap: 5px;
}

.gtd-apply-field span {
  font-size: 11.5px;
  color: var(--gtd-chat-muted);
  font-weight: 600;
}

.gtd-apply-field input,
.gtd-apply-field select,
.gtd-apply-field textarea {
  width: 100%;
  border: 1px solid #cad8ee;
  background: #ffffff;
  color: var(--gtd-chat-text);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  padding: 9px 10px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gtd-apply-field textarea {
  resize: vertical;
  min-height: 86px;
}

.gtd-apply-field input:focus,
.gtd-apply-field select:focus,
.gtd-apply-field textarea:focus {
  outline: none;
  border-color: var(--gtd-chat-blue);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.13);
}

.gtd-country-field em {
  font-size: 11px;
  color: var(--gtd-chat-emerald);
  font-style: normal;
  font-weight: 600;
}

.gtd-apply-status {
  margin-top: 10px;
  min-height: 18px;
  font-size: 12px;
  line-height: 1.4;
}

.gtd-apply-status.is-error {
  color: #b42318;
}

.gtd-apply-status.is-success {
  color: #0d7f48;
}

.gtd-apply-actions {
  margin-top: 8px;
}

.gtd-apply-submit {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--gtd-chat-blue), var(--gtd-chat-blue-deep));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gtd-apply-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(11, 61, 145, 0.25);
}

.gtd-apply-submit.is-loading {
  opacity: 0.75;
}

@media (max-width: 767.98px) {
  .gtd-chat-greeting {
    right: 74px;
    bottom: 18px;
    width: min(210px, calc(100vw - 92px));
    padding: 7px 9px;
  }

  .gtd-chat-greeting::after {
    right: -6px;
    bottom: 12px;
    width: 10px;
    height: 10px;
  }

  .gtd-chat-launcher {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }

  .gtd-chat-widget {
    right: 12px;
    left: 12px;
    width: auto;
    height: 78vh;
    bottom: 78px;
  }

  .gtd-option-grid {
    grid-template-columns: 1fr;
  }

  .gtd-chat-header {
    padding: 14px 12px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .gtd-chat-footer {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hint hint"
      "main apply"
      "visa insurance";
    min-height: auto;
    padding: 2px 5px 0;
  }

  .gtd-footer-visa {
    grid-area: visa;
  }

  .gtd-footer-insurance {
    grid-area: insurance;
  }
}

/* Keep global scroll-top behind chat widget across all pages */
.scroll-top {
  z-index: 10000 !important;
}

.gtd-apply-form .gtdoc-captcha {
  margin: 10px 0 12px;
  display: flex;
  justify-content: flex-start;
}

.gtd-apply-form .gtdoc-captcha > div {
  transform-origin: left top;
}

.gtd-apply-form .gtdoc-captcha-note {
  margin-top: 6px;
  font-size: 12px;
  color: #5b6a82;
}

.gtd-apply-form .gtdoc-captcha-note.is-error {
  color: #b42318;
}
