/* frontend.css */

/* Main plugin container */
.tf-container {
  max-width: 1800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== Header Section ====== */
.tf-header {
  background: #8c003a;
  color: white;
  padding: 40px;
  text-align: center;
  position: relative;
  border-radius: 80px;
}
.tf-logo {
  max-width: 20%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.tf-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.tf-header-title {
  font-size: 2.5rem;
  margin-top: 18px;
  font-family: Tahoma;
  margin-bottom: 8px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgb(44 44 44 / 0.1);
}
.tf-header-intro {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 1600px;
  margin: 22px auto 0 auto;
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-align: center;
  word-break: break-word;
}

/* ====== FAQ Modal Title Style ====== */
.tf-faq-modal-title {
  font-size: 31px;
  font-weight: 700;
  font-family: Tahoma, Arial, sans-serif;
  text-align: center;
  margin-bottom: 24px;
  color: #000000;
  letter-spacing: 0.01em;
}

/* ====== FAQ Q/A Text Direct Control ====== */
.tf-faq-question-text {
  font-size: 1.13rem !important;
  font-family: Tahoma, Arial, sans-serif !important;
  color: #fff !important;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  display: block;
}
.tf-faq-answer-text {
  font-size: 1.07rem !important;
  font-family: Tahoma, Arial, sans-serif !important;
  color: #3d0442 !important;
  line-height: 1.6;
  letter-spacing: 0.01em;
  display: block;
}

/* ====== Main Content ====== */
.tf-main-content {
  padding: 60px 40px;
}

/* ====== Action Cards ====== */
.tf-actions-section {
  text-align: center;
  margin-bottom: 60px;
}
.tf-section-title {
  font-size: 2rem;
  color: #000000;
  margin-bottom: 50px;
  font-weight: 600;
  text-align: center;
}
.tf-section-subtitle {
  color: #000000;
  margin-bottom: 40px;
  font-size: 1.1rem;
}
.tf-action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}
.tf-action-card {
  background: #ffd5e7;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 5px 10px 20px #dac0cb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer;
  opacity: 0;
  transform: translateY(2px) !important;
}
.tf-action-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 5px 10px 20px #dac0cb;
}
.tf-action-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #b8004c, #e91e63);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(184, 0, 76, 0.3);
  overflow: hidden;
  position: relative;
}
.tf-btn-img {
  --tf-btn-img-width: 64px;
  --tf-btn-img-height: 64px;
  --tf-btn-img-top: 0;
  --tf-btn-img-left: 0;
  --tf-btn-img-translate-x: 0;
  --tf-btn-img-translate-y: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--tf-btn-img-width);
  height: var(--tf-btn-img-height);
  transform: translate(-50%, -50%)
    translate(var(--tf-btn-img-translate-x), var(--tf-btn-img-translate-y));
  object-fit: contain;
  border-radius: 50%;
  background: white;
  display: block;
  pointer-events: none;
}

/* ====== Report Cards ====== */
.tf-action-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 10px;
}
.tf-action-description {
  color: #000000;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ====== Reports Nav ====== */
.tf-reports-section {
  margin-bottom: 40px;
}
.tf-reports-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.tf-report-nav-btn {
  font-family: Tahoma, sans-serif;
  font-weight: 700;
  font-size: 20px;
  padding: 15px 40px;
  border: none;
  border-radius: 25px;
  background: #b8004c;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.18s;
  letter-spacing: 1px;
  box-shadow: 0 12px 0 0 #ff2a82;
}
.tf-report-nav-btn:hover {
  background: #b8004c;
  color: #fff;
  transform: translateY(2px);
  box-shadow: 0 8px 0 0 #ff2a82;
}

/* ====== Reports Grid ====== */
.tf-reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
  justify-content: center;
}
#tf-special-reports-grid {
  display: none;
}
.tf-report-card {
  background: #c64f80;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 20px 0px 0px 0px #b8004c;
  transition: all 0.3s ease !important;
  opacity: 0;
  transform: translateY(5px) !important;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  max-width: 450px;
  margin: 0 auto;
}
.tf-report-card:hover {
  transform: translateY(-5px) !important;
}
.tf-report-header {
  padding: 25px 25px 25px 25px;
  background: linear-gradient(135deg, #ffc9d6, #ffe6f0);
}
.tf-report-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 15px;
}
.tf-report-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: #000000;
}
.tf-report-body {
  padding: 25px 25px 25px 25px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tf-report-lang-section {
  text-align: center;
}
.tf-report-lang-title {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 600;
}
.tf-lang-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.tf-lang-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #b8004c;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tf-lang-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(184, 0, 76, 0.3);
}
.tf-flag-img {
  --tf-flag-img-width: 60px;
  --tf-flag-img-height: 60px;
  --tf-flag-img-top: 0;
  --tf-flag-img-left: 0;
  --tf-flag-img-translate-x: 0;
  --tf-flag-img-translate-y: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--tf-flag-img-width);
  height: var(--tf-flag-img-height);
  transform: translate(-50%, -50%)
    translate(var(--tf-flag-img-translate-x), var(--tf-flag-img-translate-y));
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.tf-lang-btn {
  position: relative;
}
.tf-lang-btn > img:not(.tf-flag-img) {
  display: none !important;
}

