/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  background: #f6f6f6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== LAYOUT PRINCIPAL ===== */
.main-container {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px;
  max-width: 1450px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.header-section {
  background-color: #F2F2F2;
  padding: 0;
}

.header-logo {
  width: 100%;
  max-width: 929px;
  max-height: 80px;
  margin: 0 auto;
  display: block;
}

/* ===== SEÇÃO HERO ===== */
.hero-section {
  background-color: #00AAFF;
  display: flex;
  align-items: stretch;
  min-height: 600px;
}

.hero-content {
  display: flex;
  width: 100%;
  align-items: stretch;
}

/* ===== ÁREA DO E-BOOK ===== */
.ebook-area {
  flex: 1;
  background: #00AAFF;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  position: relative;
}

.ebook-image {
  width: 470px;
  min-width: 230px;
  object-fit: cover;
  object-position: top center;
}

.ebook-image-mobile {
  display: none;
}

.ebook-text-content {
  flex: 1;
  padding: 0 0 0 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-family: 'Lato', Arial, sans-serif;
}

.ebook-tag {
  background: #182663;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  display: inline-block;
  padding: 8px 27px;
  margin-bottom: 22px;
  margin-top: 160px;
  letter-spacing: 0.5px;
  align-self: flex-start;
  font-family: 'Lato', Arial, sans-serif;
}

.ebook-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  text-align: left;
  font-family: 'Lato', Arial, sans-serif;
  letter-spacing: 0;
  white-space: pre-line;
  text-transform: uppercase;
}

.ebook-description {
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
  font-family: 'Lato', Arial, sans-serif;
  text-align: left;
  margin: 0;
  font-weight: 400;
  max-width: 340px;
  white-space: pre-line;
  margin-top: 30px;
}

.ebook-description strong {
  color: #fff;
  font-weight: 700;
}

.ebook-gradient-bar {
  width: 100%;
  max-width: 700px;
  height: 20px;
  position: absolute;
  bottom: 0;
  background: linear-gradient(90deg, #12A6E5 0%, #3DC5E7 50%, #89C3A1 100%);
}

/* ===== ÁREA DO FORMULÁRIO ===== */
.form-area {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-image: url('https://image.energia.engie.com.br/lib/fe2b117473640478711d73/m/1/9c351f08-e128-419a-9b36-e6d484794212.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-form {
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.45) 0px 10px 25px;
  max-width: 450px;
  width: 100%;
  text-align: center;
  transform: translateY(60px);
  font-family: 'Lato', Arial, sans-serif;
}

.form-title {
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 48px;
  color: #222B61;
  font-family: 'Lato', Arial, sans-serif;
  line-height: 28px;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-label {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #222B61;
  text-align: center;
  width: 100%;
  margin-bottom: 5px;
  display: block;
}

.form-input {
  width: 100%;
  max-width: 350px;
  padding: 5px 15px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 16px;
  font-family: 'Lato', Arial, sans-serif;
  color: #333;
  background-color: white;
}


.form-select-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
}

.form-select {
  width: 100%;
  max-width: 350px;
  padding: 8px 15px;
  border: 1px solid #009DDC;
  border-radius: 20px;
  font-size: 16px;
  background-color: white;
  appearance: none;
  cursor: pointer;
  text-align: center;
  color: #555;
  font-family: 'Lato', Arial, sans-serif;
}

.form-select-wrapper::after {
  content: "▼";
  font-size: 12px;
  color: #009DDC;
  position: absolute;
  top: 18px;
  right: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 30px 0 20px 0;
  padding: 0 20px;
}

.form-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #009DDC;
  border-radius: 6px;
  background-color: white;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}

.form-checkbox:checked {
  background-color: #009DDC;
  border-color: #009DDC;
}

