/* ══════════════════════════════════════════════════════
   Public Support Form — Canovate Brand Styles
   ══════════════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --canovate-red: #CD0001;
  --canovate-red-dark: #a80001;
  --canovate-red-light: #e03030;
  --canovate-red-glow: rgba(205, 0, 1, 0.15);

  --dark-charcoal: #1A191D;
  --off-black: #242424;
  --mid-grey: #666666;
  --light-grey: #F3F3F3;
  --border-grey: #E3E3E3;
  --white: #FFFFFF;

  --success: #2e8b57;
  --success-glow: rgba(46, 139, 87, 0.12);
  --error: #CD0001;
  --error-bg: #fef2f2;

  --card-bg: var(--white);
  --card-border: var(--border-grey);

  --text: var(--dark-charcoal);
  --text-secondary: var(--mid-grey);
  --text-muted: #999999;

  --input-bg: var(--white);
  --input-border: var(--border-grey);
  --input-focus-border: var(--canovate-red);
  --input-focus-glow: var(--canovate-red-glow);

  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Global Utility Classes ──────────────────────────── */
.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.btn-loading.hidden {
  display: none !important;
}

.btn-text.hidden {
  display: none !important;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8fafc;
  background-image: radial-gradient(at 0% 0%, rgba(205, 0, 1, 0.03) 0px, transparent 50%),
                    radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.04) 0px, transparent 50%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

/* ── Top Banner (Canovate brand strip) ───────────────── */
.brand-banner {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.canovate-brand-logo-img {
  height: 38px;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.brand-banner .brand-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
}

.brand-contact a {
  color: #475569;
  text-decoration: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-contact a:hover {
  color: var(--canovate-red);
}

/* ── Page Header (under banner) ──────────────────────── */
.page-header {
  width: 100%;
  background: var(--white);
  border-bottom: 3px solid var(--canovate-red);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.page-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.page-nav a:hover,
.page-nav a.active {
  color: var(--canovate-red);
}

.page-nav .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.page-nav .breadcrumb span {
  color: var(--canovate-red);
  font-weight: 600;
}

/* ── Form Container ──────────────────────────────────── */
.form-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 740px;
  padding: 40px 20px 60px;
}

/* ── Card Styles ─────────────────────────────────────── */
.form-card,
.success-card {
  background: var(--card-bg);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  animation: cardEnter 0.4s ease both;
}

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

/* ── Form Header ─────────────────────────────────────── */
.form-header {
  text-align: left;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--canovate-red);
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #cd0001, #e03030);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(205, 0, 1, 0.22);
  color: white;
  margin-bottom: 16px;
}

.form-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dark-charcoal);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 6px;
  font-weight: 400;
}

/* ── Form Layout ─────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-charcoal);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-group:focus-within label {
  color: var(--canovate-red);
}

.required {
  color: var(--error);
  font-weight: 600;
}

/* ── Inputs ──────────────────────────────────────────── */
input,
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  color: #1e293b;
  background: var(--input-bg);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #cbd5e1;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--canovate-red);
  box-shadow: 0 0 0 3px rgba(205, 0, 1, 0.12);
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* ── Description Header & Template Button ────────────── */
.description-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.description-header label {
  margin-bottom: 0;
}

.template-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.template-btn:hover {
  background: #f1f5f9;
  border-color: var(--canovate-red);
  color: var(--canovate-red);
}

.template-btn svg {
  stroke: currentColor;
  flex-shrink: 0;
}

/* ── Description Guidance Box ────────────────────────── */
.description-guidance {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--canovate-red);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #475569;
}

.guidance-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 3px;
}

.guidance-title svg {
  stroke: var(--canovate-red);
  flex-shrink: 0;
}

.guidance-text {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
}

.guidance-text strong {
  color: #1e293b;
}

/* ── Phone Input Group ───────────────────────────────── */
.phone-input-wrap {
  display: flex;
  gap: 8px;
}

.phone-country-select {
  width: 140px;
  flex-shrink: 0;
  cursor: pointer;
  background-color: var(--input-bg);
}

.phone-number-input {
  flex: 1;
}

@media (max-width: 480px) {
  .phone-input-wrap {
    flex-direction: column;
    gap: 6px;
  }
  .phone-country-select {
    width: 100%;
  }
}

/* ── Validation States ───────────────────────────────── */
.form-group.error input,
.form-group.error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(205, 0, 1, 0.1);
}