/* ====== Modals ====== */
.tf-modal {
  display: none;
  position: fixed;
  z-index: 999999 !important;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.65);
}

.tf-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 98vw;
  max-width: 1200px;
  min-width: 320px;
  min-height: 60px;
  padding: 44px 38px 40px 38px;
  background-color: #feecf4;
  border: 1px solid #888;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36), 0 2px 12px rgba(100, 0, 30, 0.06);
  max-height: 94vh;
  overflow-y: auto;
  z-index: 9999999 !important;
}

.tf-modal-close {
  color: #aaa;
  position: absolute;
  top: 18px;
  right: 32px !important;
  font-size: 34px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001 !important;
  line-height: 1;
  transition: color 0.2s;
}
.tf-modal-close:hover {
  color: #b8004c;
}

/* FAQ Modal content scroll and answer styling */
#tf-faq-modal .tf-modal-content {
  max-height: 94vh;
  overflow-y: auto;
}
.tf-faq-item {
  margin-bottom: 20px;
}
.tf-faq-question {
  background-color: #8c003a;
  color: #fff;
  padding: 12px 18px;
  margin-bottom: 0;
  border: none;
  cursor: pointer;
  font-size: 1.07rem;
  font-weight: 700;
  font-family: Tahoma;
  text-align: left;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 10px 0 #ff0061;
  transition: all 0.3s ease;
}
.tf-faq-question:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #a1003d;
}
.tf-faq-answer {
  display: none;
  padding: 12px 18px;
  border-top: 6px solid #a1003d;
  border-radius: 0 0 22px 22px;
  background-color: #ffeaf3;
  font-size: 1rem;
  font-family: Tahoma;
  box-shadow: 0px 10px 10px 0px #b8004c;
}

/* ====== Contact Form Modal Wide & Custom Control ====== */

h2.tf-contact-modal-title {
  font-size: 31px;
  font-weight: 700;
  font-family: Tahoma, Arial, sans-serif;
  text-align: center;
}

.tf-contact-form-modal-wrapper {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 12px 0 12px;
}

/* ====== Contact Modal Section Cards & Fields ====== */
.tf-contact-section {
  background: #ffeaf3;
  border-radius: 30px;
  box-shadow: 10px 0px 0px 0px #b8004c;
}
.tf-contact-section legend {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  background: none;
  padding: 0 10px;
  letter-spacing: 0.01em;
  font-family: Tahoma, Arial, sans-serif;
}

.tf-contact-field {
  margin-bottom: 22px;
}
.tf-contact-field label {
  color: #000000;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4em;
  display: block;
  font-family: Tahoma, Arial, sans-serif;
}

