/*
Theme Name: SMOMT Theme
Theme URI: https://smomt.com/
Description: Custom multilingual corporate theme for the SMOMT website.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: smomt
*/

/*
 * Primary styles are synced from the static HTML build into assets/css/theme.css.
 */

  /* Multi-select dropdown (CF7 checkbox group) */
  .form-select-wrap[data-multi-select] {
    @apply relative;
  }

  .multi-select-trigger {
    @apply flex w-full items-center text-left;
  }

  .multi-select-trigger.is-placeholder {
    color: #8b94ac;
  }

  .multi-select-dark .multi-select-trigger.is-placeholder {
    color: #b9c4e6;
  }

  .multi-select-panel {
    @apply absolute left-0 right-0 z-30 mt-1.5 max-h-[260px] overflow-y-auto rounded-[10px] border border-border-input bg-white shadow-[0_8px_24px_rgba(29,42,94,0.12)];
    padding: 5px 15px;
  }

  [data-multi-select].multi-select-invalid .multi-select-trigger {
    border-color: #dc3232;
  }

  .multi-select-dark .multi-select-panel {
    border-color: #4a5897;
    background-color: #2d3f7b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  /* Reset .form-input on CF7 checkbox container — it is not a text field */
  .wpcf7-checkbox.form-input,
  .wpcf7-form-control.wpcf7-checkbox.form-input {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: inherit;
    outline: none;
    box-shadow: none;
  }

  .multi-select-panel .wpcf7-checkbox.form-input,
  .multi-select-panel .wpcf7-form-control.wpcf7-checkbox.form-input {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  @media (min-width: 820px) {
    .multi-select-panel .wpcf7-checkbox.form-input,
    .multi-select-panel .wpcf7-form-control.wpcf7-checkbox.form-input {
      grid-template-columns: 1fr 1fr;
    }
  }

  .wpcf7-checkbox.form-input:focus,
  .wpcf7-form-control.wpcf7-checkbox.form-input:focus {
    border: none;
    outline: none;
  }

  .multi-select-panel .wpcf7-list-item,
  [data-multi-select] .wpcf7-list-item {
    display: block;
    margin: 0;
    min-width: 0;
  }

  .multi-select-panel .wpcf7-list-item-label {
    margin-left: 5px;
  }

  .multi-select-panel .wpcf7-list-item label,
  [data-multi-select] .wpcf7-list-item label {
    @apply flex cursor-pointer items-start gap-2.5 rounded-[8px] px-2.5 py-2 text-[14px] leading-snug text-text-primary;
  }

  .multi-select-panel .wpcf7-list-item label:hover,
  [data-multi-select] .wpcf7-list-item label:hover {
    background-color: #f0f3fa;
  }

  .multi-select-dark .wpcf7-list-item label {
    color: #e8ecf8;
  }

  .multi-select-dark .wpcf7-list-item label:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }

  .multi-select-panel .wpcf7-list-item input[type="checkbox"],
  [data-multi-select] .wpcf7-list-item input[type="checkbox"] {
    @apply mt-0.5 h-4 w-4 shrink-0 cursor-pointer accent-brand-teal;
  }

  .multi-select-panel .wpcf7-list-item-label::before,
  .multi-select-panel .wpcf7-list-item-label::after,
  [data-multi-select] .wpcf7-list-item-label::before,
  [data-multi-select] .wpcf7-list-item-label::after {
    content: none;
  }

  /* Unwrapped CF7 checkbox.form-input (before JS): stack items so they do not overlap */
  .wpcf7-form-control-wrap > .wpcf7-checkbox.form-input > .wpcf7-list-item {
    display: block;
    margin: 0 0 0.25rem;
  }