/* Bluechip Technologies Client Support Theme
 * Based on https://bluechiptech.biz/client-support/
 */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  /* Bluechip Official Brand Colors */
  --bct-navy: #000068;          /* Primary deep corporate navy */
  --bct-heading: #0A0D31;       /* Dark heading color */
  --bct-blue: #010ED0;          /* Signature electric brand blue */
  --bct-blue-hover: #000bb0;    /* Darker electric blue for hover */
  --bct-periwinkle: #DEE0FF;    /* Light accent soft tint */
  --bct-periwinkle-subtle: #F0F2FF;
  --bct-bg-light: #F8F9FD;      /* Crisp tech background */
  --bct-surface: #FFFFFF;
  --bct-text-muted: #5F6567;    /* Official muted text */
  --bct-text-dark: #242627;     /* Official body link / text */
  --bct-border: #E2E5EE;
  --bct-border-focus: #010ED0;
  
  /* Status & Functional Colors */
  --bct-destructive: #db4c4c;
  --bct-destructive-bg: #fff5f5;
  --bct-success: #1ea508;
  --bct-success-bg: #f0fdf4;

  /* Typography */
  --font-heading: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Elevation & Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 3px rgba(10, 13, 49, 0.05);
  --shadow-card: 0 2px 8px -1px rgba(10, 13, 49, 0.06), 0 1px 4px -1px rgba(10, 13, 49, 0.04);
  --shadow-hover: 0 8px 24px -4px rgba(1, 14, 208, 0.12), 0 4px 8px -2px rgba(10, 13, 49, 0.04);
  --shadow-modal: 0 20px 40px -10px rgba(0, 0, 104, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--bct-text-dark);
  background-color: var(--bct-bg-light);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Main Form Content Section (Standalone Embed / Portal Form)
   ========================================================================== */
.main-wrapper {
  max-width: 50rem; /* ~800px */
  margin: 1rem auto 3rem auto;
  padding: 0 1.5rem;
  width: 100%;
  position: relative;
  z-index: 10;
}

.form-header-intro {
  margin-bottom: 0.875rem;
  padding: 0;
  text-align: left;
}

.form-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--bct-periwinkle-subtle);
  border: 1px solid var(--bct-periwinkle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bct-blue);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 0.625rem;
}

.form-title-badge svg {
  width: 0.875rem;
  height: 0.875rem;
}

h5.form-main-heading,
.form-main-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bct-heading);
  letter-spacing: -0.015em;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

@media (min-width: 640px) {
  h5.form-main-heading,
  .form-main-heading {
    font-size: 1.375rem;
    margin-bottom: 0.35rem;
  }
}

.form-main-subheading {
  font-size: 0.875rem;
  color: var(--bct-text-muted);
  max-width: 42rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Form Container */
.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Form Card */
.form-card {
  background-color: var(--bct-surface);
  border: 1px solid var(--bct-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-card:focus-within {
  border-color: rgba(1, 14, 208, 0.3);
  box-shadow: var(--shadow-hover);
}

.card-header {
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--bct-border);
  margin-bottom: 0.875rem;
}

h6.card-title,
.card-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bct-heading);
  letter-spacing: -0.01em;
  margin: 0 0 0.2rem 0;
}

.card-description {
  font-size: 0.8125rem;
  color: var(--bct-text-muted);
  line-height: 1.45;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Input Grids & Controls */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bct-heading);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.text-required {
  color: var(--bct-destructive);
}

.form-label-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--bct-text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--bct-text-dark);
  background-color: #ffffff;
  border: 1px solid var(--bct-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9aa1a4;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--bct-blue);
  box-shadow: 0 0 0 3px rgba(1, 14, 208, 0.12);
}

.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
  border-color: var(--bct-destructive) !important;
}

.form-input.has-error:focus,
.form-select.has-error:focus,
.form-textarea.has-error:focus {
  box-shadow: 0 0 0 3px rgba(219, 76, 76, 0.15) !important;
}

