@import url("https://fonts.googleapis.com/css2?family=Signika:wght@300..700&display=swap");
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  margin: 0;
  background-color: #264B7E;
}
.header {
  width: 100%;
  padding: 0.5rem 1rem 0;
  box-sizing: border-box;
}
#login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.background-mask {
  display: flex;
  height: clamp(8rem, 18vw, 9.375rem);
  margin-bottom: clamp(1rem, 4vw, 1.75rem);
}
.modal {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.4);
  font-family: "Signika", sans-serif;
}
.modal-content {
  background-color: white;
  padding: clamp(1rem, 3vw, 1.5rem);
  width: min(88vw, 31.25rem);
  max-width: 31.25rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border-radius: 15px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.modal-content h2 {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  color: #264B7E;
  margin-bottom: clamp(1rem, 3vw, 1.25rem);
}
.modal-content select {
  width: 100%;
  padding: clamp(0.75rem, 2vw, 0.875rem);
  font-size: clamp(1rem, 2vw, 1.125rem);
  border-radius: 0.5rem;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  margin-bottom: clamp(1rem, 3vw, 1.25rem);
  font-family: "Signika", sans-serif;
  color: #333;
}
.modal-content button {
  width: 100%;
  padding: clamp(0.75rem, 2vw, 0.875rem) 0;
  background-color: #179EDA;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.125rem);
  transition: background-color 0.3s ease;
  font-family: "Signika", sans-serif;
}
.modal-content button:hover {
  background-color: #203e6b;
}
.logo-praktijk {
  position: absolute;
  height: clamp(3.5rem, 12vw, 5rem);
  width: auto;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}
.login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(18rem, 75vw, 31.25rem);
  max-width: 31.25rem;
  color: white;
  text-align: center;
  position: absolute;
  top: 18dvh;
  height: 50dvh;
  max-height: 50dvh;
}
.service-name,
.evaluatie-name {
  text-align: center;
  color: #eaeaea;
  margin-bottom: clamp(1.25rem, 4vw, 2.5rem);
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  font-weight: bold;
  font-family: "Signika", sans-serif;
}
#conversations-title {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  margin-bottom: clamp(1rem, 3vw, 1.25rem);
}
input[type="text"],
input[type="email"] {
  margin-bottom: clamp(1rem, 3vw, 1.25rem);
  padding: clamp(0.5rem, 2vw, 0.75rem);
  width: 100%;
  max-width: 25rem;
  box-sizing: border-box;
  text-align: center;
  background-color: #264B7E;
  color: #eaeaea;
  border: none;
  box-shadow: none;
  border-bottom: 3px solid #ffffff;
  font-family: "Signika", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}
.login-input {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  color: white;
}
.form-group {
  margin-bottom: clamp(0.75rem, 2vw, 0.9375rem);
  align-items: center;
  justify-content: center;
}
.form-group.login {
  display: flex !important;
  width: 100%;
}
.form-group label {
  font-family: "Signika", sans-serif;
  margin-right: 0.5rem;
}
#pilot-info {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
}
.info-icon {
  margin-left: 0.3125rem;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #eaeaea;
  display: inline-block;
  position: relative;
}
.tooltip {
  display: none;
  position: fixed;
  background-color: #f9f9f9;
  color: #333;
  padding: 0.5rem;
  border-radius: 0.3125rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  width: 90%;
  max-width: 18.75rem;
  z-index: 10;
  white-space: normal;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
#info-gender {
  color: black;
}
#tooltip-gender {
  top: 10%;
}
.info-icon:hover + .tooltip,
.info-icon:focus + .tooltip {
  display: block;
}
#login-button, #start-button {
  background-color: #179EDA;
  border: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1.25rem, 5vw, 1.875rem);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 0.625rem;
  color: #eaeaea;
  font-family: "Signika", sans-serif;
  z-index: 10;
  margin-top: clamp(0.75rem, 2.5vw, 1.25rem);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}
#login-button:hover, #start-button:hover {
  background-color: #0e4ba9;
}

#start-button {
  margin-top: clamp(1.5rem, 4vw, 2.5rem) !important;
}
#remember-me {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  background-color: #eaeaea;
  border: 1px solid #808080;
  margin: 0.1875rem 0.1875rem 0.375rem 0.1875rem;
  transition: background-color 0.3s ease;
}
#remember-me:checked {
  background-color: #179EDA;
  border: none;
}
#remember-me:checked::after {
  content: '\2713';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  font-weight: bold;
  color: #eaeaea;
}
#selected-practice {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #264B7E;
  color: white;
  border-radius: 5px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-family: "Signika", sans-serif;
  width: min(80vw, 31.25rem);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5dvh;
  text-align: left;
  z-index: -1;
}
#change-practice-btn {
  background-color: #eaeaea;
  color: #264B7E;
  padding: 0.3125rem 0.625rem;
  margin-left: 0.625rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-family: "Signika", sans-serif;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
