/* ==========================================================================
   AURXIO QUICK APPOINTMENT FLOATING WIDGET (TAWK.TO REPLACEMENT)
   ========================================================================== */
.arx-chat-widget-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gold: #c3954d;
  --gold-dark: #8a6128;
  --gold-glow: rgba(195, 149, 77, 0.22);
  --dark-card: #121314;
  --dark-surface: #1a1c1e;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(195, 149, 77, 0.35);
  --text-muted: #8e8c87;
  --text-white: #ffffff;
}

/* Teaser Bubble (Tawk.to style preview) */
.arx-widget-teaser {
  position: absolute;
  bottom: 74px;
  right: 0;
  background: #18191b;
  color: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  cursor: pointer;
  animation: arxSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.2s, border-color 0.2s;
}
.arx-widget-teaser:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.arx-teaser-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b2316, #12110e);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  position: relative;
}
.arx-online-dot {
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 2px solid #18191b;
  border-radius: 50%;
  position: absolute;
  bottom: -1px;
  right: -1px;
}
.arx-teaser-text {
  font-size: 13px;
  font-weight: 500;
  color: #dedcd8;
}
.arx-teaser-text strong {
  color: #ffffff;
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.arx-teaser-close {
  background: transparent;
  border: none;
  color: #6a6864;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.arx-teaser-close:hover {
  color: #ffffff;
}

/* Floating Launcher Button */
.arx-widget-launcher {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1f1b14, #0b0b0b);
  border: 1.5px solid var(--gold);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 18px var(--gold-glow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  padding: 0;
}
.arx-widget-launcher:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 24px rgba(195, 149, 77, 0.4);
}
.arx-launcher-icon {
  color: var(--gold);
  transition: transform 0.25s, opacity 0.2s;
}
.arx-launcher-close {
  position: absolute;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
  transition: all 0.25s;
}
.arx-chat-widget-root.is-open .arx-launcher-icon {
  opacity: 0;
  transform: scale(0.6) rotate(90deg);
}
.arx-chat-widget-root.is-open .arx-launcher-close {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* Widget Modal Window */
.arx-widget-modal {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: 388px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 120px);
  background: var(--dark-card);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(195, 149, 77, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.arx-chat-widget-root.is-open .arx-widget-modal {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Header */
.arx-modal-header {
  background: linear-gradient(180deg, #1a1a1b, #121314);
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.arx-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.arx-brand-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}
.arx-header-logo-icon {
  width: 26px;
  height: 26px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0b0b;
  font-weight: 800;
  font-size: 13px;
}
.arx-brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}
.arx-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.arx-btn-header-action {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #9a9893;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.arx-btn-header-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.arx-header-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.arx-header-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.arx-dispatch-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #34d399;
  font-weight: 600;
}
.arx-dispatch-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

/* Header Trust Strip */
.arx-trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px;
  background: #090a0b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 10.5px;
  color: #a4a29c;
}
.arx-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.arx-trust-item i {
  color: var(--gold);
  font-size: 11px;
}

/* Stepper Bar */
.arx-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #0e0f10;
  border-bottom: 1px solid var(--border-subtle);
}
.arx-step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #55534f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.arx-step-item.is-active {
  color: var(--gold);
}
.arx-step-item.is-done {
  color: #34d399;
}
.arx-step-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.arx-step-divider {
  flex: 1;
  height: 1px;
  background: #252422;
  margin: 0 8px;
}

/* Scrollable Body */
.arx-modal-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 20px;
  position: relative;
}
.arx-step-container {
  display: none;
  animation: arxFadeIn 0.25s ease-out;
}
.arx-step-container.is-visible {
  display: block;
}
.arx-section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.arx-step-heading {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.arx-step-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Step 1: Service Selection Cards */
.arx-service-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.arx-service-card {
  background: var(--dark-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  outline: none;
  width: 100%;
}
.arx-service-card:hover {
  border-color: rgba(195, 149, 77, 0.5);
  background: #212428;
  transform: translateX(3px);
}
.arx-service-card.is-selected {
  border-color: var(--gold);
  background: rgba(195, 149, 77, 0.1);
  box-shadow: 0 0 14px rgba(195, 149, 77, 0.15);
}
.arx-service-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #141416;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}
.arx-service-meta {
  flex: 1;
}
.arx-service-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
  display: block;
}
.arx-service-caption {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}
.arx-service-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #44423e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.arx-service-card.is-selected .arx-service-radio {
  border-color: var(--gold);
  background: var(--gold);
}
.arx-service-card.is-selected .arx-service-radio::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0b0b0b;
}

