/* ==========================================================================
   PROPTRAIL GLOBAL — COMPONENTS (components.css)
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(62, 45, 127, 0.28);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(62, 45, 127, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--brand-primary);
  border: 1px solid var(--border-brand-subtle);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--brand-accent-soft);
  border-color: var(--border-brand);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
}

/* Language Selector Component */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4375rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.lang-btn:hover, .lang-btn:focus-visible {
  border-color: var(--border-brand);
  background: var(--bg-subtle);
}

.lang-menu-box {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg-surface);
  border: 1px solid var(--border-brand-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  overflow: hidden;
  z-index: 110;
}

.lang-menu-box.show {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.lang-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  transition: background var(--transition-fast);
}

.lang-item-btn:hover {
  background: var(--brand-accent-soft);
  color: var(--brand-primary);
}

.lang-item-btn.selected {
  color: var(--brand-primary);
  font-weight: 800;
  background: var(--bg-subtle);
}

/* Feature Checklists */
.feature-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--status-emerald-text);
  background: var(--status-emerald-bg);
  border: 1px solid var(--status-emerald-border);
  border-radius: 50%;
  padding: 2px;
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group.col-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-label .req {
  color: #dc2626;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: var(--bg-body);
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  background: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(108, 78, 207, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 0.875rem;
  line-height: 1.5;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--brand-midnight);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 600;
  display: none;
  z-index: 1100;
  align-items: center;
  gap: 10px;
}

.toast-msg.show {
  display: flex;
  animation: slideUp 0.25s ease-out;
}

/* Modal Overlay & Dialog Card */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 11, 36, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-elevated);
}

.modal-close-btn {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--brand-accent-soft);
  color: var(--brand-primary);
}

.modal-icon-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.modal-industry-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-accent-soft);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--brand-primary);
}

.modal-section-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  margin: 1.25rem 0 0.5rem;
}

.modal-list-box {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  display: grid;
  gap: 0.375rem;
}

.modal-list-item {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