.error-message {
  font-size: 0.75rem;
  color: var(--bct-destructive);
  font-weight: 500;
  margin-top: 0.25rem;
  display: none;
  animation: fadeIn 0.15s ease forwards;
}

.error-message.visible {
  display: block;
}

.form-textarea {
  resize: vertical;
  min-height: 7.5rem;
  line-height: 1.5;
}

/* Custom Styled Select */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--bct-text-muted);
  display: flex;
  align-items: center;
}

.select-arrow svg {
  width: 1rem;
  height: 1rem;
}

/* Category Grid & Cards (Bluechip Branded) */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.category-option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--bct-border);
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--bct-text-dark);
  padding: 1.25rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  outline: none;
  width: 100%;
  box-shadow: 0 1px 3px rgba(10, 13, 49, 0.04);
}

.category-option-btn:hover:not(.active) {
  border-color: rgba(1, 14, 208, 0.4);
  background: var(--bct-periwinkle-subtle) !important;
  background-color: var(--bct-periwinkle-subtle) !important;
  transform: translateY(-1px);
}

.category-option-btn.active {
  border-color: var(--bct-blue) !important;
  background: linear-gradient(135deg, var(--bct-navy) 0%, var(--bct-blue) 100%) !important;
  background-color: var(--bct-navy) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(1, 14, 208, 0.25) !important;
}

.category-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--bct-blue);
  transition: color 0.15s ease;
}

.category-option-btn.active .category-icon {
  color: #ffffff;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bct-heading);
  margin-bottom: 0.25rem;
  transition: color 0.15s ease;
}

.category-option-btn.active .category-title {
  color: #ffffff;
}

.category-desc {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--bct-text-muted);
  transition: color 0.15s ease;
}

.category-option-btn.active .category-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Conditional dropdowns */
.product-selection-container {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  animation: fadeIn 0.25s ease forwards;
}

.product-selection-container.hidden {
  display: none;
}

.conditional-other-container {
  margin-top: 0.75rem;
  animation: fadeIn 0.2s ease forwards;
}

.conditional-other-container.hidden {
  display: none;
}

/* Attachment Drop Zone */
.dropzone-container {
  border: 2px dashed #cbd2e1;
  background-color: var(--bct-bg-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dropzone-container:hover,
.dropzone-container.drag-over {
  border-color: var(--bct-blue);
  background-color: var(--bct-periwinkle-subtle);
}

.dropzone-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dropzone-icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--bct-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bct-blue);
  margin-bottom: 0.25rem;
  transition: transform 0.2s ease;
}

.dropzone-container:hover .dropzone-icon-circle {
  transform: translateY(-2px);
}

.dropzone-icon-circle svg {
  width: 1.35rem;
  height: 1.35rem;
}

.dropzone-primary-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bct-heading);
}

.dropzone-hint {
  font-size: 0.75rem;
  color: var(--bct-text-muted);
}

/* Attachment List */
.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background-color: #ffffff;
  border: 1px solid var(--bct-border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  animation: fadeIn 0.2s ease forwards;
}

