/* EcoFlare Lead Form - lead.ecoflarebd.com */

:root {
  --ink: #0F172A;
  --slate: #334155;
  --muted: #6B7280;
  --cloud: #E5E7EB;
  --paper: #F8FAFC;
  --white: #fff;

  --p900: #0B3D2E;
  --p700: #115E44;
  --p500: #2CA66F;
  --p100: #C7EBDD;

  --font-primary: "Ubuntu", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius: 14px;
  --sh1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --sh2: 0 8px 24px rgba(15, 23, 42, .10);
  --focus-ring: 0 0 0 3px rgba(44, 166, 111, .18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Top bar ---------- */
.lf-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--cloud);
  position: sticky;
  top: 0;
  z-index: 20;
}
.lf-topbar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.lf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.lf-brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
}
.lf-brand-text {
  display: flex;
  flex-direction: column;
}
.lf-brand-name {
  font-family: var(--font-primary);
  font-size: 19px;
  font-weight: 700;
  color: var(--p900);
  letter-spacing: 3.5px;
  line-height: 1.15;
  white-space: nowrap;
}
.lf-brand-name em { font-style: normal; color: var(--p500); }
.lf-brand-tagline {
  font-family: "Great Vibes", cursive;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 2.5px;
  color: var(--muted);
  margin-top: -2px;
}

/* ---------- Main ---------- */
.lf-main {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 34px 20px 48px;
  flex: 1;
}

.lf-heading h1 {
  font-family: var(--font-primary);
  font-size: 27px;
  font-weight: 700;
  color: var(--p900);
  letter-spacing: -.4px;
}
.lf-heading h1 span { color: var(--p500); font-weight: 500; }
.lf-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Cards ---------- */
.lf-card {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--radius);
  box-shadow: var(--sh1);
  margin-top: 26px;
  overflow: hidden;
  animation: lf-card-in .5s cubic-bezier(.22, .61, .36, 1) both;
}
.lf-card:nth-of-type(2) { animation-delay: .08s; }
.lf-card:nth-of-type(3) { animation-delay: .16s; }
@keyframes lf-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .lf-card { animation: none; }
  .lf-check input[type="radio"]:checked::before { animation: none; }
}
.lf-card-head {
  background: linear-gradient(90deg, var(--p900), var(--p700));
  color: #fff;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lf-card-head h2 {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.lf-card-head span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .75);
  font-weight: 500;
}
.lf-card-body { padding: 22px; }

/* ---------- Fields ---------- */
.lf-field { margin-bottom: 20px; }
.lf-field:last-child { margin-bottom: 0; }
.lf-field > label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.lf-field > label small {
  font-weight: 500;
  color: var(--muted);
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  border: 1.5px solid var(--cloud);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--p500);
  background: var(--white);
  box-shadow: var(--focus-ring);
}
input::placeholder, textarea::placeholder { color: #9CA3AF; }
textarea { resize: vertical; min-height: 80px; }

.lf-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- Quantity / capacity rows ---------- */
.lf-qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.lf-qty-input {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.lf-qty-input input {
  width: 140px;
}
.lf-qty-input span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Option pills (checkbox look) ---------- */
.lf-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lf-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid var(--cloud);
  border-radius: 10px;
  background: var(--paper);
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--slate);
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.lf-check:hover { border-color: var(--p500); }
.lf-check input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  border: 1.8px solid #B6C0CC;
  border-radius: 4px;
  background: var(--white);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.lf-check input[type="radio"]::before {
  content: "";
  width: 9px;
  height: 9px;
  transform: scale(0);
  transition: transform .12s ease;
  clip-path: polygon(14% 44%, 0 62%, 40% 100%, 100% 18%, 84% 4%, 39% 71%);
  background: #fff;
}
.lf-check input[type="radio"]:checked {
  background: var(--p500);
  border-color: var(--p500);
}
.lf-check input[type="radio"]:checked::before {
  transform: scale(1);
  animation: lf-tick-pop .22s ease;
}
@keyframes lf-tick-pop {
  0% { transform: scale(0); }
  65% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.lf-check:has(input:checked) {
  background: #EDF9F3;
  border-color: var(--p500);
  color: var(--p900);
  font-weight: 600;
}
.lf-check-other { gap: 8px; }
.lf-inline-input {
  width: 170px !important;
  padding: 5px 10px !important;
  font-size: 13px !important;
  border-radius: 7px !important;
  background: var(--white) !important;
}

/* ---------- Hint box ---------- */
.lf-hint {
  background: #EDF9F3;
  border: 1px solid var(--p100);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--p900);
  margin-bottom: 20px;
}
.lf-hint strong { margin-right: 6px; }

/* ---------- Actions ---------- */
.lf-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}
.lf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--p700), var(--p500));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 30px;
  font-family: var(--font-primary);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(44, 166, 111, .28), 0 6px 16px rgba(15, 23, 42, .14);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lf-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(44, 166, 111, .34), 0 8px 18px rgba(15, 23, 42, .16);
}
.lf-btn-primary:active { transform: translateY(0); }
.lf-btn-secondary {
  background: var(--white);
  color: var(--slate);
  border: 1.5px solid var(--cloud);
  border-radius: 12px;
  padding: 14px 22px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.lf-btn-secondary:hover { border-color: var(--muted); color: var(--ink); }
.lf-actions-note {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.lf-footer {
  border-top: 1px solid var(--cloud);
  background: var(--white);
  padding: 16px 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.lf-footer a { color: var(--p700); text-decoration: none; font-weight: 600; }
.lf-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .lf-heading h1 { font-size: 22px; }
  .lf-grid-2 { grid-template-columns: 1fr; }
  .lf-card-body { padding: 18px 16px; }
  .lf-card-head { padding: 11px 16px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .lf-actions { flex-direction: column-reverse; }
  .lf-btn-primary, .lf-btn-secondary { width: 100%; justify-content: center; text-align: center; }
  .lf-actions-note { text-align: center; }
}
