/* ==========================================================================
   FLUENT FORM - OFFSET & CMYK DESIGN SYSTEM STYLING V3 (RESPONSIVE & ACCESSIBLE)
   ========================================================================== */

/* Form Wrapper & Global Reset */
.fluentform,
.fluentform_wrapper_3,
.fluentform_wrapper_3 .frm-fluent-form,
.ff-default {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  color: #F4F4F6 !important;
}

.fluentform_wrapper_3 * {
  box-sizing: border-box !important;
}

/* Row Spacing */
.fluentform_wrapper_3 .ff-el-group {
  margin-bottom: 1.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Two Column Flex Container */
.fluentform_wrapper_3 .ff-t-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1.25rem !important;
  margin-bottom: 1.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
}
.fluentform_wrapper_3 .ff-t-container .ff-t-cell {
  flex: 1 1 calc(50% - 0.75rem) !important;
  min-width: 250px !important;
  max-width: 100% !important;
}
@media (max-width: 600px) {
  .fluentform_wrapper_3 .ff-t-container .ff-t-cell {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }
}
.fluentform_wrapper_3 .ff-t-container .ff-t-cell .ff-el-group {
  margin-bottom: 0 !important;
}

/* Labels */
.fluentform_wrapper_3 .ff-el-input--label label {
  font-family: 'Space Mono', monospace !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #cbd5e1 !important;
  margin-bottom: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
}

/* Single Cyan Required Asterisk */
.fluentform_wrapper_3 .ff-el-is-required label::after {
  content: " *" !important;
  color: #00F0FF !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
}
.fluentform_wrapper_3 .asterisk-right:not(.ff-el-is-required) label::after {
  display: none !important;
}

/* Text Inputs, Email, Tel, Textarea - DARK THEME */
.fluentform_wrapper_3 input.mgs-input-field,
.fluentform_wrapper_3 textarea.mgs-textarea-field,
.fluentform_wrapper_3 .ff-el-form-control,
.ff-default input.ff-el-form-control,
.ff-default textarea.ff-el-form-control {
  width: 100% !important;
  background-color: #1A1E26 !important;
  border: 1px solid #2B313E !important;
  border-radius: 0.75rem !important;
  padding: 0.9rem 1.15rem !important;
  color: #FFFFFF !important;
  font-family: 'Space Mono', monospace !important;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: none !important;
}
.fluentform_wrapper_3 .ff-el-form-control::placeholder,
.ff-default .ff-el-form-control::placeholder {
  color: #64748b !important;
}
.fluentform_wrapper_3 .ff-el-form-control:focus,
.ff-default .ff-el-form-control:focus {
  outline: none !important;
  border-color: #00F0FF !important;
  background-color: #12141A !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25) !important;
}

/* Textarea specific */
.fluentform_wrapper_3 textarea.ff-el-form-control,
.ff-default textarea.ff-el-form-control {
  min-height: 125px !important;
  resize: vertical !important;
}

/* Checkboxes (Services Selection) - 3 Column Grid of Cards */
.fluentform_wrapper_3 .mgs-services-section .ff-el-input--content {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  width: 100% !important;
}
@media (max-width: 900px) {
  .fluentform_wrapper_3 .mgs-services-section .ff-el-input--content {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  .fluentform_wrapper_3 .mgs-services-section .ff-el-input--content {
    grid-template-columns: 1fr !important;
  }
}

.fluentform_wrapper_3 .mgs-services-section .ff-el-form-check {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: flex !important;
}
.fluentform_wrapper_3 .mgs-services-section .ff-el-form-check-label {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  background-color: #1A1E26 !important;
  border: 1px solid #232733 !important;
  border-radius: 0.75rem !important;
  padding: 0.85rem 1rem !important;
  color: #cbd5e1 !important;
  font-family: 'Space Mono', monospace !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
}
.fluentform_wrapper_3 .mgs-services-section .ff-el-form-check-label:hover {
  border-color: #00F0FF !important;
  color: #FFFFFF !important;
  background-color: #202530 !important;
}
/* Selected state for checkbox */
.fluentform_wrapper_3 .mgs-services-section .ff-el-form-check-label:has(input:checked),
.fluentform_wrapper_3 .mgs-services-section .ff-el-form-check.ff_item_selected .ff-el-form-check-label {
  background-color: rgba(0, 240, 255, 0.08) !important;
  border-color: #00F0FF !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2) !important;
}
/* Custom Checkbox Input */
.fluentform_wrapper_3 .mgs-services-section input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  min-width: 1.15rem !important;
  border: 1.5px solid #3b4252 !important;
  border-radius: 0.35rem !important;
  background-color: #12141A !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  display: inline-grid !important;
  place-content: center !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}