.form-group.error label {
  color: var(--error);
}

.error-msg {
  display: block;
  font-size: 0.76rem;
  color: var(--error);
  margin-top: 4px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--transition);
}

.form-group.error .error-msg {
  opacity: 1;
  transform: translateY(0);
}

/* ── Character Counter ───────────────────────────────── */
.char-counter {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── File Attachments Dropzone ───────────────────────── */
.file-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.file-dropzone:hover {
  border-color: var(--canovate-red);
  background: #fffafa;
}

.file-dropzone.dragover {
  border-color: var(--canovate-red);
  background: rgba(205, 0, 1, 0.05);
  box-shadow: 0 0 0 3px rgba(205, 0, 1, 0.1);
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-content {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dropzone-icon {
  stroke: #64748b;
  margin-bottom: 2px;
}

.file-dropzone:hover .dropzone-icon {
  stroke: var(--canovate-red);
}

.dropzone-prompt {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
}

.dropzone-browse {
  font-weight: 600;
  color: var(--canovate-red);
  text-decoration: underline;
}

.dropzone-hint {
  font-size: 0.74rem;
  color: #94a3b8;
  margin: 0;
}

/* ── Attached Files List ─────────────────────────────── */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  animation: cardEnter 0.25s ease both;
}

.file-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.file-item-name {
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.file-item-size {
  font-size: 0.72rem;
  color: #64748b;
  flex-shrink: 0;
}

.file-item-remove {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--transition);
}

.file-item-remove:hover {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

/* ── Turnstile Anti-bot Widget ───────────────────────── */
.turnstile-wrapper {
  margin: 18px 0 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 65px;
}

.turnstile-wrapper .error-msg {
  display: none;
  margin-top: 8px;
  color: var(--error, #ef4444);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

/* ── Submit Button (Canovate red, square) ────────────── */
.submit-btn {
  width: 100%;
  padding: 15px 35px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #cd0001 0%, #b30001 100%);
  border: none;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(205, 0, 1, 0.28);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #dd0001 0%, #ba0001 100%);
  box-shadow: 0 6px 20px rgba(205, 0, 1, 0.38);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-btn.secondary {
  background: transparent;
  border: 2px solid var(--border-grey);
  color: var(--text-secondary);
  margin-top: 24px;
}

.submit-btn.secondary:hover {
  border-color: var(--canovate-red);
  color: var(--canovate-red);
}

/* ── Loading Spinner ─────────────────────────────────── */
.btn-loader {
  display: none;
  animation: spin 1s linear infinite;
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading .btn-loader {
  display: inline-block;
  position: absolute;
}

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

/* ── Success Card ────────────────────────────────────── */
.success-card {
  text-align: center;
  padding: 56px 48px;
}

.success-card.hidden {
  display: none;
}

.success-icon-wrap {
  margin-bottom: 28px;
}

.success-checkmark {
  width: 72px;
  height: 72px;
}

.checkmark-circle {
  stroke: var(--success);
  stroke-width: 2;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  stroke: var(--success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes strokeCircle {
  100% { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
  100% { stroke-dashoffset: 0; }
}

.success-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  margin-bottom: 12px;
}

.success-msg {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.ticket-ref {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  background: var(--success-glow);
  border: 1px solid rgba(46, 139, 87, 0.2);
  border-radius: var(--radius);
  padding: 18px 32px;
  margin-bottom: 20px;
}

.ref-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ref-id {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--success);
  letter-spacing: 0.02em;
}

.success-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
  body {
    padding: 0;
  }

  .form-card,
  .success-card {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-header h1 {
    font-size: 1.3rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .lang-selector {
    top: auto;
    bottom: 20px;
    right: 20px;
  }

  .brand-banner {
    padding: 10px 16px;
    flex-wrap: wrap;
  }

  .brand-banner .brand-contact {
    display: none;
  }

  .page-header {
    padding: 0 16px;
    height: 44px;
  }
}

/* ── Language Selector ───────────────────────────────── */
.lang-selector {
  display: flex;
  align-items: center;
}

.lang-selector select {
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border-grey);
  border-radius: var(--radius);
  cursor: pointer;
  outline: none;
  transition: all var(--transition);
  width: auto;
  min-width: 130px;
}

.lang-selector select option {
  background: var(--white);
  color: var(--text);
  padding: 8px;
}

.lang-selector select:hover {
  border-color: var(--canovate-red);
}

.lang-selector select:focus {
  border-color: var(--canovate-red);
  box-shadow: 0 0 0 3px var(--canovate-red-glow);
}

/* ── RTL (Arabic) Support ────────────────────────────── */
body.rtl .form-card,
body.rtl .success-card {
  direction: rtl;
  text-align: right;
}

body.rtl .form-header {
  text-align: right;
}

body.rtl .success-card {
  text-align: center;
}

body.rtl .char-counter {
  text-align: left;
}

body.rtl .lang-selector {
  direction: ltr;
}

body.rtl .error-msg {
  text-align: right;
}

/* ══════════════════════════════════════════════════════
   Public Ticket Tracking Page Styles (/track)
   ══════════════════════════════════════════════════════ */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--canovate-red);
  color: var(--canovate-red);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all var(--transition);
}

.nav-btn-link:hover {
  background: var(--canovate-red);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--canovate-red-glow);
}

.track-page-container {
  max-width: 840px !important;
  margin: 0 auto;
  padding: 0 16px;
}

.track-search-card,
.track-result-card {
  background: var(--card-bg);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 32px 36px;
}

@media (max-width: 640px) {
  .track-search-card,
  .track-result-card {
    padding: 24px 18px;
  }
}

.track-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--canovate-red);
  background: rgba(205, 0, 1, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.track-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .track-form-grid {
    grid-template-columns: 1fr;
  }
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 42px !important;
}

.track-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-top: 14px;
  line-height: 1.4;
}

.track-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.track-alert svg {
  flex-shrink: 0;
}

.track-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  background: var(--canovate-red);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}

.track-submit-btn:hover {
  background: var(--canovate-red-dark);
  box-shadow: 0 4px 14px var(--canovate-red-glow);
}

/* ── Result Card ────────────────────────────────────── */
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-grey);
}

.result-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-id-pill {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.result-category-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mid-grey);
  background: var(--light-grey);
  padding: 4px 10px;
  border-radius: 4px;
}

