/*
Theme Name: Crazy Web Studio (Divi Child)
Template: Divi
Text Domain: Divi-child
Author: Crazy Web Studio
Author URI: https://www.crazywebstudio.co.th
*/
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 400;
}

.customer-report {
  padding: 1rem;
}

@media (min-width: 980px) {
  .customer-report {
    padding: 2rem;
  }
}

.customer-report h1,
.customer-report h2,
.customer-report h3,
.customer-report h4,
.customer-report h5 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3em;
}

.customer-report h3,
.customer-report h4 {
  text-transform: uppercase;
}

.customer-report p {
  font-size: 14px;
  line-height: 1.6em;
  padding-bottom: 1em;
}

.customer-report a {
  color: #000;
  text-decoration: underline;
}

.report-section {
  background: #ffffff;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  max-width: 1280px;
  padding: 1rem 0;
  min-height: 95vh;
}

.report-intro h1,
.report-intro h2 {
  margin-top: 0;
}

.appointment,
.appointment-header {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 1rem 0 1rem 0;
}

@media screen and (max-width: 789px) {
  .appointment-header {
    flex-direction: column-reverse;
  }
}

.appointment-header {
  padding: 1rem 0 0;
  border-top: 1px solid #ddd;
}

.appointment-branding p {
  font-size: 22px;
}

@media (min-width: 980px) {
  .appointment-info {
    width: 50%;
  }

  .appointment-branding {
    width: 50%;
  }

  .appointment-branding p {
    font-size: 26px;
    text-align: right;
  }
}

.appointment-nav {
  margin-bottom: 1rem;
}

.appointment-nav li {
  display: inline-block;
  margin-right: 1rem;
  font-size: 14px;
  line-height: 1.3em;
}

@media (min-width: 980px) {
  .air-quality__tables {
    float: left;
    width: 70%;
  }

  .air-quality__images {
    float: right;
    width: 30%;
    text-align: center;
  }
}

.air-quality .metric {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 1rem 0 1.5rem 0;
  padding: 1.5rem;
  border: 1px solid #ddd;
  background: #f9f9f9;
  border-radius: 6px;
}

@media (max-width: 979px) {
  .air-quality .metric {
    flex-direction: column;
    gap: 1rem;
  }
}


.metric__info {
  flex: 1 1 100%;
  min-width: 250px;
}

.metric__info h4 {
  font-weight: 700;
}

@media screen and (min-width: 980px) {
  .metric__recommended,
  .metric__values {
    width: calc(50% - 2rem);
  }
}

.metric__recommended p,
.metric__values p {
  margin: 0 0 .3rem;
  padding: 0;
}

.badge {
  padding: 0.25em 0.6em;
  font-weight: bold;
  border-radius: 4px;
  display: inline-block;
  color: white;
}

.badge--good {
  background-color: #2ecc71;
}

.badge--moderate {
  background-color: #f1c40f;
}

.badge--bad {
  background-color: #e74c3c;
}

.badge--unknown {
  background-color: #95a5a6;
}

/* Wall Moisture Section */
.wall-moisture__measurement,
.bacteria__measurement {
  display: flex;
  max-width: 960px;
  flex-direction: column;
  margin: 1rem 0 1.5rem 0;
  padding: 1.5rem;
  border: 1px solid #ddd;
  background: #f9f9f9;
  border-radius: 6px;
}

@media (min-width: 980px) {

  .wall-moisture__measurement,
  .bacteria__measurement {
    align-content: center;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
  }

  .wall-moisture__measurement>div,
  .bacteria__measurement>div {
    width: 25%;
  }
}

.measurement__images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}
@media screen and (min-width: 980px) {
  .measurement__images {
    flex-direction: row;
  }
}

.measurement__image {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 700;
}

/* Video and Photo Report section */
.customer-report .media .report-section__content {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

@media (min-width: 980px) {
  .customer-report .media .report-section__content {
    gap: 1rem;
  }
}

.customer-report .photos {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 600px) {
  .customer-report .photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktops: 4 columns */
@media (min-width: 980px) {
  .customer-report .media .report-section__content {
    flex-wrap: wrap;
    flex-direction: row;
  }

  .customer-report .media .report-section__content .videos {
    width: calc(30% - 1rem)
  }

  .customer-report .media .report-section__content .photos {
    width: calc(70% - 1rem)
  }

  .customer-report .photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

.customer-report .photos img {
  width: 100%;
  height: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Final Report Section */
.customer-report .notes h4 {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.customer-report table {
  margin-bottom: 1em;
}

.customer-report th,
.customer-report td {
  font-size: 14px;
  line-height: 1.3em;
  font-weight: normal;
  text-align: left;
  padding: .25rem 1rem .25rem 0;
}