.fluentform_wrapper_3 .mgs-services-section input[type="checkbox"]:checked {
  background-color: #00F0FF !important;
  border-color: #00F0FF !important;
}
.fluentform_wrapper_3 .mgs-services-section input[type="checkbox"]:checked::before {
  content: "✓" !important;
  color: #000000 !important;
  font-size: 0.8rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* Radio Buttons (Budget Selection) - 4 Column Pills */
.fluentform_wrapper_3 .mgs-budget-section .ff-el-input--content {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  width: 100% !important;
}
@media (max-width: 768px) {
  .fluentform_wrapper_3 .mgs-budget-section .ff-el-input--content {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 420px) {
  .fluentform_wrapper_3 .mgs-budget-section .ff-el-input--content {
    grid-template-columns: 1fr !important;
  }
}

.fluentform_wrapper_3 .mgs-budget-section .ff-el-form-check {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: flex !important;
}
.fluentform_wrapper_3 .mgs-budget-section .ff-el-form-check-label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0.85rem 0.5rem !important;
  background-color: #1A1E26 !important;
  border: 1px solid #2B313E !important;
  border-radius: 0.75rem !important;
  color: #cbd5e1 !important;
  font-family: 'Space Mono', monospace !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  user-select: none !important;
}
.fluentform_wrapper_3 .mgs-budget-section .ff-el-form-check-label:hover {
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}
.fluentform_wrapper_3 .mgs-budget-section input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}
/* Selected state for radio pill: Solid White with Black text */
.fluentform_wrapper_3 .mgs-budget-section .ff-el-form-check-label:has(input:checked),
.fluentform_wrapper_3 .mgs-budget-section .ff-el-form-check.ff_item_selected .ff-el-form-check-label {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border-color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   GDPR PRIVACY & TERMS - COMPLETE RESTYLING & ALIGNMENT
   ========================================================================== */
.fluentform_wrapper_3 .mgs-terms-section,
.fluentform_wrapper_3 .ff-el-tc {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  margin-top: 1.25rem !important;
  margin-bottom: 1.25rem !important;
  box-sizing: border-box !important;
}

.fluentform_wrapper_3 .ff-el-tc label.ff_tc_label,
.fluentform_wrapper_3 .mgs-terms-section label.ff_tc_label,
.fluentform_wrapper_3 .mgs-terms-section .ff-el-form-check-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.85rem !important;
  cursor: pointer !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  user-select: none !important;
}

.fluentform_wrapper_3 .ff-el-tc label.ff_tc_label > span.ff_tc_checkbox,
.fluentform_wrapper_3 .mgs-terms-section .ff_tc_checkbox {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-width: 1.25rem !important;
  min-height: 1.25rem !important;
  padding: 0 !important;
  margin-top: 0.15rem !important;
  flex-shrink: 0 !important;
}

.fluentform_wrapper_3 .ff-el-tc label.ff_tc_label > div.ff_t_c,
.fluentform_wrapper_3 .mgs-terms-section .ff_t_c {
  display: block !important;
  flex: 1 1 auto !important;
  font-family: 'Space Mono', monospace !important;
  font-size: 0.75rem !important;
  line-height: 1.55 !important;
  color: #94a3b8 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Custom Checkbox Input Reset and Style */
.fluentform_wrapper_3 .ff-el-tc input[type="checkbox"],
.fluentform_wrapper_3 .mgs-terms-section input[type="checkbox"],
.fluentform_wrapper_3 input.mgs-terms-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-width: 1.25rem !important;
  min-height: 1.25rem !important;
  max-width: 1.25rem !important;
  max-height: 1.25rem !important;
  border: 1.5px solid #3b4252 !important;
  border-radius: 0.35rem !important;
  background-color: #12141A !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  display: inline-grid !important;
  place-content: center !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  outline: none !important;
  vertical-align: top !important;
}

