  /* Fundwell Apply Form - Minimal Styles */

  /* Basic form layout */
  #fundwell-apply-form {
    max-width: 720px;
  }

  /* Form fields */
  #fundwell-apply-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 400;
  }

  #fundwell-apply-form input,
  #fundwell-apply-form select {
    font-family: early-sans-variable, sans-serif;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    transition: border-color 0.2s ease;
    min-height: 50px;
  }

  .fw-fieldset.is-country select {
    padding: 8px 0px 12px 0px !important; /* top/right/bottom/left */
    margin-bottom: 0px !important;
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("https://cdn.prod.website-files.com/687e7e02d33b1139587be723/6880a085b9fae6bf988e23b6_select-arrow.svg");
    background-repeat: no-repeat;
    background-position: right 16px top 10px;
    background-size: 14px 14px;
  }

  #fundwell-apply-form input::placeholder {
    color: #051E36;
    opacity: 0.4;
  }

  #fundwell-apply-form input:focus,
  #fundwell-apply-form select:focus {
    outline: none;
    box-shadow: none;
  }

  #fundwell-apply-form input[type="radio"],
  #fundwell-apply-form input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
  }

  .fw-radio-wrapper input[type="radio"] {
    width: 18px!important;
    height: 18px;
    margin-bottom: 0px!important;
    min-height: auto!important;
  }

  .fw-radio-wrapper label {
    display: flex!important;
    align-items: center;
    border: 1px solid rgba(229, 229, 229, 1);
    border-radius: 6px;
    font-size: 1rem;
    padding: 8px 16px 8px 8px;
    font-weight: 400;
  }

  #fundwell-apply-form label.text-s {
    font-weight: 500 !important;
  }

  #fundwell-apply-form input[type="checkbox"] {
    width: 22px;
    height: 22px;
    border-radius: 2px;
    border: 1px solid rgba(229, 229, 229, 1);
  }

  #fundwell-apply-form input[type="file"] {
    border: none;
    padding: 5px;
  }

  .fw-checkbox-wrapper {
    font-size: 12px;
  }

  .fw-checkbox-wrapper input[type="checkbox"] {
    width: 22px!important;
    height: 22px!important;
    border-radius: 2px!important;
    border: 1px solid rgba(229, 229, 229, 1)!important;
    margin-bottom: 0px!important;
  }

  /* Buttons */
  #fundwell-apply-form button { 
    font-size: 20px;
    line-height: 100%;
    font-weight: 400;
    padding: 16px 24px;
    margin: 5px;
    background: rgba(0, 67, 242, 1);
    cursor: pointer;
    border-radius: 40px;
    transition: background-color 0.2s ease;
    color: white;
  }


  @media (max-width: 767px) {
    #fundwell-apply-form button {
      font-size: 17px;
    }
  }

  #fundwell-apply-form button:hover:not(:disabled) {
    background: #0139CE;
  }

  #fundwell-apply-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  #fundwell-apply-form button.primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
  }

  #fundwell-apply-form button.primary:hover:not(:disabled) {
    background: #0139CE;
  }

  #fundwell-apply-form button.secondary {
    line-height: 100%;
    font-weight: 500;
    background: transparent;
    color: #001428;
    border: 1px solid rgba(0, 20, 40, 1);
    padding: 16px 24px;
  }

  #fundwell-apply-form button.secondary.is-small {
    font-size: 14px;
    line-height: 100%;
    font-weight: 500;
    background: transparent;
    color: #001428;
    border: 1px solid rgba(0, 20, 40, 1);
    padding: 10px!important;
  }

  #fundwell-apply-form button.secondary:hover:not(:disabled) {
    background: #001428;
    color: white;
  }
  #fundwell-apply-form button.loading {
    color: transparent !important;
    position: relative;
    background: rgba(0, 67, 242, 1);
  }

  /* Bank options */
  /*.bank-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 5px;
  margin: 10px 0;
  }

  .bank-option {
  padding: 10px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  }*/

  .bank-option:hover {
    background: #f8f9fa;
    border-color: #007bff;
  }

  .bank-option.selected {
    background: #007bff;
    color: white;
    border-color: #007bff;
  }

  /* Modals */
  [id^="modal-"] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  [id^="modal-"] > div {
    background: white;
    padding: 56px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    max-width: 720px;
    width: 90%;
    box-shadow: 3px 21px 48px 0px rgba(0, 0, 0, 0.03);
  }

  /* Error messages */
  .fw-error {
    display: none; 
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 4px;
    margin-bottom: 8px;
    animation: fadeIn 0.2s ease-in;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Invalid field styling */
  #fundwell-apply-form input[aria-invalid="true"],
  #fundwell-apply-form select[aria-invalid="true"] {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
  }

  #fundwell-apply-form input[aria-invalid="true"]:focus,
  #fundwell-apply-form select[aria-invalid="true"]:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
  }

  /* Warning messages */
  #non-us-warning {
    display: none;
    background: #F8F4F0;
    padding: 12px;
    border-radius: 0.5rem;
    color: #001428;
  }

  #two-owners-warning {
    display: none;
    background: #F8F4F0;
    padding: 12px;
    border-radius: 0.5rem;
    color: #001428;
  }

  /* Owner sections 
  #owner-1-section,
  #owner-2-section {
  border: 1px solid #ccc;
  padding: 15px;
  margin: 10px 0;
  background: #f9f9f9;
  border-radius: 4px;
  }*/

  /* Why connect section */
  /*#why-connect {
  background: #f9f9f9;
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
  }

  #why-connect ul {
  margin: 10px 0;
  padding-left: 20px;
  }*/

  /* Manual upload area */
  #drag-drop-area {
    border: 1px dashed rgba(188, 174, 174, 1);
    padding: 3rem;
    text-align: center;
    margin: 45px 0;
    border-radius: 8px;
    transition: border-color 0.2s ease;
    background: rgba(127, 161, 248, 0.05);
    min-height: 462px;
  }

  #drag-drop-area:hover {
    border-color: #007bff;
  }

  /* Range display */
  [data-field-display] {
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    color: #007bff;
  }

  /* Hide elements by default */
  [style*="display:none"] {
    display: none !important;
  }

  /* Business search dropdown */
  #business-search-dropdown {
    display: none;
    /* position: absolute; */
    z-index: 1000;
    left: 0px;
    right: 0px;
    background: #fff;
    border: 1px solid rgba(197, 196, 195, 1);
    width: 100%;
    min-width: 200px;
    /*max-width: 400px;*/
    box-sizing: border-box;
    margin-top: 8px;
    /*max-height: 200px;*/
    overflow-y: auto;
    border-radius: 8px;
  }

  #business-search-dropdown .fw-business-dropdown-item {
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  #business-search-dropdown .fw-business-dropdown-item:hover {
    background: #E5ECFE;
  }

  .fw-business-input-wrapper legend {
    font-family: early-sans-variable, sans-serif;
    font-weight: 500;
    padding: 0 10px;
    font-size: 12px;
  }

  .fw-input-wrapper legend {
    font-family: early-sans-variable, sans-serif;
    font-weight: 500;
    padding: 0 10px;
    font-size: 12px;
  }

  /* Field groups */
  fieldset {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 12px;
    border-radius: 6px;
  }

  fieldset legend {
    font-family: early-sans-variable, sans-serif;
    font-weight: 500;
    font-size: 12px;
    padding: 0 10px;
    line-height: 1.5;
    color: #001428;
  }

  fieldset input,
  fieldset select {
    border: none!important;
    padding: 12px 0!important;
    min-height: auto!important;
  }

  /* Responsive design */
  @media (max-width: 768px) {
    #fundwell-apply-form {
      max-width: 100%;
      padding: 0 15px;
    }

    /*.bank-list {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }*/

    [id^="modal-"] > div {
      width: 95%;
      margin: 10px;
    }
  }

  /* Loading states */
  .loading {
    opacity: 0.6;
    pointer-events: none;
  }

  .loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .amount-slider-container {
    position: relative;
    width: 100%;
    height: 80px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  #amount-slider {
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 1;
    padding-left: 0px !important;
    padding-right: 0px !important;
  }

  .amount-tooltip {
    position: absolute;
    left: 0;
    top: 0;
    /*min-width: 80px;*/
    text-align: center;
    font-weight: bold;
    background: #fff;
    color: #0a2233;
    border-radius: 8px;
    padding: 10px 18px 8px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    font-size: 1.3em;
    z-index: 2;
    pointer-events: none;
    border: 1px solid #D0D5DD;
    transition: left 0.05s cubic-bezier(.4,0,.2,1);
  }

  .amount-tooltip-arrow {
    position: absolute;
    left: 50%;
    bottom: -5.5px;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: white;
    border-bottom-right-radius: 2px;
    border-bottom: 1px solid #D0D5DD;
    border-right: 1px solid #D0D5DD;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.04));
  }

  .fw-error-field {
    border: 2px solid #e53935 !important;
    /*background-color: #fff6f6;*/
  } 

  .fw-stepper-circle.completed {
    border-color: rgb(0, 67, 242);
    background-color: rgb(0, 67, 242);
    color: white;
  }

  .fw-stepper-circle.current {
    border: 2px solid #0043F2
  }

  .fw-radio-button-field:has(input[type="radio"]:checked){
    border-color: #0043F2; /* blue */
  }

  /* WebKit (Chrome, Safari, Edge) */
  input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    box-shadow: 0 0 0 4px #fff;
    border-radius: 50%;
    background: #0043F2;
    cursor: pointer;
    /* Safari sometimes ignores border; fallback: */
    /* box-shadow: 0 0 0 2px #fff inset; */
  }

  [datepicker]{
    background: white !important;
    cursor: pointer !important;
  }

  .calendar>.days-grid>.day.selected{
    background: #7FA1F8 !important;
    color: white !important;
  }

  .calendar>.days-grid>.day.today{
    color: #0043F2 !important;
  }

  input::-webkit-file-upload-button{
    display: none !important;
  }

  input[type="file"] span{
    display: block;
  }

  /* NoUiSlider Custom Styling */
  #nouislider-container {
    margin: 20px 0;
  }

  .noUi-connect {
    background: #0043F2;
    /* Your brand blue */
    transition: width 0.1s ease-out;
  }

  .noUi-handle {
    background: #0043F2 !important;
    border: 4px solid white !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(15, 39, 75, 0.12), 0 4px 16px rgba(15, 39, 75, 0.08) !important;
    cursor: pointer;
    transition: transform 0.1s ease-out;
    width: 24px !important;
    height: 24px !important;
    right: -10px !important;
    top: -6px !important;
    /* Fallback to ensure visibility */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .noUi-handle:hover {
    transform: scale(1.1);
  }

  .noUi-handle:before,
  .noUi-handle:after {
    display: none;
    /* Remove default handle lines */
  }

  .noUi-target {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 12px;
  }

  .noUi-base {
    background: #f0f0f0;
  }

  /* Style NoUiSlider's built-in tooltip to match Webflow design */
  .noUi-tooltip {
    display: block !important;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    white-space: nowrap;
  }

  .noUi-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
  }

  /* Hide the custom tooltip since we're using built-in one */
  #amount-tooltip {
    display: none !important;
  }

  select.select-field {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #9ca5af;
  }

  /* Add specific styling for selected vs placeholder states */
  select.select-field:invalid {
    color: #9ca5af; /* Grey for placeholder */
  }

  select.select-field:valid {
    color: #000000; /* Black for selected values */
  }

  #mb-md {
    margin-bottom: 2.25rem !important;
  }

  #mb-sm {
    margin-bottom: 1.25rem !important;
  }


  /* ==========================================================================
  Box File Upload Styles for Fundwell Form
  ========================================================================== */

  /* Upload Spinner Container */
  .fw-upload-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
  }

  .fw-spinner-circle {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
  }

  .fw-spinner-text {
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* File List Container */
  .fw-file-list {
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
  }

  .fw-file-list:empty {
    display: none;
  }

  /* File Item */
  .fw-file-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
  }

  .fw-file-item:last-child {
    border-bottom: none;
  }

  .fw-file-item:hover {
    background: #f8f9fa;
  }

  .fw-file-item.uploading {
    background: #f0f8ff;
  }

  .fw-file-item.success {
    background: #f0fff4;
  }

  .fw-file-item.error {
    background: #fff5f5;
  }

  /* File Item Icon */
  .fw-file-item-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #e9ecef;
    flex-shrink: 0;
  }

  .fw-file-item-icon svg {
    width: 18px;
    height: 18px;
    color: #6c757d;
  }

  .fw-file-item.success .fw-file-item-icon {
    background: #d4edda;
  }

  .fw-file-item.success .fw-file-item-icon svg {
    color: #28a745;
  }

  .fw-file-item.error .fw-file-item-icon {
    background: #f8d7da;
  }

  .fw-file-item.error .fw-file-item-icon svg {
    color: #dc3545;
  }

  .fw-file-item.uploading .fw-file-item-icon {
    background: #cce7ff;
  }

  .fw-file-item.uploading .fw-file-item-icon svg {
    color: #007bff;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* File Item Details */
  .fw-file-item-details {
    flex: 1;
    min-width: 0;
  }

  .fw-file-item-name {
    font-weight: 500;
    color: #212529;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fw-file-item-size {
    font-size: 12px;
    color: #6c757d;
  }

  /* File Item Status */
  .fw-file-item-status {
    margin-left: 12px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
  }

  .fw-file-item-status.uploading {
    background: #cce7ff;
    color: #007bff;
  }

  .fw-file-item-status.success {
    background: #d4edda;
    color: #28a745;
  }

  .fw-file-item-status.error {
    background: #f8d7da;
    color: #dc3545;
  }

  /* File Item Remove Button - REMOVED */
  /* Users cannot delete uploaded files */

  /* Error Message Container */
  .fw-upload-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    color: #c53030;
    font-size: 14px;
    display: flex;
    align-items: center;
  }

  .fw-upload-error::before {
    content: '⚠️';
    margin-right: 8px;
    font-size: 16px;
  }

  /* Success Message Container */
  .fw-upload-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    color: #22543d;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fw-success-icon {
    font-size: 20px;
    margin-right: 8px;
    color: #28a745;
  }

  /* Drag & Drop Enhancements */
  .fw-file-upload-wrapper {
    transition: all 0.3s ease;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #fff;
    cursor: pointer;
    position: relative;
  }

  .fw-file-upload-wrapper:hover {
    border-color: #007bff;
    background: #f8f9fa;
  }

  .fw-file-upload-wrapper.drag-over {
    border-color: #007bff;
    background: #f0f8ff;
    transform: scale(1.02);
  }

  .fw-file-upload-wrapper.uploading {
    border-color: #007bff;
    background: #f0f8ff;
    pointer-events: none;
  }

  .fw-file-upload-wrapper.success {
    border-color: #28a745;
    background: #f0fff4;
  }

  .fw-file-upload-wrapper.error {
    border-color: #dc3545;
    background: #fff5f5;
  }

  /* File Input Styling */
  .fw-file-upload-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  /* Upload Button (if you want to add one) */
  .fw-upload-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
  }

  .fw-upload-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
  }

  .fw-upload-btn:active {
    transform: translateY(0);
  }

  .fw-upload-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .fw-file-item {
      padding: 10px 12px;
    }

    .fw-file-item-icon {
      width: 28px;
      height: 28px;
      margin-right: 10px;
    }

    .fw-file-item-icon svg {
      width: 16px;
      height: 16px;
    }

    .fw-file-item-name {
      font-size: 14px;
    }

    .fw-file-item-size {
      font-size: 11px;
    }

    .fw-upload-progress {
      padding: 16px;
      margin: 16px 0;
    }

    .fw-file-upload-wrapper {
      padding: 30px 16px;
    }
  }

  /* Loading Animation */
  .fw-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
  }

  /* File Type Icons */
  .fw-file-icon-pdf {
    color: #dc3545;
  }

  .fw-file-icon-image {
    color: #28a745;
  }

  .fw-file-icon-document {
    color: #007bff;
  }

  .fw-file-icon-default {
    color: #6c757d;
  }

  /* Accessibility */
  .fw-file-upload-wrapper:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
  }

  /* Focus styles for accessibility */
  .fw-file-upload-wrapper:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
  }

  /* Print Styles */
  @media print {
    .fw-file-list,
    .fw-upload-error,
    .fw-upload-success {
      display: none !important;
    }
  }

  .button_back {
    padding: 0px !important;
    background-color: transparent !important;
    color: #001428 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 100% !important;
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 42px !important;
  }

  .button_back img {
    transition: transform 0.2s ease-in-out;
  }

  .button_back:hover img {
    transform: translateX(-4px);
    transition: transform 0.2s ease-in-out;
  }

  @media (max-width: 1150px) {
    .flex.cc-horizontal {
      display: flex;
      flex-direction: column;
    }

    .fw-why-connect {
      max-width: 100%;
    }
  }
  @media (min-width: 1151px) {
    .bank-connect {
      width: 65vw;
    }
  }
  @media (min-width: 1441px) {
    .bank-connect {
      max-width: 1100px;
      width: 200%;
    }
  }



  /* Floating Label System v3 - Preserve Original Webflow Design */

  /* Only target the legend animation - preserve all other Webflow styles */
  label.fw-input-wrapper.fw-floating-label .fw-legend {
    position: absolute !important;
    left: 1rem !important;
    top: 0 !important;
    transform: translateY(-50%) !important;
    color: #a0aec0 !important;
    font-size: 0.875rem !important; /* 14px - smaller to match Webflow design */
    font-weight: 400 !important;
    line-height: 1 !important;
    pointer-events: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #ffffff !important; /* White background to cut through border */
    padding: 0 0.375rem !important; /* 6px horizontal padding */
    z-index: 10 !important;
    white-space: nowrap !important;
    max-width: calc(100% - 2rem) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* DOWN STATE - Legend moves into the input as placeholder */
  label.fw-input-wrapper.fw-floating-label.fw-label-down .fw-legend {
    top: 50% !important;
    left: 1rem !important;
    transform: translateY(-50%) !important;
    color: #9ca3af !important; /* Lighter placeholder color */
    font-size: 1rem !important; /* 16px inside input */
    background: transparent !important;
    padding: 0 0.25rem !important;
  }

  /* FLOATING STATE - Legend stays at top border with white background */
  label.fw-input-wrapper.fw-floating-label.fw-label-floating .fw-legend,
  label.fw-input-wrapper.fw-floating-label.fw-label-focused .fw-legend {
    top: 0 !important;
    left: 1rem !important;
    transform: translateY(-50%) !important;
    color: #667eea !important; /* Brand color when floating */
    font-size: 0.875rem !important; /* 14px when floating */
    font-weight: 500 !important;
    background: #ffffff !important; /* White background cuts through border */
    padding: 0 0.375rem !important; /* 6px padding for clean cut */
  }

  /* FILLED STATE - When input has value but not focused */
  label.fw-input-wrapper.fw-floating-label.fw-label-floating:not(.fw-label-focused) .fw-legend {
    color: #4a5568 !important; /* Neutral color when filled but not focused */
  }

  /* Animation performance */
  label.fw-input-wrapper.fw-floating-label .fw-legend {
    will-change: transform, color !important;
  }

  /* Hide input placeholder initially so legend acts as placeholder */
  label.fw-input-wrapper.fw-floating-label input::placeholder,
  label.fw-input-wrapper.fw-floating-label textarea::placeholder {
    color: transparent !important;
  }

  /* Show input placeholder when focused AND floating (for additional guidance) */
  label.fw-input-wrapper.fw-floating-label.fw-label-focused.fw-label-floating input::placeholder,
  label.fw-input-wrapper.fw-floating-label.fw-label-focused.fw-label-floating textarea::placeholder {
    color: #d1d5db !important;
  }

  /* Ensure inputs have proper padding for floating labels */
  label.fw-input-wrapper.fw-floating-label input,
  label.fw-input-wrapper.fw-floating-label select,
  label.fw-input-wrapper.fw-floating-label textarea {
    padding-top: 1.5rem !important; /* Extra top padding for floating label */
  }

  /* Error states - preserve original error styling but adjust legend color */
  label.fw-input-wrapper.fw-floating-label input[aria-invalid="true"] ~ .fw-legend,
  label.fw-input-wrapper.fw-floating-label select[aria-invalid="true"] ~ .fw-legend,
  label.fw-input-wrapper.fw-floating-label textarea[aria-invalid="true"] ~ .fw-legend {
    color: #ef4444 !important;
  }

  /* Debug mode - minimal visual indicators */
  .fw-floating-label-debug label.fw-input-wrapper.fw-floating-label .fw-legend {
    box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.5) !important;
  }

  .fw-floating-label-debug label.fw-input-wrapper.fw-floating-label.fw-label-floating .fw-legend {
    box-shadow: 0 0 0 1px rgba(0, 255, 0, 0.5) !important;
  }

  .fw-floating-label-debug label.fw-input-wrapper.fw-floating-label.fw-label-down .fw-legend {
    box-shadow: 0 0 0 1px rgba(255, 255, 0, 0.5) !important;
  }




  /* WebKit/iOS Dropdown Styling Fix - All Dropdowns */

  /* Super Simple iOS Dropdown Fix */

  select {
    -webkit-appearance: none;
  }

  select {
    background-color: white !important;
  }

  input {
    background-color: white !important;
  }

  /* Basic styling to make noUiSlider work properly - MINIMAL CSS */