#change-practice-btn:hover {
  background-color: #cdd1e0;
}
#selected-practice span {
  margin-left: 0.3125rem;
}
#enquete-button {
  background-color: #179EDA;
  border: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.25rem, 4vw, 1.875rem);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 0.625rem;
  color: #eaeaea;
  font-family: "Signika", sans-serif;
  z-index: 1000;
  position: relative;
  bottom: clamp(1rem, 3vh, 1.875rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}
#enquete-button:hover {
  background-color: #0e4ba9;
}
.footer {
  display: flex;
  align-items: center;
  font-family: Signika, sans-serif;
  font-weight: bold;
  font-size: clamp(0.5625rem, 1.2vw, 0.75rem);
  color: white;
  margin-top: clamp(1rem, 3vw, 1.25rem);
  position: absolute;
  bottom: 0;
  text-align: center;
}
.footer span {
  margin-left: 5%;
  margin-right: 5%;
}
.footer a,
a:hover,
a:active,
a:visited {
  color: white;
  width: 80px;
}
.pop-up {
  display: none;
  text-align: center;
  position: fixed;
  width: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-family: Signika, sans-serif;
  border-radius: 15px;
}
.pop-up-button {
  display: block;
  width: 80%;
  padding: clamp(0.625rem, 2vw, 0.75rem);
  margin-top: clamp(1rem, 3vw, 1.25rem);
  background-color: #179EDA;
  color: white;
  border: none;
  border-radius: 0.3125rem;
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-family: "Signika", sans-serif;
  transition: background-color 0.3s ease;
  margin-left: auto;
  margin-right: auto;
}
#popup-image {
  width: 60%;
  margin-top: clamp(1rem, 3vw, 1.25rem);
  border-radius: 0.3125rem;
}
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
  display: none;
}
.info {
  font-family: "Signika", sans-serif;
}
.custom-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.custom-modal-content {
  position: absolute;
  bottom: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  width: min(90vw, 25rem);
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: "Signika", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  left: 50%;
  transform: translate(-50%);
}
.custom-modal-header {
  font-weight: bold;
  margin-bottom: clamp(1rem, 3vw, 1.25rem);
  text-align: start;
  color: #264B7E;
  font-size: clamp(1.75rem, 5vw, 2.1875rem);
  display: flex;
}
#close-settings {
  margin-left: auto;
  margin-right: 0.625rem;
  cursor: pointer;
}
.radio-label {
  width: 100%;
  text-align: left;
}
.form-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}
.form-number {
  width: 2.1875rem;
  height: 2.1875rem;
  background: #179EDA;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.3125rem;
  margin-right: 0.625rem;
  font-size: 1rem;
  cursor: default;
}
.selection-group {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.selection-radio {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  width: 95%;
  border: 1px solid #ccc;
  padding: 0.625rem;
  margin-bottom: 0.3125rem;
  border-radius: 0.25rem;
}
#age,
#custom-practice-select {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  background: white;
  text-align: start;
  font-family: "Signika", sans-serif;
  color: black;
  margin-bottom: 0.625rem;
}
.checkbox-group {
  display: flex;
  text-align: start;
}
#consent {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  background-color: #eaeaea;
  border: 1px solid #808080;
  margin: 0.1875rem 0.1875rem 0.375rem 0.1875rem;
  transition: background-color 0.3s ease;
}
#consent:checked {
  background-color: #179EDA;
  border: none;
}
#consent:checked::after {
  content: '\2713';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  font-weight: bold;
  color: #eaeaea;
}
.custom-modal-footer {
  text-align: center;
  margin-top: clamp(1rem, 3vw, 1.25rem);
}
button#save-button {
  padding: 0.625rem 1.25rem;
  background: #179EDA;
  color: white;
  border: none;
  border-radius: 0.25rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  cursor: pointer;
  width: 90%;
  font-family: "Signika", sans-serif;
  transition: background-color 0.3s ease;
}
button#save-button:hover {
  background: #0056b3;
}
#custom-language-select {
  font-family: "Signika", sans-serif;
  color: white;
  background-color: #264B7E;
  border: none;
  font-size: clamp(1.2rem, 2vw, 1.25rem);
  position: absolute;
  left: clamp(1.5rem, 4vw, 2.1875rem);
  top: clamp(2rem, 6vh, 2.5625rem);
  cursor: pointer;
  z-index: 1;
}
#close-history,
#reload {
  color: white;
  font-size: clamp(1.2rem, 2.5vw, 1.25rem);
  left: clamp(1.5rem, 4vw, 2.1875rem);
  top: clamp(2rem, 6vh, 2.8125rem);
  position: absolute;
  cursor: pointer;
  z-index: 1;
}
#history-container,
#close-history {
  display: none;
}
#history-container {
  flex-direction: column;
  align-items: center;
  font-family: "Signika", sans-serif;
  height: 100%;
}
#history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  justify-items: center;
  width: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}
