/* Support Modal - matches approved public interface */
.support-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}

.support-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.support-modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.14);
  backdrop-filter: blur(12px);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 10001;
}

.support-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.support-modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  color: #0f766e;
  font-weight: 600;
}

.support-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.support-modal-close:hover,
.support-modal-close:focus {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
}

.support-form {
  padding: 22px;
}

.support-form-grid {
  display: grid;
  gap: 16px;
}

.support-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.support-field-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.support-field-group label.required::after {
  content: ' *';
  color: #ef4444;
}

.support-input,
.support-select,
.support-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #1e293b;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.support-input:focus,
.support-select:focus,
.support-textarea:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.support-input::placeholder,
.support-textarea::placeholder {
  color: #94a3b8;
}

.support-input.error,
.support-select.error,
.support-textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.support-error {
  min-height: 1.25rem;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 2px;
}

.support-modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.support-modal-footer .button {
  flex: 1;
}

.support-submit-btn {
  border: 1px solid rgba(20, 184, 166, 0.5);
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: white;
}

.support-submit-btn:hover {
  background: linear-gradient(135deg, #115e59, #0d9488);
}

.support-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.support-cancel-btn {
  background: rgba(241, 245, 41, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #475569;
}

.support-cancel-btn:hover {
  background: rgba(241, 245, 41, 0.12);
}

.support-success {
  text-align: center;
  padding: 28px 22px;
  color: #0f766e;
}

.support-success svg {
  width: 48px;
  height: 48px;
  color: #14b8a6;
  margin-bottom: 12px;
}

.support-reference {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 8px;
  color: #475569;
}

/* RTL support */
html[dir="rtl"] .support-modal-content {
  text-align: right;
}

html[dir="rtl"] .support-modal-footer {
  flex-direction: row-reverse;
}

html[dir="rtl"] .support-field-group label.required::after {
  content: ' *';
  float: right;
}

/* Responsive */
@media (max-width: 640px) {
  .support-modal {
    padding: 8px;
  }
  .support-modal-content {
    max-width: 100%;
    max-height: 90vh;
  }
  .support-form {
    padding: 16px;
  }
  .support-modal-header,
  .support-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .support-modal-footer {
    flex-direction: column-reverse;
  }
  html[dir="rtl"] .support-modal-footer {
    flex-direction: column-reverse;
  }
}


/* ===== COMPLIQ SUPPORT MODAL SCROLLBAR ===== */
.support-modal-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.55) transparent;
}

.support-modal-content::-webkit-scrollbar {
  width: 8px;
}

.support-modal-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 20px;
}

.support-modal-content::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.55);
  border-radius: 20px;
  border: 1px solid transparent;
}

.support-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.75);
}


/* ===== COMPLIQ SUPPORT STICKY HEADER ===== */
.support-modal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.045);
}

.support-modal-header h3 {
  margin: 0;
}

.support-modal-close {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .support-modal-header {
    top: 0;
    min-height: 56px;
  }
}