/* Property type & urgency chips */
.arx-field-group {
  margin-bottom: 14px;
}
.arx-field-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #dedcd8;
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.arx-chip-row {
  display: flex;
  gap: 8px;
}
.arx-chip-btn {
  flex: 1;
  padding: 9px 8px;
  background: var(--dark-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #a8a6a0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}
.arx-chip-btn:hover {
  border-color: rgba(195, 149, 77, 0.4);
  color: #ffffff;
}
.arx-chip-btn.is-active {
  background: rgba(195, 149, 77, 0.15);
  border-color: var(--gold);
  color: #f0c987;
}

/* Step 2 Inputs */
.arx-input-control {
  width: 100%;
  background: var(--dark-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 11px 14px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.arx-input-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 149, 77, 0.15);
}
.arx-input-control::placeholder {
  color: #5a5955;
}
.arx-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
textarea.arx-input-control {
  min-height: 70px;
  resize: none;
  font-family: inherit;
}

/* Step 3 Confirmation / Slots */
.arx-time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.arx-time-slot {
  padding: 10px 4px;
  background: var(--dark-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #bdbbb6;
  font-size: 11.5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
}
.arx-time-slot span {
  display: block;
  font-size: 10px;
  color: #6a6864;
  margin-top: 2px;
}
.arx-time-slot.is-active {
  background: rgba(195, 149, 77, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}
.arx-time-slot.is-active span {
  color: #dfbc81;
}
.arx-summary-box {
  background: #0f1012;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 12px;
}
.arx-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #1a1a1c;
  color: #9a9893;
}
.arx-summary-row:last-child {
  border-bottom: none;
}
.arx-summary-row strong {
  color: #ffffff;
  font-weight: 600;
}

/* Success State */
.arx-success-screen {
  text-align: center;
  padding: 20px 10px;
}
.arx-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1.5px solid #34d399;
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
}
.arx-success-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.arx-success-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.arx-ref-chip {
  display: inline-block;
  padding: 5px 12px;
  background: #18191b;
  border: 1px dashed var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
}
.arx-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #25d366;
  color: #0b0b0b;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  margin-bottom: 10px;
}
.arx-whatsapp-btn:hover {
  background: #1eb856;
  transform: translateY(-2px);
}

/* Footer Buttons & Controls */
.arx-modal-footer {
  padding: 14px 20px;
  background: #121314;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.arx-form-error {
  flex: 0 0 100%;
  color: #fca5a5;
  font-size: 12px;
  line-height: 1.4;
}
.arx-form-error:empty {
  display: none;
}
.arx-btn-back {
  padding: 11px 16px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #a09e97;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.arx-btn-back:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.arx-btn-primary {
  flex: 1;
  padding: 12px 18px;
  background: var(--gold);
  color: #0b0b0b;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.arx-btn-primary:hover {
  background: #d4ab65;
  transform: translateY(-1px);
}
.arx-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Fallback Direct Contact Strip */
.arx-fast-connect {
  padding: 10px 20px 14px;
  background: #0d0e10;
  border-top: 1px solid #1a1a1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #7a7872;
}
.arx-fast-connect a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.arx-fast-connect a:hover {
  text-decoration: underline;
}

/* Service Specific Questions Step Styles */
.arx-spec-group {
  margin-bottom: 18px;
}
.arx-spec-label {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: block;
}
.arx-spec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.arx-spec-chip {
  padding: 8px 12px;
  background: var(--dark-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #bdbab3;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
}
.arx-spec-chip:hover {
  border-color: rgba(195, 149, 77, 0.45);
  color: #ffffff;
}
.arx-spec-chip.is-active {
  background: rgba(195, 149, 77, 0.15);
  border-color: var(--gold);
  color: #f3cf92;
  font-weight: 600;
}
.arx-badge-service {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(195, 149, 77, 0.12);
  border: 1px solid rgba(195, 149, 77, 0.28);
  border-radius: 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Keyframes */
@keyframes arxSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes arxFadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Mobile Ergonomics & Responsive Bottom-Sheet */
@media (max-width: 600px) {
  .arx-chat-widget-root {
    bottom: 18px;
    right: 18px;
  }
  .arx-widget-launcher {
    width: 56px;
    height: 56px;
  }
  .arx-widget-launcher i {
    font-size: 20px !important;
  }
  .arx-widget-teaser {
    bottom: 68px;
    right: 0;
    max-width: calc(100vw - 36px);
    padding: 10px 14px;
  }
  .arx-widget-modal {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 86vh;
    max-height: 86vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    transform: translateY(100%);
  }
  .arx-chat-widget-root.is-open .arx-widget-modal {
    transform: translateY(0);
  }
  .arx-modal-header {
    padding: 16px 18px 12px;
  }
  .arx-header-title {
    font-size: 16px;
  }
  .arx-trust-strip {
    padding: 6px 14px;
    font-size: 9.5px;
  }
  .arx-step-indicator {
    padding: 8px 14px;
  }
  .arx-step-item {
    font-size: 10px;
    gap: 4px;
  }
  .arx-step-circle {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
  .arx-modal-body {
    padding: 16px 14px;
  }
  .arx-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .arx-service-card {
    padding: 10px 12px;
  }
  .arx-service-title {
    font-size: 13px;
  }
  .arx-chip-btn {
    padding: 8px 6px;
    font-size: 11px;
  }
  .arx-time-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .arx-time-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    text-align: left;
  }
  .arx-time-slot i {
    margin-bottom: 0 !important;
    margin-right: 8px;
    display: inline-block !important;
  }
  .arx-time-slot span {
    margin-top: 0;
  }
  .arx-modal-footer {
    padding: 12px 14px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .arx-fast-connect {
    padding: 8px 14px 12px;
    font-size: 11px;
  }
}
