*,
*::before,
*::after {
  box-sizing: border-box;
}

.language-switcher {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(44, 30, 120, 0.18);
}

#languageSelect {
  font-size: 1rem;
  padding: 5px 8px;
  width: 58px; /* Ensures the select box is visible */
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 8px;
  background-color: #ffffff;
  color: #172554;
  outline: none;
  display: block;
}
#loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}
.preloader-wrapper.active {
  animation: spin 1s linear infinite; /* Keeps the spinner rotating */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
body {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(45, 212, 191, 0.85) 0%, rgba(45, 212, 191, 0) 48%),
    radial-gradient(110% 95% at 100% 8%, rgba(168, 85, 247, 0.62) 0%, rgba(168, 85, 247, 0) 46%),
    radial-gradient(95% 88% at 76% 92%, rgba(244, 114, 182, 0.55) 0%, rgba(244, 114, 182, 0) 46%),
    linear-gradient(135deg, #07192f 0%, #0f2f5f 42%, #047b91 100%);
  background-attachment: fixed;
  background-size: 130% 130%;
  font-family: "Roboto", sans-serif;
  margin: 0;
  color: #172554;
  animation: ambientShift 18s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), transparent 76%);
}

@keyframes ambientShift {
  0% { background-position: 0% 22%; }
  100% { background-position: 100% 68%; }
}

main {
  flex: 1 0 auto;
  width: 100%;
}

.valign-wrapper {
  min-height: calc(100vh - 56px);
  min-height: calc(100svh - 56px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 36px 0 24px;
}

.container {
  width: min(100%, 720px);
}

.row {
  margin-bottom: 0;
}

.row .col {
  padding-left: 0;
  padding-right: 0;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 255, 0.74)),
    linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(244, 114, 182, 0.1));
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 90px rgba(7, 25, 47, 0.28);
  margin: 0 auto;
  max-width: 640px;
  width: 100%;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #67e8f9, #a78bfa 46%, #fb7185);
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-18deg);
  animation: cardSheen 7s ease-in-out infinite;
  pointer-events: none;
}

.card-content {
  position: relative;
  z-index: 1;
  overflow-wrap: anywhere;
}

@keyframes cardSheen {
  0%, 18% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  36% { opacity: 1; }
  62%, 100% { transform: translateX(250%) skewX(-18deg); opacity: 0; }
}

.card.hoverable:hover {
  box-shadow: 0 34px 100px rgba(7, 25, 47, 0.34);
}

.card .card-title {
  font-weight: 500;
  margin-bottom: 26px;
  font-size: 2rem;
  color: #172554;
  background: linear-gradient(90deg, #0ea5e9 0%, #7c3aed 48%, #db2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0;
}
.input-field {
  margin-top: 20px;
}
/* Radio Button Styling */
.radio-option {
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(240, 249, 255, 0.68)),
    linear-gradient(90deg, rgba(45, 212, 191, 0.1), rgba(168, 85, 247, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.radio-option:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 253, 245, 0.76)),
    linear-gradient(90deg, rgba(34, 211, 238, 0.18), rgba(244, 114, 182, 0.14));
  border-color: rgba(124, 58, 237, 0.42);
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.16), 0 8px 20px rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}
input[type="radio"]:checked + span:before {
  border: 2px solid #7c3aed;
  background-color: #7c3aed;
}
input[type="radio"] + span:before {
  border: 2px solid #38bdf8;
}
/* Increase Text Size */
label,
span {
  font-size: 1.2rem;
  color: #1e293b;
  line-height: 1.35;
}

.radio-option label {
  display: block;
  min-height: auto;
}

