/* ============================================================
   i-BnB — MVP Scope & Budget Checklist Lead Capture Section
   Modular, standalone SaaS dark theme stylesheet
   ============================================================ */

.ibnb-lead-section {
  position: relative;
  background: #110a09;
  background: radial-gradient(ellipse at 50% -20%, rgba(211, 24, 42, 0.15), transparent 70%),
              linear-gradient(180deg, #160e0d 0%, #0d0707 100%);
  color: #fdf8f7;
  padding: 88px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ibnb-lead-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Header Content */
.ibnb-lead-header {
  max-width: 680px;
  margin-bottom: 40px;
}

.ibnb-lead-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(211, 24, 42, 0.12);
  border: 1px solid rgba(211, 24, 42, 0.3);
  border-radius: 999px;
  color: #ff6b7a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ibnb-lead-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.ibnb-lead-title .ibnb-accent {
  color: #d3182a;
  background: linear-gradient(135deg, #ff4d5e 0%, #d3182a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ibnb-lead-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: #baa8a5;
  margin: 0 auto;
}

/* Card & Form Container */
.ibnb-lead-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ibnb-lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

/* Form Inputs Grid (2x2 layout on desktop, 1 column on mobile) */
.ibnb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}

.ibnb-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ibnb-label {
  font-size: 13px;
  font-weight: 500;
  color: #dfd3d1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ibnb-req {
  color: #ff4d5e;
}

.ibnb-opt {
  font-size: 11px;
  color: #8c7a77;
  font-weight: 400;
}

.ibnb-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #ffffff;
  font-size: 14.5px;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.ibnb-input::placeholder {
  color: #7a6b68;
}

.ibnb-input:focus {
  border-color: #d3182a;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(211, 24, 42, 0.25);
}

.ibnb-input.is-invalid {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.ibnb-field-error {
  font-size: 11.5px;
  color: #f87171;
  min-height: 16px;
  display: block;
}

/* Action & Submit Button */
.ibnb-form-action {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.ibnb-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 36px;
  background: #d3182a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px -4px rgba(211, 24, 42, 0.5);
}

.ibnb-submit-btn:hover:not(:disabled) {
  background: #e22538;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(211, 24, 42, 0.65);
}

.ibnb-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.ibnb-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.ibnb-submit-btn .ibnb-btn-icon {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.ibnb-submit-btn:hover:not(:disabled) .ibnb-btn-icon {
  transform: translateX(4px);
}

/* Error Banner */
.ibnb-error-banner {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* Trust Text */
.ibnb-trust-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #8c7a77;
  margin: 0;
  text-align: center;
}

.ibnb-trust-icon {
  font-size: 14px;
}

/* Success State Box */
.ibnb-lead-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
  animation: ibnbFadeIn 0.3s ease-out forwards;
}

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

.ibnb-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ibnb-success-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.ibnb-success-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #baa8a5;
  max-width: 520px;
  margin-bottom: 28px;
}

.ibnb-success-desc strong {
  color: #ffffff;
}

.ibnb-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 20px;
}

.ibnb-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 32px;
  background: #22c55e;
  color: #0d2818;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px -4px rgba(34, 197, 94, 0.4);
}

.ibnb-download-btn:hover {
  background: #4ade80;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(34, 197, 94, 0.55);
}

.ibnb-success-fine {
  font-size: 13px;
  color: #8c7a77;
  margin: 0;
}

.ibnb-success-fine a {
  color: #ff6b7a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ibnb-success-fine a:hover {
  color: #ffffff;
}

/* ============================================================
   Mobile & Tablet Responsiveness
   ============================================================ */
@media (max-width: 768px) {
  .ibnb-lead-section {
    padding: 64px 20px;
  }

  .ibnb-lead-title {
    font-size: 28px;
  }

  .ibnb-lead-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .ibnb-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ibnb-submit-btn,
  .ibnb-download-btn {
    width: 100%;
  }

  .ibnb-form-action {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ibnb-lead-title {
    font-size: 24px;
  }

  .ibnb-lead-subtitle {
    font-size: 14.5px;
  }

  .ibnb-lead-card {
    padding: 24px 16px;
  }
}
