/* JARVEX CHATBOT - COMPLETE REDESIGN */

/* Toggle Button - Website DNA Design */
#chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

#chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

#chatbot-toggle.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0) translateY(20px);
}

.chatbot-logo {
  width: 52px;
  height: 52px;
  overflow: visible;
}

/* Chat Widget Container */
#jarvex-chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-height: 650px;
  background: linear-gradient(135deg, var(--black) 0%, var(--mid) 100%);
  border: 1px solid rgba(232, 255, 71, 0.15);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  z-index: 9000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(232, 255, 71, 0.1);
  transform: translateY(450px) scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#jarvex-chatbot.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(232, 255, 71, 0.1);
  background: linear-gradient(90deg, rgba(232, 255, 71, 0.05) 0%, transparent 100%);
}

.chatbot-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: var(--white);
  font-weight: 700;
}

.chatbot-header-logo {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.chatbot-minimize {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: none;
  padding: 4px 8px;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-minimize:hover {
  color: var(--accent);
  transform: scale(1.1);
}

/* Messages Container */
#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  max-height: 380px;
}

#chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

#chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

#chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(232, 255, 71, 0.2);
  border-radius: 3px;
  transition: background 0.2s;
}

#chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 255, 71, 0.4);
}

/* Messages */
.chat-message {
  line-height: 1.6;
  word-wrap: break-word;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  animation: msgSlide 0.3s ease-out both;
}

@keyframes msgSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-msg {
  background: var(--accent);
  color: var(--black);
  align-self: flex-end;
  max-width: 85%;
  font-weight: 500;
  margin-left: auto;
}

.bot-msg {
  background: rgba(232, 255, 71, 0.08);
  border: 1px solid rgba(232, 255, 71, 0.15);
  color: var(--white);
  align-self: flex-start;
  max-width: 90%;
}

.bot-msg strong {
  color: var(--accent);
  font-weight: 600;
}

.bot-item {
  margin: 6px 0;
  padding-left: 6px;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

/* Quick Actions */
.chatbot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(232, 255, 71, 0.1);
  border-bottom: 1px solid rgba(232, 255, 71, 0.1);
  background: rgba(232, 255, 71, 0.02);
}

.action-btn {
  background: rgba(232, 255, 71, 0.06);
  border: 1px solid rgba(232, 255, 71, 0.2);
  color: var(--accent);
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: all 0.2s;
  text-align: center;
}

.action-btn:hover {
  background: rgba(232, 255, 71, 0.12);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Footer - Input Area */
.chatbot-footer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(232, 255, 71, 0.1);
  background: linear-gradient(90deg, transparent 0%, rgba(232, 255, 71, 0.02) 100%);
}

.chatbot-input {
  flex: 1;
  background: rgba(232, 255, 71, 0.04);
  border: 1px solid rgba(232, 255, 71, 0.15);
  border-radius: 8px;
  color: var(--white);
  font-size: 13px;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: all 0.2s;
}

.chatbot-input:focus {
  background: rgba(232, 255, 71, 0.08);
  border-color: rgba(232, 255, 71, 0.4);
  box-shadow: 0 0 0 3px rgba(232, 255, 71, 0.1);
}

.chatbot-input::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}