[type="radio"] + span {
  min-height: auto;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.referral-options {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(14, 165, 233, 0.18);
}

.referral-title {
  margin: 0 0 10px;
  color: #172554;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.referral-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.82), rgba(255, 255, 255, 0.7)),
    linear-gradient(90deg, rgba(20, 184, 166, 0.12), rgba(14, 165, 233, 0.1));
  color: #0f766e;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.referral-option:hover {
  border-color: rgba(13, 148, 136, 0.46);
  box-shadow: 0 14px 28px rgba(13, 148, 136, 0.14);
  transform: translateY(-1px);
}

.referral-option span {
  color: inherit;
  font-size: 1rem;
  line-height: 1.35;
}

.referral-cta {
  flex: 0 0 auto;
  color: #7c3aed !important;
  font-weight: 500;
}

.referral-notice {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}
/* Button Styling */
.btn {
  background: linear-gradient(90deg, #06b6d4 0%, #7c3aed 54%, #ec4899 100%);
  font-size: 1.2rem;
  padding: 0 2rem;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(124, 58, 237, 0.28);
  letter-spacing: 0;
  max-width: 100%;
  white-space: normal;
}
.btn:hover {
  background: linear-gradient(90deg, #0891b2 0%, #6d28d9 54%, #db2777 100%);
  box-shadow: 0 22px 42px rgba(124, 58, 237, 0.34);
  transform: translateY(-1px);
}
/* Icon Styling */
.medical-icon {
  font-size: 62px;
  color: #ffffff;
  background: conic-gradient(from 160deg, #22d3ee, #8b5cf6, #f472b6, #34d399, #22d3ee);
  border-radius: 20px;
  padding: 10px;
  margin-bottom: 26px;
  box-shadow: 0 18px 38px rgba(124, 58, 237, 0.28), 0 0 0 8px rgba(255, 255, 255, 0.22);
  animation: iconPulse 5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { filter: saturate(1); transform: translateY(0); }
  50% { filter: saturate(1.25); transform: translateY(-2px); }
}
/* Autocomplete Suggestions */
.autocomplete-content {
  max-height: 200px;
  overflow-y: auto;
}
/* Responsive Text Input */
#choice4_input:disabled {
  background-color: #f2f2f2;
}

#otherTextInput {
  border-bottom: 1px solid #38bdf8;
  margin: 12px 0 0;
  width: 100%;
}

#otherTextInput:focus {
  border-bottom: 1px solid #7c3aed;
  box-shadow: 0 1px 0 0 #7c3aed;
}

#kontakt {
  display: block;
  min-height: 620px;
}

/* Responsive Font Sizes */
@media only screen and (max-width: 900px) {
  .container {
    width: 100%;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media only screen and (max-width: 600px) {
  body {
    background-attachment: scroll;
  }

  .valign-wrapper {
    align-items: flex-start;
    min-height: auto;
    padding: 12px 0 8px;
  }

  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .card {
    border-radius: 18px;
    margin: 0 auto;
    padding: 18px;
  }

  .card-content {
    padding: 0 !important;
  }

  .card .card-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 18px;
  }

  .radio-option {
    border-radius: 14px;
    padding: 13px 14px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .referral-option {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  label,
  span {
    font-size: 1rem;
  }

  .medical-icon {
    font-size: 48px;
    margin-bottom: 18px;
  }

  .btn {
    font-size: 1rem;
    height: auto;
    min-height: 42px;
    line-height: 1.2;
    padding: 10px 18px;
  }

  .language-switcher {
    position: relative;
    top: auto;
    right: auto;
    margin-left: auto;
    margin-bottom: 12px;
    width: max-content;
  }

  #kontakt {
    min-height: 540px;
  }
}

footer {
  background-color: rgba(7, 25, 47, 0.38);
  backdrop-filter: blur(18px);
  padding: 20px 0;
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

footer p {
  margin: 5px 0;
}

#disclaimer {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 241, 242, 0.66)),
    linear-gradient(90deg, rgba(34, 211, 238, 0.16), rgba(236, 72, 153, 0.12));
  border: 1px solid rgba(251, 113, 133, 0.24);
  border-left: 4px solid #ec4899;
  border-radius: 14px;
  padding: 16px 18px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 24px !important;
  color: #9f1239;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.6;
}

footer p.info {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

footer p.info a {
  color: #67e8f9;
  text-decoration: none;
}

footer p.release {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
}

footer .feedback {
  font-size: 0.9rem;
  margin-top: 5px;
}

footer .feedback a {
  color: #f0abfc;
  text-decoration: underline;
}

footer .feedback a:hover {
  color: #ffffff;
}

#responseContainer {
  display: none; /* Ensure it's hidden initially */
  border: 1px solid rgba(244, 63, 94, 0.34); /* Light red border */
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.9), rgba(255, 255, 255, 0.72)); /* Light red background */
  color: #9f1239; /* Darker red text color */
  border-radius: 8px; /* Rounded corners */
  padding: 15px; /* Padding for space inside */
  margin-top: 15px; /* Space above the container */
  font-size: 1rem; /* Text size */
  font-weight: 500; /* Slightly bolder text */
  box-shadow: 0 14px 30px rgba(159, 18, 57, 0.12); /* Light shadow for depth */
  text-align: center; /* Center text */
  max-width: 600px; /* Limit width for larger screens */
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (max-width: 600px) {
  #disclaimer {
    margin-top: 16px;
    margin-bottom: 18px !important;
    padding: 13px 14px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  footer {
    padding: 16px 12px;
  }

  #responseContainer {
    max-width: 100%;
    padding: 13px;
  }
}