#history-list::-webkit-scrollbar {
  width: 0;
}
.history-item {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 17.5rem;
  box-sizing: border-box;
  position: relative;
  text-align: left;
}
.history-item:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.history-item b {
  color: #fff;
}
.history-item .ticket-id {
  font-size: 0.95rem;
  color: #b0c7e4;
  margin-bottom: 0.25rem;
}
.history-item .dienst {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}
.history-item .status {
  font-weight: 500;
  text-transform: capitalize;
  color: #90caf9;
}
.history-item .timestamp {
  font-size: 0.9rem;
  color: #cfd8dc;
  margin-top: 0.375rem;
}
.history-item-button {
  align-self: flex-end;
  margin-top: 0.5rem;
  background-color: #1976d2;
  border: none;
  border-radius: 0.5rem;
  color: white;
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  font-size: clamp(0.875rem, 2vw, 1rem);
  transition: background-color 0.2s ease;
}
.history-item-button:hover {
  background: #1565c0;
}
.delete-history-btn {
  position: absolute;
  right: 0.625rem;
  top: 0.625rem;
  background: transparent;
  border: none;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: #888;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.2s;
}
.delete-history-btn:hover,
.delete-history-btn:active {
  color: #d33;
}
.fade-out {
  opacity: 0;
}
#open-modal {
  font-family: "Signika", sans-serif;
  color: white;
  font-size: clamp(1.2rem, 2vw, 1.25rem);
  cursor: pointer;
  z-index: 1;
  right: clamp(1.5rem, 6vw, 2.1875rem);
  top: clamp(2rem, 6vh, 2.8125rem);
  position: absolute;
}
.delete-button {
  font-family: "Signika", sans-serif;
  font-size: clamp(1rem, 2.3vw, 1.125rem);
  background-color: #D83C3C;
  border: none;
  border-radius: 0.25rem;
  color: white;
  margin-top: clamp(1rem, 3vw, 2.1875rem);
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 3vw, 0.9375rem);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.delete-button:hover {
  background-color: #B23232;
}

.disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}
.disabled:hover {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}
@media (min-width: 480px) {
  .header {
    padding: 0.75rem 2rem 0;
  }
  .login-box {
    width: clamp(20rem, 65vw, 32rem);
    top: 13dvh;
  }
  .background-mask {
    height: clamp(6.5rem, 16vw, 9.375rem);
  }
  #login-button,
  #start-button,
  #enquete-button {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
  }
}
@media (min-width: 768px) {
  .login-box {
    width: clamp(24rem, 50vw, 34rem);
    top: 12dvh;
    height: 52dvh;
  }
  .modal-content {
    width: min(70vw, 31.25rem);
  }
  .custom-modal-content,
  #settings-modal-content {
    padding: clamp(1.25rem, 2vw, 1.75rem);
    font-size: 1rem;
  }
  .delete-button,
  #start-button {
    margin-top: clamp(0.5rem, 1.5vw, 0.75rem);
  }
  .custom-modal-header {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
  }
  .custom-modal-footer {
    margin-top: clamp(0.75rem, 2vw, 1rem);
  }
  #consent {
    width: 1rem;
    height: 1rem;
    margin: 0.125rem 0.1875rem 0.375rem 0.375rem;
  }
  .tooltip {
    position: absolute;
    width: 12.5rem;
    max-width: none;
    left: 65%;
    top: 50%;
    transform: translateY(-50%);
  }
  #tooltip-gender {
    left: 30%;
    top: 50%;
    transform: translateY(-50%);
  }
  .info-icon:hover + .tooltip,
  .info-icon:focus + .tooltip {
    display: none;
  }
  #selected-practice {
    width: min(70vw, 31.25rem);
  }
}
@media (min-width: 1024px) {
  .login-box {
    width: clamp(26rem, 40vw, 36rem);
    top: 10dvh;
  }
  #selected-practice {
    width: min(60vw, 34rem);
  }
  #history-list {
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  }
  .delete-button,
  #start-button {
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
  }
  #open-modal {
    right: clamp(2rem, 4vw, 3rem);
  }
}
@media (min-width: 1440px) {
  .login-box {
    width: clamp(28rem, 32vw, 38rem);
    top: 9dvh;
  }
  .header {
    padding: 1rem 3rem 0;
  }
  .footer {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
  }
  #selected-practice {
    width: min(50vw, 36rem);
  }
}
@media (max-height: 670px) {
  .service-name {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
  }
  .info {
    font-size: 0.875rem;
  }
  .evaluatie-name {
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    margin-bottom: 1.25rem;
  }
}
@media (max-height: 360px) {
  .background-mask {
    display: none;
  }
}
