.sf-dynamic-form-container {
  display: grid;
  width: 100%;
  place-items: start center;
  background-color: #231f20;
  padding: 10px;
  box-sizing: border-box;
}
  
.sf-dynamic-form {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 400px;
  gap: 0px;
  grid-auto-rows: min-content;
  color: var(--form-text-color);
  font-size: 16px;
  line-height: 1.4;
  padding: 15px;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
}

.sf-form-label-checkbox, .sf-form-input, .sf-form-select, .sf-form-paragraph, .sf-radio-select-container, .sf-bdf-wrapper, .g-recaptcha {
    display: none;
}

#cf-sf-radio-select-container {
    display: block !important;
}

#cf-sf-radio-select-container[style*="display: block"] {
    display: block !important;
}

.sf-form-label:not(.required):not(#cf-sf-radio-select-label) {
    display: none;
}

#sf-region-select-input-label {
    display: none !important;
}

.sf-form-input, .sf-form-select {
  border: 1px solid var(--form-text-color);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 15px 0;
}

@media screen and (min-width: 500px) {
  .sf-form-input, .sf-form-select {
    margin-bottom: 0;
  }
}

.sf-form-input,
.sf-form-input::-webkit-input-placeholder,
.sf-form-select {
  background-color: #ffe7bd;
  color: var(--input-text-color);
  opacity: 1;
  padding: 12px 10px;
  font-size: 18px;
}

.sf-form-input::-moz-placeholder {
  color: var(--input-text-color);
  opacity: 1;
  font-size: 18px;
}

.sf-form-label {
  margin-top: 0px;
  margin-bottom: 5px;
  margin-left: 0px;
  margin-right: 0px;  
  position: relative;
  z-index: 2;
}

@media screen and (min-width: 500px) {
  .sf-form-label {
    margin-bottom: -10px !important;
  }
}

.sf-form-label, .sf-form-label-checkbox {
  align-self: center;
  text-align: left;
  color: #FFFFFF !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  min-width: 0;
  text-transform: uppercase;
  font-family: 'Futura Std', 'Futura', Arial, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.75px;
}

.sf-form-paragraph {
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: #FFFFFF !important; /* change to black in dev */
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  min-width: 0;
  font-family: 'Futura Std', 'Futura', Arial, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 25px;
  line-height: 120%;
  letter-spacing: 0.75px;
}

.sf-form-response-messaging-paragraph {
  grid-row: 1;
  grid-column: 1;
  display: none;
  text-align: center;
  margin-bottom: 15px;
  padding: 20px;
  color: white !important;
  font: 18px / 26px futura-pt-normal, sans-serif;
  letter-spacing: .2px;
}

.sf-radio-select {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  width: 100%; /* Ensure it spans full width */
  color: white !important;
  text-align: left;
}

/* Style for radio button labels within sf-radio-select */
.sf-radio-select label {
  font-family: 'Futura Std', 'Futura', Arial, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 25px;
  line-height: 120%;
  letter-spacing: 0.75px;
  text-transform: none;
  color: white !important;
  padding: 2px 0px 2px 0px;
  text-align: left;
}

/* Style for the radio button question label */
#cf-sf-radio-select-label,
label[id*="cf-sf-radio-select-label"],
.sf-form-label[for*="cf-sf-radio-select"],
label.sf-form-label[id="cf-sf-radio-select-label"] {
  display: block !important;
  font-family: 'Futura Std', 'Futura', Arial, sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
  font-size: 20px !important;
  line-height: 120% !important;
  letter-spacing: 0.2px !important;
  text-transform: none !important;
  color: white !important;
  margin-bottom: 2px !important;
  margin-left: 20px !important;
  margin-right: 20px !important;
}

@media screen and (min-width: 500px) {
  #cf-sf-radio-select-label,
  label[id*="cf-sf-radio-select-label"],
  .sf-form-label[for*="cf-sf-radio-select"],
  label.sf-form-label[id="cf-sf-radio-select-label"] {
    font-size: 24px !important;
    letter-spacing: 0px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    margin-bottom: 8px !important;
  }
}

.sf-radio-label {
  padding:2px 0px 2px 0px;
  color: white !important;
  text-align: left;
  font-family: 'Futura Std', 'Futura', Arial, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 25px;
  line-height: 120%;
  letter-spacing: 0.75px;
  text-transform: none;
}

/* Radio button styling */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-radius: 50%;
  background-color: #ffe7bd;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
}

input[type="radio"]:checked {
  background-color: #ffe7bd;
  border-color: #333;
}

input[type="radio"]:checked::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #333;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media screen and (min-width: 500px) {
  .sf-radio-label {
    white-space: nowrap;
  }
}

#sf-dynamic-form-submit-button {
  display: block !important;
}

.sf-dynamic-form [type="submit"], .sf-age-gate-modal{
  background-color: var(--brand-color); /** Utilize the CSS variable to allow color changing */
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  color: var(--btn-text-color);
  font-family: 'Futura Std', 'Futura', Arial, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 25px;
  line-height: 160%;
  letter-spacing: 1.25px;
  padding: 16px 32px;
  text-decoration: none;
  margin: 4px 22px;
  cursor: pointer;
  justify-self: center;
  text-transform: uppercase;
}

