/**
 * BuyFast UAE — Customer Service & Policy Pages Stylesheet
 * Scoped styles for .cs-* components across Delivery, Returns, Warranty, Privacy, and Terms
 * Responsive, accessible, RTL-ready & reduced-motion compliant
 */

:root {
  --cs-navy: #0a1747;
  --cs-navy-deep: #060e2e;
  --cs-blue: #1648e8;
  --cs-blue-hover: #0f3bc4;
  --cs-blue-soft: #edf2ff;
  --cs-orange: #ff6b00;
  --cs-orange-soft: #fff6ed;
  --cs-green: #15803d;
  --cs-green-soft: #dcfce7;
  --cs-ink: #14203a;
  --cs-ink-muted: #596783;
  --cs-line: #e2e8f0;
  --cs-line-light: #f1f5f9;
  --cs-bg: #f3f6fc;
  --cs-card: #ffffff;
  --cs-radius: 18px;
  --cs-radius-sm: 12px;
  --cs-shadow: 0 4px 20px rgba(10, 23, 71, 0.05);
  --cs-shadow-hover: 0 8px 30px rgba(10, 23, 71, 0.09);
}

/* Page wrapper */
.cs-wrap {
  padding-block: 8px 48px;
  color: var(--cs-ink);
}

/* Breadcrumbs refinement */
.cs-wrap .crumbs {
  padding-block: 14px 18px;
  font-size: 13.5px;
  color: var(--cs-ink-muted);
}
.cs-wrap .crumbs a {
  color: var(--cs-ink-muted);
  transition: color 0.15s ease;
}
.cs-wrap .crumbs a:hover {
  color: var(--cs-blue);
  text-decoration: underline;
}

/* Hero Section */
.cs-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--cs-radius);
  background: linear-gradient(125deg, #0a1747 0%, #102d9b 55%, #1648e8 100%);
  color: #ffffff;
  padding: clamp(28px, 4.5vw, 48px) clamp(24px, 4vw, 44px);
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(10, 23, 71, 0.12);
}

.cs-hero::before,
.cs-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.cs-hero::before {
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  inset-inline-end: -80px;
  top: -160px;
}
.cs-hero::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(22, 72, 232, 0.35) 0%, transparent 70%);
  inset-inline-end: 40px;
  bottom: -220px;
}

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cs-hero h1 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #ffffff;
}

.cs-hero-sub {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.6;
  color: #e0e7ff;
  max-width: 740px;
  margin: 0 0 14px;
}

.cs-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Two-column layout */
.cs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

/* Main Content Panel */
.cs-panel {
  background: var(--cs-card);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  padding: clamp(22px, 3.5vw, 40px);
  box-shadow: var(--cs-shadow);
}

.cs-panel h2 {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--cs-navy);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cs-line-light);
  line-height: 1.3;
}
.cs-panel h2:first-of-type {
  margin-top: 0;
}

.cs-panel h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--cs-ink);
  margin: 20px 0 8px;
}

.cs-panel p,
.cs-panel li {
  color: #334155;
  line-height: 1.7;
  font-size: 15px;
}

.cs-panel ul,
.cs-panel ol {
  padding-inline-start: 24px;
  margin: 12px 0 18px;
}

.cs-panel li {
  margin-bottom: 8px;
}

/* Info Grid (4 highlights cards) */
.cs-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.cs-info-card {
  background: #ffffff;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cs-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cs-shadow-hover);
  border-color: #cbd5e1;
}

.cs-info-card .icon-well {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cs-blue-soft);
  color: var(--cs-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.cs-info-card .icon-well svg {
  width: 22px;
  height: 22px;
}

.cs-info-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--cs-navy);
  margin: 0 0 6px;
}

.cs-info-card p {
  font-size: 13.5px;
  color: var(--cs-ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* Compliance Notice Box */
.cs-notice {
  border-inline-start: 4px solid var(--cs-orange);
  background: var(--cs-orange-soft);
  border-radius: 0 var(--cs-radius-sm) var(--cs-radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  color: #78350f;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
html[dir="rtl"] .cs-notice {
  border-radius: var(--cs-radius-sm) 0 0 var(--cs-radius-sm);
}

.cs-notice-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--cs-orange);
  margin-top: 2px;
}

.cs-notice-content p {
  margin: 0 0 6px;
  color: #78350f;
  font-size: 14.5px;
  line-height: 1.6;
}
.cs-notice-content p:last-child {
  margin-bottom: 0;
}
.cs-notice-content strong {
  color: #92400e;
}

/* Callout Blue */
.cs-callout-blue {
  border-inline-start: 4px solid var(--cs-blue);
  background: #f0f4ff;
  border-radius: 0 var(--cs-radius-sm) var(--cs-radius-sm) 0;
  padding: 18px 22px;
  margin: 24px 0;
  color: #1e3a8a;
  line-height: 1.6;
}
html[dir="rtl"] .cs-callout-blue {
  border-radius: var(--cs-radius-sm) 0 0 var(--cs-radius-sm);
}

/* Schedule / Rates Table */
.cs-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius-sm);
  margin: 20px 0 28px;
  background: #ffffff;
}

.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: start;
}

.cs-table th {
  background: #f8fafc;
  color: var(--cs-navy);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 2px solid var(--cs-line);
  white-space: nowrap;
}

.cs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--cs-line);
  color: #334155;
  vertical-align: middle;
}

.cs-table tr:last-child td {
  border-bottom: 0;
}

.cs-table tr:hover td {
  background: #fbfcfe;
}

