/*-- -------------------------- -->
<---          Contact           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #contact-1151 {
        padding: var(--sectionPadding);
        background-color: var(--secondaryLight);
        position: relative;
        z-index: 1;
        padding-top: 10rem;
    }
    #contact-1151 .cs-container {
        width: 100%;
        /* changes to 1280px at desktop */
        max-width: 44rem;
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: stretch;
        flex-direction: column;
        column-gap: auto;
        /* 48px - 80px */
        row-gap: clamp(3rem, 6vw, 5rem);
        position: relative;
    }
    #contact-1151 .cs-content {
        /* set text align to left if content needs to be left aligned */
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: center;
    }
    #contact-1151 .cs-title {
        max-width: 30ch;
        margin: 0;
    }
    #contact-1151 .cs-picture {
        width: 100%;
        /* 240px - 300px */
        height: clamp(15rem, 35vw, 18.75rem);
        margin: 0 0 1.5rem;
        border-radius: 1.5rem;
        /* clips image corners */
        overflow: hidden;
        display: block;
        position: relative;
        box-shadow: 0 0 16px var(--primary);
    }
    #contact-1151 .cs-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 20px;
        scale: 1.115;
        object-position: center 80%;
    }
    #contact-1151 .cs-contact-text {
        font-size: 1rem;
        line-height: 1.5em;
        text-align: left;
        margin: 0 0 1.5rem;
        color: var(--bodyTextColor);
    }
    #contact-1151 .cs-ul {
    display: flex;
    flex-wrap: wrap;               /* gör att de bryts till ny rad vid behov */
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2rem;                     /* rimligt mellanrum */
    width: 100%;
    margin: 2rem 0 0 0;
    padding: 0;
    box-sizing: border-box;
    }

    #contact-1151 .cs-li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 250px;               /* växer och krymper, min 250px */
    max-width: 100%;               /* hindrar overflow */
    padding: 0.5rem;
    box-sizing: border-box;
    }
    #contact-1151 .cs-button-solid.success {
    background: #15631e ;
    color: #fff ;
    border-color: #15631e ;
    border: 2px solid #15631e;
   
    }
    #contact-1151 .cs-button-solid.success:before {
        
        color: #fff;
    }
    #contact-1151 .cs-button-solid.success:hover {
        color: #fff;
       
    }
      #contact-1151 .cs-button-solid.success:hover:before {
    width: 0%; 
    
  }
    @media (max-width: 600px) {


    #contact-1151 .cs-ul {
        justify-content: center;
    }
    #contact-1151 .cs-li {
        flex: 1 1 100%;
    }

    }

    #contact-1151 .cs-li:hover .cs-icon-wrapper {
        transform: scale(1.1);
    }
    #contact-1151 .cs-header {
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.2em;
        margin-bottom: 0.75rem;
        color: var(--primary);
        display: block;
    }
    #contact-1151 .cs-link {
        font-size: 1.2rem;
        line-height: 1.5em;
        text-decoration: none;
        color: var(--primary);
        display: block;
        position: relative;
        min-width: 16ch;
    }
    #contact-1151 .cs-link:hover {
        text-decoration: underline;
    }
    #contact-1151 .cs-icon-wrapper {
        width: 3.75rem;
        height: 3.75rem;
        margin: 0;
        border-radius: 50%;
        border: 1px solid var(--primary);
        display: flex;
        justify-content: center;
        align-items: center;
        /* prevents flexbox from squishing it */
        flex: none;
        transition: transform 0.3s;
    }
    #contact-1151 .cs-icon {
        width: 1.5rem;
        height: auto;
        display: block;
    }
    
    #contact-1151 .cs-form {
        width: 100%;
        /* 24px - 48px top and bottom */
        /* 16px - 32px left and right */
        padding: clamp(1.5rem, 5.18vw, 3rem) clamp(1rem, 4vw, 2rem);
        /* prevents flexbox from affecting height and width */
        box-sizing: border-box;
        background-color: #fff;
        border-radius: 1rem;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        box-shadow: var(--primary) 0px 0px 42px;
    }
    #contact-1151 .cs-label {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        width: 100%;
        color: var(--headerColor);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0.25rem;
    }
    #contact-1151 .cs-input {
        font-size: 1rem;
        width: 100%;
        height: 3.5rem;
        padding: 0;
        padding-left: 1.5rem;
        color: var(--headerColor);
        background-color: #f7f7f7;
        border-radius: 0.5rem;
        border: none;
        /* prevents padding from adding to height and width */
        box-sizing: border-box;
    }
    #contact-1151 .cs-input::placeholder {
        color: #7d799c;
        opacity: 0.6;
    }
    #contact-1151 .cs-textarea {
        min-height: 7.5rem;
        padding-top: 1.5rem;
        margin-bottom: 0.75rem;
        font-family: inherit;
    }
    #contact-1151 .cs-button-solid {
        font-size: 0.9rem;
        /* 46px - 56px */
        line-height: clamp(2.875em, 5.5vw, 3.5em);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: var(--secondary);
        border: none;
        min-width: 9.375rem;
        padding: 0 1.5rem;
        background-color: var(--primary);
        border-radius: 0.25rem;
        overflow: hidden;
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
        transition: color 0.3s;
        border: inset 0.125rem transparent;
    }
    #contact-1151 .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.25rem;
        transition: width 0.3s;
    }
    #contact-1151 .cs-button-solid:hover {
        color: var(--primary);
        border: inset 0.125rem var(--primary);
    }
    #contact-1151 .cs-button-solid:hover:before {
        width: 100%;
    }
    #contact-1151 .cs-submit {
        width: 100%;
        min-width: 15.8875rem;
        border-radius: 0.5rem;
    }
    #contact-1151 .cs-submit:hover {
        cursor: pointer;
    }
    #contact-1151 .cs-graphic {
        display: none;
    }
    #contact-1151 .cs-graphic1 {
        width: 13rem;
        height: auto;
        position: absolute;
        left: -7.5rem;
        top: 8.625rem;
    }
    #contact-1151 .cs-graphic2 {
        width: 12.8125rem;
        height: auto;
        position: absolute;
        right: -9.75rem;
        top: 0.5rem;
    }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #contact-1151 .cs-container {
        max-width: 80rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    #contact-1151 .cs-contact-group {
        width: 50%;
        max-width: 39.375rem;
        /* sends it to the right in the 2nd position */
        order: 2;
    }
    #contact-1151 .cs-form {
        width: 46%;
        max-width: 36.125rem;
    }
    #contact-1151 .cs-submit {
        width: auto;
    }
    
}
/* Large Desktop - 1500px */
@media only screen and (min-width: 93.75rem) {
    #contact-1151 .cs-graphic {
        display: block;
    }
}
@media only screen and (max-width: 1440px) {
    
        #contact-1151 .cs-button-solid.success {
    background: #15631e ;
    color: #fff ;
    border-color: #15631e ;
    border: 2px solid #15631e;
   
    }

}
/* -------- Kundtypväxel -------- */
#contact-1151 .cs-legend {
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  font-weight: 700;
  color: var(--headerColor);
  margin: 0 0 0.5rem 0;
}

