/**
 * WBSK Form Styles
 * Whistleblowing System Krom - Frontend Form
 * 
 * Table of Contents:
 * 1. Base & Reset
 * 2. Layout & Container
 * 3. Form Header & FAQ
 * 4. Tabs & Navigation
 * 5. Custom Dropdown
 * 6. Form Elements
 * 7. Input Fields
 * 8. Radio & Checkbox
 * 9. File Upload
 * 10. Buttons
 * 11. Messages & Notifications
 * 12. Character Counter
 * 13. Conditional Fields
 * 14. reCAPTCHA
 * 15. Utilities
 * 16. Animations
 * 17. Responsive
 */

/* ==========================================================================
   1. Base & Reset
   ========================================================================== */

p {
  font-family: Poppins, sans-serif;
}

.vc-about__body-main__wrapper {
  border-bottom: none;
}

small {
  color: #abadb9;
  font-size: 13px;
}

strong {
  font-weight: 600;
}

/* ==========================================================================
   2. Layout & Container
   ========================================================================== */

.wbsk-form-container {
  border: solid 1px #F0EBFB;
  border-radius: 16px;
  padding: 40px;
}

.wbsk-form-container > h4 {
  color: #1F2E45;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.form-wrapper {
  display: grid;
  margin-bottom: 16px;
}

/* Two-column helper for paired inputs (desktop) */
.wbsk-grid-two {
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* ==========================================================================
   3. Form Header & FAQ
   ========================================================================== */

.wbsk-form-header {
  margin-bottom: 24px;
}

.wbsk-form-header h4 {
  margin-bottom: 18px !important;
  color: #1F2E45;
  font-weight: 600;
}

.wbsk-form-header p {
  margin: 0;
  line-height: 1.8;
  text-align: justify;
  color: #1F2E45;
}

.wbsk-form-header p:empty {
  display: none;
}

/* FAQ Section */
.wbsk-faq-container {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

#wbsk-faq-wrapper h4 {
  color: #1F2E45;
}
.card-faq {
  margin: 0 24px;
}

.card-faq .card-header-faq .btn-header-link p {
  color: #1F2E45;
  margin-bottom: 0;
  font-size: 18px;
}

.card-body-faq {
  color: #1F2E45;
  margin-top: 0 !important;
}

.card-body-faq p {
  color: #1F2E45;
  font-size: 14px !important;
}

.card-faq .card-header-faq .btn-header-link.collapsed {
  color: #1f2e45;
  text-align: left;
  display: flex;
  align-items: center;
  padding: 24px 0px 24px 0px;
}

.card-header-faq {
  padding: 0 !important;
}

a.btn.btn-header-link {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 16px 0px;
  font-weight: 600;
  align-items: anchor-center;
}

/* ==========================================================================
   4. Tabs & Navigation
   ========================================================================== */

.wbsk-tabs-container {
  margin-bottom: 2rem;
  background-color: #F9F9F9;
  padding: 6px;
  height: 56px;
  border-radius: 12px;
}

.wbsk-tabs-container {
  margin-bottom: 24px;
}

/* Form type heading before tabs */
.wbsk-form-wrapper h4 {
  color: #1F2E45;
}

.wbsk-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wbsk-tab {
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
  color: #ABADB9;
  border-radius: 8px;
  background-color: transparent;
  border: none;
  height: 44px;
}

.wbsk-tab:focus,
.wbsk-tab:active {
  outline: none;
  box-shadow: none;
  font-weight: 600;
}

.wbsk-tab:hover {
  background-color: rgba(105, 54, 211, 0.05);
}

.wbsk-tab.active {
  background: #fff;
  border-color: #fff;
  color: #6936d3;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.wbsk-tab .tab-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.wbsk-tab .tab-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.wbsk-tab .tab-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  flex: 1;
}

.wbsk-tab .tab-title {
  font-size: 1rem;
  font-weight: 600;
  display: block;
}

.wbsk-tab .tab-subtitle {
  font-size: 0.75rem;
  opacity: 0.8;
  display: block;
}

.wbsk-tab:not(.active) .tab-title {
  color: #ABADB9;
}

.wbsk-tab:not(.active) .tab-subtitle {
  color: #666;
}

.wbsk-tab-disclaimer {
  background: #faf9ff;
  border-radius: 12px;
  padding: 1rem;
  border-left: 4px solid #6936d3;
}

.wbsk-tab-disclaimer .disclaimer-text {
  display: none;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #333;
}

.wbsk-tab-disclaimer .disclaimer-text.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

.wbsk-tab-disclaimer strong {
  color: #6936d3;
  font-weight: 600;
}

/* Hide reporter section in full anonymous mode */
.wbsk-form-wrapper.full-anonymous #reporter-info-section {
  display: none;
}

