.order-page {
  background: #f7f9fc;
  color: #172033;
}

.order-hero {
  padding: 150px 0 44px;
  background: linear-gradient(180deg, #eef4ff 0%, #f7f9fc 100%);
}

.order-hero-content {
  max-width: 900px;
}

.order-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  color: #2b50ba;
  background: #e8eeff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.order-hero h1 {
  margin: 18px 0 12px;
  color: #111827;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.order-subtitle {
  max-width: 640px;
  margin: 0;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.55;
}

.order-trust-note {
  max-width: 820px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  color: #1e3a8a;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(43, 80, 186, .08);
}

.order-trust-note i {
  margin-top: 3px;
  color: #2b50ba;
  flex-shrink: 0;
}

.order-trust-note span {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.order-workspace {
  padding: 36px 0 72px;
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 28px;
  align-items: flex-start;
}

.order-steps-card,
.order-chat-card {
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
}

.order-steps-card {
  padding: 26px;
}

.order-card-heading span {
  color: #2b50ba;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.order-card-heading h2 {
  margin: 9px 0 10px;
  color: #172033;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.order-card-heading p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.order-steps {
  display: grid;
  gap: 17px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.order-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
}

.order-steps li > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: #2b50ba;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(43, 80, 186, .18);
}

.order-steps h3 {
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.order-steps p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.order-chat-card {
  height: calc(100vh - 220px);
  min-height: 520px;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.order-chat-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e9eef5;
  flex-shrink: 0;
}

.order-chat-title {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.order-chat-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(43, 80, 186, .16);
  flex-shrink: 0;
}

.order-chat-title h2 {
  margin: 0;
  color: #172033;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.order-chat-title p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.25;
}

.order-chat-status {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #166534;
  background: #ecfdf5;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.order-chat-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .14);
}

.order-chat-notice {
  padding: 12px 20px;
  color: #475467;
  background: #f8fafc;
  border-bottom: 1px solid #e9eef5;
  font-size: 13px;
  line-height: 1.45;
  flex-shrink: 0;
}

.order-chat-messages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #f5f7fb 100%);
  scroll-behavior: smooth;
}

.order-chat-message {
  display: flex;
  width: 100%;
  min-width: 0;
}

.order-chat-message-assistant {
  justify-content: flex-start;
}

.order-chat-message-user {
  justify-content: flex-end;
}

.order-chat-bubble {
  max-width: 76%;
  padding: 13px 15px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: normal;
}

.order-chat-message-assistant .order-chat-bubble {
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #e7ecf3;
  border-bottom-left-radius: 7px;
}

.order-chat-message-user .order-chat-bubble {
  color: #ffffff;
  background: #2b50ba;
  border: 1px solid #2b50ba;
  border-bottom-right-radius: 7px;
  box-shadow: 0 10px 22px rgba(43, 80, 186, .18);
}

.order-chat-typing .order-chat-bubble {
  width: 68px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.order-chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b95a5;
  animation: orderTypingDot 1.1s infinite ease-in-out;
}

.order-chat-typing span:nth-child(2) {
  animation-delay: .14s;
}

.order-chat-typing span:nth-child(3) {
  animation-delay: .28s;
}

@keyframes orderTypingDot {
  0%, 80%, 100% {
    opacity: .35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.order-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #ffffff;
  border-top: 1px solid #e9eef5;
  flex-shrink: 0;
}

.order-chat-input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  resize: none;
  overflow: hidden;
  border: 1px solid #d9e1ec;
  border-radius: 12px;
  padding: 0 14px;
  color: #172033;
  background: #fbfcff;
  font: inherit;
  font-size: 15px;
  line-height: 46px;
  outline: none;
}

.order-chat-input::placeholder {
  color: #98a2b3;
}

.order-chat-input:focus {
  border-color: #2b50ba;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(43, 80, 186, .11);
}

.order-chat-send {
  width: 110px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: #2b50ba;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(43, 80, 186, .18);
}

.order-chat-send:hover,
.order-chat-send:focus {
  background: #2445a3;
}

.order-chat-send:disabled,
.order-chat-input:disabled {
  cursor: not-allowed;
  opacity: .72;
}

@media (max-width: 991px) {
  .order-hero {
    padding: 128px 0 34px;
  }

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

  .order-steps-card {
    order: 1;
  }

  .order-chat-card {
    order: 2;
    height: 580px;
    min-height: 480px;
    max-height: none;
  }
}

@media (max-width: 576px) {
  .order-hero {
    padding: 112px 0 28px;
  }

  .order-hero h1 {
    font-size: 36px;
  }

  .order-subtitle {
    font-size: 16px;
  }

  .order-trust-note {
    padding: 14px;
  }

  .order-workspace {
    padding: 24px 0 48px;
  }

  .order-steps-card {
    padding: 20px;
  }

  .order-card-heading h2 {
    font-size: 22px;
  }

  .order-chat-card {
    height: 520px;
    min-height: 420px;
    max-height: none;
    border-radius: 16px;
  }

  .order-chat-header {
    min-height: 78px;
    padding: 13px 14px;
  }

  .order-chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .order-chat-title h2 {
    font-size: 18px;
  }

  .order-chat-title p {
    font-size: 12px;
  }

  .order-chat-status {
    min-height: 28px;
    padding: 0 9px;
    font-size: 12px;
  }

  .order-chat-notice {
    padding: 10px 14px;
    font-size: 12px;
  }

  .order-chat-messages {
    padding: 14px;
  }

  .order-chat-bubble {
    max-width: 90%;
    font-size: 14px;
  }

  .order-chat-form {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 8px;
    padding: 10px;
  }

  .order-chat-send {
    width: 84px;
  }
}