.tf-contact-field input[type="text"],
.tf-contact-field input[type="email"],
.tf-contact-field input[type="url"],
.tf-contact-field input[type="file"],
.tf-contact-field textarea,
.tf-contact-field select {
  border: 1.5px solid #e0b5cc;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 1.06rem;
  font-family: inherit;
  background: #ffffff;
  color: #212121;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 2px;
  transition: border 0.2s, box-shadow 0.2s;
}
.tf-contact-field input[type="text"]:focus,
.tf-contact-field input[type="email"]:focus,
.tf-contact-field input[type="url"]:focus,
.tf-contact-field input[type="file"]:focus,
.tf-contact-field textarea:focus,
.tf-contact-field select:focus {
  border-color: #b8004c;
  box-shadow: 0 0 0 2px #ffd5e7;
  outline: none;
  border: none !important;
}

/* ---- Select2 Multi-select Styling for .tf-multiselect ---- */
.tf-contact-field .tf-multiselect,
.tf-multiselect {
  width: 100% !important;
  border-radius: 12px !important;
  border: 1.5px solid #e0b5cc !important;
  background: #fff !important;
  font-size: 1.07rem !important;
  font-family: inherit !important;
  color: #212121 !important;
  min-height: 38px !important;
  box-sizing: border-box;
  display: flex !important;
  align-items: center !important;
  padding: 0 34px 0 10px !important;
  margin-bottom: 3px;
  transition: border 0.2s, box-shadow 0.2s;
  position: relative;
  cursor: pointer;
}

/* --- Dropdown Arrow Indicator --- */
.tf-contact-field .tf-multiselect:after,
.tf-multiselect:after,
.select2-container--default .select2-selection--multiple:after {
  content: "";
  pointer-events: none;
  display: block;
  position: absolute;
  right: 14px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #b8004c;
  transform: translateY(-50%);
  z-index: 10;
}

/* --- Select2 Multi: allow field to expand as options are added, and wrap pills inside --- */
.select2-container--default .select2-selection--multiple {
  border-radius: 12px !important;
  border: 1.5px solid #e0b5cc !important;
  background: #fff !important;
  min-height: 38px !important;
  font-size: 1.07rem;
  padding: 10px 34px 15px 10px !important;
  box-sizing: border-box;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  position: relative;
  overflow-y: auto !important;
  cursor: pointer;
  transition: border-color 0.2s;
}

/* --- Make ul of selected options (and search field) inline, not block --- */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  min-height: 34px !important;
  width: 100%;
  box-sizing: border-box;
  background: transparent !important;
  gap: 5px 0;
  position: relative;
  overflow-y: visible;
}

/* --- Selected option pill: x button is inline, with correct spacing --- */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: #ffd5e7 !important;
  border: 1px solid #b8004c !important;
  color: #b8004c !important;
  border-radius: 10px !important;
  font-size: 1rem;
  font-weight: 600;
  padding: 2px 9px 2px 11px !important;
  margin-top: 3px !important;
  margin-right: 8px !important;
  display: flex !important;
  align-items: center !important;
  position: relative;
  min-height: 22px;
  line-height: 1.6;
  max-width: 90%;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  overflow: visible;
}

/* --- Ensure pills don't break out on very small screens --- */
@media (max-width: 600px) {
  .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    max-width: 96vw !important;
    font-size: 0.97rem !important;
  }
}

/* --- Add margin and control padding for the x button in pills --- */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #b8004c !important;
  font-weight: bold;
  font-size: 1.12em;
  margin-right: 7px;
  margin-left: 0;
  padding: 0px 7px 0px 7px !important;
  background: none;
  border: none;
  cursor: pointer;
  height: 18px;
  width: 16px;
  line-height: 1;
  box-shadow: none !important;
  position: static !important;
  border-right: none !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  color: #e91e63 !important;
  text-decoration: none !important;
}

/* --- The span label in the pill --- */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__display {
  display: inline-block;
  vertical-align: middle;
  padding-right: 2px;
  word-break: break-word !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  max-width: 100%;
}

