:root {
  --primary: #0460D9;
  --primary-dark: #034cae;
  --primary-light: #e8f1fc;
  --primary-glow: rgba(4, 96, 217, 0.18);
  --accent-red: #e5232a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #0460D9;
  --success: #10b981;
  --error: #ef4444;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 20px 35px -5px rgba(4, 96, 217, 0.08), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 25px 40px -10px rgba(4, 96, 217, 0.2);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  background-image: 
    radial-gradient(at 0% 0%, rgba(4, 96, 217, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(229, 35, 42, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

/* Header */
.header-brand {
  text-align: center;
  margin-bottom: 24px;
}

.header-logo {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* Main Grid Layout */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .form-grid {
    grid-template-columns: 1.05fr 1.15fr;
    gap: 48px;
  }
}

/* Left Hero / Benefits Column */
.hero-content {
  padding: 10px 0;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-tag svg {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-text strong {
  display: block;
  font-size: 0.95rem;
  color: #1e293b;
}

.feature-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Right Form Card */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #2563eb 50%, var(--accent-red) 100%);
}

.form-header {
  margin-bottom: 24px;
}

.form-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Form Elements */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 540px) {
  .form-row.two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.form-group label .required {
  color: var(--accent-red);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon svg {
  width: 18px;
  height: 18px;
}

.form-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  outline: none;
}

.form-control.no-icon {
  padding-left: 14px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
}

textarea.form-control {
  padding: 12px 14px;
  resize: vertical;
  min-height: 80px;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3.5px var(--primary-glow);
}

.form-control::placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 15px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 18px rgba(4, 96, 217, 0.25);
  margin-top: 6px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-submit svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.btn-submit:hover:not(:disabled) svg {
  transform: translateX(3px);
}

/* LGPD Security note */
.form-footer-privacy {
  text-align: center;
  font-size: 0.775rem;
  color: #94a3b8;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-footer-privacy svg {
  width: 14px;
  height: 14px;
  color: #64748b;
}

/* Spinner / Loading */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-submit.loading .spinner {
  display: inline-block;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
  display: none;
}

/* Alert messages */
.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: none;
  align-items: center;
  gap: 10px;
}

.alert-box.alert-error {
  display: flex;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Success View Overlay / Transition */
.success-card {
  display: none;
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  background-color: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-icon-wrapper svg {
  width: 40px;
  height: 40px;
}

.success-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.success-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.lead-reference-box {
  background: var(--bg-body);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 24px;
}

.lead-reference-box strong {
  color: var(--primary);
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 1px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background-color: #25D366;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #1eb956;
  transform: translateY(-1px);
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
}

/* Footer */
.footer-simple {
  text-align: center;
  padding: 24px 16px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-simple a {
  color: var(--primary);
  text-decoration: none;
}
