:root {
  /*
    Updated color palette to align with the Level Quote logo. The primary
    color (#247ab4) and secondary color (#91bcd9) are pulled from the
    provided logo pack. Accent and neutral shades are kept light for
    readability. Avoid hard‑coding blues elsewhere; reference these
    variables throughout the stylesheet.
  */
  --primary-color: #247ab4;
  --secondary-color: #91bcd9;
  --accent-color: #f5f9fc;
  --text-color: #333;
  --button-hover: #1d6a98;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #ffffff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.banner {
  background-color: #ffcc00;
  color: #000;
  text-align: center;
  padding: 0.5rem;
  font-weight: bold;
  font-size: 0.9rem;
}

header {
  background-color: var(--primary-color);
  color: #fff;
}

header .logo {
  float: left;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: bold;
}

/* Logo image styling */
header .logo-img {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

header nav {
  float: right;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav li {
  display: inline-block;
  margin-left: 1rem;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

header nav a:hover {
  text-decoration: underline;
}

header::after {
  content: '';
  display: block;
  clear: both;
}

main {
  padding: 2rem 0;
}

main h1 {
  margin-top: 0;
  color: var(--primary-color);
}

section.hero {
  text-align: center;
  padding: 2rem 0;
  background-color: var(--accent-color);
  border-radius: 4px;
}

section.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-link {
  text-decoration: none;
}

button.cta {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

button.cta:hover {
  background-color: var(--button-hover);
}

footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 0;
  font-size: 0.8rem;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  text-decoration: none;
}

/* Placeholder styling */
.placeholder {
  border: 2px dashed #aaa;
  padding: 2rem;
  background-color: #fafafa;
  text-align: center;
  margin: 1rem 0;
}
.placeholder h2 {
  margin-top: 0;
  color: var(--primary-color);
}

/* Smaller print for notices */
.small-print {
  font-size: 0.8rem;
  color: #666;
}

@media (max-width: 768px) {
  header nav ul {
    text-align: center;
  }
  header nav li {
    display: block;
    margin: 0.5rem 0;
  }
  header .logo, header nav {
    float: none;
    text-align: center;
  }
}

/*
 * Form styles for native lead intake forms.
 * These rules provide a clean, modern layout with accessible inputs and
 * generous spacing. They leverage the primary palette defined above and
 * ensure focus outlines are visible for keyboard navigation.
 */
.lead-intake-form {
  max-width: 600px;
  margin: 1.5rem auto;
  background-color: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lead-intake-form .form-group {
  margin-bottom: 1rem;
}

.lead-intake-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
}

.lead-intake-form input[type="text"],
.lead-intake-form input[type="email"],
.lead-intake-form input[type="tel"],
.lead-intake-form input[type="number"],
.lead-intake-form input[type="date"],
.lead-intake-form select,
.lead-intake-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.lead-intake-form input:focus,
.lead-intake-form select:focus,
.lead-intake-form textarea:focus {
  outline: 2px solid var(--primary-color);
  border-color: var(--primary-color);
}

.lead-intake-form textarea {
  resize: vertical;
}

.lead-intake-form .form-group.inline {
  display: flex;
  gap: 1rem;
}

.lead-intake-form .form-group.inline > div {
  flex: 1;
}

.lead-intake-form .form-group label span {
  font-weight: normal;
}

.lead-intake-form .consent-text {
  font-weight: normal;
  font-size: 0.85rem;
  color: #333;
}

.lead-intake-form .consent-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.lead-intake-form .consent-text a:hover {
  text-decoration: none;
}

.lead-intake-form .error {
  color: #b20000;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
