/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.animate-cursor-blink {
  animation: cursor-blink 1s step-end infinite;
}

button.disable_on_click .when-on {
  display: initial;
}

button.disable_on_click .when-off {
  display: none;
}

button.disable_on_click:disabled .when-on {
  display: none;
}

button.disable_on_click:disabled .when-off {
  display: initial;
}

/*
 * Prevent iOS Safari from zooming in on form inputs.
 * iOS zooms when input font-size is less than 16px.
 * This ensures inputs are at least 16px on mobile devices.
 */
@media screen and (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="url"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
  }
}
