/* =========================================================
   LEEFHub Frontend Stylesheet
   Purpose: Unified styling for cards, purchase buttons, and inline forms
   Context: Optimized for Elementor / Divi builder embeds
   ========================================================= */

/* =========================================================
   1️⃣ Card-based Shortcodes (Purchase Options, Subscriptions, Packs)
   ========================================================= */

/* Base wrapper */
.leefhub-shortcode {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* Card container */
.leefhub-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 1rem 1.25rem;
  transition: box-shadow 0.2s ease;
}
.leefhub-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* Headings */
.leefhub-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
}

/* Price highlight */
.leefhub-card .price {
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

/* Description */
.leefhub-card p {
  margin: 0 0 0.75rem;
  color: #4a5568;
  font-size: 0.9rem;
}

/* Buttons (colors injected dynamically via CSS vars or inline styles) */
.leefhub-card .button {
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  display: inline-block;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  /* background + text colors injected dynamically */
}

/* =========================================================
   2️⃣ Inline Form Components (Shared by Purchase + Trial Buttons)
   ========================================================= */

/* 🔹 Inline form container
   - Fluid width and padding
   - Clean box shadow for floating card effect
   - Supports flexible embedding inside Elementor/Divi columns */
.leefhub-inline-form {
  position: relative;
  margin-top: 14px;
  padding: 20px 16px 16px 16px;
  border-left: 3px solid var(--leefhub-shortcode-btn-bg);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

/* 🔹 Close button (“×”) */
.leefhub-close-form {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.leefhub-close-form:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* 🔹 Inline form heading */
.leefhub-inline-form h4 {
  margin: 0 0 16px 0;
  padding-top: 10px;
  font-weight: 700;
  color: var(--leefhub-shortcode-btn-bg);
  font-size: 1.125rem;
  text-align: left;
}

/* 🔹 Input fields */
.leefhub-inline-form input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.leefhub-inline-form input:focus {
  border-color: var(--leefhub-shortcode-btn-bg);
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
  outline: none;
}

/* 🔹 Submit button */
.leefhub-submit-btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: var(--leefhub-shortcode-btn-bg, #0073aa);
  color: var(--leefhub-shortcode-btn-text, #fff);
  transition: opacity 0.2s ease;
}
.leefhub-submit-btn:hover {
  opacity: 0.9;
}

/* 🔹 Phase summary text */
.leefhub-phase-summary {
  margin-top: 16px;
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
  text-align: center;
}

/* =========================================================
   3️⃣ Trial + Purchase Buttons (Global Styles)
   ========================================================= */

/* Trial button — hyperlink style
   - Inherits parent alignment (Elementor/Divi text module)
   - Stays inline without forcing centering */
.leefhub-trial-btn {
  display: inline-block;
  text-decoration: underline;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0.375rem 0;
  cursor: pointer;
  text-align: inherit; /* ✅ inherits alignment instead of forcing center */
  color: var(--leefhub-shortcode-btn-bg, #0073aa);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.leefhub-trial-btn:hover {
  opacity: 0.8;
  text-decoration: none;
  border-bottom: 1px solid var(--leefhub-shortcode-btn-bg, #0073aa);
}

/* Purchase button — solid block style */
.leefhub-purchase-btn {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  background: var(--leefhub-shortcode-btn-bg, #0073aa);
  color: var(--leefhub-shortcode-btn-text, #fff);
}
.leefhub-purchase-btn:hover {
  opacity: 0.9;
}

/* =========================================================
   4️⃣ Responsive + Builder Compatibility
   ========================================================= */

/* Mobile adjustments */
@media (max-width: 600px) {
  .leefhub-inline-form {
    padding: 16px 14px;
    border-left-width: 2px;
  }

  .leefhub-inline-form h4 {
    font-size: 1rem;
    text-align: center;
  }

  .leefhub-submit-btn {
    font-size: 0.95rem;
    padding: 0.65rem;
  }

  .leefhub-inline-form input {
    font-size: 15px;
  }

  .leefhub-purchase-btn {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}

/* Builder embedding fix — ensures full width inside flex/grid columns */
.leefhub-checkout-inline {
  width: 100%;
  max-width: 480px;
  flex: 1 1 auto;
  box-sizing: border-box;
}

/* TRIAL */
.leefhub-trial-start {
  text-decoration: underline;
  color: var(--leefhub-shortcode-btn-bg, #0073aa);
  font-weight: 600;
  cursor: pointer;
  transition: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
}

.leefhub-trial-start:hover,
.leefhub-trial-start:focus,
.leefhub-trial-start:active {
  text-decoration: underline !important;
  color: var(--leefhub-shortcode-btn-bg, #0073aa) !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.lh-tooltip {
    padding: 6px 4px;
    font-size: 14px;
}

.lh-global-btn {
    background: var(--lh-primary);
    color: var(--lh-text);
    padding: 8px 14px;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.lh-global-btn:hover {
    background: var(--lh-primary-hover);
}

.leefhub-scroll-arrow {
    display: none !important;
}