.result-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.result-status-badge.status-open {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.result-status-badge.status-in-progress {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.result-status-badge.status-resolved {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.result-status-badge.status-closed {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* ── Stepper Progress Bar ────────────────────────────── */
.track-stepper-container {
  position: relative;
  margin: 32px 0 28px 0;
  padding: 0 10px;
}

.track-stepper-track {
  position: absolute;
  top: 17px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}

.track-stepper-track::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #10b981;
  transition: width 0.4s ease;
}

.track-stepper {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90px;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

.step-date {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

.step-item.step-active .step-circle {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step-item.step-active .step-label {
  color: #1e3a8a;
  font-weight: 700;
}

.step-item.step-completed .step-circle {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
}

.step-item.step-completed .step-label {
  color: #065f46;
}

/* ── Public Solution Card ────────────────────────────── */
.public-solution-card {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-left: 5px solid #10b981;
  border-radius: 8px;
  padding: 20px 22px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.solution-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.solution-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #065f46;
  font-size: 1rem;
}

.solution-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
}

.solution-body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #166534;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Meeting Recording Access Card ──────────────────── */
.meeting-access-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-left: 5px solid #3b82f6;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.meeting-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meeting-info svg {
  color: #2563eb;
  flex-shrink: 0;
}

.meeting-info strong {
  display: block;
  font-size: 0.92rem;
  color: #1e40af;
}

.meeting-info p {
  font-size: 0.8rem;
  color: #3b82f6;
  margin-top: 2px;
}

.meeting-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.84rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition);
}

.meeting-link-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ── Result Info Grid & Description ─────────────────── */
.result-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0;
  background: #f8fafc;
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 18px;
}

.result-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cell-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cell-val {
  font-size: 0.9rem;
  color: var(--dark-charcoal);
  word-break: break-word;
}

.result-description-box {
  background: #ffffff;
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 24px;
}

.description-text-public {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Result Footer Actions ───────────────────────────── */
.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-grey);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-primary-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  background: transparent;
  border: 1.5px solid var(--canovate-red);
  color: var(--canovate-red);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-primary-outline:hover {
  background: var(--canovate-red);
  color: #ffffff;
}

/* ── Bottom Support Contact Footer ──────────────────── */
.support-contact-footer {
  text-align: center;
  margin: 30px 0 20px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-footer-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.03);
  padding: 8px 18px;
  border-radius: 999px;
}