/* --- Center the placeholder text vertically and show it fully --- */
.select2-container--default
  .select2-selection--multiple
  .select2-search--inline {
  display: none !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-search__field {
  display: none !important;
}

/* Show entire placeholder (even for long strings) and allow wrapping! */
.select2-container--default
  .select2-selection--multiple
  .select2-search__field::placeholder {
  color: #b8004c !important;
  opacity: 0.7 !important;
  font-size: 1.07rem;
  font-family: inherit;
  white-space: pre-line !important;
  line-height: 1.9 !important;
  text-align: left;
  display: block !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* --- End Select2 multi-select fixes --- */

/* Error highlight for Select2 */
.tf-contact-form .tf-field-error,
.tf-field-error.select2-selection--multiple,
.tf-field-error.select2-selection--single {
  border: 1.7px solid #e91e63 !important;
  box-shadow: 0 0 0 2px #ffe6ef !important;
}

.tf-contact-form .tf-field-error-message {
  margin-top: 8px;
  color: #b8004c;
  font-size: 0.96rem;
  font-weight: 700;
  font-family: Tahoma, Arial, sans-serif;
}

/* Checkbox/radio groups spacing */
.tf-contact-field .flex.flex-wrap.gap-4,
.tf-contact-field .flex.flex-wrap.gap-2 {
  gap: 10px 22px !important;
}
.tf-contact-field label.inline-flex {
  font-size: 1rem;
  font-weight: 400;
  color: #212121;
  background: none;
  margin-bottom: 2px;
}

/* Required star */
.tf-contact-field label .text-red-500 {
  color: #e91e63;
  margin-left: 2px;
  font-weight: bold;
  font-size: 1.1em;
}

/* Submit button in modal */
.tf-contact-form-modal-wrapper .tf-contact-submit,
.tf-contact-form-modal-wrapper .tf-btn-submit {
  background: #b8004c;
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  padding: 16px 0;
  font-size: 1.13rem;
  box-shadow: 0px 12px 0px 0px #ff2a82;
  width: 20%;
  transition: background 0.25s, box-shadow 0.25s, color 0.25s, transform 0.18s;
  cursor: pointer;
  font-family: Tahoma, Arial, sans-serif;
}
.tf-contact-form-modal-wrapper .tf-contact-submit:hover,
.tf-contact-form-modal-wrapper .tf-btn-submit:hover {
  background: #b8004c;
  color: #ffffff;
  box-shadow: 0px 8px 0px 0px #ff2a82;
  transform: translateY(2px) !important;
}

/* ========== Contact form messages styling ========== */
.tf-contact-form-messages {
  margin-bottom: 18px;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
.tf-contact-form-messages .notice {
  border-radius: 12px;
  margin-top: 30px;
  font-size: 1.08rem;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: Tahoma, Arial, sans-serif;
  box-shadow: 0 4px 24px 0 rgba(33, 104, 38, 0.11);
  border-width: 2px;
  border-style: solid;
}

.tf-contact-form-messages .notice-success {
  background: linear-gradient(90deg, #d6ffe5 40%, #b6ffd2 100%);
  color: #165b26;
  border-color: #4dc46f;
  font-weight: 700;
  box-shadow: 0 2px 16px 0 rgba(76, 196, 111, 0.12);
  position: relative;
}
.tf-contact-form-messages .notice-success:before {
  content: "✔";
  display: inline-block;
  font-size: 2.2em;
  font-weight: bold;
  color: #1bc464;
  border-radius: 50%;
  padding: 2px 16px;
  margin-right: 12px;
  line-height: 1;
}

/* Keep error styling visually distinct */
.tf-contact-form-messages .notice-error {
  background: #ffe6ef;
  color: #b8004c;
  border: 1.5px solid #e8bdd2;
  font-weight: 700;
  box-shadow: 0 2px 10px 0 rgba(184, 0, 76, 0.06);
  position: relative;
}
.tf-contact-form-messages .notice-error:before {
  content: "!";
  display: inline-block;
  font-size: 2em;
  font-weight: bold;
  color: #e91e63;
  background: #fff0fa;
  border-radius: 50%;
  padding: 2px 16px;
  margin-right: 14px;
  line-height: 1;
}

/* Remove tailwind/utility classes that might restrict width in modal */
.tf-contact-form-modal-wrapper .max-w-xl,
.tf-contact-form-modal-wrapper .mx-auto,
.tf-contact-form-modal-wrapper .p-8,
.tf-contact-form-modal-wrapper .space-y-6,
.tf-contact-form-modal-wrapper .mb-6 {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 20px !important;
}

/* ========== Select2: Z-INDEX & HEIGHT FIXES FOR MODALS ========== */
.select2-container--open {
  z-index: 9999999 !important;
}
.tf-modal .select2-container {
  z-index: 9999998 !important;
}
.select2-container--default
  .select2-selection--multiple
  .select2-search__field {
  min-width: 100px;
  margin-top: 0;
  margin-bottom: 0;
  height: 34px;
  font-size: 1.07rem;
  padding: 0;
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
  color: #b8004c !important;
}
/* ========== END Select2: Z-INDEX & HEIGHT FIXES FOR MODALS ========== */

/* ====== SELECT2 DROPDOWN RESULTS CUSTOMIZATION (NEW) ====== */

.select2-results__option {
  padding: 9px 16px !important;
  border-radius: 14px !important;
  font-size: 1.08rem !important;
  color: #3d0442 !important;
  background: #fff !important;
  transition: background 0.16s, color 0.18s;
  user-select: none;
  -webkit-user-select: none;
  margin: 2px 0 !important;
}

/* Highlighted (hover/focus/keyboard) option */
.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #ffa8cc !important;
  color: #fff !important;
  border-radius: 16px !important;
  font-weight: 700 !important;
  outline: none !important;
  box-shadow: 0 4px 20px 0 rgba(184, 0, 76, 0.06) !important;
}

/* Remove default border between options */
.select2-results__option[role="option"] {
  border-bottom: none !important;
}

/* Style the dropdown box itself for more rounded look */
.select2-container--default .select2-dropdown {
  border-radius: 18px !important;
  box-shadow: 0 12px 40px 0 rgba(184, 0, 76, 0.12) !important;
  border: 1.5px solid #e0b5cc !important;
  overflow: hidden !important;
  background: #fff !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* Extra padding for fields at mobile */
@media (max-width: 800px) {
  .tf-contact-section {
    padding: 18px 6px 12px 6px;
    border-radius: 18px;
  }
}

/* ====== Responsive Design ====== */
@media (max-width: 1400px) {
  .tf-modal-content {
    max-width: 96vw;
    padding: 28px 12px 22px 12px;
  }
}

@media (max-width: 1200px) {
  .tf-report-card {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .tf-main-content {
    padding: 30px 10px;
  }
  .tf-reports-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tf-modal-content {
    padding: 12px;
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  .tf-container {
    margin: 10px;
    border-radius: 15px;
  }
  .tf-header {
    padding: 30px 20px;
  }
  .tf-header h1 {
    font-size: 2rem;
  }
  .tf-main-content {
    padding: 24px 4vw;
  }
  .tf-action-buttons {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tf-reports-nav {
    flex-direction: column;
    align-items: center;
  }
  .tf-reports-grid {
    grid-template-columns: 1fr;
  }
  .tf-report-card {
    min-height: 340px;
    max-width: 100%;
  }
  .tf-modal-content {
    padding: 8px;
    max-width: 99vw;
    border-radius: 13px;
  }
  .tf-header-title {
    font-size: 1.22rem;
    margin-top: 14px;
    margin-bottom: 6px;
  }
  .tf-header-intro {
    max-width: 97vw;
    font-size: 1.06rem;
    padding: 0 4vw;
  }
  .tf-contact-section {
    padding: 10px 2vw 6px 2vw;
    border-radius: 12px;
  }
}
@media (max-width: 600px) {
  .tf-contact-form-modal-wrapper {
    max-width: 99vw;
    padding: 0 1vw 0 1vw;
  }
  .tf-contact-form-modal-wrapper form.tf-contact-form,
  .tf-contact-form-modal-wrapper .tf-contact-form {
    max-width: 99vw;
  }
  .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    max-width: 96vw !important;
    font-size: 0.97rem !important;
  }
}
@media (max-width: 500px) {
  .tf-header h1 {
    font-size: 1.2rem;
  }
  .tf-header-title {
    font-size: 1.06rem;
    margin-top: 10px;
    margin-bottom: 4px;
  }
  .tf-report-header,
  .tf-report-body {
    padding: 14px !important;
  }
  .tf-header-intro {
    font-size: 0.97rem;
    max-width: 98vw;
    padding: 0 2vw;
    margin-top: 13px;
  }
  .tf-modal-content {
    padding: 2vw;
    max-width: 99vw;
    border-radius: 10px;
  }
  .tf-contact-section {
    padding: 7px 1vw 4px 1vw;
    border-radius: 8px;
  }
}

/* ====== Fade-in Animation for Cards ====== */
.tf-action-card,
.tf-report-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ================= HIDE SELECT2 SEARCH BOX FOR MULTI ================== */
.select2-container--default
  .select2-selection--multiple
  .select2-search--inline {
  display: none !important;
}
.select2-container--default
  .select2-selection--multiple
  .select2-search__field {
  display: none !important;
}

/* =================== Increase Select2 Dropdown Top Padding =================== */
.select2-container--default .select2-dropdown {
  margin-top: 40px !important;
}

/* ========================================================================== */
/* ========================= FAQ Answer List Styling ======================== */
/* ========================================================================== */
.tf-faq-answer-text ul,
.tf-faq-answer-text ol {
  list-style-type: disc !important;
  margin-left: 1.6em !important;
  padding-left: 1em !important;
  display: block !important;
}
.tf-faq-answer-text ol {
  list-style-type: decimal !important;
}
.tf-faq-answer-text ul {
  list-style-position: outside !important;
}
.tf-faq-answer-text li {
  display: list-item !important;
  margin-bottom: 0.3em !important;
}

/* ========================================================================== */
/* ============== FAQ Answer Rich Text, Headings, Quotes, Code, etc. ======== */
/* ========================================================================== */

.tf-faq-answer-text {
  font-family: Tahoma, Arial, sans-serif !important;
  color: #3d0442 !important;
  font-size: 1.07rem !important;
  line-height: 1.6;
  letter-spacing: 0.01em;
  display: block;
  word-break: break-word;
  margin: 0;
  padding: 20px;
}

/* Paragraphs */
.tf-faq-answer-text p {
  margin: 0.8em 0 0.8em 0 !important;
  line-height: 1.6 !important;
}

/* Headings */
.tf-faq-answer-text h1,
.tf-faq-answer-text h2,
.tf-faq-answer-text h3,
.tf-faq-answer-text h4,
.tf-faq-answer-text h5,
.tf-faq-answer-text h6 {
  font-family: inherit;
  color: #b8004c;
  margin: 1.1em 0 0.6em 0;
  line-height: 1.3;
  font-weight: 700;
}
.tf-faq-answer-text h1 {
  font-size: 2rem;
}
.tf-faq-answer-text h2 {
  font-size: 1.55rem;
}
.tf-faq-answer-text h3 {
  font-size: 1.24rem;
}
.tf-faq-answer-text h4 {
  font-size: 1.13rem;
}
.tf-faq-answer-text h5 {
  font-size: 1.07rem;
}
.tf-faq-answer-text h6 {
  font-size: 1.01rem;
}

/* Inline bold/italic/underline/strikethrough */
.tf-faq-answer-text b,
.tf-faq-answer-text strong {
  font-weight: bold !important;
  color: #af005c !important;
}
.tf-faq-answer-text em,
.tf-faq-answer-text i {
  font-style: italic !important;
  color: #851e5b !important;
}
.tf-faq-answer-text u {
  text-decoration: underline !important;
  text-underline-offset: 0.14em;
}
.tf-faq-answer-text s,
.tf-faq-answer-text strike,
.tf-faq-answer-text del {
  text-decoration: line-through !important;
  color: #bb4b7c !important;
}

/* Blockquotes */
.tf-faq-answer-text blockquote {
  border-left: 5px solid #e91e63 !important;
  background: #ffeaf3 !important;
  color: #b8004c !important;
  margin: 1.2em 0 !important;
  padding: 0.8em 1.4em !important;
  font-style: italic;
  border-radius: 0 20px 20px 0;
  font-size: 1.02em;
  line-height: 1.7;
}

/* Links */
.tf-faq-answer-text a {
  color: #b8004c !important;
  text-decoration: underline !important;
  word-break: break-all;
  transition: color 0.18s;
  font-weight: 600;
}
.tf-faq-answer-text a:hover,
.tf-faq-answer-text a:focus {
  color: #e91e63 !important;
  text-decoration: underline !important;
}

/* Inline code */
.tf-faq-answer-text code {
  font-family: "Fira Mono", "Menlo", "Monaco", "Consolas", monospace !important;
  background: #f3e4ef !important;
  color: #ce0076 !important;
  font-size: 0.98em;
  border-radius: 4px;
  padding: 0.18em 0.37em !important;
  margin: 0 0.09em !important;
}

/* Code block */
.tf-faq-answer-text pre,
.tf-faq-answer-text pre code {
  font-family: "Fira Mono", "Menlo", "Monaco", "Consolas", monospace !important;
  display: block;
  background: #f6cce4 !important;
  color: #230025 !important;
  border-radius: 10px;
  padding: 1em !important;
  font-size: 1em;
  overflow-x: auto;
  margin: 1em 0 !important;
  line-height: 1.7;
}

/* Images */
.tf-faq-answer-text img {
  max-width: 90%;
  display: block;
  margin: 18px auto 18px auto;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(180, 0, 76, 0.09);
  border: 1.5px solid #e0b5cc;
}

/* Horizontal rules */
.tf-faq-answer-text hr {
  border: none;
  border-top: 2px solid #b8004c !important;
  margin: 1.2em 0 !important;
}

/* Text alignment */
.tf-faq-answer-text .align-center,
.tf-faq-answer-text [style*="text-align:center"],
.tf-faq-answer-text center {
  text-align: center !important;
}
.tf-faq-answer-text .align-right,
.tf-faq-answer-text [style*="text-align:right"] {
  text-align: right !important;
}
.tf-faq-answer-text .align-left,
.tf-faq-answer-text [style*="text-align:left"] {
  text-align: left !important;
}
.tf-faq-answer-text .align-justify,
.tf-faq-answer-text [style*="text-align:justify"] {
  text-align: justify !important;
}

/* Lists (with nested support) */
.tf-faq-answer-text ul,
.tf-faq-answer-text ol {
  margin-left: 2em !important;
  padding-left: 1.2em !important;
  margin-bottom: 1em !important;
}
.tf-faq-answer-text ol {
  list-style-type: decimal !important;
}
.tf-faq-answer-text ul {
  list-style-type: disc !important;
}
.tf-faq-answer-text li {
  display: list-item !important;
  margin-bottom: 0.3em !important;
  line-height: 1.6;
}
.tf-faq-answer-text ul ul,
.tf-faq-answer-text ol ul,
.tf-faq-answer-text ul ol,
.tf-faq-answer-text ol ol {
  margin-left: 1.5em !important;
  margin-top: 0.1em !important;
  margin-bottom: 0.2em !important;
}
.tf-faq-answer-text li > ul,
.tf-faq-answer-text li > ol {
  margin-top: 0.4em !important;
}

/* Remove empty paragraphs, and excess space at top/bottom */
.tf-faq-answer-text p:empty {
  display: none !important;
}
.tf-faq-answer-text p:first-child {
  margin-top: 0 !important;
}
.tf-faq-answer-text p:last-child {
  margin-bottom: 0 !important;
}

/* Table support */
.tf-faq-answer-text table {
  width: 98%;
  border-collapse: collapse;
  margin: 1em auto;
  font-size: 1em;
  background: #fff0fa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0px 10px rgba(180, 0, 76, 0.04);
}
.tf-faq-answer-text th,
.tf-faq-answer-text td {
  border: 1.5px solid #e0b5cc;
  padding: 0.5em 1em;
  text-align: left;
}
.tf-faq-answer-text th {
  background: #ffd5e7;
  color: #b8004c;
  font-weight: bold;
}
.tf-faq-answer-text td {
  background: #fff;
}

/* End FAQ rich text block */