/* ==========================================================================
   5. Custom Dropdown
   ========================================================================== */

/* Mobile Dropdown - Hidden by default */
.wbsk-tabs-dropdown {
  display: none;
}

/* Custom Dropdown Container */
.wbsk-custom-dropdown {
  position: relative;
  width: 100%;
}

/* Custom Dropdown Trigger - Default (for form fields) */
.wbsk-custom-dropdown-trigger {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background-color: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 400;
  color: #ABADB9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  user-select: none;
}

.wbsk-custom-dropdown-trigger .dropdown-text {
  color: #ABADB9;
  font-size: 12px;
}

/* Change color when option is selected */
.wbsk-custom-dropdown-trigger.has-value .dropdown-text {
  color: #1F2E45 !important;
}

.wbsk-custom-dropdown-trigger:hover {
  border-color: #6936d3;
  background-color: #FAFAFA;
}

.wbsk-custom-dropdown-trigger:focus,
.wbsk-custom-dropdown-trigger.active {
  outline: none;
  border-color: #6936d3;
  box-shadow: 0 0 0 3px rgba(105, 54, 211, 0.1);
}

/* Tab Dropdown Trigger - Specific styling for mobile tab switcher */
.wbsk-tabs-dropdown .wbsk-custom-dropdown-trigger {
  height: 56px;
  border-radius: 12px;
  background-color: #F9F9F9;
  border: 1px solid #F9F9F9;
  font-weight: 500;
}

.wbsk-tabs-dropdown .wbsk-custom-dropdown-trigger:hover {
  background-color: #F5F5F5;
  border-color: #F5F5F5;
}

.wbsk-custom-dropdown-trigger .dropdown-text {
  flex: 1;
  text-align: left;
  color: #ABADB9;
}

.wbsk-custom-dropdown-trigger .dropdown-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.wbsk-custom-dropdown-trigger .dropdown-icon svg {
  width: 100%;
  height: 100%;
  fill: #ABADB9;
}

.wbsk-custom-dropdown-trigger.active .dropdown-icon {
  transform: rotate(180deg);
}

/* Custom Dropdown Panel */
.wbsk-custom-dropdown-panel {
  position: fixed;
  background-color: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  max-height: 300px;
  overflow-y: auto;
}

.wbsk-custom-dropdown-panel.active {
  opacity: 1;
  visibility: visible;
}

/* Tab Dropdown Panel - Specific styling */
.wbsk-tabs-dropdown .wbsk-custom-dropdown-panel {
  border-radius: 12px;
}

/* Custom Dropdown Options */
.wbsk-custom-dropdown-option {
  padding: 12px 16px;
  font-size: 14px;
  color: #1F2E45;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  outline: none;
  user-select: none;
}

.wbsk-custom-dropdown-option:focus {
  background-color: #FAF9FF;
  color: #6936d3;
  outline: 2px solid #6936d3;
  outline-offset: -2px;
}

.wbsk-custom-dropdown-option:hover {
  background-color: #F0EBFB;
  color: #6936d3;
}

.wbsk-custom-dropdown-option.selected {
  background-color: #FAF9FF !important;
  color: #212529;
}

.wbsk-custom-dropdown-option.selected::after {
  content: '';
  font-size: 16px;
  font-weight: bold;
  color: #6936d3;
}

