/*-- -------------------------- -->
<---   Side By Side Reverse     -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #sbsr-92 {
    padding: var(--sectionPadding);
    background-color: var(--secondaryLight);
    padding-bottom: 1rem;
  }
  #sbsr-92 .cs-container {
    width: 100%;
    /* changes to 1280px at tablet */
    max-width: 34.375rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #sbsr-92 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    max-width: 39.375rem;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }

  #sbsr-92 .cs-text {
    max-width: 35.125rem;
    margin-bottom: 1rem;
  }
  #sbsr-92 .cs-text:last-of-type {
    margin-bottom: 2rem;
  }
  #sbsr-92 .cs-picture {
    width: 100%;
    position: relative;
    display: block;
    /* width divided by height */
    aspect-ratio: 1.30909091;
    box-shadow: var(--primary) 0 0 42px;
  }

  #sbsr-92 .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #sbsr-92 {
    overflow: visible;
  }
  #sbsr-92 .cs-container {
    max-width: 80rem;
    justify-content: space-between;
    align-items: center;
    /* set flexbox back to the row orientation */
    flex-direction: row;
  }
  #sbsr-92 .cs-picture {
    max-height: 24rem;
    max-width: auto;
    order: 2;
  }
}

/*-- -------------------------- -->
<---          Contact           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #cs-contact-490 {
    padding: var(--sectionPadding);
    background-color: var(--secondaryLight);
  }
  #cs-contact-490 .cs-container {
    width: 100%;
    /* changes to 1280px at desktop */
    max-width: 34.375rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
  }
  #cs-contact-490 .cs-content {
    max-width: 32.625rem;
    text-align: left;
  }
  #cs-contact-490 .cs-text {
    margin-bottom: 1rem;
  }
  #cs-contact-490 .cs-text:last-of-type {
    margin-bottom: 3rem;
  }
  #cs-contact-490 .cs-header {
    /* 13px - 16px */
    font-size: clamp(0.8125rem, 1.5vw, 1rem);
    line-height: 1.2em;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0 0 1rem 0;
    color: var(--primary);
    display: block;
  }
  #cs-contact-490 .cs-link {
    /* 16px - 20px */
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-decoration: none;
    line-height: 1.5em;
    font-weight: 700;
    /* 16px - 32px */
    margin: 0 0 clamp(1rem, 2.5vw, 2rem);
    color: #000000;
    display: block;
  }
  #cs-contact-490 .cs-link:hover {
    text-decoration: underline;
  }
  #cs-contact-490 .cs-link:last-of-type {
    margin-bottom: 0;
  }
  #cs-contact-490 #cs-form-490 {
    width: 100%;
    max-width: 40.625rem;
    /* 32px - 40px */
    margin-bottom: clamp(2rem, 5.3vw, 2.5rem);
    /* 20px - 40px */
    padding: clamp(1.25rem, 4.5vw, 2.5rem);
    /* prevents padding from affecting width and height */
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid var(--primary);
    border-radius: 1rem;
  }
  #cs-contact-490 .cs-label {
    /* 14px - 16px */
    font-size: clamp(0.875rem, 1.3vw, 1rem);
    line-height: 1.5em;
    font-weight: 700;
    /* 16px - 20px */
    margin-bottom: clamp(1rem, 1em, 1.25rem);
    color: var(--headerColor);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
  }
  #cs-contact-490 .cs-label-message {
    /* 32px - 40px */
    margin-bottom: clamp(2rem, 4.5vw, 2.5rem);
  }
  #cs-contact-490 .cs-input,
  #cs-contact-490 textarea {
    font-size: 1rem;
    width: 100%;
    height: 4rem;
    margin-top: 0.25rem;
    padding-left: 1.25rem;
    /* set transparent border so on hover border doesn't make it glitch */
    border: 1px solid transparent;
    border: 1px solid #b4b2c7a1;
    background: #fafafa;
    /* prevents border & padding from affecting height */
    box-sizing: border-box;
    transition: border 0.3s;
  }
  #cs-contact-490 .cs-input:hover,
  #cs-contact-490 textarea:hover {
    border: 1px solid var(--primary);
  }
  #cs-contact-490 .cs-input::placeholder,
  #cs-contact-490 textarea::placeholder {
    color: #7d799c;
  }
  #cs-contact-490 textarea {
    font-family: inherit;
    margin: 0;
    padding-top: 1.25rem;
    min-height: 7.5rem;
  }
  #cs-contact-490 .cs-button-solid {
    font-size: 1rem;
    /* 46px - 56px */
    line-height: clamp(2.875em, 5.5vw, 3.5em);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: auto;
    width: 100%;
    color: #fff;
    padding: 0 1.5rem;
    background-color: var(--primary);
    border: none;
    border-radius: 0.5rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
    border: 2px solid transparent;
  }
  #cs-contact-490 .cs-button-solid:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: #fff;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0.5rem;
    transition: width 0.3s;
  }
  #cs-contact-490 .cs-button-solid:hover {
    cursor: pointer;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    border-radius: 0.6rem;
  }
  #cs-contact-490 .cs-button-solid:hover:before {
    width: 100%;
  }
}
/* Tablet - 700px */
@media only screen and (min-width: 43.75rem) {
  #cs-contact-490 .cs-container {
    max-width: 80rem;
    flex-direction: row;
    justify-content: space-between;
  }
  #cs-contact-490 .cs-content {
    width: 40%;
    /* pushes it to the right */
    order: 2;
    flex: none;
  }
  #cs-contact-490 #cs-form-490 {
    margin: 0;
  }
}
/* ---------- Flerfilsuppladdning (kontaktformulär) ---------- */
#cs-contact-490 .cs-file {
  border: 1px dashed #b4b2c7;
  background: #fafafa;
  padding: 1rem;
  height: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

