/* ============================================
   GUSTIN — Briefing Kit Instagram v2
   Mobile-first | Inter | #131313 + #CAFF00
   ============================================ */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  background-color: #131313;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: #caff00;
  color: #131313;
}

/* ---------- PROGRESS BAR ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #1f1f1f;
  z-index: 1000;
}

.progress-bar__fill {
  height: 100%;
  width: 0%;
  background-color: #caff00;
  transition: width 0.3s ease;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: rgba(19, 19, 19, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.header.is-scrolled {
  border-bottom-color: #1f1f1f;
}

.header__logo {
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.header__tag {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #131313;
  background-color: #caff00;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ---------- HERO ---------- */
.hero {
  padding: 72px 24px 56px;
  max-width: 720px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #caff00;
  border: 1px solid #2a2a2a;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero__title {
  font-weight: 900;
  font-size: clamp(34px, 9vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero__title--accent {
  color: #caff00;
}

.hero__subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #777;
  line-height: 1.7;
  max-width: 480px;
}

.hero__scroll-hint {
  margin-top: 48px;
  display: flex;
  justify-content: flex-start;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #caff00, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ---------- FORM WRAPPER ---------- */
.form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

/* ---------- ANIMATE IN (scroll reveal) ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- BLOCK (fieldset) ---------- */
.block {
  border: none;
  border-top: 1px solid #1f1f1f;
  padding: 56px 0 40px;
  margin: 0;
  position: relative;
}

.block__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 44px;
}

.block__number-wrapper {
  position: relative;
  flex-shrink: 0;
}

.block__number {
  font-weight: 900;
  font-size: clamp(24px, 5vw, 32px);
  color: #caff00;
  line-height: 1;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.block__number-bg {
  position: absolute;
  top: -14px;
  left: -6px;
  font-weight: 900;
  font-size: clamp(56px, 12vw, 80px);
  color: #ffffff;
  opacity: 0.03;
  line-height: 1;
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
}

.block__title {
  font-weight: 700;
  font-size: clamp(19px, 4vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.block__desc {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
  font-weight: 400;
}

/* ---------- FIELD ---------- */
.field {
  margin-bottom: 36px;
}

.field:last-child {
  margin-bottom: 0;
}

.field__label {
  display: block;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: #d0d0d0;
}

.field__label--sub {
  font-size: 14px;
  margin-top: 12px;
}

.field__required {
  color: #caff00;
  font-weight: 700;
  margin-left: 2px;
}

.field__optional {
  color: #444;
  font-weight: 400;
  font-size: 13px;
  margin-left: 4px;
}

.field__hint {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #555;
  margin-top: 4px;
}

/* ---------- INPUTS & TEXTAREA ---------- */
.field__input,
.field__textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  background-color: #1a1a1a;
  border: 1px solid #252525;
  border-radius: 10px;
  padding: 15px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: #3a3a3a;
}

.field__input:focus,
.field__textarea:focus {
  border-color: #caff00;
  box-shadow: 0 0 0 3px rgba(202, 255, 0, 0.1);
}

.field__textarea {
  resize: vertical;
  min-height: 110px;
}

/* ---------- RADIO & CHECKBOX (custom) ---------- */
.field__radio-group,
.field__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__radio,
.field__checkbox {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-size: 15px;
  color: #b0b0b0;
  padding: 14px 18px;
  background-color: #1a1a1a;
  border: 1px solid #222;
  border-radius: 10px;
  transition: all 0.2s ease;
  user-select: none;
}

.field__radio:hover,
.field__checkbox:hover {
  border-color: #333;
  background-color: #1e1e1e;
  color: #e0e0e0;
}

/* Esconde input nativo */
.field__radio input,
.field__checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom radio */
.field__radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s ease;
}

.field__radio input:checked ~ .field__radio-custom {
  border-color: #caff00;
}

.field__radio input:checked ~ .field__radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #caff00;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.field__radio:has(input:checked) {
  border-color: #caff00;
  background-color: rgba(202, 255, 0, 0.04);
  color: #ffffff;
}

/* Custom checkbox */
.field__checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.field__checkbox input:checked ~ .field__checkbox-custom {
  border-color: #caff00;
  background-color: #caff00;
}

.field__checkbox input:checked ~ .field__checkbox-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #131313;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.field__checkbox:has(input:checked) {
  border-color: #caff00;
  background-color: rgba(202, 255, 0, 0.04);
  color: #ffffff;
}

.field__checkbox.is-maxed {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- FIELD ERROR ---------- */
.field__error {
  display: none;
  font-size: 13px;
  font-weight: 500;
  color: #caff00;
  margin-top: 8px;
}

.field.has-error .field__error {
  display: block;
}

.field.has-error .field__input,
.field.has-error .field__textarea {
  border-color: #caff00;
  box-shadow: 0 0 0 3px rgba(202, 255, 0, 0.08);
}

.field.has-error .field__radio-group,
.field.has-error .field__checkbox-group {
  outline: 1px solid rgba(202, 255, 0, 0.4);
  outline-offset: 6px;
  border-radius: 10px;
}

/* ---------- CONDITIONAL FIELD ---------- */
.field__conditional {
  margin-top: 12px;
  padding-left: 34px;
}

/* ---------- CTA BUTTON ---------- */
.form-cta {
  padding: 48px 0 16px;
  text-align: center;
}

.form-cta__text {
  font-size: 14px;
  color: #444;
  margin-bottom: 20px;
  font-weight: 400;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #131313;
  background-color: #caff00;
  border: none;
  border-radius: 12px;
  padding: 20px 40px;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  overflow: hidden;
}

.btn-submit__arrow {
  font-size: 20px;
  transition: transform 0.25s ease;
}

.btn-submit:hover {
  background-color: #d4ff33;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(202, 255, 0, 0.2);
}

.btn-submit:hover .btn-submit__arrow {
  transform: translateX(4px);
}

.btn-submit:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- SUCCESS SCREEN ---------- */
.success-screen {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: center;
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-screen__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #caff00;
  color: #caff00;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

.success-screen__title {
  font-weight: 900;
  font-size: clamp(36px, 8vw, 56px);
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 16px;
}

.success-screen__text {
  font-size: 17px;
  font-weight: 400;
  color: #777;
  line-height: 1.7;
}

.success-screen__line {
  width: 40px;
  height: 2px;
  background-color: #caff00;
  margin: 40px auto;
}

.success-screen__footer {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 13px;
  color: #333;
  border-top: 1px solid #1a1a1a;
}

/* ---------- ERROR BANNER ---------- */
.error-banner {
  background-color: rgba(255, 68, 68, 0.06);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #ff6b6b;
  display: none;
}

.error-banner a {
  color: #caff00;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.error-banner.is-visible {
  display: block;
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .header {
    padding: 18px 40px;
  }

  .hero {
    padding: 88px 40px 64px;
  }

  .form-wrapper {
    padding: 0 40px 60px;
  }

  .block {
    padding: 64px 0 48px;
  }

  .field__radio-group,
  .field__checkbox-group {
    gap: 10px;
  }

  .btn-submit {
    width: auto;
    min-width: 320px;
  }
}

/* ============================================
   DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .header {
    padding: 20px 60px;
  }

  .hero {
    padding: 120px 0 72px;
  }

  .hero__subtitle {
    font-size: 17px;
  }

  .block__header {
    margin-bottom: 52px;
  }

  .field {
    margin-bottom: 40px;
  }

  .field__radio,
  .field__checkbox {
    padding: 16px 20px;
    transition: all 0.15s ease;
  }

  .field__radio:hover,
  .field__checkbox:hover {
    transform: translateX(4px);
  }
}