.support-email-link,
.support-phone-link {
  color: var(--dark-charcoal);
  font-weight: 600;
  text-decoration: none;
}

.support-email-link:hover,
.support-phone-link:hover {
  color: var(--canovate-red);
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════
   CSAT Customer Satisfaction Survey Styles
   ══════════════════════════════════════════════════════ */
.csat-page-container {
  max-width: 680px;
  margin: 0 auto;
}

.csat-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.csat-ticket-banner {
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--canovate-red);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.csat-ticket-banner.banner-visible {
  display: block;
}

.csat-tb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
}

.csat-tb-label {
  font-weight: 600;
}

.csat-tb-val {
  font-weight: 700;
  color: #0f172a;
}

.csat-tb-sep {
  color: #cbd5e1;
}

.csat-tb-subject {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.csat-identity-inputs.compact-view {
  display: none;
}

/* Alert Box */
.csat-alert-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.csat-alert-box.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.csat-alert-box.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.csat-alert-icon {
  font-size: 20px;
  line-height: 1;
}

.csat-alert-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.csat-alert-text {
  font-size: 13.5px;
  line-height: 1.5;
}

/* Star Rating Widget */
.csat-rating-section {
  text-align: center;
  background: #fdfefe;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 20px;
  margin: 16px 0 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.csat-rating-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.csat-stars-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.csat-star-btn {
  background: none;
  border: none;
  font-size: 42px;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px 6px;
  transition: transform 0.15s ease, color 0.15s ease;
  user-select: none;
}

.csat-star-btn:hover {
  transform: scale(1.22);
}

.csat-star-btn:focus-visible {
  outline: 2px solid var(--canovate-red);
  border-radius: 8px;
}

.csat-score-indicator {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
  transition: all 0.2s ease;
}

.csat-score-indicator.score-5 {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.csat-score-indicator.score-4 {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.csat-score-indicator.score-3 {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.csat-score-indicator.score-1,
.csat-score-indicator.score-2 {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Tiered Questionnaire Boxes */
.csat-tier-box {
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
  animation: fadeIn 0.25s ease-out;
}

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

.csat-tier-box.tier-5 {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.csat-tier-box.tier-4 {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.csat-tier-box.tier-low {
  background: #fff8f8;
  border: 1px solid #fecaca;
}

.tier-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tier-badge-pill.pill-5 {
  background: #dcfce7;
  color: #15803d;
}

.tier-badge-pill.pill-4 {
  background: #e2e8f0;
  color: #334155;
}

.tier-badge-pill.pill-low {
  background: #fee2e2;
  color: #991b1b;
}

.tier-lead {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

/* Chip Multi-select */
.csat-reasons-group {
  margin-top: 14px;
}

.csat-chips-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.csat-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.csat-chip input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #dc2626;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.csat-chip span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  flex-grow: 1;
  text-align: left;
}

.csat-chip:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateX(3px);
}

.csat-chip.chip-selected {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.08);
}

.csat-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
}

/* CSAT Success View */
.csat-success-card {
  text-align: center;
  padding: 48px 36px;
}

.checkmark-circle {
  stroke: #10b981;
  stroke-width: 3;
  stroke-miterlimit: 10;
  fill: none;
  animation: scaleCircle 0.4s ease-in-out;
  margin: 0 auto 16px auto;
  display: block;
}

.checkmark-circle-bg {
  stroke: #d1fae5;
  stroke-width: 3;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}

@keyframes strokeCheck {
  100% { stroke-dashoffset: 0; }
}

@keyframes scaleCircle {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.csat-success-msg {
  color: #64748b;
  font-size: 14.5px;
  max-width: 480px;
  margin: 8px auto 28px auto;
  line-height: 1.6;
}

.csat-summary-box {
  max-width: 420px;
  margin: 0 auto 32px auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-around;
}

.csat-sb-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.csat-sb-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.csat-sb-val {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.csat-success-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 600px) {
  .csat-stars-wrapper {
    gap: 4px;
  }
  .csat-star-btn {
    font-size: 34px;
  }
  .csat-success-actions {
    flex-direction: column;
  }
}

/* ── KVKK & GDPR Compliance & Consent Styling ────────── */
.privacy-attachment-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

.privacy-attachment-hint svg {
  flex-shrink: 0;
  color: #64748b;
  margin-top: 1px;
}

.compliance-consent-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
}

.compliance-notice-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  color: #475569;
}

.compliance-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #dc2626;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  display: inline;
  transition: color 0.15s ease;
}

.compliance-link-btn:hover {
  color: #991b1b;
}

.compliance-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  user-select: none;
  position: relative;
  margin: 0;
}

.compliance-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.compliance-checkbox-custom {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.18s ease;
}

.compliance-checkbox-label:hover .compliance-checkbox-custom {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.compliance-checkbox-label input[type="checkbox"]:focus-visible + .compliance-checkbox-custom {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.compliance-checkbox-label input[type="checkbox"]:checked + .compliance-checkbox-custom {
  background: #dc2626;
  border-color: #dc2626;
}

.compliance-checkbox-label input[type="checkbox"]:checked + .compliance-checkbox-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.compliance-checkbox-text {
  flex: 1;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.5;
}

/* Feedback Anonymous Box */
.csat-privacy-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.csat-privacy-note {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  padding-left: 30px;
}

/* ── Universal Compliance Modal ─────────────────────── */
.compliance-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.compliance-modal-overlay.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.compliance-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleUp 0.22s ease-out;
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.compliance-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-group svg {
  color: #dc2626;
  flex-shrink: 0;
}

.modal-title-group h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-lang-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
  align-items: center;
}

.modal-lang-btn {
  background: none;
  border: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.modal-lang-btn:hover {
  color: #0f172a;
}

.modal-lang-btn.active {
  background: #ffffff;
  color: #dc2626;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.compliance-modal-body[dir="rtl"] {
  text-align: right;
  direction: rtl;
}

.compliance-modal-body[dir="rtl"] ul,
.compliance-modal-body[dir="rtl"] ol {
  padding-left: 0;
  padding-right: 20px;
}

.modal-close-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.compliance-modal-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 24px;
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compliance-modal-tabs::-webkit-scrollbar {
  height: 4px;
}
.compliance-modal-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.modal-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.modal-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.modal-tab-btn.active {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
  box-shadow: 0 2px 5px rgba(220, 38, 38, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
  font-weight: 700;
}

.modal-tab-btn .tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: color 0.18s ease;
  flex-shrink: 0;
}

.modal-tab-btn:hover .tab-icon {
  color: #475569;
}

.modal-tab-btn.active .tab-icon {
  color: #dc2626;
}

.modal-tab-btn .tab-label {
  display: inline-block;
  white-space: nowrap;
}

.compliance-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
}

.compliance-modal-body::-webkit-scrollbar {
  width: 6px;
}
.compliance-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.compliance-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
}

.modal-confirm-btn {
  padding: 9px 24px;
  font-size: 13.5px;
  font-weight: 600;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal-confirm-btn:hover {
  background: #1e293b;
}

/* Legal Documents Internal Typography */
.legal-doc h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 12px 0 16px 0;
  line-height: 1.4;
}

.legal-doc h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 20px 0 8px 0;
  border-left: 3px solid #dc2626;
  padding-left: 10px;
}

.legal-doc p {
  margin: 0 0 12px 0;
  color: #334155;
}

.legal-doc ul {
  margin: 0 0 14px 0;
  padding-left: 20px;
}

.legal-doc li {
  margin-bottom: 6px;
  color: #334155;
}

.legal-badge-pill {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.legal-callout {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.legal-note {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 14px;
}

.legal-table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.legal-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
}

.legal-table code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: #dc2626;
}

/* ── Cookie Notification Banner ─────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 820px;
  z-index: 99990;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 14px 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(-50%) translateY(30px) !important;
  pointer-events: none !important;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-banner-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  flex: 1;
}

.cookie-policy-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 6px;
  color: #dc2626;
  text-decoration: underline;
  font-weight: 600;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
}

.cookie-accept-btn {
  flex-shrink: 0;
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cookie-accept-btn:hover {
  background: #b91c1c;
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-accept-btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Public Page Footer ─────────────────────────────── */
.public-page-footer {
  margin-top: 48px;
  padding: 24px 16px 36px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
}

.public-page-footer .footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.public-page-footer p {
  margin: 0;
}

.public-page-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #64748b;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-link-btn:hover {
  color: #0f172a;
  text-decoration: underline;
}

.footer-sep {
  color: #cbd5e1;
}

.footer-dsr a {
  color: #dc2626;
  text-decoration: none;
  font-weight: 600;
}

.footer-dsr a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .public-page-footer .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

