/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/


/* Classes needed by Theme Check */
.wp-caption-text,
.gallery-caption,
.bypostauthor {
}


/* Gravity Forms: styled-boxes (checkboxes + radios as clickable boxes) */
.styled-boxes .gfield_checkbox,
.styled-boxes .gfield_radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.styled-boxes .gchoice {
  position: relative;
  margin: 0;
}

/* Hide native controls but keep them accessible */
.styled-boxes .gchoice input[type="checkbox"],
.styled-boxes .gchoice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Box styling */
.styled-boxes .gchoice input[type="checkbox"] + label,
.styled-boxes .gchoice input[type="radio"] + label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 2px solid rgba(0,0,0,.15);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  line-height: 1.2;
  transition: all .15s ease-in-out;
}

/* Hover */
.styled-boxes .gchoice input[type="checkbox"] + label:hover,
.styled-boxes .gchoice input[type="radio"] + label:hover {
  border-color: rgba(0,0,0,.3);
  transform: translateY(-1px);
}

/* Checked state */
.styled-boxes .gchoice input[type="checkbox"]:checked + label,
.styled-boxes .gchoice input[type="radio"]:checked + label {
  border-color: var(--awb-color5);
  background: rgba(0,0,0,.03);
  box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}

/* Keyboard focus */
.styled-boxes .gchoice input[type="checkbox"]:focus + label,
.styled-boxes .gchoice input[type="radio"]:focus + label,
.styled-boxes .gchoice input[type="checkbox"]:focus-visible + label,
.styled-boxes .gchoice input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--awb-color5);
  outline-offset: 2px;
}

/* Optional: make boxes full-width on mobile */
@media (max-width: 640px) {
  .styled-boxes .gchoice {
    flex: 1 1 100%;
  }
  .styled-boxes .gchoice input[type="checkbox"] + label,
  .styled-boxes .gchoice input[type="radio"] + label {
    width: 100%;
  }
}