@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0e14;
  --surface: #111822;
  --border: #1e2d3d;
  --accent: #00d4ff;
  --accent2: #0077ff;
  --text: #e8f4ff;
  --muted: #6b8299;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10, 14, 20, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 100;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.logo-text {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.logo-text span {
  color: var(--accent);
}

.header-badge {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.left-panel {
  width: 240px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.panel-section {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s;
  margin-bottom: 4px;
  font-family: "DM Sans", sans-serif;
}

.view-btn:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: var(--border);
}

.view-btn.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--accent);
}

.view-btn .icon {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.feature-item:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.3);
}

.feature-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
  animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.feature-item span {
  font-size: 12px;
  line-height: 1.3;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.stat-val {
  font-family: "Syne", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.stat-lbl {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

#viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 40% 50%, #0d1929 0%, #060a10 100%);
}

#canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#canvas:active {
  cursor: grabbing;
}

.viewport-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.corner-cross {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0.3;
}

.corner-cross::before,
.corner-cross::after {
  content: "";
  position: absolute;
  background: var(--accent);
}

.tl {
  top: 20px;
  left: 20px;
}

.tr {
  top: 20px;
  right: 20px;
  transform: scaleX(-1);
}

.bl {
  bottom: 20px;
  left: 20px;
  transform: scaleY(-1);
}

.br {
  bottom: 20px;
  right: 20px;
  transform: scale(-1);
}

.corner-cross::before {
  width: 2px;
  height: 16px;
  top: 4px;
  left: 11px;
}

.corner-cross::after {
  width: 16px;
  height: 2px;
  top: 11px;
  left: 4px;
}

.viewport-label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Syne", sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0, 212, 255, 0.4);
  white-space: nowrap;
}

.controls-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(10, 14, 20, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  backdrop-filter: blur(8px);
}

.hint-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.hint-key {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  color: var(--text);
}

#loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 50%, #0d1929 0%, #060a10 100%);
  z-index: 50;
  transition: opacity 0.6s;
}

#loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(0, 212, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-text {
  font-family: "Syne", sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.loader-sub {
  font-size: 11px;
  color: rgba(107, 130, 153, 0.5);
  margin-top: 6px;
}

.loader-progress {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin-top: 18px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 2px;
  transition: width 0.4s;
  box-shadow: 0 0 8px var(--accent);
}

.right-panel {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sensor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.sensor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-green 2s ease infinite;
}

@keyframes pulse-green {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.sensor-name {
  font-size: 12px;
  font-weight: 500;
}

.sensor-desc {
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

#tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(10, 14, 20, 0.95);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  max-width: 200px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 20;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

#tooltip.show {
  opacity: 1;
}

#tooltip .tt-title {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
  font-size: 13px;
}

#tooltip .tt-desc {
  color: var(--muted);
  line-height: 1.5;
}

.zoom-controls {
  position: absolute;
  right: 230px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zoom-btn {
  width: 32px;
  height: 32px;
  background: rgba(10, 14, 20, 0.85);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.zoom-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Explode View ── */
.explode-panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 64px;
  background: rgba(10, 14, 20, 0.92);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateX(-50%) translateY(8px);
  z-index: 30;
  min-width: 280px;
}

.explode-panel.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.explode-label {
  font-family: "Syne", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.explode-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  outline: none;
  cursor: pointer;
}

.explode-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  cursor: pointer;
  border: 2px solid #0a0e14;
}

.explode-val {
  font-family: "Syne", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-width: 32px;
  text-align: right;
}

.explode-reset {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 6px;
  color: var(--accent);
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}

.explode-reset:hover {
  background: rgba(0, 212, 255, 0.25);
}

/* ── 3D Annotations ── */
.annotation {
  position: absolute;
  pointer-events: none;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.3s;
  transform: translate(-50%, -100%);
}

.annotation.visible {
  opacity: 1;
}

.ann-bubble {
  background: rgba(10, 14, 20, 0.95);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
  position: relative;
}

.ann-title {
  font-family: "Syne", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.ann-desc {
  font-size: 10px;
  color: var(--muted);
}

/* Downward pointer line */
.ann-line {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
}

.ann-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  margin: 0 auto;
  animation: dotPulse 1.5s ease infinite;
}

/* Active sensor row */
.sensor-item.active-sensor {
  background: rgba(0, 212, 255, 0.1) !important;
  border-left: 2px solid var(--accent);
}