.sf-dynamic-form [type="submit"]:hover, .sf-age-gate-modal:hover {
  background-color: var(--btn-hover-bg-color);
  border: 2px solid var(--brand-color);
  color: var(--btn-hover-text-color);
}

/* The checkbox containers */
.sf-explicit-rules-acknowledgement-checkbox-container,
.sf-explicit-optin-checkbox-container {
  display: none;
  position: relative;
  padding-left: 38px;
  padding-right: 10px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sf-radio-select-container {
  margin: 20px 20px 0 20px;
  place-self: start;
  text-align: left;
  color: white !important;
}

@media screen and (min-width: 500px) {
  .sf-radio-select-container {
    margin-left: 20px;
    margin-right: 20px;
  }
}

.sf-explicit-rules-acknowledgement-checkbox-container{
  margin: 20px 20px 0 20px;
}

.sf-explicit-optin-checkbox-container {
  margin: 20px 20px 20px 20px;
}

/* Hide the browser's default checkboxes */
.sf-explicit-rules-acknowledgement-checkbox-container input,
.sf-explicit-optin-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background-color: #ffe7bd;
}

/* On mouse-over, add a background color */
.sf-explicit-rules-acknowledgement-checkbox-container:hover input ~ .checkmark {
  background-color: #ebe1e1;
}

/* When the checkbox is checked, add a blue background */
.sf-explicit-rules-acknowledgement-checkbox-container input:checked ~ .checkmark {
  background-color:  var(--brand-color); /** Utilize the CSS variable to allow color changing */
}

/* On mouse-over, add a background color */
.sf-explicit-optin-checkbox-container:hover input ~ .checkmark {
  background-color: #ebe1e1;
}

/* When the checkbox is checked, add a blue background */
.sf-explicit-optin-checkbox-container input:checked ~ .checkmark {
  background-color:  var(--brand-color); /** Utilize the CSS variable to allow color changing */
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.sf-form-label-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.sf-form-label-checkbox .checkmark:after {
  left: 9px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid black;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.checkbox-label-text {
  display: block;
  font-family: 'Futura Std', 'Futura', Arial, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 25px;
  line-height: 120%;
  letter-spacing: 3%;
  text-transform: none;
}

/* Link styling for better readability on dark background */
.sf-form-paragraph a,
.sf-explicit-rules-acknowledgement-checkbox-container a,
.sf-explicit-optin-checkbox-container a {
  color: #FFE7BD !important;
  text-decoration: underline !important;
  font-weight: bold !important;
}

.sf-form-paragraph a:hover,
.sf-explicit-rules-acknowledgement-checkbox-container a:hover,
.sf-explicit-optin-checkbox-container a:hover {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* This must be included so that browser validation messages are visible to user on custom checkboxes */

.sf-form-label-checkbox .sf-form-checkbox {
  opacity: 0;
  height: inherit;
  width: inherit;
  overflow: visible;
  font-family: 'Futura Std', 'Futura', Arial, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 24px;
  line-height: 120%;
  letter-spacing: 5%;
  text-transform: none;
}

/* The alert message box */
.sf-alert {
  grid-row: 1;
  grid-column: 1;
  display: none;
  text-align: center;
  background-color: var(--alert-msg-bg-color);
  color: var(--alert-msg-text-color);
  margin-bottom: 15px;
  padding: 20px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

/* Alert message div styling */
#sf-alert-message {
  font-family: 'Futura Std', 'Futura', Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}

/* The close button */
.sf-closebtn {
  display: none;
  margin-left: 15px;
  color: var(--alert-msg-close-btn-color);
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: .6;
  cursor: pointer;
  transition: 0.3s;
}

/* Age gate modal container */
.age-gate-modal-container {
  background: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center; 
  max-width:70%;
  margin: auto;
  justify-self: center;

}

/* When moving the mouse over the close button */
.sf-closebtn:hover {
  display: none;
  color: black;
}

#sf-form-abbreviatedRules-paragraph {
  display: block !important;
  background-color: #231f20 !important;
  color: grey !important;
  margin: 0;
  padding: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-align: center;
  font-family: 'Futura Std', 'Futura', Arial, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 24px;
  line-height: 120%;
  letter-spacing: 5%;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
  margin-right: 0;
}

@media screen and (min-width: 768px) {
  .sf-dynamic-form {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
  }



  .sf-form-label {
    margin-top: 0;
    margin-bottom: 8px;
  }

  .sf-dynamic-form .sf-form-paragraph {
    font-size: 16px;
  }

  .sf-form-paragraph {
    justify-self: center;
    margin: 8px 2px;
  }

  /* The alert message box */
  .sf-alert {
    grid-column: 1;
  }

  /* The checkbox and consumption frequency radio select containers */
  .sf-radio-select-container {
    grid-column: 1;
    justify-self: center;
    margin-top: 10px;
  }

  .sf-explicit-rules-acknowledgement-checkbox-container,
  .sf-explicit-optin-checkbox-container {
    grid-column: 1;
    justify-self: left;
    margin-top: 10px;
  }

  .sf-radio-select {
    width: auto;
  }

  .sf-dynamic-form [type="submit"], .sf-age-gate-modal{
    grid-column: 1;
    justify-self: center;
  }

  .age-gate-modal-container{
   justify-self: center;
   max-width: 30%;    
  }

}

/* Required field styling */
.sf-form-label.required {
  font-weight: 500 !important;
}

