/* Core CSS for the Character Builder section of the website */
/* .character-builder .gform-field-label{
		color:#fff;
} */
/* Form steps styling */
.character-builder .gf_step_label {
  font-family: aerohate !important;
  color: #000 !important;
  font-size: 18px !important;
}
.character-builder .gf_page_steps .gf_step {
  position: relative;
  flex-grow: 1;
}

.character-builder .gf_page_steps .gf_step::before {
  content: "";
  background-color: transparent;
  border: 2px solid #000;
  width: 25px;
  height: 25px;
  transform: rotate(45deg);
  display: block;
  position: absolute; /* Use absolute positioning */
  left: 50%;
  transform: translateX(-50%) rotate(45deg); /* Center horizontally */
  top: -30px;
}

.character-builder .gf_page_steps .gf_step_active::after,
.character-builder .gf_page_steps .gf_step_completed::after {
  content: "";
  transform: translateX(-50%) rotate(45deg); /* Ensure the same horizontal centering and rotation */
  display: block;
  position: absolute; /* Use absolute positioning */
  left: 50%;
  top: -26px;
  width: 17px;
  height: 17px;
  background-color: #000;
}

/* background images of realms */
.commonwealth-bg {
  background-image: url("https://www.menhirsfate.com/wp-content/uploads/2025/02/commonwealth-tile.png");
}
.crownlands-bg {
  background-image: url("https://www.menhirsfate.com/wp-content/uploads/2025/02/crownlands-tile.png");
}
.sanctuaries-bg {
  background-image: url("https://www.menhirsfate.com/wp-content/uploads/2025/02/sanctuaries-tile.png");
}
.realm-bg {
  background-size: 100%;
  height: 150px;
  background-repeat: no-repeat;
}

/*Amend default radio button styling */
.gform_wrapper .realm-radio-buttons input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;
  border: 2px solid #000;
  width: 30px;
  height: 30px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 0; /* Makes it square */
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  transform: translatex(-50%) rotate(45deg);
  position: absolute;
  bottom: 10px;
  left: 50%;
  z-index: 999;
}

.gform_wrapper input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;
  border: 2px solid #000;
  width: 30px;
  height: 30px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 0; /* Makes it square */
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  transform: rotate(45deg);
}
.gform_wrapper .sm-button input[type="radio"] {
  width: 15px !important;
  height: 15px !important;
  margin-left: 5px !important;
}
.gform_wrapper .sm-button input[type="radio"]:checked::before {
  top: 2px;
  left: -3px;
  width: 7px;
  height: 7px;
  margin-left: 5px !important;
}

/* Add a square fill or checkmark when selected */
.gform_wrapper input[type="radio"]:checked {
  /*   background-color: white;  */
  border-color: #000;
}

/* Create a smaller inner square to indicate selection */
.gform_wrapper input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background-color: #000; /* Inner white square */
}
/* Optional: Customizing label spacing */
.gform_wrapper .gfield_radio li label {
  padding-left: 10px;
  cursor: pointer;
}

/* Custom Checkbox styling to match Radio buttons */
/* Hide default checkbox */
.gfield_checkbox input[type="checkbox"] {
  display: none !important;
}

.gfield_checkbox li label {
  padding-left: 30px !important;
}

/* Create custom checkbox */
.gfield_checkbox label {
  position: relative;
  /*   padding-left: 30px; */
  cursor: pointer;
  font-size: 16px; /* Adjust as needed */
  display: flex;
  align-items: center;
}

/* Add custom checkbox appearance */
.gfield_checkbox label::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  transform: translateY(-50%);
  background-color: transparent;
  border: 2px solid #000;
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
}

/* Checked state */
.gfield_checkbox input[type="checkbox"]:checked + label::before {
  background-color: #000;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Add styling for disabled checkboxes */
.gfield_checkbox input[type="checkbox"]:disabled + label {
  opacity: 0.5;
  cursor: not-allowed;
}

.gfield_checkbox input[type="checkbox"]:disabled + label::before {
  background-color: #cccccc;
  border-color: #999999;
}

/* Step section at top of page */
.character-builder .gf_step_number {
  display: none !important;
}
.character-builder .gf_page_steps {
  display: flex;
  border-bottom: none !important;
}
.character-builder .gf_step {
  flex-grow: 1;
  text-align: center;
}

/* Realm Page styling */

#label_3_26_0,
#label_3_26_1,
#label_3_26_2 {
  width: 100%;
  padding-bottom: 40px;
  max-width: 95% !important;
}
.custom-section {
  text-align: center;
}

.custom-section img {
  max-width: 100%; /* Ensures the image is responsive */
  height: auto;
}
.custom-section h2 {
  font-family: "aerohate" !important;
  color: #fff !important;
  text-decoration: none !important;
  position: relative;
  top: 20px;
}
.custom-section .realm-p {
  margin: 10px 0;
  color: #fff !important;
  position: relative;
  padding-top: 25px;
}

.custom-section input[type="checkbox"] {
  margin-top: 10px;
}

@media only screen and (min-width: 922px) {
  .realm-radio-buttons .gfield_radio {
    display: flex;
  }
  .realm-radio-buttons .gfield_radio .gchoice {
    flex-grow: 1;
    text-align: center;
  }
}
.gform_body .wp-block-group {
  padding-bottom: 60px;
}

/* Skills page */