.chatbot-submit {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: var(--black);
  font-size: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  font-weight: bold;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chatbot-submit:hover {
  background: #fff;
  transform: scale(1.05) translateY(-1px);
}

.chatbot-submit:active {
  transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 479px) {
  #jarvex-chatbot {
    width: calc(100vw - 24px);
    max-height: 65vh;
    bottom: 90px;
    right: 12px;
    border-radius: 12px;
  }

  #chatbot-messages {
    min-height: 200px;
    max-height: calc(65vh - 200px);
    padding: 12px;
  }

  .chatbot-header {
    padding: 14px 16px;
  }

  .chatbot-header-title {
    font-size: 14px;
    letter-spacing: 1px;
    gap: 8px;
  }

  .chatbot-header-logo {
    width: 20px;
    height: 20px;
  }

  .chatbot-minimize {
    font-size: 18px;
    padding: 2px 6px;
  }

  .chat-message {
    font-size: 12px;
    padding: 9px 12px;
  }

  .user-msg {
    max-width: 80%;
  }

  .bot-msg {
    max-width: 85%;
  }

  .chatbot-actions {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px;
  }

  .action-btn {
    font-size: 11px;
    padding: 8px 10px;
  }

  .chatbot-footer {
    gap: 6px;
    padding: 10px;
  }

  .chatbot-input {
    font-size: 12px;
    padding: 9px 10px;
  }

  .chatbot-submit {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  #chatbot-toggle {
    bottom: 24px;
    right: 8px;
    width: 52px;
    height: 52px;
  }

  .chatbot-logo {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 767px) {
  #jarvex-chatbot {
    width: calc(100vw - 32px);
    max-height: 70vh;
    bottom: 100px;
    right: 16px;
    border-radius: 14px;
  }

  #chatbot-messages {
    min-height: 220px;
    max-height: calc(70vh - 220px);
    padding: 14px;
  }

  .chatbot-header {
    padding: 16px 18px;
  }

  .chatbot-header-title {
    font-size: 15px;
    letter-spacing: 1px;
    gap: 10px;
  }

  .chatbot-header-logo {
    width: 22px;
    height: 22px;
  }

  .chat-message {
    font-size: 13px;
    padding: 10px 13px;
  }

  .chatbot-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }

  .action-btn {
    font-size: 12px;
    padding: 10px 12px;
  }

  .chatbot-footer {
    gap: 8px;
    padding: 12px;
  }

  .chatbot-input {
    font-size: 13px;
    padding: 10px 12px;
  }

  .chatbot-submit {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  #chatbot-toggle {
    bottom: 24px;
    right: 8px;
    width: 52px;
    height: 52px;
  }

  .chatbot-logo {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #jarvex-chatbot {
    width: calc(100vw - 40px);
    max-height: 75vh;
    bottom: 110px;
    right: 20px;
    border-radius: 15px;
  }

  #chatbot-messages {
    max-height: calc(75vh - 240px);
  }

  .chatbot-header {
    padding: 17px 19px;
  }

  .chatbot-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .action-btn {
    font-size: 12px;
    padding: 10px 12px;
  }

  #chatbot-toggle {
    bottom: 28px;
    right: 20px;
  }
}

@media (min-width: 1024px) {
  #jarvex-chatbot {
    width: 380px;
    max-height: 650px;
    bottom: 24px;
    right: 24px;
  }

  #chatbot-messages {
    min-height: 280px;
    max-height: 380px;
  }

  #chatbot-toggle {
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
  }

  .chatbot-logo {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 1440px) {
  #jarvex-chatbot {
    width: 400px;
    max-height: 680px;
    bottom: 28px;
    right: 32px;
  }

  #chatbot-messages {
    max-height: 400px;
  }

  #chatbot-toggle {
    bottom: 28px;
    right: 32px;
    width: 60px;
    height: 60px;
  }
}

/* Animation prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  #chatbot-toggle,
  #jarvex-chatbot,
  .chat-message,
  .action-btn,
  .logo-outer,
  .logo-pulse {
    animation: none;
    transition: none;
  }
}

.message {
  font-size: 13px;
  line-height: 1.6;
  word-wrap: break-word;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  animation: fadeUp 0.3s ease both;
}

.message.bot-message {
  background: rgba(232, 255, 71, 0.08);
  border: 1px solid rgba(232, 255, 71, 0.15);
  color: var(--white);
  align-self: flex-start;
  max-width: 85%;
}

.message.user-message {
  background: var(--accent);
  color: var(--black);
  align-self: flex-end;
  max-width: 85%;
  font-weight: 500;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar styling */
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(232, 255, 71, 0.2);
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 255, 71, 0.4);
}

/* Suggestions */
.chatbot-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--subtle);
  border-bottom: 1px solid var(--subtle);
}

.suggestion-btn {
  background: rgba(232, 255, 71, 0.05);
  border: 1px solid rgba(232, 255, 71, 0.2);
  color: var(--accent);
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: none;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}