.wbsk-custom-dropdown-option:first-child {
  border-radius: 16px 16px 0 0;
}

.wbsk-custom-dropdown-option:last-child {
  border-radius: 0 0 16px 16px;
}

/* Tab Dropdown Options - Specific styling */
.wbsk-tabs-dropdown .wbsk-custom-dropdown-option:first-child {
  border-radius: 12px 12px 0 0;
}

.wbsk-tabs-dropdown .wbsk-custom-dropdown-option:last-child {
  border-radius: 0 0 12px 12px;
}

/* Backdrop for closing dropdown */
.wbsk-dropdown-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
  pointer-events: none;
}

.wbsk-dropdown-backdrop.active {
  display: block;
  pointer-events: auto;
}

/* Make sure dropdown panel is above backdrop */
.wbsk-custom-dropdown-panel {
  pointer-events: auto;
}

/* Hide native select */
.wbsk-select {
  display: none;
}

/* ==========================================================================
   6. Form Elements
   ========================================================================== */

/* Input Container */
.wbsk-input {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  background-color: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #EAEAEA;
}

/* Remove padding/border when wbsk-input contains custom dropdown */
.wbsk-input:has(.wbsk-custom-dropdown),
.wbsk-input.wbsk-dropdown-wrapper {
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  display: block;
  min-height: auto;
  height: auto;
}

/* Ensure textarea containers also have relative positioning */
.wbsk-textarea,
.wbsk-textarea-small {
  position: relative;
}

.wbsk-label {
  display: none;
  padding: 1px 2px;
  animation: fadeInAnimation 300ms ease;
  font-size: 12px;
  color: #6b717b;
  font-weight: 500;
  order: -1;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.wbsk-field {
  background-color: #FFFFFF;
  border: none;
  color: #1F2E45;
  font-size: 14px;
}

.wbsk-field:focus {
  outline: none;
}

.wbsk-field:focus ~ .wbsk-label,
.wbsk-field:not(:placeholder-shown) ~ .wbsk-label {
  display: block;
}

/* Select */
select.wbsk-field {
  border-right: 16px solid transparent;
  background-color: transparent;
  color: #ABADB9;
  cursor: pointer;
  width: 100%;
}

/* Form Label */
.wbsk-form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #1F2E45;
  margin-bottom: 12px;
  cursor: default;
}

/* ==========================================================================
   7. Input Fields
   ========================================================================== */

input[type="tel"],
input[type="text"],
input[type="number"],
input[type="email"] {
  border: none;
  width: 94%;
}

input[type="date"] {
  background-color: #FFFFFF !important;
  height: 64px;
  border-radius: 16px;
  border: 1px solid #EAEAEA;
  width: 100%;
  color: #6b717b !important;
  padding-left: 40px;
}

input[type="date"].wbsk-field {
  height: auto;
}

input[type="textarea"] {
  border: none;
  height: 196px;
}

input::placeholder,
textarea::placeholder {
  color: #ABADB9 !important;
  font-size: 12px;
}

/* Remove number input arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Textarea */
.wbsk-textarea {
  height: 196px;
  padding-top: 12px;
}

textarea.wbsk-field {
  background-color: transparent;
  border: none;
  resize: none;
  font-family: inherit;
  line-height: 1.5;
  height: 196px;
}

/* Textarea Small */
.wbsk-textarea-small {
  height: auto;
  min-height: 70px;
}

.wbsk-textarea-small textarea {
  height: 70px;
  min-height: 70px;
}

/* ==========================================================================
   8. Radio & Checkbox
   ========================================================================== */

/* Radio Button Group */
.wbsk-radio-group {
  width: 100%;
}

.wbsk-radio-group .wbsk-form-label {
  color: #1F2E45;
}

.wbsk-radio-options {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  margin-top: 8px;
}

.wbsk-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1F2E45;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.wbsk-radio-label input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  accent-color: #6936d3;
  cursor: pointer;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.wbsk-radio-label span {
  user-select: none;
  cursor: pointer;
  color: #1F2E45;
}

