/*** Styling of subscription module. ****/


/** Styling for left part, subscription form. **/

fieldset {
   display: block;
   margin:0;
    min-width: auto;
    border-style: none;
}

.subscribe-radio-wrapper {
   margin-top: 1em;
   margin-bottom: 2em;
   display: -ms-flexbox;
   display: flex;
}

.subscribe-radio-wrapper > div:first-of-type {
   margin-right: 1em;
}

.subscribe-radio-wrapper label {
  display: block;
  position: relative;
  padding-left: 55px;
  padding-top: 7px;
  cursor: pointer;
  font-size: 1em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */
.subscribe-radio-wrapper label input {
  position: absolute;
  opacity: 0;
}

/* Class for styling own radiobutton */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 40px;
  width: 40px;
  background-color: white;
  border-radius: 50%;
}

.subscribe-radio-wrapper label:focus-within input ~ .checkmark { 
  background-color: #edeff0;
  border: 2px solid #0071b8;
  box-sizing: border-box;
}

/* Backgroundcolor on hover */
.subscribe-radio-wrapper label:hover input ~ .checkmark {
  background-color: #ccc;
}

/* Selected radio background */
.subscribe-radio-wrapper label input:checked ~ .checkmark {
   background-color: white;
}

/* initially hidden "selected"-Dot */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.subscribe-radio-wrapper label input:checked ~ .checkmark:after {
  display: block;
}

/* Style the dot shown in selected radio */
.subscribe-radio-wrapper label .checkmark:after {
  top: 19%;
  left: 19%;
  width: 64%;
  height: 64%;
  border-radius: 50%;
  background: #BBC76D;
}


/* Wraps email input + "OK"-button (Submit) */
.subscribe-email-input-wrapper {
    padding-top:0.5em
}

/* email input */
.subscribe-textfield {
   background: #FFFFFF;
   height: 45px;
   border: none;
   border-radius: 5px 0 0 5px;
   width: 80%;
   padding-left: 1em;
}

/* OK-button (Submit) */
.subscribe-submit-button {
   background: #0071B8;
	border-radius: 0 5px 5px 0;
   height: 47px;
   border: none;
   width: 20%;
   position:absolute;
}


/** Right-side part of subscriptionbox, "Feedback" **/


/* Wrapper.*/
.feedback {
   
}

/* Removes the default border */
.sv-defaultFormTheme {
   border: none;
}

/* Wraps buttons */
.feedback-buttons {
   margin-top: 1em;
}

.feedback-buttons button {
   font-family: 'Roboto', sans-serif;
   font-weight: 500;
   border: none;
   border-radius: 5px;
   width: 150px;
   height: 45px;
   color: white;
   font-size: 1em;
}

.feedback-buttons button:focus {
   color: black;
}

.feedback-buttons > button:first-of-type {
   margin-right: 1em;
}

@media screen and (max-width:1023px) {
   .subscribe-text h3, .feedback h3 {
      font-size: 1em;
   }
   
   .checkmark {
      height: 30px;
      width: 30px;
   }
   
   .subscribe-radio-wrapper label .checkmark:after {
      top: 18%;
      left: 18%;
   }
   
   .subscribe-radio-wrapper label {
      padding-left: 40px;
      padding-top: 5px;
   }
      
   .feedback-buttons {
      display: flex;
      display: -ms-flexbox;
   }
   
   .feedback-buttons button {
      width: unset;
      flex: 1 0 0;
   }
   
}

@media screen and (max-width:599px) {
   
   .subscribe-textfield {
      width: 95%;
      border-radius: 5px;
   }
   
   .subscribe-submit-button {
      margin-top: 1em;
      position: static;
      width: 100%;
      border-radius: 5px;
   }
   
   .feedback {
      margin-top: 2em;
      padding-top: 1em;
      border-top: solid gray 1px;
   }
}