.suggestion-btn:hover {
  background: rgba(232, 255, 71, 0.12);
  border-color: var(--accent);
}

/* Input Section */
.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--subtle);
}

#chatbot-input {
  flex: 1;
  background: var(--mid);
  border: 1px solid var(--subtle);
  border-radius: 6px;
  color: var(--white);
  font-size: 13px;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  cursor: none;
}

#chatbot-input:focus {
  border-color: var(--accent);
  background: rgba(232, 255, 71, 0.05);
}

#chatbot-input::placeholder {
  color: var(--text-dim);
}

#chatbot-send {
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: var(--black);
  font-size: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  font-weight: bold;
  transition: transform 0.2s, opacity 0.2s;
}

#chatbot-send:hover {
  transform: scale(1.05);
  opacity: 0.9;
}


/* ============================================================
   IDEA PITCH WIDGET
   ============================================================ */

/* Trigger Button */
.idea-pitch-trigger {
  position: fixed;
  bottom: 92px;  /* chatbot: 24px + 56px + 12px gap */
  right: 24px;
  width: 56px;
  height: 56px;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  background: #0d0d0d;
  border: 2px solid var(--accent);
  border-radius: 50%;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8998;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.25s ease;
  box-shadow: 0 0 0 0 rgba(232, 255, 71, 0.4), 0 2px 12px rgba(0, 0, 0, 0.6);
  color: var(--accent);
  animation: bulb-pulse-ring 2.5s ease-in-out infinite;
}

@keyframes bulb-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(232, 255, 71, 0.45), 0 2px 12px rgba(0, 0, 0, 0.6); }
  60%  { box-shadow: 0 0 0 8px rgba(232, 255, 71, 0),  0 2px 12px rgba(0, 0, 0, 0.6); }
  100% { box-shadow: 0 0 0 0 rgba(232, 255, 71, 0),    0 2px 12px rgba(0, 0, 0, 0.6); }
}

.idea-pitch-trigger svg {
  display: block;
  flex-shrink: 0;
}

.idea-pitch-trigger:hover {
  background: var(--accent);
  color: #080808;
  transform: scale(1.12);
  box-shadow: 0 4px 20px rgba(232, 255, 71, 0.5), 0 0 0 0 rgba(232, 255, 71, 0);
  animation: none;
}

.idea-pitch-trigger:hover .idea-pitch-tooltip {
  opacity: 1;
  transform: translateX(-8px);
  pointer-events: none;
}

/* Tooltip */
.idea-pitch-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(0);
  background: #1a1a1a;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(232, 255, 71, 0.2);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.idea-pitch-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(232, 255, 71, 0.2);
}

/* Overlay */
.idea-pitch-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.idea-pitch-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Card */
.idea-pitch-modal {
  background: linear-gradient(145deg, #0d0d0d 0%, #111100 100%);
  border: 1px solid rgba(232, 255, 71, 0.18);
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(232, 255, 71, 0.05), inset 0 1px 0 rgba(232, 255, 71, 0.08);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.idea-pitch-overlay.open .idea-pitch-modal {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.idea-pitch-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(232, 255, 71, 0.1);
  background: linear-gradient(90deg, rgba(232, 255, 71, 0.04) 0%, transparent 60%);
  flex-shrink: 0;
}

.idea-pitch-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.idea-pitch-header-icon {
  width: 40px;
  height: 40px;
  background: #080808;
  border: 2px solid var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(232, 255, 71, 0.15);
}

.idea-pitch-header-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin: 0 0 2px;
  line-height: 1;
}

.idea-pitch-header-text p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

.idea-pitch-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.idea-pitch-close:hover {
  background: rgba(232, 255, 71, 0.1);
  border-color: rgba(232, 255, 71, 0.3);
  color: var(--accent);
}

/* Modal Body */
.idea-pitch-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 255, 71, 0.2) transparent;
}

.idea-pitch-modal-body::-webkit-scrollbar {
  width: 5px;
}

.idea-pitch-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.idea-pitch-modal-body::-webkit-scrollbar-thumb {
  background: rgba(232, 255, 71, 0.2);
  border-radius: 3px;
}