/* ════════════════════════════════════════════
   MOBILE RESPONSIVE SYSTEM
   ════════════════════════════════════════════ */

/* Mobile bottom toolbar */
.mobile-toolbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(10, 14, 20, 0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  z-index: 200;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}

.mob-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s;
  min-width: 52px;
}

.mob-btn svg {
  width: 20px;
  height: 20px;
}

.mob-btn.active {
  color: var(--accent);
}

.mob-btn.active svg {
  filter: drop-shadow(0 0 4px var(--accent));
}

.mob-btn:active {
  background: rgba(0, 212, 255, 0.1);
}

/* Mobile slide-up drawer panels */
.mob-panel {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 56px;
  background: rgba(8, 12, 18, 0.98);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  backdrop-filter: blur(20px);
  z-index: 190;
  max-height: 70vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mob-panel.open {
  transform: translateY(0);
}

.mob-panel-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 10px auto 4px;
}

.mob-panel-title {
  font-family: "Syne", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  padding: 4px 0 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Mobile view grid */
.mob-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 16px;
}

.mob-view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.mob-view-btn.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--accent);
}

.mob-view-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Mobile material row */
.mob-mat-row {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.mob-mat-btn {
  flex: 1;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.mob-mat-btn.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--accent);
}

/* Mobile explode slider */
.mob-explode-wrap {
  padding: 0 16px 20px;
}

.mob-explode-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mob-explode-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.mob-explode-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  outline: none;
  cursor: pointer;
}

.mob-explode-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  border: 3px solid #0a0e14;
  cursor: pointer;
}

.mob-explode-val {
  font-family: "Syne", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-width: 36px;
  text-align: right;
}

.mob-explode-btns {
  display: flex;
  gap: 8px;
}

.mob-action-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.mob-action-btn.primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
}

.mob-action-btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Mobile sensor list */
.mob-sensor-list {
  padding: 0 8px 16px;
}

.mob-sensor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 4px;
}

.mob-sensor-item:active,
.mob-sensor-item.active-sensor {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.3);
}

.mob-sensor-item .sensor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  flex-shrink: 0;
  animation: pulse-green 2s ease infinite;
}

.mob-sensor-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.mob-sensor-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

/* Overlay backdrop */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 180;
}

.mob-overlay.show {
  display: block;
}

/* ── MEDIA QUERIES ── */
@media (max-width: 768px) {
  /* Hide desktop panels */
  .left-panel {
    display: none;
  }

  .right-panel {
    display: none;
  }

  /* Hide desktop hints & zoom */
  .controls-hint {
    display: none;
  }

  .zoom-controls {
    display: none;
  }

  .header-badge {
    display: none;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  /* Header compact */
  header {
    padding: 10px 14px;
  }

  .logo-text {
    font-size: 15px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .btn-primary {
    padding: 7px 14px;
    font-size: 12px;
  }

  /* Viewport fills everything */
  body {
    overflow: hidden;
  }

  .main {
    height: calc(100vh - 50px - 56px);
  }

  #viewport {
    height: 100%;
  }

  /* Show mobile toolbar */
  .mobile-toolbar {
    display: flex;
  }

  /* Mobile panels visible */
  .mob-panel {
    display: block;
  }

  .mob-overlay {
    display: none;
  }
}

@media (max-width: 480px) {
  .mob-btn {
    min-width: 44px;
    padding: 6px 6px;
    font-size: 8px;
  }

  .mob-view-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
}

/* ════════════════════════════════════════════
         REQUEST DEMO MODAL
         ════════════════════════════════════════════ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.show {
  display: flex;
}

.modal-box {
  background: #0f1822;
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 40px 32px;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.08);
  animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--accent);
}

.modal-heading {
  font-family: "Syne", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.modal-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.modal-sub span {
  color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px 20px;
  margin-bottom: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.form-label span {
  color: #ef4444;
  margin-left: 2px;
}
.contact-form {
  margin-top: 20px;
}

.form-input,
.form-select,
.form-textarea {
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  color: #111;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-submit {
  background: #5bc4c4;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 28px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 6px;
}
.modal-submit:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.modal-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.modal-success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.modal-success h3 {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 8px;
}
.modal-success p {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .modal-box {
    padding: 24px 18px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .modal-heading {
    font-size: 20px;
  }
}
