/* ============================================================
   Remote Support Portal — style.css
   Color palette:
     Primary dark:  #1a365d
     Accent blue:   #2b6cb0
     Mid blue:      #3182ce
     Light bg:      #edf2f7
     Muted text:    #4a5568
     Border:        #cbd5e0
   ============================================================ */

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

:root {
  --color-primary:    #1a365d;
  --color-accent:     #2b6cb0;
  --color-accent-mid: #3182ce;
  --color-bg-light:   #edf2f7;
  --color-bg-white:   #ffffff;
  --color-text:       #2d3748;
  --color-muted:      #4a5568;
  --color-border:     #cbd5e0;
  --color-footer-bg:  #1a202c;
  --color-footer-txt: #a0aec0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --max-width: 820px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  flex: 1;
}

/* ---- Header ---- */
.site-header {
  background: var(--color-primary);
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #ffffff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.9;
  max-width: 540px;
  margin: 0 auto;
}

/* ---- Sections ---- */
section {
  padding: 2.5rem 0;
}

section + section {
  border-top: 1px solid var(--color-border);
}

.steps,
.downloads,
.contact {
  background: var(--color-bg-white);
}

section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

/* ---- Steps ---- */
.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.step-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.step-content strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* ---- Downloads ---- */
.downloads-intro {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 2px 6px rgba(43, 108, 176, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-mid);
  border-color: var(--color-accent-mid);
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
}

.btn-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.downloads-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

/* ---- Contact ---- */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  flex: 1 1 240px;
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}

.contact-item a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ---- Contact Note ---- */
.contact-note {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ---- Trust Badges ---- */
.trust {
  background: var(--color-bg-light);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.trust-item {
  flex: 1 1 200px;
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.trust-item strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.trust-item p {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-txt);
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.85rem;
}

.site-footer a {
  color: #90cdf4;
  text-decoration: none;
}

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

/* ---- Mobile ---- */
@media (max-width: 560px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .download-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .contact-grid {
    flex-direction: column;
  }

  .contact-item {
    flex: 1 1 auto;
  }

  section {
    padding: 2rem 0;
  }
}

/* ---- Auto-download ---- */
.auto-download {
  background: var(--color-bg-white);
}

.auto-download-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, #ebf8ff 0%, #e8f4fd 100%);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

.auto-download-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.auto-download-status {
  flex: 1;
  min-width: 180px;
}

.detected-os {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.countdown-msg {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* Highlight the auto-detected download button */
.btn-detected {
  outline: 3px solid #f6e05e;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(246, 224, 94, 0.35);
}

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1.05rem;
}

/* ---- Support Request Form ---- */
.support-form-section {
  background: var(--color-bg-white);
}

.form-intro {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.support-form {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.required {
  color: #e53e3e;
}

.optional {
  color: var(--color-muted);
  font-weight: 400;
}

.form-input,
.form-textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.18);
}

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

/* ---- Thank-you page ---- */
.thank-you-section {
  background: var(--color-bg-white);
}

.thank-you-card {
  max-width: 480px;
  text-align: center;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.thank-you-icon {
  font-size: 3rem;
  color: #38a169;
  margin-bottom: 1rem;
  line-height: 1;
}

.thank-you-card h2 {
  margin-bottom: 0.75rem;
}

.thank-you-card p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Trust icon ---- */
.trust-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* ---- Mobile additions ---- */
@media (max-width: 560px) {
  .auto-download-card {
    flex-direction: column;
    text-align: center;
  }

  .auto-download-status {
    min-width: 0;
    text-align: center;
  }

  .support-form {
    max-width: 100%;
  }

  .thank-you-card {
    padding: 1.75rem 1.25rem;
  }
}