.form-skill {
  background-color: #ede2c6bf !important;
  border: 1px solid #844725 !important;
  text-align: center !important;
  padding: 30px;
  width: 100%;
}
.form-skill h2,
.form-global-skills h3,
.medical-skills .gfield_label,
.armour-profeciency .gfield_label,
.weapon-profeciency .gfield_label {
  font-family: aerohate !important;
  color: #000 !important;
  text-decoration: none !important;
  font-size: 1.5rem !important;
  font-weight: 400 !important;
}
.medical-skills label,
.armour-profeciency label,
.weapon-profeciency label,
.weaver-skills label {
  color: #000 !important;
}
.form-skill p {
  max-width: 90ch !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.dropdown-selection .ginput_container {
  border: 1px solid #844725 !important;
  padding: 10px 20px !important;
  background-color: #ece7da !important;
}
.dropdown-selection label {
  font-family: aerohate !important;
  color: #000 !important;
  font-size: 25px !important;
  font-weight: 400 !important;
}
.dropdown-selection label span {
  font-family: Scala Sans !important;
  font-size: 15px !important;
}

.dropdown,
.dropdown-section {
  margin-top: 0 !important;
  /* 	border: 1px solid #844725 !important; */
  padding: 10px 20px !important;
  /*   background-color: #ece7da !important; */
  color: #000 !important;
}
.dropdown div ul li label {
  color: #000 !important;
  font-family: aerohate !important;
  font-size: 25px !important;
}
.dropdown div ul li label span {
  font-family: Scala Sans !important;
  font-size: 15px !important;
}
.dropdown-section div ul li label {
  font-family: Scala Sans !important;
  font-size: 15px !important;
}

@media only screen and (min-width: 641px) {
  .gform_legacy_markup_wrapper ul.gform_fields li.gfield {
    padding-right: 0px !important;
  }
}
.gform_wrapper .dropdown-selection input[type="radio"] {
  width: 22px !important;
  height: 22px !important;
  margin-left: 5px !important;
  margin-top: 0px !important;
}
.gform_wrapper .dropdown-selection input[type="radio"]:checked::before {
  top: 2px;
  left: -3px;
  width: 14px;
  height: 14px;
  margin-left: 5px !important;
}
/* Character Page */

.font-title label {
  font-family: aerohate !important;
  color: #000 !important;
  font-size: 25px !important;
  font-weight: 400 !important;
}
.font-title label span {
  font-family: Scala Sans !important;
}
.font-title textarea,
.font-title select,
.font-title input {
  border: 1px solid #844725 !important;
  background-color: #ece7da !important;
  color: #000 !important; /* this colour needs to be amended */
}

@media only screen and (min-width: 921px) {
  .gf_right {
    width: 50%;
    float: right;
  }
  .display-image {
    width: 500px;
    float: left;
    position: absolute;
  }
}
/* Form Footer buttons */
.character-builder .gform_page_footer {
  text-align: center !important;
  border-top: none !important;
}
.character-builder .gform_previous_button,
.character-builder .gform_next_button,
.gform_button,
.gform_save_link {
  font-family: aerohate !important;
  font-size: 20px !important;
  border: none !important;
  width: 120px !important;
}

.desc-hide .gfield_description {
  display: none;
}
/* Tooltip code */
.gf-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-left: 5px;
  font-size: 16px;
  color: #0073aa; /* Change color if needed */
}

.gf-tooltip svg {
  width: 16px;
  height: 16px;
  stroke: #0073aa; /* Adjust icon color */
}

.gf-tooltip .tooltip-text {
  display: none; /* Hide by default */
  position: absolute;
  background: #333;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  width: 200px;
  z-index: 100;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
}

.gf-tooltip .tooltip-text.visible {
  display: block !important; /* Show only when clicked */
}

/* Ensure links inside tooltips are clickable */
.gf-tooltip .tooltip-text a {
  color: #ffcc00;
  text-decoration: underline;
  pointer-events: auto; /* Allows clicking */
}

.plus-minus-btn {
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
}

.plus-btn {
  color: green;
}

.minus-btn {
  color: red;
}

.mastery-text {
  font-style: italic;
  margin-left: 10px;
}
#gform_confirmation_message_3 {
  color: #000 !important;
  text-align: center;
  padding-bottom: 50px;
}

/* Custom Tooltip Styling */
.custom-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-left: 5px;
}

.custom-tooltip-icon {
  width: 16px;
  height: 16px;
  color: #844725;
  margin-left: 4px;
}

.custom-tooltip-content {
  display: none;
  position: absolute;
  background: #ede2c6;
  color: #844725;
  border: 1px solid #844725;
  padding: 10px;
  border-radius: 4px;
  width: 200px;
  z-index: 100;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
  font-family: "Scala Sans", sans-serif;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.custom-tooltip-content.visible {
  display: block;
}

.weaver-points-control {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
}

.weaver-points-control button {
  width: 24px;
  height: 24px;
  border: 1px solid #000000;
  background: #000000;
  cursor: pointer;
  border-radius: 3px;
  font-weight: bold;
}

.weaver-points-control button:hover {
  background: #815e5e;
}

.weaver-points-control .points {
  margin: 0 8px;
  min-width: 20px;
  text-align: center;
}

.weaver-points-control button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gform_legacy_markup_wrapper div.validation_error {
    width: fit-content; !important
    text-align: center; !important
}