/* GLP Growth Blueprint Form — Native Replacement for Typeform */
.glp-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.glp-form-overlay.active {
  opacity: 1;
  visibility: visible;
}

.glp-form-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  background: #0a0a0a;
  border: 1px solid rgba(250, 120, 91, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(250, 120, 91, 0.08);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glp-form-overlay.active .glp-form-modal {
  transform: scale(1) translateY(0);
}

.glp-form-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #999;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
}
.glp-form-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Progress bar */
.glp-form-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}
.glp-form-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #FA785B, #ff9a7a);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0 2px 2px 0;
}

/* Steps container */
.glp-form-body {
  position: relative;
  padding: 48px 48px 32px;
  min-height: 320px;
}

.glp-form-step {
  position: absolute;
  top: 48px;
  left: 48px;
  right: 48px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  visibility: hidden;
}
.glp-form-step.active {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}
.glp-form-step.exit-left {
  transform: translateX(-40px);
  opacity: 0;
}

.glp-form-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(250, 120, 91, 0.12);
  color: #FA785B;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 16px;
}

.glp-form-question {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}

.glp-form-input {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.3s;
  caret-color: #FA785B;
}
.glp-form-input:focus {
  border-bottom-color: #FA785B;
}
.glp-form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.glp-form-textarea {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 400;
  outline: none;
  resize: none;
  min-height: 100px;
  transition: border-color 0.3s;
  caret-color: #FA785B;
}
.glp-form-textarea:focus {
  border-bottom-color: #FA785B;
}
.glp-form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* Contact fields (step 5) — 2-column grid */
.glp-form-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 8px;
}

.glp-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.glp-form-field.full-width {
  grid-column: 1 / -1;
}

.glp-form-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.glp-form-field .glp-form-input {
  font-size: 16px;
  padding: 12px 0;
}

/* Phone input with flag */
.glp-form-phone-wrap {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s;
}
.glp-form-phone-wrap:focus-within {
  border-bottom-color: #FA785B;
}
.glp-form-phone-flag {
  font-size: 20px;
  margin-right: 8px;
  user-select: none;
}
.glp-form-phone-prefix {
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  margin-right: 4px;
  user-select: none;
}
.glp-form-phone-wrap .glp-form-input {
  border-bottom: none;
  padding: 12px 0;
  font-size: 16px;
}

/* Navigation */
.glp-form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px 32px;
}

.glp-form-nav-hint {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}
.glp-form-nav-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.glp-form-nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.glp-form-btn-back {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
  padding: 0;
}
.glp-form-btn-back:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.glp-form-btn-back:disabled {
  opacity: 0.3;
  cursor: default;
}

.glp-form-btn-next,
.glp-form-btn-submit {
  padding: 10px 28px;
  border-radius: 10px;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.glp-form-btn-next {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.glp-form-btn-next:hover {
  background: rgba(255, 255, 255, 0.14);
}

.glp-form-btn-submit {
  background: linear-gradient(135deg, #FA785B, #e85d3a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(250, 120, 91, 0.3);
}
.glp-form-btn-submit:hover {
  background: linear-gradient(135deg, #ff8a6f, #FA785B);
  box-shadow: 0 4px 28px rgba(250, 120, 91, 0.45);
  transform: translateY(-1px);
}
.glp-form-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Validation error */
.glp-form-error {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #ef4444;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.glp-form-error.show {
  opacity: 1;
  transform: translateY(0);
}

/* Welcome screen */
.glp-form-welcome {
  text-align: center;
  padding: 60px 48px;
}
.glp-form-welcome-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.glp-form-welcome h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.glp-form-welcome p {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
  line-height: 1.5;
}
.glp-form-welcome-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #FA785B, #e85d3a);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(250, 120, 91, 0.3);
}
.glp-form-welcome-start:hover {
  background: linear-gradient(135deg, #ff8a6f, #FA785B);
  box-shadow: 0 6px 32px rgba(250, 120, 91, 0.45);
  transform: translateY(-2px);
}
.glp-form-welcome-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* Success screen */
.glp-form-success {
  text-align: center;
  padding: 60px 48px;
}
.glp-form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.glp-form-success h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.glp-form-success p {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-bottom: 32px;
}
.glp-form-success-close {
  padding: 12px 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.glp-form-success-close:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Loading spinner */
.glp-form-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: glpSpin 0.6s linear infinite;
}
@keyframes glpSpin {
  to { transform: rotate(360deg); }
}

/* Branding */
.glp-form-branding {
  text-align: center;
  padding: 0 0 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .glp-form-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    height: 100%;
  }
  .glp-form-body {
    padding: 36px 24px 24px;
  }
  .glp-form-step {
    left: 24px;
    right: 24px;
    top: 36px;
  }
  .glp-form-nav {
    padding: 16px 24px 24px;
  }
  .glp-form-question {
    font-size: 20px;
  }
  .glp-form-input {
    font-size: 16px;
  }
  .glp-form-welcome {
    padding: 48px 24px;
  }
  .glp-form-contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
