/* DEFAULTS */

.capbox {
  background-color: #BBBBBB;
  background-image: linear-gradient(#BBBBBB, #9E9E9E);
  border: #2A7D05 0px solid;
  border-width: 2px 2px 2px 20px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  display: table;
  padding: 5px 8px 5px 8px;
  border-radius: 4px 4px 4px 4px;
}
.capbox-inner {
  font: bold 12px arial, sans-serif;
  color: #000000;
  background-color: #E3E3E3;
  margin: 0px auto 0px auto;
  padding: 3px 10px 5px 10px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}
#CaptchaDiv {
  color: #000000;
  font: normal 25px Impact, Charcoal, arial, sans-serif;
  font-style: italic;
  text-align: center;
  vertical-align: middle;
  background-color: #FFFFFF;
  user-select: none;
  display: inline-block;
  padding: 3px 14px 3px 8px;
  margin-right: 4px;
  border-radius: 4px;
}
#CaptchaInput {
  border: #38B000 2px solid;
  margin: 3px 0px 1px 0px;
  width: 105px;
}

/* CUSTOM */
.container {
  padding: 25px;
  color: #024A5D;
}

/* ===== Newsletter-Form Styling (scoped) ===== */
form > div:nth-child(1) {
  max-width: 600px;
  padding: 24px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.45;
  color: #024A5D;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

form h1{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .2px;
}

form p{
  margin: 0 0 10px;
}

form > div{
  margin: 0 auto;
  color: #024A5D;
}

/* Labels */
form label{
  display: inline-block;
  margin: 0 0 5px;
  font-weight: 600;
  color: #024A5D;
}

/* Required star */
form .required-asterisk{
  margin-left: 6px;
  font-weight: 700;
  color: #b91c1c;
}

/* Inputs + Selects */
form input[type="text"],
form select{
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #024A5D;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

form input[type="text"]::placeholder{
  color: #9ca3af;
}

form input[type="text"]:focus,
form select:focus{
  border-color: #6b7280;
  box-shadow: 0 0 0 4px rgba(107,114,128,.18);
}

/* Checkbox / radio look + spacing */
form input[type="checkbox"]{
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin: 0 10px 4px 0;
  accent-color: #024A5D; /* moderne Browser */
}

form input[type="checkbox"] + label{
  margin: 8px 0 0;
  font-weight: 500;
  color: #024A5D;
}

/* Make long privacy text readable */
form #dataPrivacyCheckbox + label{
  display: inline-block;
  max-width: 100%;
  padding: 12px 12px;
  margin-top: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

/* Button */
form input[type="button"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #024A5D;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .05s ease, opacity .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 20px rgba(17,24,39,.18);
}

form input[type="button"]:hover{
  opacity: .92;
}

form input[type="button"]:active{
  transform: translateY(1px);
}

/* Hide visual clutter from many <br> */
form br{
  line-height: 0;
}

/* Optional: nicer error box (your modal text) */
form #ExecutionFailedText{
  padding: 12px 14px !important;
  border-radius: 12px;
  font-weight: 600;
}