/* Checkbox Group */
.wbsk-checkbox-group {
  width: 100%;
  padding: 16px;
  background-color: #FAF9FF;
}

.wbsk-checkbox-label {
  display: flex;
  align-items: anchor-center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.wbsk-checkbox-label input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: #6936d3;
  flex-shrink: 0;
}

.wbsk-checkbox-label span {
  user-select: none;
  color: #6B717B;
  font-weight: 400;
}

/* ==========================================================================
   9. File Upload
   ========================================================================== */

/* Upload Area */
.upload-style {
  border: solid 1px #eaeaea;
  border-radius: 8px;
  height: 70px;
  padding: 12px;
  display: flex;
  flex-direction: row;
}

.upload-style p {
  margin: 0;
}

/* Upload Info */
#upload-info,
#report-details-upload-info {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 8px;
}

#upload-info-icon,
#report-details-upload-info-icon {
  color: #6936d3;
}

#upload-info-remove,
#report-details-upload-info-remove {
  color: #dc3545;
  cursor: pointer;
  margin-left: 8px;
}

#upload-info-remove:hover,
#report-details-upload-info-remove:hover {
  color: #c82333;
}

/* Upload Wrapper - Two Column Layout */
.wbsk-upload-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Upload Box - Left Side */
.wbsk-upload-box {
  min-height: 180px;
  background-color: #FAF9FF;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wbsk-upload-box:hover {
  background-color: #F5F5F5;
}

.wbsk-upload-content {
  border: 2px dashed #D1C1F5;
  border-radius: 12px;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.wbsk-upload-content svg {
  width: 48px;
  height: 48px;
  color: #6936d3;
}

.wbsk-upload-content p {
  margin: 0;
  color: #212529;
  line-height: 1.5;
  font-weight: 500;
}

.wbsk-upload-content .upload-browse-text {
  color: #6936d3;
  cursor: pointer;
  font-weight: 600;
}

/* Upload Info - Right Side */
.wbsk-upload-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wbsk-upload-info > p {
  margin: 0;
  font-size: 14px;
  color: #1F2E45;
}

/* Uploaded Files List Container */
#full-anon-uploaded-files-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Upload Progress Wrapper */
.wbsk-upload-progress-wrapper {
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #FFFFFF;
}

/* Document Icon */
.icon-document-checked {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.icon-document-checked svg {
  width: 20px;
  height: 20px;
}

/* Progress Bar Content */
.wbsk-upload-progress-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wbsk-upload-progress-bar-wrapper > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wbsk-upload-progress-bar-wrapper p {
  margin: 0;
  color: #1F2E45;
  font-weight: 500;
  word-break: break-word;
}

#full-anon-uploaded-label {
  font-size: 14px;
}

.wbsk-upload-progress-bar-wrapper .d-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wbsk-upload-progress-bar-wrapper .mr-2 {
  margin-right: 8px;
  font-size: 12px;
  color: #ABADB9;
  white-space: nowrap;
}

.wbsk-upload-progress-bar-wrapper .fa-times-circle {
  cursor: pointer;
  color: #EAEAEA;
  font-size: 14px;
  transition: color 0.2s ease;
}

.wbsk-upload-progress-bar-wrapper .fa-times-circle:hover {
  color: #dc3545;
}

/* Progress Bar Loading */
.wbsk-upload-progress-bar-loading {
  height: 6px;
  border-radius: 3px;
  background-color: #55B84D;
  width: 0%;
  transition: width 0.8s ease-out;
}

.wbsk-progress-animate {
  animation: progressFill 0.8s ease-out forwards;
}

@keyframes progressFill {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* ==========================================================================
   10. Buttons
   ========================================================================== */

.wb-form-button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 40px 0 0 0;
}

.wb-form-button-group button {
  width: 160px !important;
}

#wbsk-submit-button,
#report-details-wbsk-submit-button,
#full-anon-wbsk-submit-button,
#partial-anon-wbsk-submit-button {
  border-radius: 40px;
  background: #6936d3;
  padding: 8px 16px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  width: 100%;
  height: fit-content;
  transition: all 0.3s ease;
}