/* Intro Section */
.idea-pitch-intro p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--white);
  margin: 0 0 20px;
}

.idea-pitch-intro strong {
  color: var(--accent);
}

/* Criteria Grid */
.idea-pitch-criteria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.pitch-criterion {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(232, 255, 71, 0.04);
  border: 1px solid rgba(232, 255, 71, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
}

.criterion-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.pitch-criterion strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}

.pitch-criterion span {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Divider */
.idea-pitch-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 255, 71, 0.15), transparent);
  margin: 24px 0;
  flex-shrink: 0;
}

/* Form Container */
.idea-pitch-form-container {
  flex: 1;
  min-height: 80px;
}

/* ============================================================
   IDEA PITCH — NATIVE FORM (Web3Forms)
   Mirrors contact.html form structure and colors exactly.
   ============================================================ */

/* Outer wrapper — same border treatment as .contact-form-wrap */
.ip-form-wrap {
  border: 1px solid var(--subtle);
}

/* 2-column rows — gap filled by --subtle background, same as .form-row */
.ip-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--subtle);
}

/* Individual field cell — same as .form-group */
.ip-form-group {
  background: var(--black);
}

/* Full-width field — same as .form-group.full */
.ip-form-group.ip-full {
  background: var(--black);
  border-top: 1px solid var(--subtle);
}

/* Labels — DM Mono 10px #777 uppercase 2px tracking, same as .form-group label */
.ip-form-group label {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  padding: 16px 20px 0;
}

/* Inputs, textareas, selects — exact match of .form-group input/textarea/select */
.ip-form-group input,
.ip-form-group textarea,
.ip-form-group select {
  width: 100%;
  box-sizing: border-box;
  background: rgba(232, 255, 71, 0.03);
  border: 1px solid rgba(232, 255, 71, 0.12);
  border-radius: 2px;
  outline: none;
  padding: 12px 20px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  cursor: none;
  resize: none;
  transition: border-color 0.25s, background-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.ip-form-group input:focus,
.ip-form-group textarea:focus,
.ip-form-group select:focus {
  border-color: rgba(232, 255, 71, 0.45);
  background-color: rgba(232, 255, 71, 0.06);
}

.ip-form-group input::placeholder,
.ip-form-group textarea::placeholder {
  color: rgba(119, 119, 119, 0.65);
}

/* Select — custom arrow matching contact.html */
.ip-form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
  padding-right: 36px;
  cursor: none;
}

.ip-form-group select option {
  background: var(--mid);
  color: var(--white);
}

/* Textareas */
.ip-form-group textarea {
  min-height: 110px;
}

/* Submit button — exact match of .form-submit-btn */
.ip-submit-btn {
  background: var(--accent);
  border: none;
  color: var(--black);
  padding: 20px 32px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: none;
  width: 100%;
  display: block;
  transition: background 0.2s;
  border-top: 1px solid var(--subtle);
}

.ip-submit-btn:hover {
  background: #fff;
}

/* Success message */
.ip-success {
  display: none;
  padding: 20px 24px;
  text-align: center;
  background: rgba(232, 255, 71, 0.05);
  border-top: 1px solid rgba(232, 255, 71, 0.2);
}

.ip-success-heading {
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 0 0 8px;
}

.ip-success-body {
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.ip-success-reset {
  background: none;
  border: 1px solid rgba(232, 255, 71, 0.3);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
}

.ip-success-reset:hover {
  background: rgba(232, 255, 71, 0.08);
  border-color: var(--accent);
}

/* Validation error outline — matches contact.html red outline pattern */
.ip-form-group input.ip-invalid,
.ip-form-group textarea.ip-invalid {
  outline: 1px solid #ff4d4d;
}

/* Required field asterisk */
.ip-required {
  color: #ff4d4d;
  font-style: normal;
}

/* Checkbox group */
.ip-checkbox-group {
  padding: 10px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* .ip-checkbox-item is a <label>, so we must override .ip-form-group label's
   uppercase/monospace/padding cascade that would otherwise hit it */
.ip-checkbox-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: none;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
  color: var(--text-dim) !important;
  padding: 0 !important;
  transition: color 0.2s;
}

.ip-checkbox-item:hover {
  color: var(--white) !important;
}

/* Checkboxes: override .ip-form-group input's appearance:none / width:100% / padding */
.ip-checkbox-item input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: none;
  border: initial !important;
  border-radius: 2px !important;
  padding: 0 !important;
  background: transparent !important;
  outline: none;
  transition: none !important;
}