.form-checkbox:checked::after {
  content: "✔";
  font-size: 12px;
  font-weight: bold;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-label {
  font-size: 12px;
  line-height: 1.4;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  flex: 1;
}

.checkbox-label a {
  color: #009DDC;
  text-decoration: underline;
}

.form-submit-button {
  background-color: #00AAFF;
  color: #ffffff;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  max-width: 238px;
  margin-top: 10px;
}

.form-submit-button:hover {
  background-color: #0088cc;
}

/* NOVO CSS ADICIONADO */
.error-message {
  color: red !important;
  font-size: 14px !important;
  margin-top: 5px !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
}

/* ===== SEÇÃO DE CONTEÚDO ===== */
.content-section {
  background: white;
  margin-top: 60px;
}

.content-title {
  font-size: 36px;
  font-family: 'Lato', Arial, sans-serif;
  color: #000066;
  font-weight: bold;
  margin-bottom: 40px;
  padding-left: 200px;
  white-space: pre-line;
}

.content-divider {
  width: 700px;
  height: 20px;
}

/* ===== GRID DE BENEFÍCIOS ===== */
.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 60px;
  font-family: 'Lato', sans-serif;
}

.benefit-item {
  width: 300px;
  text-align: left;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}

.benefit-text {
  font-size: 18px;
  line-height: 1.4;
  color: #555;
  margin: 0;
}

.benefit-text strong {
  font-weight: 700;
}

/* ===== CTA BUTTON ===== */
.cta-section {
  text-align: center;
  margin: 40px 0;
  padding: 0 20px;
}

.cta-button {
  font-size: 26px;
  font-family: Arial, sans-serif;
  color: #FFFFFF;
  background-color: #00AAFF;
  text-decoration: none;
  display: inline-block;
  padding: 15px 40px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #0088cc;
}

/* ===== FOOTER ===== */
.footer-section {
  background-color: #F2F3F3;
  padding: 20px 0;
}

.footer-logo {
  max-height: 80px;
  margin: 0 auto;
}

.footer-text {
  text-align: center;
  background-color: #F2F3F3;
  padding: 10px;
  font-size: 12px;
  color: #333;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1350px) {
  .ebook-image {
    width: 400px;
    height: 700px;
  }

  .ebook-title {
    font-size: 34px;
  }

  .ebook-tag {
    margin-top: 180px;
    margin-bottom: 0;
  }
}


@media (max-width: 1075px) {
  .hero-content {
    flex-direction: column;
  }

  .ebook-area {
    background-image: url('https://image.energia.engie.com.br/lib/fe2b117473640478711d73/m/1/9c351f08-e128-419a-9b36-e6d484794212.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 20px;
    flex-direction: column;
  }

  .ebook-image {
    width: 100%;
    height: auto;
  }

  .ebook-gradient-bar {
    width: 100%;
  }

  .ebook-text-content {
    padding: 0 20px;
  }

  .ebook-title {
    font-size: 26px;
  }

  .ebook-description {
    font-size: 18px;
  }

  .ebook-tag {
    margin-top: 20px;
  }

  .ebook-image-mobile {
    display: block;
  }

  .ebook-image-desktop {
    display: none;
  }

  .form-area {
    flex: none;
  }
}

@media (max-width: 768px) {
  .benefit-item {
    width: 100%;
    max-width: 300px;
    text-align: flex-start;
  }

  .benefit-icon {
    width: 40px;
    height: 40px;
  }

  .benefit-text {
    font-size: 16px;
  }

  .benefits-grid {
    gap: 40px 0;
    justify-content: center;
    align-items: center;
  }

  .content-divider {
    width: 60vw;
    height: 17px;
    margin-top: -5vw;
  }

  .footer-text {
    font-size: 6px;
  }
}

@media (max-width: 480px) {
  .contact-form {
    transform: none;
    margin: 0 auto;
    max-width: 95%;
    width: 95%;
    padding: 20px;
  }

  .form-area {
    padding: 10px;
  }

  .content-title {
    font-size: 18px;
    line-height: 1.2;
    text-align: left;
    max-width: 200px;
    padding-left: 20px;
    white-space: unset;
  }

  .cta-button {
    font-size: 16px;
    width: 200px;
  }

  .form-select-wrapper::after {
    right: 5px;
  }

  .form-select {
    font-size: 11px;
  }
}