#wbsk-submit-button:hover,
#report-details-wbsk-submit-button:hover,
#full-anon-wbsk-submit-button:hover,
#partial-anon-wbsk-submit-button:hover {
  background: #5527b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(105, 54, 211, 0.3);
}

#wbsk-submit-button:disabled,
#report-details-wbsk-submit-button:disabled,
#full-anon-wbsk-submit-button:disabled,
#partial-anon-wbsk-submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#wbsk-reset-button,
#report-details-wbsk-reset-button,
#full-anon-wbsk-reset-button,
#partial-anon-wbsk-reset-button {
  border-radius: 40px;
  background: #FFFFFF;
  padding: 8px 16px;
  text-align: center;
  color: #6936d3;
  width: 100%;
  height: fit-content;
  cursor: pointer;
  border: 1px solid #6936d3;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  transition: all 0.3s ease;
}

#wbsk-reset-button:hover,
#report-details-wbsk-reset-button:hover,
#full-anon-wbsk-reset-button:hover,
#partial-anon-wbsk-reset-button:hover {
  background: #FAF9FF;
  border-color: #6936d3;
  color: #6936d3;
}

/* ==========================================================================
   11. Messages & Notifications
   ========================================================================== */

/* Success/Error Messages */
.wbsk-success-message {
  min-height: 1.6rem;
  padding: 10px;
  background-color: darkgreen;
  border-radius: 10px;
  color: #fff;
}

#wbsk-fail-message {
  min-height: 1.6rem;
  padding: 10px;
  background-color: salmon;
  border-radius: 10px;
  color: #fff;
}

/* Invalid Feedback */
.invalid-feedback {
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 0.25rem;
  display: none;
}

.wbsk-field.is-invalid:focus {
  background-color: #fff;
}

/* Floating Success/Error Message - Toast Style */
.wbsk-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  min-width: 300px;
  max-width: 500px;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.wbsk-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.wbsk-toast.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-100px);
}

.wbsk-toast-icon {
  width: 24px;
  height: 24px;
  background-color: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wbsk-toast-icon::after {
  content: "✓";
  color: white;
  font-size: 16px;
  font-weight: bold;
}

.wbsk-toast-message {
  flex: 1;
  font-weight: 500;
  font-size: 15px;
}

/* Warning/Error Toast */
.wbsk-toast.warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.wbsk-toast.warning .wbsk-toast-icon {
  background-color: #ffc107;
}

.wbsk-toast.warning .wbsk-toast-icon::after {
  content: "!";
  font-size: 18px;
}

/* Error Toast */
.wbsk-toast.error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.wbsk-toast.error .wbsk-toast-icon {
  background-color: #dc3545;
}

.wbsk-toast.error .wbsk-toast-icon::after {
  content: "✕";
}

/* ==========================================================================
   12. Character Counter
   ========================================================================== */

.wbsk-input {
  position: relative;
}

.wbsk-input .char-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #abadb9;
  font-size: 12px;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  background-color: white;
  padding: 2px 4px;
  border-radius: 16px;
}

/* Character counter in textarea - position at bottom right */
.wbsk-textarea .char-counter,
.wbsk-textarea-small .char-counter {
  top: auto;
  bottom: 12px;
  right: 12px;
  transform: none;
}

/* Character counter for specific wrappers */
#loss-amount-wrapper .wbsk-input .char-counter,
#partial-anon-loss-amount-wrapper .wbsk-input .char-counter {
  top: auto;
  bottom: 12px;
  right: 12px;
  transform: none;
}

/* ==========================================================================
   13. Conditional Fields
   ========================================================================== */

/* Hide form sections by default - JavaScript will show the active one */
#full-anonymous-form,
#partial-anonymous-form {
  display: none;
}

/* Show full anonymous form by default */
#full-anonymous-form {
  display: block;
}