.ip-checkbox-item span {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: inherit;
  line-height: 1.4;
  cursor: none;
  text-transform: none;
  letter-spacing: normal;
}

/* Invalid checkbox group — red top border highlight */
.ip-group-invalid {
  outline: 1px solid #ff4d4d;
}

/* File input — restore native appearance overridden by .ip-form-group input */
.ip-file-input {
  -webkit-appearance: auto !important;
  appearance: auto !important;
  width: 100% !important;
  padding: 10px 20px !important;
  color: var(--text-dim) !important;
  font-size: 13px !important;
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
}

.ip-file-input::-webkit-file-upload-button {
  background: rgba(232, 255, 71, 0.08);
  border: 1px solid rgba(232, 255, 71, 0.25);
  border-radius: 4px;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.ip-file-input::-webkit-file-upload-button:hover {
  background: rgba(232, 255, 71, 0.15);
  border-color: rgba(232, 255, 71, 0.5);
}

.ip-file-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text-dim);
  padding: 2px 20px 14px;
  line-height: 1.5;
  margin: 0;
}

/* Textarea resize — allow vertical on desktop only */
@media (min-width: 768px) {
  .ip-form-group textarea {
    resize: vertical;
  }
}

/* Loading State */
.idea-pitch-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

.pitch-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(232, 255, 71, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: pitch-spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes pitch-spin {
  to { transform: rotate(360deg); }
}

/* Fallback Error */
.pitch-fallback {
  padding: 24px;
  background: rgba(232, 255, 71, 0.04);
  border: 1px solid rgba(232, 255, 71, 0.12);
  border-radius: 10px;
  text-align: center;
}

.pitch-fallback p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 8px;
  line-height: 1.6;
}

.pitch-fallback p:last-child {
  margin: 0;
}

.pitch-fallback a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(232, 255, 71, 0.3);
  transition: border-color 0.2s;
}

.pitch-fallback a:hover {
  border-color: var(--accent);
}

