@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  --molepi-red: #a51200;
  --molepi-active: #5b0101;
  --white: #ffffff;
}

body.Body {
    background-image: url(https://forms.lumc.nl/lumc/LUMC_logo_txt_NL_PMS281_klein.jpg), url(https://molepi.nl/wp-content/uploads/2021/06/molepi_logo.jpg);
    background-repeat: no-repeat, no-repeat;
    background-position: right top, left top;
    background-size: auto, 300px;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: rgba(255,240,240,1)    ; /* Light grey background */
}

/* Container for the form to give it a card-like appearance */
.Form {
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    margin: 32px auto;
    max-width: 640px;
    padding: 24px;
    border-top-width: 5px;
    border-top-color: var(--molepi-red); /* MOLEPI red */
}

td table {
  width: 100%;
}

/* Style for the form's title */
.Title {
    font-size: 24pt;
    font-weight: 400;
    line-height: 32px;
    margin-bottom: 8px;
    color: rgb(32,33,36);
    text-align: left;
}

/* Style for questions and labels */
.Question, .AnswerLabel {
    color: rgb(32,33,36);
    font-size: 12pt !important;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .1px;
}

h1.Title{
  font-size: 24px;
}

.Question{
  padding: 0px;
}

.Question label p {
  float: left;
  margin-bottom: 0px;
}

.Question .info-tooltip {
  float: right;
  font-size: 14px;
  color: #888;
  cursor: pointer;
}

p.helptext {
  font-size: 10pt;
  color: #666;
  margin-top: 4px;
  margin-bottom: 0px;
  width: 100%;
}

.AnswerLabel{
  padding: 0.5em 0;
}
/* Style for input fields and text areas */
.Answer {
    background-color: #f5f5f5;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    font-size: 10pt;
    color: rgb(32,33,36);
}

.Answer:focus {
    outline: none;
    border-color: var(--molepi-red); /* MOLEPI red */
}

/* Style for radio buttons and checkboxes */
/* Container styles for both elements */


.item-container {
    display: flex;
    align-items: center;
    padding: 2px 0;
  }
  
  /* Hide the default radio and checkbox inputs */
  .item-container input[type="radio"],
  .item-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* Style the custom icon for both */
  input[type=checkbox].themed + label, input[type=radio].themed + label, input[type=checkbox].themed:checked + label, input[type=radio].themed:checked + label{
    padding: 0px;
  }

  /* alternative option */
  .alternative-option input[type=checkbox], .alternative-option input[type=radio], .alternative-option label{
    margin-top: 0px !important;
  }

  .item-container.alternative-option{
    display: block;
  }

  .item-container label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: rgb(32,33,36);
    
  }
  
  .item-container label i {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    margin-right: 8px;
    transition: all 0.2s ease-in-out;
    position: relative;
    float: left;
  }
  
  .item-container label span {
    float: left;
    padding: 3px 0px;
    font-size: 11pt;
  }

  /* Specific styles for the radio button's custom icon */
  .item-container input[type="radio"] + label i {
    border-radius: 50%; /* Makes the icon a circle */
  }
  
  .item-container input[type="radio"] + label i:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  /* Specific styles for the checkbox's custom icon */
  .item-container input[type="checkbox"] + label i {
    border-radius: 4px; /* Makes the icon a square with rounded corners */
  }
  
  .item-container input[type="checkbox"] + label i:after {
    content: '';
    position: absolute;
    top: 4px;
    left: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
  }
  
  /* Checked state for radio button */
  .item-container input[type="radio"]:checked + label i {
    background-color: var(--molepi-red);
    border-color: var(--molepi-red);
  }
  
  .item-container input[type="radio"]:checked + label i:after {
    transform: translate(-50%, -50%) scale(1);
  }

  input[type=checkbox].themed + label i:before, input[type=checkbox].themed:checked + label i:before {
    display: none;
  }
  
  /* Checked state for checkbox */
  .item-container input[type="checkbox"]:checked + label i {
    background-color: var(--molepi-red);
    border-color: var(--molepi-red);
  }
  
  .item-container input[type="checkbox"]:checked + label i:after {
    opacity: 1;
  }
  
  input[type=radio].themed + label i:before, input[type=radio].themed:checked + label i:before {
    display: none;
  }

  /* Focus and Hover states for both elements */
  .item-container input:focus + label i {
    box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.6);
  }
  
  .item-container label:hover i {
    background-color: #e0e0e0;
  }
  
  .item-container input:checked + label:hover i {
    background-color: var(--molepi-active);
  }

  

/* INPUT TEXT */

input[type="text"], textarea {
  width: 100% !important;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: rgb(32,33,36);
}

input[type="text"]:focus, textarea:focus {
  border-color: var(--molepi-red);
  box-shadow: 0 0 8px rgba(92, 184, 92, 0.6);
  outline: none;
}

input[type="text"]::placeholder, textarea::placeholder {
  color: #aaa;
  font-style: italic;
}

/* The 'Submit' button */
.Button {
    background-color: var(--molepi-red);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 11pt;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.Button:hover {
    background-color: var(--molepi-active);
}