/* Conditional Input Fields - Full Anonymous Form */
#witness-identity-wrapper,
#previous-incident-wrapper,
#authority-report-wrapper,
#other-report-wrapper,
#full-anon-dampak-lainnya-wrapper,
#loss-amount-wrapper {
  min-height: 90px;
}

/* Make regular input fields in conditional wrappers match textarea height */
#loss-amount-wrapper .wbsk-input,
#partial-anon-loss-amount-wrapper .wbsk-input {
  min-height: 70px;
  height: 90px;
  justify-content: flex-start;
  padding-top: 12px;
}

#loss-amount-wrapper .wbsk-field::placeholder,
#partial-anon-loss-amount-wrapper .wbsk-field::placeholder {
  color: #ABADB9 !important;
}

/* Conditional Input Fields - Partial Anonymous Form */
#partial-anon-witness-identity-wrapper,
#partial-anon-previous-incident-wrapper,
#partial-anon-authority-report-wrapper,
#partial-anon-sarana-lain-report-wrapper,
#partial-anon-dampak-lainnya-wrapper,
#partial-anon-loss-amount-wrapper {
  min-height: 90px;
}

#partial-upload-section {
  min-height: 220px;
}

/* ==========================================================================
   14. reCAPTCHA
   ========================================================================== */

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
  visibility: hidden;
  z-index: -1 !important;
  pointer-events: none !important;
}

/* Ensure reCAPTCHA doesn't block form elements */
.wbsk-form-wrapper {
  position: relative;
  z-index: 1;
}

.wbsk-form-wrapper * {
  /* position: relative; */
}

/* reCAPTCHA Notice */
.recaptcha-notice {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: normal;
  color: #ABADB9;
  margin: 24px 0;
}

.recaptcha-notice a {
  color: #6936D3;
  text-decoration: none;
}

.recaptcha-notice a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   15. Utilities
   ========================================================================== */

/* Separator */
#separator {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.wbsk-separator {
  width: 100%;
  height: 2px;
  background-color: #F5F5F5;
  margin: 24px 0;
}

/* Disclaimer Section */
.wbsk-disclaimer-section {
  padding: 20px;
  background-color: #FAF9FF;
  border-radius: 12px;
  margin-bottom: 24px;
}

.wbsk-disclaimer-section p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #6B717B;
  text-align: justify;
}

.wbsk-disclaimer-section strong {
  color: #1F2E45;
  font-weight: 600;
}

/* Info Section */
.wbsk-info-section {
  padding: 20px;
  background-color: #faf9ff;
  border-radius: 18px;
  margin-bottom: 40px;
}

.wbsk-info-section p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #1F2E45;
  font-weight: 400;
}

.wbsk-info-section strong {
  color: #6936d3;
  font-weight: 600;
}

.wbsk-info-section a {
  color: #6936d3;
  text-decoration: none;
  word-break: break-all;
}

.wbsk-info-section a:hover {
  text-decoration: underline;
}

/* Sub Info */
.wbsk-sub-info {
  display: flex;
  justify-content: space-between;
}

.wbsk-sub-info small {
  color: #abadb9;
}

/* Animation */
.animate {
  animation: fadeInFromNone 4s normal forwards ease-in-out;
}

