/* Variables & Base styling */
:root {
  --bg-color: transparent;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.85);
  --card-bg: linear-gradient(145deg, #111111, #1e0b2d);
  --card-border: rgba(255, 255, 255, 0.08);
  --primary-blue: #8b5cf6;
  --primary-blue-hover: #7c3aed;
  --cta-bg: linear-gradient(135deg, #090909, #2a1055);
  --dark-banner-bg: linear-gradient(145deg, #0f0f0f, #1a1a1a);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  /* Reset link styles globally inside main */
}

a {
  text-decoration: none;
}

.contact-page-wrapper {
  padding-bottom: 0;
}

/* Inner Container Constraint */
.container-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Hero Section --- */
.hero-help {
  position: relative;
  background: url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
  padding: 8rem 0 12rem 0;
  text-align: center;
}

.hero-help::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  /* Heavy dark overlay */
  z-index: 1;
}

.hero-help-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-help h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  letter-spacing: 1px;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  color: #fff;
  font-weight: 800;
}

/* Search Bar */
.help-search-box {
  display: flex;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.help-search-box input {
  flex: 1;
  border: none;
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  outline: none;
  color: #111;
  font-family: var(--font-body);
}

.help-search-box button {
  background: var(--primary-blue);
  color: #fff;
  border: none;
  padding: 0 2.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.help-search-box button:hover {
  background: var(--primary-blue-hover);
}

/* Search Suggestions Dropdown */
.search-suggestions-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-top: 0.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  z-index: 100;
  overflow: hidden;
  display: none;
  text-align: left;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.5rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.suggestion-icon {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

.suggestion-empty {
  padding: 1.5rem;
  color: #888;
  font-size: 0.95rem;
  text-align: center;
}

/* --- Search Results Layout --- */
.search-results-section {
  padding: 3rem 0 6rem;
}

.results-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

/* Sidebar */
.results-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.5rem;
}

.results-sidebar h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.results-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.results-sidebar li {
  color: #a1a1aa;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
}

.results-sidebar li:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.results-sidebar li.active {
  background: var(--primary-blue);
  color: #fff;
  font-weight: 600;
}

/* Results Main */
.results-main {
  flex: 1;
}

#results-count-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
}

.result-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.result-title {
  font-size: 1.15rem;
  color: #3399ff;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.result-title:hover {
  text-decoration: underline;
}

.result-breadcrumbs {
  font-size: 0.8rem;
  color: #8b5cf6;
  margin-bottom: 1rem;
}

.result-snippet {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Highlighted search text */
.highlight-text {
  background-color: rgba(255, 204, 0, 0.2);
  color: #ffcc00;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}

.result-meta {
  font-size: 0.8rem;
  color: #777;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .results-layout {
    flex-direction: column;
  }

  .results-sidebar {
    width: 100%;
  }
}

/* --- Overlapping Cards Container --- */
.help-cards-wrapper {
  position: relative;
  z-index: 3;
  margin-top: -8rem;
  /* Pull up more into the hero */
  padding-bottom: 3rem;
}

.help-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.help-card-new {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  /* Sharper corners like the reference */
  padding: 2rem;
  text-align: left;
  width: 320px;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.help-card-new:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.15);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 0 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.help-card-new:hover .icon-circle {
  transform: scale(1.1);
}

.icon-blue {
  background: rgba(0, 102, 255, 0.1);
  color: #3399ff;
  border: 1px solid rgba(0, 102, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.15);
}

.icon-green {
  background: rgba(0, 200, 110, 0.1);
  color: #00e676;
  border: 1px solid rgba(0, 200, 110, 0.3);
  box-shadow: 0 0 20px rgba(0, 200, 110, 0.15);
}

.icon-red {
  background: rgba(255, 50, 50, 0.1);
  color: #ff4d4d;
  border: 1px solid rgba(255, 50, 50, 0.3);
  box-shadow: 0 0 20px rgba(255, 50, 50, 0.15);
}

.help-card-new h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.help-card-new p {
  font-size: 0.9rem;
  color: #a1a1aa;
  margin: 0 0 2rem 0;
  line-height: 1.5;
  flex: 1;
  /* Pushes button to bottom */
}

/* Button styles matching reference */
.card-btn-solid,
.card-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s, background 0.2s;
  margin-top: auto;
}

.card-btn-solid {
  background: #fff;
  color: #000;
}

.card-btn-solid:hover {
  background: #e5e5e5;
}

.card-btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --- Knowledge Base Section --- */
.knowledge-section {
  padding: 2rem 0 5rem;
}

.knowledge-section h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.4rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  color: #fff;
  font-weight: 800;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.kb-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kb-item i {
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.kb-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- Dark Banner Section --- */
.support-banner-section {
  padding: 0 0 5rem 0;
}

.support-banner {
  background: var(--dark-banner-bg);
  border-radius: 8px;
  padding: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  color: #fff;
}

.banner-left h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 0;
  color: #eee;
}

.banner-right {
  flex: 1;
  max-width: 500px;
}

.banner-right p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-dark-outline {
  background: rgba(45, 45, 45, 0.6);
  color: #fff;
  border: 1px solid #333;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-dark-outline:hover {
  background: #333;
  border-color: #555;
}

.btn-text {
  color: #888;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.btn-text:hover {
  color: #fff;
}

@media (max-width: 800px) {
  .support-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
  }
}

/* --- CTA Section --- */
.cta-section {
  background: var(--cta-bg);
  /* The layout shows a very wide background color with the container inside */
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta-content {
  color: #fff;
  flex: 1;
  max-width: 500px;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0 0 1rem 0;
}

.cta-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem 0;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-cta-primary {
  background: #fff;
  color: var(--primary-blue);
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
}

.btn-cta-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cta-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cta-features li {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-features li i {
  color: #fff;
  font-size: 1.1rem;
}

/* Graphic side */
.cta-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.cta-graphic {
  width: 450px;
  height: 350px;
  position: relative;
}

.path-line {
  position: absolute;
  width: 150%;
  height: 200px;
  border: 40px solid #82e2e7;
  border-radius: 50px;
  border-bottom: 0;
  border-left: 0;
  top: 50px;
  right: -50px;
  z-index: 1;
}

.path-line::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100px;
  border: 40px solid #58b6e6;
  border-radius: 50px;
  border-top: 0;
  border-right: 0;
  bottom: -40px;
  left: -200px;
  z-index: 1;
}

.credit-card-mock {
  position: absolute;
  z-index: 3;
  width: 380px;
  height: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  top: 80px;
  right: 0px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #111;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
}

.card-chip {
  margin-top: 2rem;
  font-size: 2rem;
  color: #ccc;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

@media (max-width: 900px) {
  .cta-flex {
    flex-direction: column;
    gap: 4rem;
  }
}

/* ==================== TICKET MODAL ==================== */
.ticket-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ticket-modal-overlay.active {
  opacity: 1;
}

.ticket-modal {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  width: 90%;
  max-width: 480px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.ticket-modal-overlay.active .ticket-modal {
  transform: translateY(0);
}

.ticket-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 5px;
}

.ticket-modal-close:hover {
  color: #fff;
}

.ticket-select,
.ticket-textarea,
.ticket-input {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.2s;
}

.ticket-select:focus,
.ticket-textarea:focus,
.ticket-input:focus {
  border-color: var(--primary-color, #ff3366);
  outline: none;
}