/* ─── CUSTOM BUILD FORM ─────────────────────────────────── */
.custom-build-page {
  min-height: 100vh;
  padding: 2rem 0 4rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.cb-form-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5vw;
  position: relative;
  z-index: 2;
}

.cb-split-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.cb-form-side {
  flex: 1;
  min-width: 0;
}

.cb-image-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.cb-pc-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 20px;
  filter: drop-shadow(0 0 30px rgba(164, 249, 63, 0.15));
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

.cb-image-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(164, 249, 63, 0.1) 0%, transparent 70%);
  z-index: 1;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Grid Background */
.cb-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(164, 249, 63, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164, 249, 63, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 992px) {
  .cb-split-layout {
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
  }

  .cb-image-side {
    order: -1;
  }

  .cb-pc-image {
    max-width: 300px;
  }
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

/* Branded Input Wrapper */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 56px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 100%;
  background: transparent;
  border-right: 1px solid var(--border);
  border-radius: 10px 0 0 10px;
  flex-shrink: 0;
}

.input-icon-box i,
.input-icon-box svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.input-wrapper input,
.input-wrapper textarea {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0 1.25rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.input-wrapper--textarea {
  height: auto;
  align-items: flex-start;
}

.input-wrapper--textarea .input-icon-box {
  height: 56px; /* Icon stays at top */
}

.input-wrapper--textarea textarea {
  padding: 1rem 1.25rem;
  min-height: 100px;
  resize: vertical;
}

.input-wrapper:focus-within {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(164, 249, 63, 0.1);
}

.input-wrapper:focus-within .input-icon-box i {
  transform: scale(1.1);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.usecase-option {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  gap: 0.75rem;
}

.usecase-option i {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.usecase-option span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.usecase-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  visibility: hidden;
}

.usecase-option:hover {
  border-color: rgba(164, 249, 63, 0.4);
}

.usecase-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(164, 249, 63, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.usecase-option:has(input:checked) i,
.usecase-option:has(input:checked) span {
  color: var(--accent);
}

/* Budget Chips */
.budget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.budget-chip {
  padding: 0.5rem 0.9rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.budget-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.budget-chip.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(164, 249, 63, 0.2);
}

.cb-submit-btn {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 1.25rem;
  font-family: 'Oxanium', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1.5rem;
}

.cb-submit-btn:hover {
  background: var(--accent-hover, #c5f43f);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(164, 249, 63, 0.2);
}

.cb-submit-btn i {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.cb-submit-btn:hover i {
  transform: translateX(5px);
}

/* Background elements */
.cb-bg-blur {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(164, 249, 63, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}