/* ==========================================================================
   VLADISLAV.IT 2.0 - Flagship Apple Keynote Theme for /estimate
   ========================================================================== */

body.page-estimate {
  --refresh-lime: #0071e3;
  background: #000000 !important;
  color: #f5f5f7 !important;
  font-family: var(--font-text) !important;
  padding-top: var(--nav-h);
}

body.page-estimate main {
  background: #000000;
}

.est-hero-head {
  width: min(860px, calc(100% - 32px));
  margin: 20px auto 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.est-hero-copy {
  max-width: 640px;
}

.est-hero-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.52);
  margin-bottom: 5px;
}

.est-hero-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.est-hero-head p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.48;
  color: rgba(245, 245, 247, 0.72);
}

body.page-estimate .estimate-page-section {
  max-width: 860px;
  padding: 10px 16px 28px;
}

body.page-estimate .chat-sheet {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: #0e0f13;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  max-height: clamp(500px, calc(100svh - 196px), 740px);
}

body.page-estimate .chat-sheet::before {
  display: none;
}

body.page-estimate .chat-sheet.is-dragover {
  border-color: #2997ff;
  box-shadow: 0 0 0 2px rgba(41, 151, 255, 0.35), 0 32px 90px rgba(0, 0, 0, 0.65);
}

body.page-estimate .chat-head {
  background: rgba(12, 13, 18, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding: 14px 20px;
}

body.page-estimate .chat-avatar {
  background-color: #1d1d26;
  background-image: image-set(
    url("/assets/vlad-avatar.webp") type("image/webp"),
    url("/assets/vlad-avatar.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: transparent !important;
  font-size: 0 !important;
  border-radius: 50%;
}

body.page-estimate .chat-title {
  color: #ffffff;
  font-family: var(--font-display);
}

body.page-estimate .chat-subtitle {
  color: #a1a1a6;
}

body.page-estimate .chat-online-dot {
  display: none;
}

body.page-estimate .chat-back-link,
body.page-estimate .chat-combo-toggle,
body.page-estimate .chat-reset-btn {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #f5f5f7;
}

body.page-estimate .chat-back-link:hover,
body.page-estimate .chat-combo-toggle:hover,
body.page-estimate .chat-combo-toggle.is-open,
body.page-estimate .chat-reset-btn:hover {
  border-color: rgba(41, 151, 255, 0.65);
  background: rgba(41, 151, 255, 0.15);
  color: #ffffff;
}

body.page-estimate .chat-combo-count {
  background: #0071e3;
  color: #ffffff;
}

body.page-estimate .chat-combo-drawer {
  background: #101018;
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

body.page-estimate .chat-combo-title {
  color: #a1a1a6;
}

body.page-estimate .chat-module-pill {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f7;
}

body.page-estimate .chat-module-pill[aria-pressed="true"] {
  border-color: #2997ff;
  background: rgba(0, 113, 227, 0.24);
  color: #ffffff;
}

body.page-estimate .chat-combo-range {
  color: #8ec5ff;
}

body.page-estimate .chat-combo-submit {
  background: #0071e3;
  color: #ffffff;
}

body.page-estimate .chat-stream {
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

body.page-estimate .ai-msg-assistant {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.10);
  color: #f5f5f7;
}

body.page-estimate .ai-msg-user {
  background: linear-gradient(135deg, #0071e3, #0a84ff);
  border-color: rgba(41, 151, 255, 0.6);
  color: #ffffff;
}

body.page-estimate .chat-starters-box {
  margin-top: 2px;
}

body.page-estimate .chat-starters-label {
  display: none;
}

body.page-estimate .chat-starters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-estimate .chat-starter-card,
body.page-estimate .ai-starter-chip {
  width: auto;
  min-height: 0;
  padding: 8px 14px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 245, 247, 0.90);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

body.page-estimate .chat-starter-card:hover,
body.page-estimate .ai-starter-chip:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

body.page-estimate .chat-starter-title {
  font-size: 13.5px;
  font-weight: 500;
  color: inherit;
}

body.page-estimate .chat-starter-sub,
body.page-estimate .ai-starter-chip small {
  display: none;
}

body.page-estimate .ai-estimate-card,
body.page-estimate .ai-handoff-box,
body.page-estimate .ai-conditions-card,
body.page-estimate .ai-tier-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}

body.page-estimate .ai-estimate-value,
body.page-estimate .ai-tier-price {
  color: #8ec5ff;
}

body.page-estimate .ai-case-link-btn {
  border-color: rgba(41, 151, 255, 0.35);
  color: #8ec5ff;
  background: rgba(0, 113, 227, 0.12);
}

body.page-estimate .chat-composer-wrap {
  padding: 10px 16px 12px;
  background: rgba(12, 13, 18, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

body.page-estimate .chat-composer-box {
  background: #161720;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 6px 8px 6px 10px;
  gap: 6px;
}

body.page-estimate .chat-composer-box:focus-within {
  border-color: #2997ff;
  box-shadow: 0 0 0 2px rgba(41, 151, 255, 0.22);
}

body.page-estimate .chat-tg-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
}

body.page-estimate .ai-composer-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  padding: 7px 4px;
  font-size: 15px;
  line-height: 1.4;
  color: #f5f5f7;
}

body.page-estimate .ai-composer-input::placeholder {
  color: #8e8e93;
}

body.page-estimate .ai-tg-icon-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8e8e93;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.14s ease;
}

body.page-estimate .ai-tg-icon-btn:hover:not(:disabled) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

body.page-estimate .ai-tg-icon-btn[hidden],
body.page-estimate .ai-tg-send-btn[hidden] {
  display: none !important;
}

body.page-estimate .ai-attach-btn.has-attachment {
  background: rgba(0, 113, 227, 0.18) !important;
  color: #2997ff !important;
}

body.page-estimate .ai-voice-btn.is-recording {
  width: auto;
  padding: 0 12px;
  gap: 6px;
  border-radius: 980px;
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  animation: ai-rec-pulse 1.3s infinite ease-in-out;
}

body.page-estimate .ai-composer-send,
body.page-estimate .ai-send-btn,
body.page-estimate .ai-handoff-submit {
  background: #0071e3 !important;
  color: #ffffff !important;
  border-radius: 980px;
  border: 0;
}

body.page-estimate .ai-tg-send-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-estimate .ai-composer-send:hover:not(:disabled),
body.page-estimate .ai-send-btn:hover,
body.page-estimate .ai-handoff-submit:hover {
  background: #0077ed !important;
}

body.page-estimate .chat-trust-row {
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(245, 245, 247, 0.48);
}

body.page-estimate .chat-trust-pill {
  color: rgba(245, 245, 247, 0.52) !important;
  font-size: 12.5px;
}

body.page-estimate .chat-trust-pill + .chat-trust-pill::before {
  content: "·";
  margin-right: 8px;
  color: rgba(245, 245, 247, 0.30);
}

body.page-estimate .chat-trust-pill i {
  display: none !important;
}

body.page-estimate .chat-disclaimer,
body.page-estimate .ai-disclaimer {
  display: none !important;
}

@media (max-width: 768px) {
  .est-hero-head {
    margin: 10px auto 4px;
    gap: 12px;
  }
  .est-hero-kicker {
    font-size: 10.5px;
    margin-bottom: 3px;
  }
  .est-orb-wrap {
    width: 54px;
    height: 54px;
  }
  .est-orb-css {
    width: 44px;
    height: 44px;
  }
  .est-hero-head h1 {
    font-size: 22px;
  }
  body.page-estimate .estimate-page-section {
    padding: 6px 10px 10px;
  }
  body.page-estimate .chat-sheet {
    border-radius: 20px;
    height: calc(100svh - 134px);
    min-height: 440px;
    max-height: calc(100svh - 134px);
  }
  body.page-estimate .chat-head {
    padding: 10px 14px;
  }
  body.page-estimate .chat-back-link {
    display: none;
  }
  body.page-estimate .chat-stream {
    padding: 12px 14px;
    gap: 10px;
  }
  body.page-estimate .ai-msg {
    font-size: 14px;
    line-height: 1.44;
    padding: 10px 13px;
  }
  body.page-estimate .ai-starters-grid {
    gap: 7px;
  }
  body.page-estimate .ai-starter-chip {
    padding: 10px 12px;
    min-height: 0;
  }
  body.page-estimate .ai-starter-chip small {
    display: none;
  }
  body.page-estimate .chat-composer-wrap {
    padding: 8px 10px 10px;
  }
  body.page-estimate .chat-trust-row {
    display: none;
  }
}
