/* ============================================================
   Halifax HVAC Landing Page — style.css
   ============================================================ */

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #5dcaa5;
  background: #111a14;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */
.left { position: relative; overflow: hidden; display: flex; flex-direction: column; }

.bg-img {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=900&q=80');
  background-size: cover; background-position: center;
  filter: brightness(0.32); z-index: 0;
}

.left-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%; padding: 2rem 2.2rem;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(93,202,165,0.15); border: 1px solid rgba(93,202,165,0.35);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.brand-name { font-size: 15px; font-weight: 600; color: #5dcaa5; line-height: 1.2; }
.brand-sub  { color: rgba(93,202,165,0.6); font-size: 11px; }

/* Headline */
.hero-text h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700; color: #5dcaa5; line-height: 1.15; margin-bottom: .75rem;
}
.hero-text p { font-size: 14px; color: rgba(93,202,165,0.8); line-height: 1.65; max-width: 340px; }

/* Photo strip */
.photos-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: .5rem 0; }
.photo-card {
  border-radius: 10px; overflow: hidden;
  aspect-ratio: 16 / 10; position: relative; background: #0a2a1f;
}
.photo-card img,
.photo-card svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 55%);
}
.photo-card .tag {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 10px; font-weight: 600; color: #5dcaa5;
  background: rgba(0,0,0,0.55); border-radius: 4px; padding: 2px 8px; letter-spacing: .04em;
}

/* Rebates */
.rebates-label { font-size: 11px; font-weight: 600; color: rgba(93,202,165,0.5); letter-spacing: .07em; margin-bottom: 8px; }
.rebates { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.rebate-card {
  background: rgba(29,158,117,0.12); border: 1px solid rgba(93,202,165,0.25);
  border-radius: 8px; padding: 10px 10px 8px; text-align: center;
}
.rebate-card .amt { display: block; font-size: 1rem; font-weight: 700; color: #5dcaa5; line-height: 1.1; margin-bottom: 3px; }
.rebate-card .lbl { font-size: 9px; color: rgba(93,202,165,0.6); line-height: 1.3; }
.rebate-footer { font-size: 10px; color: rgba(93,202,165,0.35); margin-top: 6px; }
.rebate-footer a { color: #5dcaa5; text-decoration: none; }
.rebate-footer a:hover { text-decoration: underline; }

/* ============================================================
   RIGHT PANEL
   ============================================================ */
.right {
  background: #ffffff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 2.4rem; overflow-y: auto;
}

.form-header { margin-bottom: 1.4rem; }
.form-badge {
  display: inline-block;
  background: rgba(93,202,165,0.1); color: #5dcaa5;
  border: 1px solid rgba(93,202,165,0.3);
  font-size: 11px; font-weight: 500; padding: 3px 11px; border-radius: 999px; margin-bottom: 8px;
}
.form-header h2 { font-size: 1.35rem; font-weight: 600; color: #5dcaa5; margin-bottom: 4px; }
.form-header p  { font-size: 13px; color: #5dcaa5; opacity: .8; line-height: 1.5; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg { display: flex; flex-direction: column; gap: 4px; }
.fg.full { grid-column: 1 / -1; }
.fg label { font-size: 12px; font-weight: 500; color: #5dcaa5; }
.fg label .req { color: #e24b4a; margin-left: 2px; }

.fg input,
.fg select {
  width: 100%; padding: 9px 12px;
  border: 1px solid rgba(93,202,165,0.35); border-radius: 8px;
  font-size: 14px; font-family: inherit;
  color: #5dcaa5; background: #ffffff;
  outline: none; transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
.fg input::placeholder { color: rgba(93,202,165,0.4); }
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235dcaa5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.fg input:focus,
.fg select:focus { border-color: #5dcaa5; box-shadow: 0 0 0 3px rgba(93,202,165,0.15); }
.fg input.err { border-color: #e24b4a; }
.fg input.err:focus { box-shadow: 0 0 0 3px rgba(226,75,74,0.12); }
.errmsg { font-size: 10px; color: #e24b4a; display: none; margin-top: 1px; }
.errmsg.show { display: block; }

.submit-btn {
  width: 100%; padding: 13px; background: #1d9e75; color: #fff;
  border: none; border-radius: 9px; font-size: 15px; font-weight: 600;
  cursor: pointer; margin-top: 14px; font-family: inherit; letter-spacing: .01em;
  transition: background .15s, transform .1s;
}
.submit-btn:hover   { background: #0f6e56; }
.submit-btn:active  { transform: scale(.99); }
.submit-btn:disabled { background: #9ca3af; cursor: not-allowed; }

.privacy { text-align: center; font-size: 11px; color: #5dcaa5; opacity: .6; margin-top: 8px; }

.trust-row { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.trust-pill {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: #5dcaa5;
  background: rgba(93,202,165,0.08); border: 1px solid rgba(93,202,165,0.2);
  border-radius: 999px; padding: 4px 10px;
}
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: #5dcaa5; flex-shrink: 0; }

/* Success */
.success { display: none; text-align: center; padding: 2rem 1rem; }
.success-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(93,202,165,0.1); border: 2px solid #5dcaa5;
  margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #5dcaa5; font-weight: 700;
}
.success h3 { font-size: 1.2rem; font-weight: 600; color: #5dcaa5; margin-bottom: 6px; }
.success p  { font-size: 13px; color: #5dcaa5; opacity: .8; line-height: 1.6; max-width: 320px; margin: 0 auto; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .page { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .left { min-height: 60vh; }
  .right { padding: 1.75rem 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .fg.full { grid-column: 1; }
  .rebates { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.6rem; }
  .photos-strip { grid-template-columns: 1fr; }
}
