/* ============== ONE-CLICK MARKETING CAMPAIGN DEMO (System 3 phone) ============== */
.rv-cc-phone .cc-screen {
  position: relative; padding: 0; overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(242,163,58,.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(94,211,224,.10) 0%, transparent 55%),
    linear-gradient(145deg, #0a1322 0%, #1a2a3f 100%);
}
.cc-view {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 320ms ease;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 44px 16px 20px;
}
.cc-view.on { opacity: 1; }

/* ---------- SCREEN 1: ADD CUSTOMER TO MARKETING CAMPAIGN form ---------- */
.cc-form-card {
  background:
    linear-gradient(145deg, rgba(242,163,58,.08) 0%, transparent 100%),
    #0a0a0a;
  border: 1px solid rgba(242,163,58,.4);
  border-radius: 12px; padding: 16px; width: 100%;
  color: #fff;
  box-shadow: 0 0 30px rgba(242,163,58,.1), inset 0 0 20px rgba(242,163,58,.05);
}
.cc-form-title {
  background: #000; color: #fff; font-weight: 900; font-size: 13px;
  text-align: center; padding: 10px; border-radius: 6px;
  letter-spacing: .04em; margin: -6px -6px 14px; line-height: 1.2;
  box-shadow: 0 4px 10px rgba(242,163,58,.15);
}
.cc-field { margin-bottom: 12px; }
.cc-field label { display: block; font-size: 10px; color: #cbd5e1; margin-bottom: 4px; font-weight: 500; }
.cc-field label small { font-size: 9px; color: rgba(255,255,255,.4); display: block; margin-top: 1px; }
.cc-input {
  background: #fff; color: #000;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px; padding: 8px 10px; font-size: 12px;
  display: flex; align-items: center; min-height: 28px;
  transition: border-color 200ms, box-shadow 200ms;
}
.cc-input.focused { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(242,163,58,.3); }
.cc-typed { font-family: var(--mono); color: #000; font-size: 12px; }
.cc-caret {
  display: inline-block; width: 2px; height: 13px; background: #000;
  margin-left: 1px; vertical-align: middle; opacity: 0;
  animation: cc-caret-blink 900ms steps(2) infinite;
}
.cc-input.focused .cc-caret { opacity: 1; }
.cc-sms.typing .cc-caret { opacity: 1; }
@keyframes cc-caret-blink { 50% { opacity: 0; } }

.cc-launch {
  background: #fff; color: #000; font-weight: 900; font-size: 14px;
  text-align: center; padding: 12px; border-radius: 6px;
  letter-spacing: .08em; margin-top: 8px;
  border: 2px solid var(--amber);
  box-shadow: 0 4px 16px rgba(242,163,58,.2);
  transition: transform 150ms, background 200ms, color 200ms;
}
.cc-launch.clicked { transform: scale(.96); background: var(--amber); color: #000; }

/* Ghost cursor inside the form screen */
.cc-cursor {
  position: absolute; width: 20px; height: 20px; z-index: 10; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 10-8.2 1.2L7 21z' fill='%23ffffff' stroke='%23000000' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.6));
  top: 85%; left: 15%; opacity: 0;
  transition: top 620ms cubic-bezier(.4,.1,.25,1),
              left 620ms cubic-bezier(.4,.1,.25,1),
              transform 150ms ease, opacity 300ms ease;
  transform-origin: 20% 20%;
}
.cc-cursor.on { opacity: 1; }
.cc-cursor.clicking { transform: scale(.75); }

/* ---------- SCREEN 2: Confetti + green success chip ---------- */
.cc-confetti { position: absolute; inset: 0; pointer-events: none; }
.cc-piece {
  position: absolute; width: 8px; height: 12px;
  top: -20px; opacity: 0; border-radius: 2px;
  animation: cc-fall 2400ms cubic-bezier(.2,.4,.8,1) forwards;
}
@keyframes cc-fall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(600px) rotate(720deg); opacity: 0; }
}
.cc-success-chip {
  position: relative; z-index: 2;
  background: #22c55e; color: #fff;
  font-weight: 900; font-size: 14px;
  padding: 14px 18px; border-radius: 10px;
  text-align: center; max-width: 220px;
  box-shadow: 0 12px 30px rgba(34,197,94,.35), inset 0 0 0 1px rgba(255,255,255,.12);
  opacity: 0; transform: scale(.4);
  letter-spacing: .04em; line-height: 1.2;
}
.cc-view.on .cc-success-chip { animation: cc-chip-pop 700ms cubic-bezier(.3,1.4,.4,1) forwards; }
@keyframes cc-chip-pop {
  0% { opacity: 0; transform: scale(.4) rotate(-4deg); }
  70% { transform: scale(1.08) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* ---------- SCREEN 3: SMS thread (iMessage style) ---------- */
.cc-view[data-view="3"] { padding: 52px 14px 20px; justify-content: flex-start; gap: 12px; align-items: stretch; }
.cc-sms {
  max-width: 85%; padding: 10px 14px; border-radius: 20px;
  font-size: 12.5px; line-height: 1.4; opacity: 0;
  transition: opacity 280ms ease;
}
.cc-sms.on { opacity: 1; }
.cc-sms p { margin: 0; color: #fff; font-size: 12.5px; min-height: 16px; line-height: 1.4; }
.cc-sms-biz { background: #7FB8E8; color: #0E1A2B; align-self: flex-end; border-bottom-right-radius: 6px; box-shadow: 0 4px 14px rgba(127,184,232,.3); }
.cc-sms-biz p { color: #0E1A2B; font-weight: 600; }
.cc-sms-cust { background: #E8912B; color: #0E1A2B; align-self: flex-start; border-bottom-left-radius: 6px; box-shadow: 0 4px 14px rgba(232,145,43,.3); }
.cc-sms-cust p { color: #0E1A2B; font-weight: 600; }
.cc-sms .cc-caret { width: 2px; height: 13px; background: currentColor; }

/* ---------- SCREEN 4: Google Maps rank climb (Stormline Air #20 -> #1) ---------- */
.cc-view-maps {
  padding: 44px 10px 20px;
  justify-content: flex-start; align-items: stretch;
  background:
    linear-gradient(145deg, rgba(10,19,34,.92) 0%, rgba(26,42,63,.85) 100%),
    radial-gradient(circle at 70% 30%, rgba(94,211,224,.18) 0%, transparent 60%);
}
.cc-maps-label {
  color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; text-align: center; margin-bottom: 10px;
  opacity: .75;
}
.cc-maps-stage {
  position: relative; flex: 1;
}
.cc-maps-state {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transition: opacity 500ms ease;
  padding: 0 4px;
}
.cc-maps-state.on { opacity: 1; }

.cc-map-card {
  background: #fff; border-radius: 10px;
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 10px 14px 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  position: relative;
  transition: transform 500ms ease, box-shadow 500ms ease;
}
.cc-map-card .cc-map-body { padding-top: 2px; }
.cc-map-card .cc-map-pos { margin-top: 4px; }
.cc-map-pos {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: #f3f4f6; color: #111;
  display: grid; place-items: center;
  font-family: var(--sans); font-weight: 800; font-size: 13px;
  border: 1.5px solid #e5e7eb;
}
.cc-map-body { flex: 1; min-width: 0; }
.cc-map-body b { display: block; color: #111; font-size: 11px; font-weight: 700; margin: 0; letter-spacing: 0; text-transform: none; }
.cc-map-rating { font-size: 10px; color: #d97706; margin-top: 2px; letter-spacing: .5px; }
.cc-map-rating span { color: #6b7280; margin-left: 2px; }
.cc-map-meta { font-size: 9px; color: #6b7280; margin-top: 2px; line-height: 1.35; }
.cc-map-hours { font-size: 9px; color: #6b7280; margin-top: 2px; line-height: 1.35; }
.cc-map-hours .cc-map-open { color: #15803d; font-weight: 700; }
.cc-map-tags { font-size: 9px; color: #6b7280; margin-top: 3px; line-height: 1.35; }
.cc-map-actions {
  display: flex; flex-direction: column; gap: 6px;
  flex: none; margin-left: 4px;
}
.cc-map-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 1px solid #dadce0;
  color: #1a73e8;
  display: grid; place-items: center;
  padding: 0; cursor: default;
  position: relative;
  transition: background 160ms;
}
.cc-map-btn svg { width: 16px; height: 16px; }
.cc-map-btn span {
  position: absolute; top: calc(100% + 1px); left: 50%; transform: translateX(-50%);
  font-size: 7.5px; font-weight: 600; color: #1a73e8;
  letter-spacing: 0; white-space: nowrap;
}
.cc-map-arrow {
  position: absolute; left: -2px; top: 50%; transform: translate(-100%, -50%);
  font-size: 22px; color: #111;
  width: 20px; text-align: center;
  font-weight: 900;
}
.cc-map-arrow-blink { animation: cc-arrow-blink 700ms ease-in-out infinite; }
@keyframes cc-arrow-blink {
  0%, 100% { opacity: 1; transform: translate(-100%, -50%) translateY(0); }
  50% { opacity: .35; transform: translate(-100%, -50%) translateY(-3px); }
}
.cc-map-ours { background: linear-gradient(145deg, #fffbf0 0%, #fff 100%); box-shadow: 0 8px 22px rgba(242,163,58,.3), 0 0 0 1.5px var(--amber); }
.cc-map-ours .cc-map-pos { background: var(--amber); color: #111; border-color: #e8912b; }
.cc-map-highlight { animation: cc-card-pulse 1600ms ease-in-out infinite; }
@keyframes cc-card-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 22px rgba(242,163,58,.3), 0 0 0 1.5px var(--amber); }
  50% { transform: scale(1.02); box-shadow: 0 10px 30px rgba(242,163,58,.5), 0 0 0 2px var(--amber); }
}
.cc-map-winner {
  background: linear-gradient(145deg, #fff8e0 0%, #fff 100%);
  box-shadow: 0 10px 28px rgba(242,163,58,.45), 0 0 0 2px var(--amber);
}
.cc-map-winner .cc-map-pos {
  background: linear-gradient(145deg, var(--amber) 0%, #e8912b 100%);
  color: #fff; border-color: #c47511;
  box-shadow: 0 2px 8px rgba(242,163,58,.5);
}
.cc-map-crown {
  position: absolute; top: -8px; right: -4px;
  background: var(--amber); color: #fff;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
