/* ============================================================
   Service Quote Calculator — Professional Card UI Styles
   ============================================================
   Add this CSS to: WordPress Dashboard → Appearance → Customize
   → Additional CSS

   This transforms plain Fluent Forms radio buttons and checkboxes
   into a professional card-style UI with icons and descriptions.
   ============================================================ */

/* ===== INTRO HEADING ===== */
.ffs_intro h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 6px;
  line-height: 1.3;
}
.ffs_intro p {
  font-size: 14px;
  color: #666;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* ===== STEP HEADINGS (Section Breaks) ===== */
.ffs_step_heading {
  margin-top: 8px !important;
  margin-bottom: 14px !important;
  border: none !important;
  padding: 0 !important;
}
.ffs_step_heading .ff-el-section-title,
.ffs_step_heading h3 {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #666 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* ===== SERVICE CARDS (Radio buttons → Card grid) ===== */

/* Hide the field label "Service" above the cards */
.ffs_card_radio > .ff-el-input--label {
  display: none !important;
}

/* Grid layout for cards */
.ffs_card_radio .ff-el-input--content,
.ffs_card_radio .ff-el-form-check-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 12px !important;
}

/* Reset each option container */
.ffs_card_radio .ff-el-form-check {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

/* Hide the actual radio circle */
.ffs_card_radio input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
  top: 50% !important;
  left: 16px !important;
  margin: 0 !important;
}

/* The label becomes the card */
.ffs_card_radio label,
.ffs_card_radio .ff-el-form-check-label {
  display: block !important;
  padding: 18px 20px 18px 64px !important;
  border: 1.5px solid #e5e5e5 !important;
  border-radius: 12px !important;
  background: #fff !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.15s ease !important;
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  line-height: 1.3 !important;
  min-height: 78px !important;
  box-sizing: border-box !important;
}

.ffs_card_radio label:hover {
  border-color: #c7c7c7 !important;
  background: #fafafa !important;
}

/* Selected state */
.ffs_card_radio label:has(input:checked) {
  border-color: #534ab7 !important;
  background: #eeedfe !important;
  box-shadow: 0 0 0 1px #534ab7 !important;
  color: #3c3489 !important;
}

/* Icon container (circle/square with emoji) */
.ffs_card_radio label::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

/* Description text below title */
.ffs_card_radio label::after {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #666;
  margin-top: 4px;
  line-height: 1.4;
}

.ffs_card_radio label:has(input:checked)::after {
  color: #534ab7;
}

/* Per-option icons + descriptions (matched by value attribute) */
.ffs_card_radio label:has(input[value="350"])::before {
  content: "🌐";
  background: #eeedfe;
}
.ffs_card_radio label:has(input[value="350"])::after {
  content: "Custom design, CMS, contact forms";
}

.ffs_card_radio label:has(input[value="150"])::before {
  content: "✍️";
  background: #e1f5ee;
}
.ffs_card_radio label:has(input[value="150"])::after {
  content: "WordPress setup, theme, SEO basics";
}

.ffs_card_radio label:has(input[value="600"])::before {
  content: "🛒";
  background: #faeeda;
}
.ffs_card_radio label:has(input[value="600"])::after {
  content: "WooCommerce, payments, products";
}

.ffs_card_radio label:has(input[value="120"])::before {
  content: "📲";
  background: #fbeaf0;
}
.ffs_card_radio label:has(input[value="120"])::after {
  content: "Branded graphics, scheduling setup";
}

/* ===== ADD-ON CHECKBOXES (Pill-style rows) ===== */

.ffs_card_check > .ff-el-input--label {
  display: none !important;
}

.ffs_card_check .ff-el-input--content,
.ffs_card_check .ff-el-form-check-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.ffs_card_check .ff-el-form-check {
  margin: 0 !important;
  padding: 0 !important;
}

.ffs_card_check input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
  top: 50% !important;
  left: 16px !important;
  margin: 0 !important;
}

.ffs_card_check label,
.ffs_card_check .ff-el-form-check-label {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 16px !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 8px !important;
  background: #fff !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
}

.ffs_card_check label:hover {
  border-color: #c7c7c7 !important;
  background: #fafafa !important;
}

.ffs_card_check label:has(input:checked) {
  border-color: #1d9e75 !important;
  background: #e1f5ee !important;
  color: #085041 !important;
}

/* Custom checkbox indicator */
.ffs_card_check label::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  transition: all 0.15s;
}

.ffs_card_check label:has(input:checked)::after {
  background-color: #1d9e75;
  border-color: #1d9e75;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-position: center;
  background-size: 12px;
  background-repeat: no-repeat;
}

/* ===== TEXT INPUTS (Name & Email) ===== */
.fluentform .ffs_name_field,
.fluentform .ffs_email_field {
  margin-bottom: 14px !important;
}

.fluentform .ffs_name_field > .ff-el-input--label,
.fluentform .ffs_email_field > .ff-el-input--label {
  display: none !important;
}

.fluentform .ffs_name_field input[type="text"],
.fluentform .ffs_email_field input[type="email"],
.fluentform input[type="text"],
.fluentform input[type="email"] {
  padding: 11px 14px !important;
  font-size: 14px !important;
  border: 1px solid #d5d5d5 !important;
  border-radius: 8px !important;
  background: #fff !important;
  transition:
    border-color 0.15s,
    box-shadow 0.15s !important;
  width: 100% !important;
  box-sizing: border-box !important;
  height: auto !important;
}

.fluentform input[type="text"]:focus,
.fluentform input[type="email"]:focus {
  border-color: #534ab7 !important;
  box-shadow: 0 0 0 3px #eeedfe !important;
  outline: none !important;
}

/* ===== INFO BOX ===== */
.ffs_info_box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #eeedfe;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 8px 0 18px;
}

.ffs_info_icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #534ab7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  flex-shrink: 0;
  font-family: Georgia, serif;
}

.ffs_info_text {
  font-size: 13px;
  color: #3c3489;
  line-height: 1.5;
}

/* ===== SUBMIT BUTTON ===== */
.fluentform button[type="submit"],
.fluentform .ff-btn-submit {
  width: 100% !important;
  padding: 13px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  background: #534ab7 !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
  margin-top: 4px !important;
}

.fluentform button[type="submit"]:hover {
  background: #3c3489 !important;
}

/* ===== HIDDEN TOTAL FIELD =====
   To enable real-time price display in the future,
   simply delete or comment out the rule below.
*/
.ff_hidden_total {
  display: none !important;
}

/* ===== FORM CONTAINER POLISH ===== */
.fluentform {
  max-width: 640px;
  margin: 0 auto;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fluentform .ff-el-group {
  margin-bottom: 16px !important;
}

.fluentform .text-danger,
.fluentform .error {
  color: #e24b4a !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 640px) {
  .ffs_card_radio .ff-el-input--content,
  .ffs_card_radio .ff-el-form-check-list {
    grid-template-columns: 1fr !important;
  }

  .ffs_intro h2 {
    font-size: 20px;
  }
}
