/* =============================================
   PRIMARY BUTTON
   Class: primary-button
   ============================================= */

.primary-button .elementor-button {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  overflow: hidden;
  background-color: transparent !important;
  border: 2px solid #FDBA4A !important;
  border-radius: 100px;
  padding: 0 0 0 28px !important;
  color: #ffffff;
  font-family: elza, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
}

.primary-button .elementor-button::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  width: 76px;
  border-radius: 100px;
  background-color: #FDBA4A;
  transition: width 0.4s ease;
  z-index: 1;
}

.primary-button .elementor-button:hover::before {
  width: calc(100% + 4px);
}

.primary-button .elementor-button-content-wrapper {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-grow: 1 !important;
  position: relative;
  z-index: 3;
}

.primary-button .elementor-button-text {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  padding: 14px 0 !important;
  white-space: nowrap;
  order: 0;
  position: relative;
  z-index: 3;
  color: #ffffff;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
  will-change: color;
}

.primary-button .elementor-button:hover .elementor-button-text {
  color: rgb(23, 31, 58);
}

.primary-button .elementor-button-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
  order: 1;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  width: 76px;
  margin: -2px -2px -2px 16px !important;
  background-color: transparent !important;
  border-radius: 0 100px 100px 0;
  position: relative;
  z-index: 2;
}

.primary-button .elementor-button-icon svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.primary-button .elementor-button-icon svg path {
  fill: rgb(23, 31, 58);
}

@media (max-width: 767px) {
  .primary-button .elementor-button {
    font-size: 14px !important;
    padding: 0 0 0 20px !important;
  }

  .primary-button .elementor-button::before {
    width: 66px;
  }

  .primary-button .elementor-button-icon {
    width: 66px;
  }
}


/* =============================================
   PRIMARY BUTTON — SMALL
   Class: primary-button-small
   16px desktop, 14px mobile
   ============================================= */

.primary-button-small .elementor-button {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  overflow: hidden;
  background-color: transparent !important;
  border: 2px solid #FDBA4A !important;
  border-radius: 100px;
  padding: 0 0 0 20px !important;
  color: #ffffff;
  font-family: elza, sans-serif;
  font-size: 16px !important;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
}

.primary-button-small .elementor-button::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  width: 58px;
  border-radius: 100px;
  background-color: #FDBA4A;
  transition: width 0.4s ease;
  z-index: 1;
}

.primary-button-small .elementor-button:hover::before {
  width: calc(100% + 4px);
}

.primary-button-small .elementor-button-content-wrapper {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-grow: 1 !important;
  position: relative;
  z-index: 3;
}

.primary-button-small .elementor-button-text {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  padding: 10px 0 !important;
  white-space: nowrap;
  order: 0;
  position: relative;
  z-index: 3;
  color: #ffffff;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
  will-change: color;
}

.primary-button-small .elementor-button:hover .elementor-button-text {
  color: rgb(23, 31, 58);
}

.primary-button-small .elementor-button-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
  order: 1;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  width: 58px;
  margin: -2px -2px -2px 12px !important;
  background-color: transparent !important;
  border-radius: 0 100px 100px 0;
  position: relative;
  z-index: 2;
}

.primary-button-small .elementor-button-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.primary-button-small .elementor-button-icon svg path {
  fill: rgb(23, 31, 58);
}

@media (max-width: 767px) {
  .primary-button-small .elementor-button {
    font-size: 14px !important;
    padding: 0 0 0 16px !important;
  }

  .primary-button-small .elementor-button::before {
    width: 52px;
  }

  .primary-button-small .elementor-button-icon {
    width: 52px;
  }
}


/* =============================================
   GRAVITY FORMS SUBMIT BUTTON
   Matches primary-button style.
   ============================================= */

button.gform_button {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  overflow: hidden !important;
  background-color: transparent !important;
  border: 2px solid #FDBA4A !important;
  border-radius: 100px !important;
  padding: 0 0 0 28px !important;
  color: #ffffff !important;
  font-family: elza, sans-serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  cursor: pointer;
  width: auto !important;
  min-width: 0 !important;
}

button.gform_button::before {
  content: '' !important;
  position: absolute !important;
  top: -2px !important;
  right: -2px !important;
  bottom: -2px !important;
  left: auto !important;
  width: 76px !important;
  height: auto !important;
  border-radius: 100px !important;
  background-color: #FDBA4A !important;
  background-image: none !important;
  transition: width 0.4s ease !important;
  z-index: 1 !important;
  display: block !important;
}

button.gform_button:hover::before {
  width: calc(100% + 4px) !important;
}

button.gform_button .gform_button_text {
  display: flex !important;
  align-items: center !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  padding: 14px 0 !important;
  white-space: nowrap !important;
  position: relative !important;
  z-index: 3 !important;
  color: #ffffff !important;
  -webkit-transition: color 0.2s ease !important;
  transition: color 0.2s ease !important;
  will-change: color;
}

button.gform_button:hover .gform_button_text {
  color: rgb(23, 31, 58) !important;
}

button.gform_button .gform_button_icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  width: 76px !important;
  margin: -2px -2px -2px 16px !important;
  background-color: transparent !important;
  border-radius: 0 100px 100px 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

button.gform_button .gform_button_icon svg {
  width: 30px !important;
  height: 30px !important;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

button.gform_button .gform_button_icon svg path {
  fill: rgb(23, 31, 58) !important;
}

@media (max-width: 767px) {
  button.gform_button {
    font-size: 14px !important;
    padding: 0 0 0 20px !important;
  }

  button.gform_button::before {
    width: 66px !important;
  }

  button.gform_button .gform_button_icon {
    width: 66px !important;
  }
}

/* =============================================
   SECONDARY BUTTON
   Standalone button element with link support.
   ============================================= */

/* Secondary Button - wrapper reset */
.secondary-button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Target the Elementor anchor element */
.secondary-button .elementor-button {
  background-color: transparent !important;
  color: #ffffff;
  font-family: elza, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  border: none;
  padding: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.secondary-button .elementor-button:hover {
  transform: scale(1.1);
}

/* Remove Elementor's default content wrapper flex interference */
.secondary-button .elementor-button-content-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

/* Underline on the button text */
.secondary-button .elementor-button-text {
  padding: 0 0 3px 0;
  border-bottom: 1px solid #ffffff;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

/* Size the uploaded SVG icon to match .grid-button */
.secondary-button .elementor-button-icon {
  width: 30px;
  height: 30px;
  margin: -2px;
  margin-left: 10px;
}

.secondary-button .elementor-button-icon svg {
  width: 30px;
  height: 30px;
}

/* Hover state */
.secondary-button .elementor-button:hover .elementor-button-text {
  color: #FDBA4A;
  border-bottom-color: #FDBA4A;
}

/* Mobile */
@media (max-width: 767px) {
  .secondary-button .elementor-button {
    font-size: 14px;
  }
}

/* =============================================
   GRID BUTTON
   Text element without link support. Used for grids where the parent container is linked.
   ============================================= */

.grid-button {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  color: #ffffff;
  font-family: elza, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
}

.grid-button svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin: -2px;
  margin-left: 10px;
}

.grid-button span {
  padding-bottom: 3px;
  border-bottom: 2px solid #ffffff;
}

.grid-button:hover span {
  color: #FDBA4A;
  border-bottom-color: #FDBA4A;
}

@media (max-width: 767px) {
  .grid-button {
    font-size: 14px;
  }
}

