body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: url('/pexels-rostislav-uzunov-10458835HD.png') no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
}



header {
  width: 100%;
  background: rgba(37, 66, 92, 0.32);
  color: #fff;
  padding: 32px 0 16px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgb(37 66 92 / 8%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid rgba(255,255,255,0.13);
}

header p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #b6d7ea;
  margin-top: 12px;
  text-align: center;
  letter-spacing: 0.5px;
}

header img {
  max-width: 150px;
  border-radius: 12px;
  margin-bottom: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#eduscore-info-btn {
  background: #b6d7ea;
  color: #25425c;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 4px;
}

.form-container {
  max-width: 600px;
  margin: 32px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(37, 66, 92, 0.15);
  padding: 32px 24px;
  box-sizing: border-box;
}

input, textarea {
  width: calc(100% - 24px);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #d6dbe3;
  transition: border 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

input:focus, textarea:focus {
  border-color: #34649c;
  box-shadow: 0 0 8px rgba(52, 100, 156, 0.3);
  outline: none;
}

button[type="submit"] {
  background: #25425c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.3s, transform 0.2s;
}

button[type="submit"]:hover {
  background: #34649c;
  transform: translateY(-2px);
}

label {
  font-weight: 500;
  color: #25425c;
  display: block;
  margin-bottom: 6px;
}

.error-message {
  color: #e87d3c;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* Popup overlay */
#eduscore-popup-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(37,66,92,0.65);
  display: none;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

/* Popup box */
#eduscore-popup {
  background: rgba(255,255,255,0.98);
  border-radius: 18px;
  max-width: 600px;
  width: 93vw;
  padding: 36px 28px 22px 28px;
  box-shadow: 0 8px 32px rgba(37, 66, 92, 0.18);
  position: relative;
  color: #25425c;
  font-size: 1.07rem;
  line-height: 1.6;
  max-height: 75vh;
  overflow-y: auto;
  font-family: 'Segoe UI', Arial, sans-serif;
}

#eduscore-popup-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #25425c;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s;
}
#eduscore-popup-close:hover {
  opacity: 1;
}

#eduscore-popup h2 {
  margin-top: 0;
  font-size: 1.45em;
  color: #34649c;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

#eduscore-popup h3 {
  color: #5692bf;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-size: 1.13em;
  letter-spacing: 0.5px;
}

#eduscore-popup ul {
  margin: 0 0 1.5em 1.1em;
  padding: 0;
}

#eduscore-popup li {
  margin-bottom: 0.3em;
  font-size: 1em;
}

#eduscore-popup strong {
  color: #34649c;
}

#eduscore-popup p, #eduscore-popup ul {
  margin-bottom: 1.17em;
}

#eduscore-popup hr {
  border: none;
  border-top: 1.5px solid #e4eaf1;
  margin: 1.5em 0;
}

#eduscore-info-floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  background: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(52,100,156,0.18);
  border-radius: 50%;
  transition: transform 0.2s;
}
#eduscore-info-floating:hover {
  transform: scale(1.08);
}

@media (min-width: 900px) {
  #eduscore-popup {
    max-width: 1000px;
    padding: 48px 48px 34px 48px;
    font-size: 1.18rem;
    max-height: 84vh;
  }
}

/* Centrerar text och innehåll inom p-elementet */
p.center {
  text-align: center;
}

/* Centrerar knappen */
button[type="submit"] {
  background: #25425c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.3s, transform 0.2s;
  display: inline-block; 
}

button[type="submit"]:hover {
  background: #34649c;
  transform: translateY(-2px);
}

/* Stil för enbart checkbox och text */
p.consent {
  display: flex;
  align-items: center; 
}

p.consent label {
  display: flex;
  align-items: center;
  gap: 8px; 
  margin: 0; 
}

p.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0; /* Tar bort extra marginaler */
}

/* Popup overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5); 
  display: none; 
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Popup content */
.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  position: relative;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
}

.popup-content h2 {
  margin-top: 0;
  color: #25425c;
}

/* Close button for popup */
.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}

/* "Integritetspolicyn" som länk */
#privacy-policy-link {
  color: #34649c;
  text-decoration: underline;
  cursor: pointer;
}

#privacy-policy-link:hover {
  color: #25425c;
  text-decoration: none;
}