﻿:root {
  --color-primary: #695cfe;
  --color-primary-dark: #5a4de1;
  --color-secondary: #a97bff;
  --color-accent: #ff7b8a;
  --color-dark: #1b2559;
  --color-text: #4f5d7e;
  --color-muted: #8a94b9;
  --color-bg: #f4f5ff;
  --color-white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(105, 92, 254, 0.15);
  --shadow-card: 0 12px 35px rgba(27, 37, 89, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  min-height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-dark);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(105, 92, 254, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(105, 92, 254, 0.4);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 2.8rem auto;
  font-size: 1.05rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  background: rgba(105, 92, 254, 0.1);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 2.1rem;
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
  }
}
.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(27, 37, 89, 0.16);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(27, 37, 89, 0.72);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 28px rgba(27, 37, 89, 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background: rgba(105, 92, 254, 0.85);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

@media (max-width: 600px) {
  .back-to-top {
    right: 16px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}

/* Clear button styling shared across pages */
.clear-btn {
  position: absolute;
  right: 28px; /* stay left of the dropdown arrow */
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0;
  border: none;
  background: #d9534f; /* red background */
  color: #ffffff;       /* white X */
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 1px 5px;
  border-radius: 8px;
  opacity: 0.9;
  display: none;
  z-index: 2;
}
.clear-btn:hover { opacity: 1; background: #c9302c; }

/* inputs that include a clear button need extra right padding (space for X + arrow) */
.input-with-clear input { padding-right: 96px; }
/* container for inputs with clear button */
.input-with-clear { position: relative; display: block; width: 100%; }