.fluentform_wrapper_3 .ff-el-tc input[type="checkbox"]:hover,
.fluentform_wrapper_3 .mgs-terms-section input[type="checkbox"]:hover,
.fluentform_wrapper_3 input.mgs-terms-input:hover {
  border-color: #00F0FF !important;
  background-color: #1A1E26 !important;
}

.fluentform_wrapper_3 .ff-el-tc input[type="checkbox"]:checked,
.fluentform_wrapper_3 .mgs-terms-section input[type="checkbox"]:checked,
.fluentform_wrapper_3 input.mgs-terms-input:checked {
  background-color: #00F0FF !important;
  border-color: #00F0FF !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4) !important;
}

.fluentform_wrapper_3 .ff-el-tc input[type="checkbox"]:checked::before,
.fluentform_wrapper_3 .mgs-terms-section input[type="checkbox"]:checked::before,
.fluentform_wrapper_3 input.mgs-terms-input:checked::before {
  content: "✓" !important;
  color: #000000 !important;
  font-size: 0.85rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* ==========================================================================
   SUBMIT BUTTON - RESPONSIVE & LAYOUT SHIFT PREVENTION
   ========================================================================== */
.fluentform_wrapper_3 .mgs-submit-wrapper,
.fluentform_wrapper_3 .ff_submit_btn_wrapper {
  margin-top: 2rem !important;
  margin-bottom: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
  padding: 0 !important;
}

.fluentform_wrapper_3 .mgs-submit-btn,
.fluentform_wrapper_3 .ff-btn-submit,
.fluentform_wrapper_3 button.ff_btn_style,
.fluentform_wrapper_3 button[type="submit"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 1.15rem 1.5rem !important;
  border-radius: 0.75rem !important;
  background-color: #FFFFFF !important;
  color: #000000 !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(0.78rem, 3.2vw, 0.95rem) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  white-space: normal !important; /* CRITICAL: prevents horizontal layout shift on mobile */
  word-break: normal !important;
  text-wrap: balance !important;
  text-align: center !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  line-height: 1.3 !important;
}

.fluentform_wrapper_3 .mgs-submit-btn:hover,
.fluentform_wrapper_3 .ff-btn-submit:hover,
.fluentform_wrapper_3 button.ff_btn_style:hover,
.fluentform_wrapper_3 button[type="submit"]:hover {
  background-color: #00F0FF !important;
  color: #000000 !important;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.7) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 640px) {
  .fluentform_wrapper_3 .mgs-submit-btn,
  .fluentform_wrapper_3 .ff-btn-submit,
  .fluentform_wrapper_3 button.ff_btn_style,
  .fluentform_wrapper_3 button[type="submit"] {
    padding: 0.95rem 1rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.02em !important;
  }
}

/* Success Message */
.fluentform_wrapper_3 .ff-message-success,
#fluentform_3_success {
  background-color: rgba(6, 78, 59, 0.8) !important;
  border: 1px solid rgba(16, 185, 129, 0.6) !important;
  color: #6ee7b7 !important;
  padding: 1.75rem !important;
  border-radius: 1rem !important;
  font-family: 'Space Mono', monospace !important;
  font-size: 0.875rem !important;
  text-align: center !important;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25) !important;
  margin-top: 1rem !important;
}

/* Error Messages */
.fluentform_wrapper_3 .text-danger,
.fluentform_wrapper_3 .error,
.fluentform_wrapper_3 .ff-errors-in-stack {
  color: #FF0055 !important;
  font-family: 'Space Mono', monospace !important;
  font-size: 0.75rem !important;
  margin-top: 0.4rem !important;
}
.fluentform_wrapper_3 .ff-el-is-error .ff-el-form-control {
  border-color: #FF0055 !important;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.3) !important;
}
