:root {
  --primary: #004b42;
  --primary-dark: #00221e;
  --secondary: #169f80;
  --accent: #ceef01;
  --text-on-dark: #ffffff;
  --text-secondary: #cbd5e1;
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-focus: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(0, 75, 66, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--text-on-dark);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.brand-header {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 50px;
}

.brand-header img {
    align-self: center;
  width: 150px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.brand-header img:hover {
  opacity: 1;
}

.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 101;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(206, 239, 1, 0.5);
  border-radius: 0 4px 4px 0;
}

#form-wrapper {
  width: 100%;
  max-width: 760px;
  height: 80vh;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.step-container {
  height: 50%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.05, 1);
}

.step {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 12%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  visibility: hidden;
}

.step.active {
  opacity: 1;
  visibility: visible;
}

.content {
  width: 100%;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

h1.main-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

p.main-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.question-label {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.question-label span.required {
  color: var(--accent);
  margin-left: 6px;
}

.question-help {
  display: block;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.input-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"] {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.2rem;
  color: var(--text-on-dark);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-bottom: 3px solid var(--border-color);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
}

input:focus {
  border-bottom-color: var(--accent);
  background: var(--input-focus);
  box-shadow: 0 10px 20px -10px rgba(0,0,0,0.2);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
}

.controls {
  margin-top: 35px;
  display: flex;
  align-items: center;
  gap: 20px;
}

button.main-btn {
  background-color: var(--accent);
  color: var(--primary-dark);
  padding: 16px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(206, 239, 1, 0.3);
}

button.main-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(206, 239, 1, 0.5);
  background-color: #dcfc05;
}

button.back-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px;
  transition: color 0.2s;
}

button.back-btn:hover {
  color: var(--text-on-dark);
}

.press-enter {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-left: auto;
}

.press-enter b {
  color: var(--accent);
}

.scroll-area {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 15px;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) transparent;
}

.scroll-area::-webkit-scrollbar {
  width: 6px;
}

.scroll-area::-webkit-scrollbar-thumb {
  background-color: var(--secondary);
  border-radius: 10px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.option-card {
  padding: 18px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--input-bg);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.option-card:hover {
  border-color: var(--secondary);
  background: rgba(22, 159, 128, 0.15);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: var(--accent);
  background: rgba(206, 239, 1, 0.15);
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(206, 239, 1, 0.1);
}

.success-icon {
  font-size: 5rem;
  color: var(--accent);
  margin-bottom: 20px;
  animation: scaleUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .brand-header {
    top: 25px;
    left: 25px;
  }
  .brand-header img {
    width: 110px;
  }
  #form-wrapper {
    height: 100vh;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .step {
    padding: 0 8%;
  }
  h1.main-title {
    font-size: 1.8rem;
  }
  .question-label {
    font-size: 1.2rem;
  }
  input[type="text"], input[type="email"], input[type="number"], input[type="url"] {
    font-size: 1.05rem;
    padding: 14px 16px;
  }
  .press-enter {
    display: none;
  }
}

/* Ajustes para telas menores de notebook (ex: 1280x800, 1366x768) */
@media (max-width: 1366px) {
  .brand-header {
    padding: 30px;
  }
  
  .brand-header img {
    width: 120px;
  }

  h1.main-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  p.main-description {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .question-label {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .question-help {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }

  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="url"] {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .controls {
    margin-top: 24px;
  }

  button.main-btn {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .option-card {
    padding: 12px 10px;
    font-size: 0.95rem;
  }

  .options-grid {
    gap: 10px;
  }
  
  .input-stack {
    gap: 12px;
  }
  
  #form-wrapper {
    height: 85vh; /* Dá um pouco mais de espaço vertical se necessário */
  }
}