/* ---------------------------------- */
/* --- 1. Root & General Styles --- */
/* ---------------------------------- */
:root {
  --white: #ffffff;
  --light_gray: #f9f9f9; /* Using a light gray for backgrounds */
  --border_gray: #dfdfdf;
  --darker_blue: #00004e;
  --lightest_blue: #3297f3;
  --light_blue: #013fe2;
  --dark_blue: #0000c9;
  --black: #222222;
  --blue: #013fe2;
}

/* This wrapper centers the content and gives it a max-width */
.iws-landing-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--black);
  /* max-width: 1100px; */
  margin: 0 auto;
  padding: 20px;
}

/* General styles for all main sections */
.iws-landing-page .lp-section {
  padding: 40px 20px;
  text-align: center;
}

/* Headings */
.iws-landing-page h1 {
  font-size: 40px; /* 2.5rem */
  font-weight: 700;
  line-height: 1.2;
  color: var(--darker_blue);
  margin-bottom: 15px;
}

.iws-landing-page h2 {
  font-size: 32px; /* 2rem */
  font-weight: 600;
  color: var(--darker_blue);
  margin-bottom: 30px;
}

.iws-landing-page h3 {
  font-size: 22px; /* 1.4rem */
  font-weight: 600;
  color: var(--darker_blue);
  margin-bottom: 10px;
}

/* Paragraphs */
.iws-landing-page p {
  font-size: 18px; /* 1.1rem */
  color: #555;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

/* Lists */
.iws-landing-page ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 10px;
  text-align: left;
}

.iws-landing-page li {
  font-size: 16px; /* 1rem */
  margin-bottom: 8px;
}

/* ---------------------------------- */
/* --- 2. Section Specific Styles --- */
/* ---------------------------------- */

/* Hero Section */
.iws-landing-page .hero-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Call to Action Button */
.iws-landing-page .cta-button {
  display: inline-block;
  background-color: var(--darker_blue);
  color: var(--white);
  padding: 15px 30px;
  font-size: 18px; /* 1.1rem */
  font-weight: 600;
  text-decoration: none;
  border-radius: 15px;
  transition: background-color 0.3s ease;
}

.iws-landing-page .cta-button:hover {
  color: #00004e;
  background: transparent;
  border: 2px solid var(--darker_blue);
}

/* Stats Section */
.iws-landing-page .stats-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;
  background-color: var(--light_gray);
  border-radius: 8px;
}

.iws-landing-page .stat-item {
  display: flex;
  flex-direction: column;
  flex-basis: 300px; /* Each item will try to be 300px wide */
  padding: 20px;
}

.iws-landing-page .stat-item strong {
  font-size: 19px; /* 1.2rem */
  color: var(--darker_blue);
  margin-bottom: 5px;
}

.iws-landing-page .stat-item span {
  font-size: 16px; /* 1rem */
  color: #444;
}

/* Solutions Section */
.iws-landing-page .solutions-grid {
  display: grid;
  /* This creates a 2-column grid. */
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: left;
}

.iws-landing-page .solution-item {
  border: 1px solid var(--border_gray);
  border-radius: 8px;
  padding: 45px;
  background-color: var(--white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.iws-landing-page .solution-item p {
  max-width: 100%;
}

/* Callout Section */
.iws-landing-page .callout-section {
  background-color: var(--darker_blue);
  color: var(--white);
  border-radius: 8px;
  padding: 60px 30px;
}

.iws-landing-page .callout-section h2 {
  color: var(--white);
}
.iws-landing-page .callout-section p {
  color: #f0f0f0;
  margin-bottom: 30px;
}
/* Re-using the .cta-button style, but inverted */
.iws-landing-page .callout-section .cta-button {
  background-color: var(--white);
  color: var(--darker_blue);
}
.iws-landing-page .callout-section .cta-button:hover {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

/* ---------------------------------- */
/* --- 3. Ninja Forms Styles --- */
/* ---------------------------------- */

/* This targets the form section you created */
.iws-landing-page .form-section {
  background-color: var(--light_gray);
  padding: 50px;
  border-radius: 8px;
}

/* Main form wrapper */
.iws-landing-page .nf-form-content {
  max-width: 600px;
  margin: 0 auto;
}

/* Style for each form field (label + input) */
.iws-landing-page .nf-field {
  width: 100%;
  margin-bottom: 20px;
}

/* Style for labels */
.iws-landing-page .ninja-forms-field-label label {
  font-size: 16px; /* 1rem */
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  text-align: left;
  color: var(--black);
}

/* Style for text inputs, textareas, and selects */
.iws-landing-page .ninja-forms-field {
  width: 100%;
  height: 45px;
  padding: 10px;
  font-size: 16px; /* 1rem */
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* Important for padding */
}

/* Specific style for textareas */
.iws-landing-page .textarea-field {
  height: 120px;
}

/* Style for the submit button */
.iws-landing-page .nf-button .ninja-forms-field {
  width: 100%;
  background-color: var(--blue);
  color: var(--white);
  font-size: 18px; /* 1.1rem */
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 15px;
  transition: background-color 0.3s ease;
}

.iws-landing-page .nf-button .ninja-forms-field:hover {
  background-color: var(--dark_blue);
}

/* ---------------------------------- */
/* --- 4. Responsive (Mobile) --- */
/* ---------------------------------- */

/* For screens smaller than 768px (tablets/phones) */
@media (max-width: 768px) {
  .iws-landing-page .stats-section {
    flex-direction: column; /* Stack stats vertically */
    text-align: center;
  }

  .iws-landing-page .solutions-grid {
    /* Stack solutions in a single column */
    grid-template-columns: 1fr;
  }

  .iws-landing-page h1 {
    font-size: 32px; /* 2rem */
  }

  .iws-landing-page h2 {
    font-size: 28px; /* 1.7rem */
  }
}
