/* ================================================================
   Sync Inn Digital — Global Button Components

   Variants:
     .sid-btn         — gradient bg, with arrow SVG (rotates 45° on hover)
     .sid-btn--plain  — gradient bg, without arrow
     .sid-btn--white  — white bg, with arrow SVG (rotates 45° on hover)
     .wpforms-submit  — WPForms submit button (standalone !important block)

   Hover (all): yellow (#FFFF8F) slides up from bottom; text → black.
   ================================================================ */

/* ── Gradient base — shared by .sid-btn and .sid-btn--plain ──── */

.sid-btn,
.sid-btn--plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px 12px 20px;
  background: linear-gradient(135deg, var(--sid-primary-blue, #0047D8) 0%, #32CCFF 100%);
  color: var(--sid-white, #fff) !important;
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.3s ease;

}

/* Yellow fill slides up from bottom on hover */
.sid-btn::before,
.sid-btn--plain::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--sid-yellow, #FFFF8F);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.sid-btn:hover,
.sid-btn:focus,
.sid-btn--plain:hover,
.sid-btn--plain:focus {
  color: var(--sid-black, #000) !important;
  outline: none;

}

.sid-btn:hover::before,
.sid-btn--plain:hover::before {
  transform: translateY(0);
}

/* Plain (no arrow) gets more generous left/right padding */
.sid-btn--plain {
  padding: 16px 28px;
}

/* ── Arrow variant (gradient) — SVG icon rotates 45° on hover ── */

.sid-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.sid-btn:hover svg {
  transform: rotate(45deg);
}

/* ── White arrow button ───────────────────────────────────────── */

.sid-btn--white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px 12px 20px;
  background: var(--sid-white, #fff);
  color: var(--sid-black, #000) !important;
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.3s ease;

}

/* Yellow fill slides up from bottom on hover */
.sid-btn--white::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--sid-yellow, #FFFF8F);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.sid-btn--white:hover,
.sid-btn--white:focus {
  color: var(--sid-black, #000) !important;
  outline: none;

}

.sid-btn--white:hover::before {
  transform: translateY(0);
}

/* SVG icon — rotates 45° on hover */
.sid-btn--white svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.sid-btn--white:hover svg {
  transform: rotate(45deg);
}

/* ── WPForms submit — uses !important to beat WPForms' own CSS ── */
/*
 * WPForms enqueues its own stylesheet with !important on border, bg,
 * padding etc.  This dedicated block matches that specificity level
 * so our gradient style takes precedence.
 * Uses ::after for the yellow fill (WPForms may occupy ::before).
 */

.wpforms-submit {
  border: none !important;
  border-radius: 50px !important;
  background: linear-gradient(135deg, var(--sid-primary-blue, #0047D8) 0%, #32CCFF 100%) !important;
  color: var(--sid-white, #fff) !important;
  font-family: 'Poppins', var(--sid-font-heading, sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  cursor: pointer;
  overflow: hidden !important;
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: all 0.3s ease;
  z-index: 1;
}

/* Yellow fill — slides up from bottom on hover */
.wpforms-submit::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--sid-yellow, #FFFF8F) !important;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.wpforms-submit:hover,
.wpforms-submit:focus {
  color: var(--sid-black, #000) !important;
  outline: none;
}

.wpforms-submit:hover::after {
  transform: translateY(0);
}
