@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #f2295b;
  --primary-hover: #d11946;
  --bg-dark: #0f1015;
  --bg-card: rgba(25, 26, 35, 0.6);
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow: hidden;
}

/* Background Animated Layers */
#bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-color: var(--bg-dark);
}

.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease-in-out, transform 8s ease-out;
  opacity: 0;
  transform: scale(1.05);
}

.bg-layer.active {
  opacity: 0.35;
  /* Keeps text readable */
  transform: scale(1);
}

/* Overlay to darken background further for text readability */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 16, 21, 0.9) 0%, rgba(15, 16, 21, 0.6) 100%);
  z-index: -1;
  pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.outfit {
  font-family: 'Outfit', sans-serif;
}

/* Form Container */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  z-index: 10;
}

.brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand i {
  color: var(--primary);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.progress-bar-bg {
  width: 150px;
  height: 6px;
  background: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Steps Wrapper */
.steps-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.step-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 6rem;
}

.step-content.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 5;
}

.step-content.exit-up {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
}

.step-header {
  margin-bottom: 2rem;
  max-width: 800px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(242, 41, 91, 0.15);
  backdrop-filter: blur(10px);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(242, 41, 91, 0.2);
}

.step-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-subtitle {
  font-size: 1.125rem;
  color: #d1d5db;
  line-height: 1.5;
}

/* Form Fields */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 1rem;
  padding-bottom: 1rem;
}

.fields-grid::-webkit-scrollbar {
  width: 6px;
}

.fields-grid::-webkit-scrollbar-track {
  background: transparent;
}

.fields-grid::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field-group.full-width {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.field-label i {
  color: var(--primary);
  font-size: 0.875rem;
}

.field-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.field-input::placeholder {
  color: #9ca3af;
}

.field-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(242, 41, 91, 0.1);
  box-shadow: 0 0 0 3px rgba(242, 41, 91, 0.2);
}

/* Base Choices Buttons */
.choices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.choice-btn {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1rem;
  border-radius: 16px;
  cursor: pointer;
  color: #e5e7eb;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.choice-btn i {
  font-size: 1.75rem;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.choice-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.choice-btn.selected,
.choice-img-btn.selected {
  background: rgba(242, 41, 91, 0.2);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(242, 41, 91, 0.4);
}

.choice-btn.selected i {
  color: var(--primary);
}

/* Image Choice Buttons */
.choices-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.choice-img-btn {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  cursor: pointer;
  color: #e5e7eb;
  padding: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.choice-img-btn img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.choice-img-btn .placeholder-img {
  width: 100%;
  height: 140px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #9ca3af;
}

.choice-img-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Navigation Bottom */
.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, var(--bg-dark) 20%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
  outline: none;
  backdrop-filter: blur(5px);
}

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

.btn-prev:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-next {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(242, 41, 91, 0.5);
}

.btn-next:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(242, 41, 91, 0.7);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* Animations */
@keyframes shake {

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

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
  .step-title {
    font-size: 2rem;
  }

  .fields-grid {
    grid-template-columns: 1fr;
  }

  .app-container {
    padding: 1.5rem;
  }

  .nav-bottom {
    padding: 1.5rem;
    background: var(--bg-dark);
  }
}