/* ==========================================================================
   RENTERA — Support Page Styles
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --brand-primary: #1F244B;
  --brand-dark: #1c1c1c;
  --primary-500: #2147F6;
  --primary-400: #5b7bff;
  --primary-600: #10002b;
  --text-secondary: #64748B;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #F8FAFC;
  --border-light: #e2e8f0;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ls-tight: -0.02em;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--brand-dark);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: var(--ls-tight);
  line-height: 1.2;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--border-light);
  background: rgba(255, 255, 255, 0.95);
}

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--brand-primary);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

/* ---------- Hero Section ---------- */
.support-hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #f8faff, #eff6ff);
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.support-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}

.support-hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Search Bar */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 20px 24px 20px 60px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  font-family: var(--font);
  font-size: 1rem;
  background: #fff;
  box-shadow: var(--shadow-lg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(33,71,246,0.1);
}

.search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ---------- Category Grid ---------- */
.section-padding {
  padding: 80px 0;
}

.grid-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 991px) {
  .grid-categories { grid-template-columns: repeat(2, 1fr); }
}

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

.category-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  width: 64px;
  height: 64px;
  background: rgba(33,71,246,0.06);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 24px;
  transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.category-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ---------- FAQ Section ---------- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-500);
  background: rgba(33,71,246,0.06);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-400);
}

.faq-trigger {
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.faq-trigger .icon {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-trigger .icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.faq-inner {
  padding: 0 24px 24px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Contact Section ---------- */
.contact-section {
  background: #f8faff;
  padding: 100px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 991px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-500);
  flex-shrink: 0;
}

.contact-info-text h4 {
  margin-bottom: 4px;
}

.contact-info-text p, .contact-info-text a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 640px) {
  .contact-form-card { padding: 32px 24px; }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.9375rem;
  outline: none;
  transition: all 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(33,71,246,0.08);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-500), #5b7bff);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(33,71,246,0.25);
}

/* Form Success State */
.form-success {
  display: none;
  text-align: center;
  padding: 24px;
}

.form-success.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-alt);
  color: var(--primary-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* ---------- Footer ---------- */
.footer {
  background: #0f0f23;
  color: rgba(255, 255, 255, 0.4);
  padding: 60px 0 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 32px;
  text-align: center;
  font-size: 0.8125rem;
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
