/*========================================
=               Banner                   =
========================================*/
#banner {
  position: relative;
  padding: var(--sectionPadding);
  background: linear-gradient(135deg, #1f1f1f 0%, #282828 100%);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20rem;
  text-align: center;
}
#banner .banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}
#banner .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-inline: 1rem;
}
#banner .container h1 {
  font-size: 2rem;
  margin: 0;
}

/* Tablet */
@media (min-width: 48rem) {
  #banner {
    min-height: 25rem;
  }
  #banner .container h1 {
    font-size: 3rem;
  }
}

/* Desktop */
@media (min-width: 64rem) {
  #banner {
    min-height: 30rem;
  }
  #banner .container h1 {
    font-size: 3.5rem;
  }
}

/*======================================
=             Kontaktsektion           =
======================================*/
#contact {
  padding: var(--sectionPadding);
  position: relative;
  z-index: 1;
}
#contact .container {
    width: 100%;
    max-width: 100rem;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3.25rem;
}
#contact .content {
  display: flex;
  flex-direction: column;
}
#contact .content h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0;
}
#contact .content h3 {
  font-size: 1.1rem;
  margin-top: 5rem;
}
#contact .content .text {
  line-height: 1.8;
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--dark);
}
#contact .form {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 60rem;
}
#contact .tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
#contact .tab {
  padding: .7rem 2rem;
  background: #e5e5e5;
  border: none;
  border-radius: .5rem;
  cursor: pointer;
  font-weight: 600;
  transition: .25s ease;
}
#contact .tab.active {
  background: var(--primary);
  color: #fff;
}
#contact form {
  display: grid;
  gap: 1.2rem;
}
#contact .label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: 1rem;
}
#contact .input {
  background: #efefef;
  border-radius: .5rem;
  padding: 1rem;
  border: none;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
}
#contact .input::placeholder {
  color: #7d799c;
  opacity: 0.6;
}
#contact .textarea {
  min-height: 7.5rem;
  padding-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-family: inherit;
  resize: vertical;
  max-height: 15rem;
  overflow-y: auto;
}
#service-checkboxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
  margin-top: .7rem;
  padding: .5rem 0;
}
#service-checkboxes label {
  display: flex;
  align-items: center;
  gap: .8rem;
  cursor: pointer;
  padding: .7rem 1rem;
  background: #f5f5f5;
  border-radius: .5rem;
  transition: .2s;
  border: 1px solid #ddd;
}
#service-checkboxes label:hover {
  background: #ededed;
  border-color: var(--primary);
}
#service-checkboxes input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--primary);
}
#contact .cs-button-solid {
  border: none;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  margin: 1rem auto 0 auto;
  display: block;
  padding: 0.2rem 2rem;
  grid-column: 1 / -1;
}

/*======= TABLET 768p =======*/

@media (min-width: 48rem) {
  #contact form {
    grid-template-columns: repeat(2, 1fr);
  }
  #contact textarea,
  #contact .label:nth-child(1),
  #contact .label:nth-child(4),
  #contact .label:nth-child(5) {
    grid-column: 1 / 3;
  }
  #service-checkboxes {
    grid-template-columns: repeat(2, 1fr);
  }
  #contact .content {
    margin: 0 auto;
    max-width: 42rem;
  }
  #contact .content h2 {
    font-size: 2.4rem;
  }
  #contact .content .text {
    font-size: 1.1rem;
    max-width: 42rem;
  }
}

/*======= DESKTOP 1024px =======*/

@media (min-width: 78.375rem) {
  #contact .container {
    flex-direction: row;
    align-items: flex-start;
    gap: 5rem;
    padding: 0 4rem;
  }
  #contact .content {
    flex: 1;
    padding: 0 2rem;
  }
  #contact .content p {
    margin-right: 2rem;
  }
  #contact .form {
    flex: 1;
    max-width: 40rem;
    padding: 3rem;
  }
  #contact form {
    grid-template-columns: repeat(2, 1fr);
  }
  #service-checkboxes {
    grid-template-columns: repeat(2, 1fr);
  }
  #contact .content h2 {
    font-size: 2.8rem;
  }
  #contact .content h3 {
    font-size: 1.4rem;
  }
}

/*======= EXTREMT SMÅ SKÄRMAR 360px =======*/

@media (max-width: 25rem) {
  #banner, #contact {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  #contact .form {
    padding: 1rem;
  }
  #contact .input,
  #contact .textarea {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  #service-checkboxes label {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

/*======================================
=         Kontaktinformation           =
======================================*/

@media only screen and (min-width: 0rem) {
  #contact-strip-325 {
    padding: var(--sectionPadding);
    background-color: #282828;
  }
  #contact-strip-325 .cs-stat-group {
    width: 100%;
    max-width: 37.5rem;
    margin: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
  }
  #contact-strip-325 .cs-item {
    list-style: none;
    width: 18.125rem;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 6rem;
  }
  #contact-strip-325 .cs-item:hover .cs-picture {
    background-color: var(--secondary);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transform: scale(1.05);
  }
  #contact-strip-325 .cs-picture {
    width: 5rem;
    height: 5rem;
    background-color: var(--primary);
    margin-right: clamp(0.75rem, 3vw, 1.25rem);
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.6s;
    flex: none;
  }
  #contact-strip-325 .cs-flex-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }
  #contact-strip-325 .cs-header {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2em;
    margin: 0 0 0.75rem 0;
    color: var(--white);
    display: block;
  }
  #contact-strip-325 .cs-link {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    text-decoration: none;
    color: var(--white);
    display: block;
    transition: color 0.3s;
  }
  #contact-strip-325 .cs-link:hover {
    color: var(--secondary);
  }
  #contact-strip-325 .cs-icon-wrapper {
    position: relative;
    width: 1.8rem;
    height: 1.8rem;
  }
  #contact-strip-325 .cs-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
  }
  #contact-strip-325 .cs-icon-default {
    opacity: 1;
  }
  #contact-strip-325 .cs-icon-hover {
    opacity: 0;
  }
  #contact-strip-325 .cs-item:hover .cs-icon-default {
    opacity: 0;
  }
  #contact-strip-325 .cs-item:hover .cs-icon-hover {
    opacity: 1;
  }
  #contact-strip-325 .em {
    color: white;
    text-decoration: none;
  }
  #contact-strip-325 .em:hover {
    color: var(--secondary);
  }
}

/*======= TABLET 768px =======*/

@media (min-width: 48rem) and (max-width: 63.99rem) {
  #contact-strip-325 .cs-stat-group {
    flex-direction: row;
    gap: 2rem;
  }
  #contact-strip-325 .cs-picture {
    width: 4rem;
    height: 4rem;
  }
  #contact-strip-325 .cs-header {
    font-size: 1rem;
  }
  #contact-strip-325 .cs-link {
    font-size: 0.7rem;
  }
  #contact-strip-325 .cs-stat-group > li:nth-child(3) .cs-header {
    padding-top: 1rem;
  }
}

/*======= DESKTOP 1024px =======*/

@media (min-width: 64rem) {
  #contact-strip-325 .cs-stat-group {
    flex-direction: row;
    max-width: 80rem;
    justify-content: space-evenly;
    flex-wrap: nowrap;
  }
  #contact-strip-325 .cs-stat-group > li:nth-child(3) .cs-header {
    padding-top: 1.5rem;
  }
}