/* Chips / Badges */
.cs-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.cs-chip-green {
  background: var(--cs-green-soft);
  color: var(--cs-green);
}
.cs-chip-blue {
  background: var(--cs-blue-soft);
  color: var(--cs-blue);
}
.cs-chip-amber {
  background: var(--cs-orange-soft);
  color: #b45309;
}

/* Step-by-Step Delivery Flow */
.cs-steps-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0 28px;
}

.cs-step-card {
  background: #f8fafc;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius-sm);
  padding: 16px 14px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cs-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cs-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.cs-step-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--cs-navy);
  margin: 0 0 6px;
  line-height: 1.3;
}

.cs-step-card p {
  font-size: 12.5px;
  color: var(--cs-ink-muted);
  margin: 0;
  line-height: 1.5;
}

/* Large Appliances Feature Card */
.cs-appliance-card {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2ff 100%);
  border: 1px solid #c7d7fe;
  border-radius: var(--cs-radius-sm);
  padding: 22px;
  margin: 24px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
}

.cs-appliance-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--cs-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(22, 72, 232, 0.12);
  flex-shrink: 0;
}

.cs-appliance-icon svg {
  width: 26px;
  height: 26px;
}

.cs-appliance-body h3 {
  margin: 0 0 6px;
  color: var(--cs-navy);
  font-size: 16.5px;
}

.cs-appliance-body p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}

.cs-appliance-checklist {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cs-appliance-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1e293b;
  margin: 0;
}

.cs-appliance-checklist svg {
  width: 16px;
  height: 16px;
  color: var(--cs-green);
  flex-shrink: 0;
}

/* FAQ Accordion */
.cs-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
}

.cs-faq-item {
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius-sm);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.cs-faq-item[open] {
  border-color: #cbd5e1;
}

.cs-faq-summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cs-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  list-style: none;
}
.cs-faq-summary::-webkit-details-marker {
  display: none;
}

.cs-faq-summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-inline-end: 2px solid var(--cs-blue);
  border-bottom: 2px solid var(--cs-blue);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-inline-start: auto;
}

.cs-faq-item[open] .cs-faq-summary::after {
  transform: rotate(-135deg);
}

.cs-faq-answer {
  padding: 0 20px 18px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.65;
  border-top: 1px solid var(--cs-line-light);
  padding-top: 14px;
}

/* Support Help Banner */
.cs-support-banner {
  background: linear-gradient(135deg, #0a1747 0%, #17387a 100%);
  color: #ffffff;
  border-radius: var(--cs-radius-sm);
  padding: 24px;
  margin: 28px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cs-support-banner h3 {
  color: #ffffff;
  font-size: 18px;
  margin: 0 0 6px;
}

.cs-support-banner p {
  color: #c7d2fe;
  font-size: 13.5px;
  margin: 0;
}

.cs-support-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cs-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cs-support-btn:hover {
  transform: translateY(-1px);
}

.cs-support-btn-primary {
  background: var(--cs-blue);
  color: #ffffff !important;
}
.cs-support-btn-primary:hover {
  background: var(--cs-blue-hover);
}

.cs-support-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
}
.cs-support-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Page footer related links */
.cs-page-end {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--cs-line);
  font-size: 13.5px;
  color: var(--cs-ink-muted);
}
.cs-page-end a {
  color: var(--cs-blue);
  font-weight: 500;
}
.cs-page-end a:hover {
  text-decoration: underline;
}

/* Sidebar */
.cs-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cs-side-card {
  background: var(--cs-card);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  padding: 24px;
  box-shadow: var(--cs-shadow);
}

.cs-side-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--cs-navy);
  margin: 0 0 10px;
}

.cs-side-card p {
  font-size: 13.5px;
  color: var(--cs-ink-muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

.cs-side-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13.5px;
}

.cs-side-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--cs-blue);
  flex-shrink: 0;
}

.cs-link-list {
  list-style: none;
  padding: 0 !important;
  margin: 8px 0 0 !important;
}

.cs-link-list li {
  border-bottom: 1px solid var(--cs-line-light);
  margin: 0 !important;
}
.cs-link-list li:last-child {
  border-bottom: 0;
}

.cs-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.cs-link-list a:hover {
  background: #f8fafc;
  color: var(--cs-blue);
  padding-inline-start: 12px;
}

.cs-link-list a.active {
  background: var(--cs-blue-soft);
  color: var(--cs-blue);
  font-weight: 700;
  padding-inline-start: 12px;
}

.cs-link-list a svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  transition: transform 0.15s ease;
}

.cs-link-list a.active svg,
.cs-link-list a:hover svg {
  color: var(--cs-blue);
}

/* RTL Tweaks */
html[dir="rtl"] .cs-hero h1,
html[dir="rtl"] .cs-hero-sub,
html[dir="rtl"] .cs-panel,
html[dir="rtl"] .cs-side-card {
  font-family: var(--font-ar, "Cairo", system-ui, sans-serif);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }
  .cs-sidebar {
    position: static;
  }
  .cs-steps-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cs-info-grid {
    grid-template-columns: 1fr;
  }
  .cs-steps-flow {
    grid-template-columns: 1fr;
  }
  .cs-appliance-card {
    grid-template-columns: 1fr;
  }
  .cs-appliance-checklist {
    grid-template-columns: 1fr;
  }
  .cs-support-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cs-support-actions {
    width: 100%;
  }
  .cs-support-actions a {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cs-info-card,
  .cs-support-btn,
  .cs-link-list a,
  .cs-faq-summary::after {
    transition: none !important;
    transform: none !important;
  }
}