#contact-1151 .cs-customer-type {
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0 0 0.75rem 0;
}

#contact-1151 .cs-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: #f7f7f7;
  padding: 0.4rem;
  border-radius: 0.6rem;
  border: 1px solid var(--primary);
}

#contact-1151 .cs-toggle input[type="radio"] {
  /* hide native radio but keep it accessible */
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#contact-1151 .cs-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 2.75rem;
  height: 2.75rem;
  border-radius: 0.45rem;
  font-weight: 700;
  color: var(--headerColor);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

#contact-1151 .cs-toggle-btn:focus-visible {
  outline: 3px solid rgba(25,34,70,0.2);
  outline-offset: 2px;
}

/* Active state när respektive radio är checked */
#contact-1151 #customer-private:checked + label[for="customer-private"],
#contact-1151 #customer-business:checked + label[for="customer-business"] {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Företagsfält – grid */
#contact-1151 .cs-business-fields {
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0.25rem 0 0.25rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* Visa/dölj baserat på data-attribut (se JS) */
#contact-1151 .cs-form[data-customer="Privatkund"] .cs-business-fields {
  display: none;
}
#contact-1151 .cs-form[data-customer="Företagskund"] .cs-business-fields {
  display: grid;
}

/* Desktop: gör två kolumner på business fields om plats finns */
@media (min-width: 48rem) {
  #contact-1151 .cs-form[data-customer="Företagskund"] .cs-business-fields {
    grid-template-columns: 1fr 1fr;
  }
  #contact-1151 .cs-business-fields .cs-label:nth-child(1) {
    grid-column: 1 / -1; /* Företagsnamn full bredd */
  }
}
/* Dölj Namn-fältet för Företagskunder */
#contact-1151 .cs-form[data-customer="Företagskund"] .cs-name-field {
  display: none;
}
@media (max-width: 600px) {
  #contact-1151 .cs-picture {
    width: 100vw;             /* full viewport width */
    margin-left: 50%;         /* centrera hela elementet */
    transform: translateX(-50%);
    border-radius: 0;         /* tar bort rundade hörn */
    box-shadow: none;         /* valfritt */
  }

  #contact-1151 .cs-picture img {
    left: 0;                  /* ta bort tidigare offset */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% center;  /* ← fokusera till vänster */
  }
}


 
     .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;
    }                                        