.attachment-icon {
  color: var(--bct-blue);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.attachment-name {
  color: var(--bct-text-dark);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.attachment-size {
  font-size: 0.75rem;
  color: var(--bct-text-muted);
  flex-shrink: 0;
}

.attachment-remove-btn {
  background: none;
  border: none;
  color: var(--bct-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.attachment-remove-btn:hover {
  color: var(--bct-destructive);
}

/* ==========================================================================
   Consent Checkbox (Replaces static disclaimer)
   ========================================================================== */
.form-consent-wrap {
  background-color: var(--bct-surface);
  border: 1.5px solid var(--bct-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-consent-wrap:hover {
  border-color: rgba(1, 14, 208, 0.35);
}

.form-consent-wrap.has-error {
  border-color: var(--bct-destructive) !important;
  background-color: #fffbfa;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.form-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.custom-checkbox {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #cbd2e1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: #ffffff;
  transition: all 0.18s ease;
}

.custom-checkbox svg {
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.15s ease;
}

.form-checkbox:checked + .custom-checkbox {
  background-color: var(--bct-blue);
  border-color: var(--bct-blue);
  box-shadow: 0 2px 6px rgba(1, 14, 208, 0.25);
}

.form-checkbox:checked + .custom-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.form-checkbox:focus-visible + .custom-checkbox,
.consent-label:focus-within .custom-checkbox {
  box-shadow: 0 0 0 3px rgba(1, 14, 208, 0.2);
}

.custom-checkbox.has-error {
  border-color: var(--bct-destructive) !important;
}

.consent-text {
  font-size: 0.875rem;
  color: var(--bct-text-dark);
  line-height: 1.45;
  font-weight: 500;
}

/* ==========================================================================
   Submit Section
   ========================================================================== */
.form-footer-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background-color: var(--bct-blue);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.875rem 2.25rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(1, 14, 208, 0.25);
  width: 100%;
}

@media (min-width: 640px) {
  .btn-primary {
    width: auto;
  }
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--bct-navy);
  box-shadow: 0 6px 18px rgba(0, 0, 104, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary svg {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.15s ease;
}

.btn-primary:hover:not(:disabled) svg.arrow-icon {
  transform: translateX(4px);
}

/* Spinner Animation */
.spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* ==========================================================================
   Compact Inline Submission Feedback Banner (Under the Form)
   ========================================================================== */
.submission-feedback-banner {
  background-color: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.35rem;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.08);
  animation: slideDownFade 0.3s ease forwards;
  transition: all 0.2s ease;
  margin-top: 1.5rem;
}

.submission-feedback-banner.hidden {
  display: none;
}

.feedback-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feedback-icon-box {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background-color: #dcfce7;
  color: var(--bct-success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.feedback-icon-box svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feedback-content {
  flex: 1;
}

.feedback-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.25rem;
}

.feedback-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #14532d;
}

.feedback-ticket-pill {
  display: inline-flex;
  align-items: center;
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-full);
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

.feedback-ticket-pill strong {
  color: #14532d;
  font-weight: 700;
}

.feedback-desc {
  font-size: 0.8125rem;
  color: #166534;
  line-height: 1.45;
}

.feedback-close-btn {
  background: none;
  border: none;
  color: #86efac;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.feedback-close-btn:hover {
  color: #166534;
}

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



/* ==========================================================================
   Modal & Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: #ffffff;
  color: var(--bct-heading);
  border: 1px solid var(--bct-border);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.125rem;
  box-shadow: var(--shadow-modal);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 18rem;
  max-width: 24rem;
  animation: slideInUp 0.25s ease forwards;
}

.toast.destructive {
  border-color: #fecaca;
  color: #991b1b;
}

.toast.destructive .toast-icon {
  color: var(--bct-destructive);
}

.toast.success {
  border-color: #bbf7d0;
}

.toast.success .toast-icon {
  color: var(--bct-success);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.toast-desc {
  font-size: 0.75rem;
  color: var(--bct-text-muted);
  margin-top: 0.2rem;
}

.toast.destructive .toast-desc {
  color: #b91c1c;
}

.toast-close {
  background: none;
  border: none;
  color: #9aa1a4;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   WordPress Theme Isolation & Anti-Override Layer
   ========================================================================== */

/* 1. Global Box-Sizing & Reset inside Plugin Wrapper */
.bluedesk-plugin-wrapper,
.bluedesk-plugin-wrapper *,
.bluedesk-plugin-wrapper *::before,
.bluedesk-plugin-wrapper *::after {
  box-sizing: border-box !important;
}

.bluedesk-plugin-wrapper {
  font-family: var(--font-body) !important;
  color: var(--bct-text-dark) !important;
  line-height: 1.5 !important;
  -webkit-font-smoothing: antialiased !important;
  width: 100% !important;
  display: block !important;
}

/* 2. Container Isolation */
.bluedesk-plugin-wrapper .main-wrapper {
  max-width: 50rem !important; /* ~800px */
  margin: 1rem auto 3rem auto !important;
  padding: 0 1.5rem !important;
  width: 100% !important;
  position: relative !important;
  float: none !important;
  clear: both !important;
}

.bluedesk-plugin-wrapper .form-header-intro {
  margin-bottom: 0.875rem !important;
  padding: 0 !important;
  text-align: left !important;
}

/* 3. Form Card Container */
.bluedesk-plugin-wrapper .enquiry-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}

.bluedesk-plugin-wrapper .form-card {
  background-color: var(--bct-surface) !important;
  border: 1px solid var(--bct-border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 1.25rem 1.5rem !important;
  box-shadow: var(--shadow-card) !important;
  margin-bottom: 0 !important;
}

/* 4. Headings & Descriptions Isolation */
.bluedesk-plugin-wrapper h5.form-main-heading,
.bluedesk-plugin-wrapper .form-main-heading {
  font-family: var(--font-heading) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--bct-heading) !important;
  letter-spacing: -0.015em !important;
  margin: 0 0 0.25rem 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  border: none !important;
  text-align: left !important;
}

@media (min-width: 640px) {
  .bluedesk-plugin-wrapper h5.form-main-heading,
  .bluedesk-plugin-wrapper .form-main-heading {
    font-size: 1.375rem !important;
    margin-bottom: 0.35rem !important;
  }
}

.bluedesk-plugin-wrapper p.form-main-subheading {
  font-size: 0.875rem !important;
  color: var(--bct-text-muted) !important;
  max-width: 42rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: none !important;
}

.bluedesk-plugin-wrapper .card-header {
  padding: 0 0 0.625rem 0 !important;
  border-bottom: 1px solid var(--bct-border) !important;
  margin: 0 0 0.875rem 0 !important;
  background: transparent !important;
}

.bluedesk-plugin-wrapper h6.card-title,
.bluedesk-plugin-wrapper .card-title {
  font-family: var(--font-heading) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: var(--bct-heading) !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 0.2rem 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  border: none !important;
  text-align: left !important;
}

.bluedesk-plugin-wrapper p.card-description {
  font-size: 0.8125rem !important;
  color: var(--bct-text-muted) !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: none !important;
}

/* 5. Labels & Form Groups */
.bluedesk-plugin-wrapper label.form-label {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--bct-heading) !important;
  margin: 0 0 0.375rem 0 !important;
  padding: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.3 !important;
  cursor: default !important;
}

.bluedesk-plugin-wrapper .form-label-hint {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: var(--bct-text-muted) !important;
}

.bluedesk-plugin-wrapper .form-group {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 0 0.25rem 0 !important;
  padding: 0 !important;
}

/* 6. Form Inputs, Textareas, and Selects */
.bluedesk-plugin-wrapper input.form-input,
.bluedesk-plugin-wrapper select.form-select,
.bluedesk-plugin-wrapper textarea.form-textarea {
  width: 100% !important;
  padding: 0.6875rem 0.875rem !important;
  font-size: 0.875rem !important;
  font-family: var(--font-body) !important;
  color: var(--bct-text-dark) !important;
  background-color: #ffffff !important;
  border: 1px solid var(--bct-border) !important;
  border-radius: var(--radius-md) !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  height: auto !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.bluedesk-plugin-wrapper textarea.form-textarea {
  resize: vertical !important;
  min-height: 7rem !important;
}

.bluedesk-plugin-wrapper input.form-input:focus,
.bluedesk-plugin-wrapper select.form-select:focus,
.bluedesk-plugin-wrapper textarea.form-textarea:focus {
  border-color: var(--bct-blue) !important;
  box-shadow: 0 0 0 3px rgba(1, 14, 208, 0.12) !important;
  background-color: #ffffff !important;
}

.bluedesk-plugin-wrapper input.has-error,
.bluedesk-plugin-wrapper select.has-error,
.bluedesk-plugin-wrapper textarea.has-error {
  border-color: var(--bct-destructive) !important;
}

.bluedesk-plugin-wrapper input.has-error:focus,
.bluedesk-plugin-wrapper select.has-error:focus,
.bluedesk-plugin-wrapper textarea.has-error:focus {
  box-shadow: 0 0 0 3px rgba(219, 76, 76, 0.15) !important;
}

/* 7. Primary Action Button */
.bluedesk-plugin-wrapper button.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.625rem !important;
  background: linear-gradient(135deg, var(--bct-navy) 0%, var(--bct-blue) 100%) !important;
  color: #ffffff !important;
  font-family: var(--font-heading) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  padding: 0.875rem 2rem !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(1, 14, 208, 0.25) !important;
  transition: all 0.2s ease !important;
  width: auto !important;
  height: auto !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.2 !important;
}

.bluedesk-plugin-wrapper button.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(1, 14, 208, 0.35) !important;
  background: linear-gradient(135deg, var(--bct-navy) 0%, var(--bct-blue-hover) 100%) !important;
  color: #ffffff !important;
}

.bluedesk-plugin-wrapper button.btn-primary:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 8. Category Buttons (Overrides theme button reset - Clean White at Rest) */
.bluedesk-plugin-wrapper button.category-option-btn,
.bluedesk-plugin-wrapper button.category-option-btn:not(.active) {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  border-radius: var(--radius-lg) !important;
  border: 1.5px solid var(--bct-border) !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  padding: 1.25rem 1.25rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  outline: none !important;
  width: 100% !important;
  height: auto !important;
  box-shadow: 0 1px 3px rgba(10, 13, 49, 0.04) !important;
  color: var(--bct-text-dark) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-family: inherit !important;
  line-height: normal !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.bluedesk-plugin-wrapper button.category-option-btn:hover:not(.active) {
  border-color: rgba(1, 14, 208, 0.4) !important;
  background: var(--bct-periwinkle-subtle) !important;
  background-color: var(--bct-periwinkle-subtle) !important;
  transform: translateY(-1px) !important;
}

.bluedesk-plugin-wrapper button.category-option-btn.active {
  border-color: var(--bct-blue) !important;
  background: linear-gradient(135deg, var(--bct-navy) 0%, var(--bct-blue) 100%) !important;
  background-color: var(--bct-navy) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(1, 14, 208, 0.25) !important;
}

.bluedesk-plugin-wrapper button.category-option-btn .category-title {
  font-family: var(--font-heading) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--bct-heading) !important;
  margin: 0 0 0.25rem 0 !important;
  padding: 0 !important;
}

.bluedesk-plugin-wrapper button.category-option-btn.active .category-title {
  color: #ffffff !important;
}

.bluedesk-plugin-wrapper button.category-option-btn .category-desc {
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
  color: var(--bct-text-muted) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bluedesk-plugin-wrapper button.category-option-btn.active .category-desc {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* 9. Attachment Lists Isolation */
.bluedesk-plugin-wrapper .attachment-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0.75rem 0 0 0 !important;
}

.bluedesk-plugin-wrapper .attachment-item {
  list-style: none !important;
  margin: 0 !important;
}

/* 10. Close and Toast Buttons */
.bluedesk-plugin-wrapper .feedback-close-btn,
.bluedesk-plugin-wrapper .toast-close {
  background: none !important;
  border: none !important;
  padding: 0.25rem !important;
  margin: 0 !important;
  box-shadow: none !important;
  color: #9aa1a4 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.bluedesk-plugin-wrapper .feedback-close-btn:hover,
.bluedesk-plugin-wrapper .toast-close:hover {
  color: var(--bct-heading) !important;
  background: none !important;
}