#cs-contact-490 .cs-file:hover {
  border-color: var(--primary);
  background: #fff;
}

#cs-contact-490 .cs-file::file-selector-button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
  margin-right: 0.75rem;
}

#cs-contact-490 .cs-file::file-selector-button:hover {
  background: var(--accentDetail);
}

#cs-contact-490 .cs-hint {
  font-size: 0.9rem;
  color: #7d799c;
  margin-top: 0.4rem;
  display: block;
  line-height: 1.4;
}
/* Lista över valda filer */
#cs-contact-490 .cs-file-list {
  list-style: none;
  padding: 0.5rem 0 0 0;
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

#cs-contact-490 .cs-file-list li {
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 0.4rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#cs-contact-490 .cs-file-list li span {
  word-break: break-all;
}

#cs-contact-490 .cs-file-list li::before {
  content: "📄";
  margin-right: 0.5rem;
}

.cs-contact-link {
  color: var(--headerColor);
  text-decoration: none;
}
.cs-contact-link:hover {
  color: var(--primary);
  text-decoration: underline;
}
#cs-contact-490 .cs-button-solid {
  margin-top: 1rem;
}
  #cs-contact-490 .cs-button-solid.success {
  background: #15631e ;
  color: #fff ;
  border-color: #15631e ;
  box-shadow: 0 2px 8px rgba(46,204,64,0.15);
  }
    #cs-contact-490 .cs-button-solid.success:hover:before {
    width: 0%; 
  }
/* ===============================
   Kontaktinfo med ikoner (cirklar + justerad layout)
   =============================== */
#cs-contact-490 .cs-contact-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: start;
  column-gap: 1rem;
  margin-bottom: 1.5rem;
}

#cs-contact-490 .cs-contact-row:last-of-type {
  margin-bottom: 0;
}

/* Cirklar runt ikonerna */
#cs-contact-490 .cs-contact-row .cs-icon {
  width: 20px;
  height: 20px;
  padding: 10px; /* mellanrum mellan ikon och border */
  border: 2px solid var(--primary);
  border-radius: 50%;
  box-sizing: content-box;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff; /* håller bakgrunden ren */

  transition: all 0.3s ease;
}

/* Hovereffekt på ikonen när man hovrar länken */
#cs-contact-490 .cs-contact-row:hover .cs-icon {
  transform: scale(1.2);
}

#cs-contact-490 .cs-contact-row .cs-header {
  margin-bottom: 0.25rem;
  display: block;
}

#cs-contact-490 .cs-contact-row .cs-link {
  display: inline-block;
  margin: 0;
}

.cs-topper {
  /* 16px - 20px */
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.2em;
  text-transform: uppercase;
  text-align: inherit;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}
.cs-topper:before {
  /* decorative line */
  content: "";
  /* 16px - 32px */
  width: clamp(1rem, 3vw, 2rem);
  height: 2px;
  background: var(--accentDetail);
  opacity: 1;
  position: relative;
  display: block;
}
