body {
  transform: scale(1.15);
  transform-origin: top left;
  font-family: Carlito, sans-serif;
  background: #f8fcff;
  padding: 10px;
  overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #0c1117;
  }

  .container {
    background: #1d1d1d !important;
  }

  h1 {
    color: #ecf5fd !important;
  }

  label {
    color: #fff;
  }

  input {
    color: #fff;
    background-color: #2a2a2a;
    border-color: #6b6b6b !important;
  }

  .mobile-select {
    border-color: #6b6b6b !important;
    background-color: #434242 !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2351c8ff' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    color: #51c8ff !important;
  }

  .mobile-select:focus, input:focus {
    box-shadow: 0 0 5px 2px rgba(95, 159, 255, 0.1) !important;
    border: 1px solid #6dbbff !important;
  }

  button {
    background-color: #283cd6 !important;
  }

  button:hover {
    background-color: #1212b9 !important;
  }

  .result {
    color: #bed8ff !important;
    background-color: #092a5c !important;
    border-color: #375d97 !important;
  }

  .warning {
    color: #f7bdc1 !important;
    background-color: #670b0b !important;
    border-color: #9c3c3c !important;
  }

  .field-warning {
    color: #db7c7c !important;
  }

  .footer {
    color: #ffffff !important;
  }
  
  .footer .footer-link {
    color: #a3b6fc !important;
  }

  .footer .footer-link:hover {
    color: #456dff !important;
  }

  .info-icon {
    color: #5db3ff !important;
    border-color: #5db3ff !important;
  }

  .tooltip-text {
    background-color: #000000 !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(130, 130, 130, 0.5) !important;
  }

  .tooltip-link {
    color: #6aa3ff !important; 
  }

  .tooltip-text:hover .tooltip-link:hover {
    color: #2d7dff !important;
  }

  .info-container:hover .info-icon {
    color: #81c4ff !important;
    border: 1.5px solid #81c4ff !important;
  }

}

html {
  overflow-x: hidden;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  padding-top: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
  color: #002a6a;
  margin-top: 15px;
}

label {
  display: inline-block;
  margin: 0;
  font-weight: bold;
  font-size: 1rem;
}

input {
  display: block;
  margin: 2px 0;        
  width: 100%;
  font-size: 1rem;
  font-family: Carlito, sans-serif;
  padding: 3px 6px;
  border-radius: 1px;
  border: 1px solid #c3c3c3;
  box-sizing: border-box;
}

.mobile-select {
  appearance: none;      
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #007aff;
  width: 100%;   
  padding: 3px 6px 3px 8px;
  font-weight: 600;
  font-family: Carlito, sans-serif;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 1px;
  background-color: #e9e9e9;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23007aff' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.input-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}

.label-row {
  display: flex;
  align-items: center;
  gap: 6px;          
  margin-bottom: 1px;
}

.mobile-select:focus, input:focus {
  outline: none;
  font-family: Carlito, sans-serif;
  box-shadow: 0 0 5px 2px rgba(29, 119, 255, 0.1);
  border-radius: 4px; 
  border: 1px solid #1d77ff;
}

button {
  margin-top: 2px;
  padding: 10px;
  background: #1d77ff;
  color: white;
  font-family: Carlito, sans-serif;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background: #155fcc;
}

button:focus {
  outline: 2px solid #1d77ff;
  outline-offset: 2px;
}

.result {
  margin-top: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #0043a7;

  background-color: #bed8ff;
  padding: 20px;
  border: 1px solid #bed8ff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.field-warning {
  color: #b85151;
  font-size: 0.85rem;
  display: none;
  margin-left: 1px;
  font-weight: bolder;
  white-space: nowrap;
}

.warning {
  margin-top: 10px;
  font-weight: bolder;
  font-size: 0.85rem;
  color: #b85151;

  background-color: #f7bdc1; 
  padding: 12px;
  border: 1px solid #f7bdc1;
  border-radius: 8px;
}

.footer {
  font-size: 0.8rem;
  color: #777;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.footer-link {
  color: #456dff;
}

.footer .footer-link:hover {
  color: #470aff;
  transition: font-weight 0s ease;
}

.info-container {
  position: relative;
  display: inline-block;
  margin-right: 0px;
  margin-bottom: 2.2px;
  cursor: pointer;
  user-select: none;
}

.info-icon {
  font-style: normal;
  font-weight: bolder;
  font-family: Carlito, sans-serif;
  font-size: 0.7rem;
  color: #1d4aff;
  border: 1px solid #1d4aff;
  border-radius: 50%;
  padding: 0px 5px;
  display: inline-block;
}

.tooltip-text {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background-color: #e9e9e9;
  color: #313131;
  padding: 6px 10px;
  border-radius: 5px;
  font-family: Carlito;
  font-size: 0.75rem;
  font-weight: bolder;
  width: max-content;
  max-width: 280px;
  white-space: normal;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  display: none;
  transition: opacity 0.5s ease;
}

.tooltip-link {
  color: #2d7dff; 
  text-decoration: underline;
}

.tooltip-text:hover .tooltip-link:hover {
  font-weight: bold;
  color: #1c00f3;
}

.info-container.visible .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.info-container:hover .info-icon{
  font-style: normal;
  font-weight: bolder;
  font-size: 0.7rem;
  color: #092bb6;
  border: 1.5px solid #092bb6;
  border-radius: 50%;
  padding: 0px 5px;
  display: inline-block;
}

.info-container:hover .tooltip-text,
.info-container .tooltip-text:hover {
  display: block;
}