/* Only override what's absolutely necessary */
.noUi-target {
  touch-action: none; 
  user-select: none; 
}

/* Container positioning */
#amount-nouislider {
  position: relative;
  margin: 40px 0 20px 0;
}

.amount-slider-container {
  position: relative;
  overflow: visible;
}

/* Custom styling for our slider only */  
.noUi-connect {
  background: #0043F2;
}

.noUi-handle {
  cursor: pointer;
  z-index: 10;
}

/* Custom tooltip - white background like design */
.noUi-tooltip {
  background: #FFF;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: 700 14px/16px Arial, sans-serif; /* Changed from 500 to 700 for bold */
  padding: 8px 12px;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Remove default handle content */
.noUi-handle:before,
.noUi-handle:after {
  display: none !important;
}

/* =================================================================== */
/* UTILITY CLASSES - To replace inline JavaScript styling */
/* =================================================================== */

/* Display utilities - most common (78 instances) */
.fw-show { display: block !important; }
.fw-hide { display: none !important; }
.fw-flex { display: flex !important; }
.fw-inline { display: inline !important; }
.fw-inline-block { display: inline-block !important; }

/* Visibility utilities with transitions */
.fw-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fw-invisible {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fw-fade-in {
  opacity: 1 !important;
  transition: opacity 0.2s ease;
}

.fw-fade-out {
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

/* Error message styling - replaces repeated error div styling */
.fw-error-message {
  display: block !important;
  color: #dc3545 !important;
  font-size: 0.875rem !important;
  margin-top: 4px !important;
  margin-bottom: 8px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Error state for fields */
.fw-error-field {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Loading state */
.fw-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease;
}

/* Position utilities */
.fw-relative { position: relative !important; }
.fw-absolute { position: absolute !important; }

/* Common margin/padding utilities */
.fw-m-0 { margin: 0 !important; }
.fw-mt-1 { margin-top: 4px !important; }
.fw-mb-1 { margin-bottom: 4px !important; }
.fw-mt-2 { margin-top: 8px !important; }
.fw-mb-2 { margin-bottom: 8px !important; }

/* Width utilities */
.fw-w-100 { width: 100% !important; }
.fw-w-auto { width: auto !important; }

/* Border utilities */
.fw-border-error { border: 1px solid #dc3545 !important; }
.fw-border-success { border: 1px solid #28a745 !important; }
.fw-border-default { border: 1px solid rgba(0, 0, 0, 0.1) !important; }

/* Pointer events */
.fw-pointer-none { pointer-events: none !important; }
.fw-pointer-auto { pointer-events: auto !important; }

/* Z-index utilities */
.fw-z-1 { z-index: 1 !important; }
.fw-z-10 { z-index: 10 !important; }
.fw-z-100 { z-index: 100 !important; }

/* Background utilities */
.fw-bg-transparent { background: transparent !important; }
.fw-bg-white { background: #fff !important; }

/* Transform utilities for positioning */
.fw-transform-center {
  transform: translateX(-50%) !important;
}

.fw-transform-center-both {
  transform: translate(-50%, -50%) !important;
}
}