/* ==========================================================================
   16. Animations
   ========================================================================== */

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInFromNone {
  0% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

/* ==========================================================================
   17. Responsive
   ========================================================================== */

@media (max-width: 990px) {
  .form-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wb-form-button-group {
    grid-template-columns: 1fr;
  }

  .wbsk-tabs {
    grid-template-columns: 1fr;
  }

  .wbsk-tab {
    min-height: 70px;
  }

  .wbsk-tab .tab-content {
    gap: 0.5rem;
  }

  .wbsk-tab .tab-icon {
    font-size: 1.5rem;
  }

  .wbsk-tab .tab-title {
    font-size: 0.9rem;
  }

  .wbsk-tab .tab-subtitle {
    font-size: 0.7rem;
  }
}

@media (max-width: 768px) {
  /* Hide tabs and show dropdown on mobile */
  .wbsk-tabs {
    display: none;
  }

  .wbsk-tabs-dropdown {
    display: block;
  }

  .wbsk-tabs-container {
    height: auto;
    padding: 0;
    background-color: transparent;
  }
}

@media (max-width: 600px) {
  /* Input Styling */
  input[type="tel"],
  input[type="text"],
  input[type="number"],
  input[type="email"] {
    border: none;
    width: 100%;
    font-size: 12px;
  }

  input[type="date"] {
    background-color: #FFFFFF !important;
    height: 64px;
    border-radius: 16px;
    border: 1px solid #EAEAEA;
    width: 100%;
    color: #6b717b !important;
    padding-left: 40px;
  }

  input[type="date"].wbsk-field {
    height: auto;
  }

  input[type="textarea"] {
    border: none;
    height: 196px;
  }

  input::placeholder,
  textarea::placeholder {
    color: #ABADB9 !important;
  }

  input,
  textarea {
    font-size: 12px !important;
  }

  #partial-upload-section .upload-style {
    flex-direction: column;
    gap: 12px;
  }

  #partial-upload-section .upload-style #button-upload {
    width: 100%;
  }

  #partial-upload-section #upload-info {
    flex-direction: column;
    align-items: flex-start;
  }

  #partial-upload-section #upload-info-details {
    width: 100%;
  }

  .wbsk-info-section {
    padding: 16px;
  }

  .wbsk-info-section p {
    font-size: 12px;
    text-align: left !important;
  }

  .wbsk-info-section a {
    display: inline-block;
  }

  .wbsk-form-header p {
    font-size: 14px;
    text-align: left !important;
  }

  .wbsk-form-header br {
    display: none;
  }

  /* Radio group spacing */
  .wbsk-radio-group {
    margin-bottom: 0;
  }

  /* FAQ mobile adjustments */
  .card-faq .card-header-faq .btn-header-link p {
    font-size: 14px;
  }

  .card-body-faq p {
    font-size: 13px !important;
  }

  /* Disclaimer section spacing */
  .wbsk-disclaimer-section {
    margin-bottom: 24px;
  }

  /* Button group spacing */
  .wb-form-button-group {
    margin: 24px 0;
  }

  .recaptcha-notice {
    margin: 0;
  }

  .wbsk-toast {
    min-width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    transform: translateX(0) translateY(-100px);
  }

  .wbsk-toast.show {
    transform: translateX(0) translateY(0);
  }

  .wbsk-toast.hide {
    transform: translateX(0) translateY(-100px);
  }

  .wbsk-upload-wrapper {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* Ellipsis for long placeholders on small screens */
@media (width < 400px) {
.wbsk-form-header h4 {
  font-size: 18px;
}
  #full-anon-identitas-pelaku,
  #partial-anon-identitas-pelaku {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding-right: 56px;
  }

  #full-anon-identitas-pelaku::placeholder,
  #partial-anon-identitas-pelaku::placeholder {
    color: #ABADB9 !important;
    text-overflow: ellipsis;
  }

  .wbsk-radio-label span {
    font-size: 12px;
  }

  /* Placeholder font size for mobile */
  div#placeholder {
    font-size: 12px !important;
  }

  .wbsk-radio-options {
    grid-template-columns: 1fr 1fr;
  }

  .recaptcha-notice {
    margin: 24px 0;
  }

  .wbsk-form-container {
    padding: 16px 16px 24px 16px;
  }
}

.wbsk-char-count {
  background-color: white;
}

.wbsk-faq-header {
  color: #1F2E45;
  padding-left: 24px;
  font-weight: 600;
}

.wbsk-faq-desc {
  padding: 0 0 16px 0px;
  span {
    color: #1F2E45 !important;
  }
  p {
    font-size: 18px !important;
    font-family: 'poppins';
  }
}

.margin-bottom-0 {
  margin-bottom: 0 !important ;
}

.card-faq .card-header-faq .btn-header-link:after {
  height: 24px;
  width: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}