/* Chat with Domo — matches main site: luxury red gradient, Playfair, gold CTAs */

:root {
  --primary-color: #d8b4e2;
  --secondary-color: #e3c770;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --cream: #fff5f5;
  --shadow: 0 4px 6px -1px rgba(216, 180, 226, 0.2), 0 2px 4px -1px rgba(216, 180, 226, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(216, 180, 226, 0.2), 0 4px 6px -2px rgba(216, 180, 226, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Same animated red backdrop as index.html */
.background-luxury {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -2 !important;
  background: #4a1218 !important;
  background-image: linear-gradient(
    135deg,
    #3a0d12 0%,
    #4a1218 18%,
    #5c1a22 35%,
    #4a1218 52%,
    #3d1016 68%,
    #521c24 85%,
    #3a0d12 100%
  ) !important;
  background-size: 400% 400% !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  animation: luxuryGradient 20s ease infinite;
}

.background-luxury::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(120, 24, 32, 0.45) 0%, transparent 52%),
    radial-gradient(circle at 80% 70%, rgba(90, 18, 26, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(70, 14, 22, 0.35) 0%, transparent 58%),
    radial-gradient(circle at 10% 80%, rgba(50, 10, 16, 0.4) 0%, transparent 48%);
  animation: luxuryPulse 10s ease-in-out infinite;
  pointer-events: none;
}

.background-luxury::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.05) 3px, rgba(0, 0, 0, 0.05) 6px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0, 0, 0, 0.05) 3px, rgba(0, 0, 0, 0.05) 6px);
  opacity: 0.3;
  pointer-events: none;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.18);
  z-index: -1;
  pointer-events: none;
}

@keyframes luxuryGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes luxuryPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.02);
  }
}

body.chat-funnel {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cream);
  min-height: 100vh;
  position: relative;
  padding-bottom: 2rem;
}

.chat-funnel a {
  color: inherit;
}

.chat-form-card .chat-inline-link {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-form-card .chat-inline-link:hover {
  color: #111827;
}

/* Nav — same family as main .navbar */
.chat-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(32, 8, 14, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.chat-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chat-nav-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 1px;
}

.chat-nav-sep {
  margin: 0 0.35rem;
  opacity: 0.6;
  font-weight: 400;
}

.chat-nav-back {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 245, 245, 0.88);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.chat-nav-back:hover {
  color: var(--cream);
}

.chat-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 3rem;
}

.chat-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

/*
 * Fixed frame so the image never collapses to a narrow flex “sliver”.
 * Photo scales to fit inside (contain); letterboxing inside the frame is OK.
 */
.chat-hero-photo-wrap {
  position: relative;
  width: min(300px, 86vw);
  height: min(68vh, 540px);
  margin: 0 auto 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  box-sizing: border-box;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 3px solid rgba(255, 245, 245, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 2px var(--secondary-color);
}

.chat-hero-photo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 12px;
}

.chat-headline {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 4.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.chat-lede {
  font-size: 1.05rem;
  color: var(--cream);
  opacity: 0.92;
  max-width: 38rem;
  margin: 0 auto 0.5rem;
}

.chat-lede strong {
  color: var(--secondary-color);
  font-weight: 600;
}

.chat-micro {
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.85;
  max-width: 36rem;
  margin: 1.25rem auto 0;
}

/* Form card — like .services-section / .service-option on main site */
.chat-form-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 245, 245, 0.5);
  border-radius: 15px;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: var(--shadow-lg);
}

.chat-preface {
  margin: -0.15rem 0 1.5rem;
  padding: 1rem 1rem 1rem 1.1rem;
  border-left: 4px solid var(--secondary-color);
  background: rgba(45, 10, 14, 0.06);
  border-radius: 0 10px 10px 0;
}

.chat-preface p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.chat-preface p:last-child {
  margin-bottom: 0;
}

.chat-field {
  margin-bottom: 1.35rem;
}

.chat-field:last-of-type {
  margin-bottom: 0;
}

.chat-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
  color: var(--text-dark);
}

.chat-label-hint {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.chat-label-optional {
  font-weight: 500;
  color: var(--text-light);
}

.chat-input,
.chat-textarea,
.chat-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--text-dark);
  border: 2px solid rgba(216, 180, 226, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-select {
  cursor: pointer;
  appearance: none;
  background: rgba(255, 255, 255, 0.98)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 8L1 3h10z'/%3E%3C/svg%3E")
    no-repeat right 0.85rem center;
  padding-right: 2.35rem;
}

.chat-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(216, 180, 226, 0.35);
}

.chat-input::placeholder,
.chat-textarea::placeholder {
  color: #9ca3af;
}

.chat-input:focus,
.chat-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(216, 180, 226, 0.35);
}

.chat-input:-webkit-autofill,
.chat-textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 48px #faf8f6 inset;
  box-shadow: 0 0 0 48px #faf8f6 inset;
  border: 2px solid rgba(216, 180, 226, 0.45);
}

.chat-textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.chat-textarea.short {
  min-height: 3.25rem;
}

.chat-range-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.chat-range {
  flex: 1;
  min-width: 160px;
  accent-color: #b895c8;
}

.chat-range-value {
  font-weight: 800;
  font-size: 1.25rem;
  min-width: 2rem;
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 2px solid rgba(216, 180, 226, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  background: rgba(255, 255, 255, 0.6);
}

.chat-option:hover {
  background: rgba(250, 245, 251, 0.95);
  border-color: var(--primary-color);
}

.chat-option input {
  margin-top: 0.2rem;
  accent-color: #b895c8;
}

.chat-option span {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-dark);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chat-submit-wrap {
  margin-top: 2rem;
  text-align: center;
}

.chat-submit {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dark);
  background: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-submit:hover:not(:disabled) {
  background: #d4b55f;
  border-color: #d4b55f;
  transform: translateY(-2px);
}

.chat-submit:active:not(:disabled) {
  transform: translateY(0);
}

.chat-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.chat-footnote {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-light);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.chat-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.chat-message.visible {
  display: block;
}

.chat-message.success {
  background: rgba(232, 245, 233, 0.95);
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.chat-message.error {
  background: rgba(255, 235, 238, 0.95);
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

@media (max-width: 480px) {
  .chat-form-card {
    padding: 1.35rem 1.1rem 1.65rem;
  }

  .chat-nav-brand {
    font-size: 0.95rem;
  }
}
