/* Basic styling for the lead generation form.  
 * The goal of this stylesheet is to approximate the look and feel of the
 * West Capital Lending application without relying on any external frameworks.
 * It uses modern CSS features and responsive design so that the form can be
 * reused on a variety of domains.  
 */

/* Reset some defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #0b214d;
  line-height: 1.6;
}

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

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #0b214d;
  text-decoration: none;
}

.nav a {
  margin-left: 1rem;
  color: #0b214d;
  text-decoration: none;
  font-size: 0.875rem;
}

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

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 0;
  background-color: #f5f5f5;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  max-width: 600px;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
}

.hero form input[type="text"] {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.hero form button {
  padding: 0.75rem;
  font-size: 1rem;
  background-color: #001f3f;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero form button:hover {
  background-color: #0b3a80;
}

/* Signup form page */
.signup {
  background-color: #ffffff;
  padding: 2rem 0;
}

.signup h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-section {
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.95rem;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.flex-row .form-group {
  flex: 1 1 250px;
}

/* Checkbox groups */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.checkbox-group input {
  margin-right: 0.5rem;
  margin-top: 3px;
}

.checkbox-group label {
  font-weight: normal;
}

/* Submit button */
.signup button[type="submit"] {
  padding: 0.75rem;
  font-size: 1rem;
  background-color: #001f3f;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease;
}

.signup button[type="submit"]:hover {
  background-color: #0b3a80;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero-content {
    max-width: 50%;
  }
  .hero-image {
    flex: 1;
    text-align: right;
  }
}