/* Scroll lock when modal open */
body.idea-pitch-body-lock {
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */

/* Small mobile (<480px) */
@media (max-width: 479px) {
  .idea-pitch-trigger {
    /* Chatbot effective mobile: bottom 24px + 52px height + 12px gap = 88px
       The chatbot max-width:767px rule overrides max-width:479px, so effective
       values are right:8px / width:52px on ALL screens ≤767px */
    bottom: 88px;
    right: 8px;
    width: 52px;
    height: 52px;
    box-shadow: 0 0 0 0 rgba(232, 255, 71, 0.4), 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  .idea-pitch-tooltip {
    /* Reposition above the button — always visible on touch (no hover) */
    display: block;
    opacity: 1;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    top: auto;
    transform: none;
    font-size: 10px;
    padding: 4px 10px;
    pointer-events: none;
    white-space: nowrap;
  }

  .idea-pitch-tooltip::after {
    /* Downward arrow — centered over the 52px button (button center = 26px from right edge, arrow half-width = 5px) */
    display: block;
    left: auto;
    right: 21px;
    top: 100%;
    transform: none;
    border: 5px solid transparent;
    border-top-color: rgba(232, 255, 71, 0.25);
  }

  .idea-pitch-trigger svg {
    width: 26px;
    height: 26px;
  }

  .idea-pitch-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .idea-pitch-modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    transform: translateY(100%);
  }

  .idea-pitch-overlay.open .idea-pitch-modal {
    transform: translateY(0);
  }

  .idea-pitch-modal-header {
    padding: 18px 16px 14px;
  }

  .idea-pitch-header-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border-width: 1.5px;
  }

  .idea-pitch-header-text h2 {
    font-size: 18px;
  }

  .idea-pitch-header-text p {
    font-size: 11px;
  }

  .idea-pitch-modal-body {
    padding: 16px;
  }

  .idea-pitch-intro p {
    font-size: 13px;
  }

  .idea-pitch-criteria {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pitch-criterion {
    padding: 10px 12px;
  }

  .idea-pitch-divider {
    margin: 16px 0;
  }

  /* Close button — 44px touch target */
  .idea-pitch-close {
    width: 40px;
    height: 40px;
  }

  /* Bottom safe area for iPhone X+ notch */
  .idea-pitch-modal-body {
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  }

  /* Native form — mobile layout */
  .ip-form-row {
    grid-template-columns: 1fr;
  }

  .ip-form-group label {
    padding: 12px 14px 0;
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  .ip-form-group input,
  .ip-form-group textarea,
  .ip-form-group select {
    padding: 10px 14px;
    font-size: 16px; /* prevents iOS auto-zoom on focus */
    cursor: auto;
  }

  .ip-form-group select {
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
  }

  .ip-form-group textarea {
    min-height: 80px;
  }

  .ip-submit-btn {
    padding: 16px 20px;
    font-size: 11px;
    cursor: pointer;
  }

  .ip-success {
    padding: 16px;
  }

  .ip-success-heading,
  .ip-success-body {
    font-size: 12px;
  }
}

/* Tablet (<768px) */
@media (min-width: 480px) and (max-width: 767px) {
  .idea-pitch-trigger {
    bottom: 88px;  /* chatbot: 24px + 52px + 12px gap */
    right: 8px;
    width: 52px;
    height: 52px;
  }

  .idea-pitch-tooltip {
    display: block;
    opacity: 1;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    top: auto;
    transform: none;
    font-size: 10px;
    padding: 4px 10px;
    pointer-events: none;
    white-space: nowrap;
  }

  .idea-pitch-tooltip::after {
    /* Downward arrow — centered over the 52px button */
    display: block;
    left: auto;
    right: 21px;
    top: 100%;
    transform: none;
    border: 5px solid transparent;
    border-top-color: rgba(232, 255, 71, 0.25);
  }

  .idea-pitch-trigger svg {
    width: 26px;
    height: 26px;
  }

  .idea-pitch-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .idea-pitch-modal {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    transform: translateY(100%);
  }

  .idea-pitch-overlay.open .idea-pitch-modal {
    transform: translateY(0);
  }

  .idea-pitch-criteria {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Close button touch target */
  .idea-pitch-close {
    width: 40px;
    height: 40px;
  }

  /* Bottom safe area */
  .idea-pitch-modal-body {
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  }

  /* Native form — tablet layout (still single column in bottom sheet) */
  .ip-form-row {
    grid-template-columns: 1fr;
  }

  .ip-form-group label {
    padding: 14px 16px 0;
  }

  .ip-form-group input,
  .ip-form-group textarea,
  .ip-form-group select {
    padding: 11px 16px;
    font-size: 16px; /* prevents iOS auto-zoom */
    cursor: auto;
  }

  .ip-form-group select {
    cursor: pointer;
  }

  .ip-form-group textarea {
    min-height: 90px;
  }

  .ip-submit-btn {
    padding: 17px 24px;
    cursor: pointer;
  }
}

/* Medium (768px–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .idea-pitch-trigger {
    bottom: 96px;  /* chatbot: 28px + 56px + 12px gap */
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .idea-pitch-modal {
    max-width: 560px;
  }
}

/* Desktop (≥1024px) */
@media (min-width: 1024px) {
  .idea-pitch-trigger {
    bottom: 92px;  /* chatbot: 24px + 56px + 12px gap */
    right: 24px;
    width: 56px;
    height: 56px;
  }
}

/* Large desktop (≥1440px) */
@media (min-width: 1440px) {
  .idea-pitch-trigger {
    bottom: 100px;  /* chatbot: 28px + 60px + 12px gap */
    right: 32px;
    width: 60px;
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .idea-pitch-trigger,
  .idea-pitch-modal,
  .idea-pitch-overlay,
  .pitch-spinner {
    animation: none;
    transition: none;
  }
}


