/**
 * KaamEasy — premium shell for non-driver service professionals
 * (plumber, electrician, housekeeping, medical visit assist)
 */
:root {
  --sp-accent: #0f9d8f;
  --sp-accent2: #1273de;
  --sp-bg: #f8fbff;
  --sp-surface: #ffffff;
  --sp-border: #dbeafe;
  --sp-text: #0f172a;
  --sp-muted: #475569;
  --sp-card: #ffffff;
}

body.sp-premium {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--sp-text);
  background:
    radial-gradient(circle at 84% 10%, rgba(15, 157, 143, 0.12), transparent 42%),
    radial-gradient(circle at 15% 20%, rgba(18, 115, 222, 0.12), transparent 40%),
    linear-gradient(180deg, #f8fbff, #f2f8ff);
  background-attachment: fixed;
}

body[data-sp-vertical="plumber"] {
  --sp-accent: #0f9d8f;
  --sp-accent2: #1273de;
}
body[data-sp-vertical="electrician"] {
  --sp-accent: #0f9d8f;
  --sp-accent2: #1273de;
}
body[data-sp-vertical="housekeeping"] {
  --sp-accent: #0f9d8f;
  --sp-accent2: #1273de;
}
body[data-sp-vertical="med_visit"] {
  --sp-accent: #0f9d8f;
  --sp-accent2: #1273de;
}

.sp-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 16px 6%;
  border-bottom: 1px solid #e8eef8;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.sp-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.sp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sp-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.sp-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e6f4ff;
  border: 1px solid #dbeafe;
  color: #0b65c8;
}

.sp-nav {
  width: 100%;
  margin-top: 4px;
}
.sp-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.sp-nav a {
  color: var(--sp-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sp-nav a:hover {
  color: var(--sp-text);
  background: var(--sp-surface);
}
.sp-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent2));
  border-color: transparent;
}

.sp-main {
  padding: 32px 6% 64px;
  max-width: 1100px;
  margin: 0 auto;
}

.sp-hero-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #0f172a;
}

.sp-lead {
  color: var(--sp-muted);
  max-width: 560px;
  line-height: 1.55;
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.sp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.sp-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.sp-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--sp-muted);
  font-weight: 600;
}
.sp-card .sp-stat {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.sp-form {
  max-width: 440px;
  margin: 0 auto;
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: none;
}

.sp-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-muted);
  margin: 14px 0 6px;
}
.sp-form label:first-of-type {
  margin-top: 0;
}

.sp-form input,
.sp-form select,
.sp-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--sp-border);
  background: #fbfffe;
  color: var(--sp-text);
  font: inherit;
}
.sp-form input:focus,
.sp-form select:focus,
.sp-form textarea:focus {
  outline: none;
  border-color: var(--sp-accent);
  box-shadow: 0 0 0 3px rgba(15, 157, 143, 0.2);
}

.sp-form button[type="submit"],
.sp-btn-primary {
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent2));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sp-form button[type="submit"]:hover,
.sp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.sp-links {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--sp-muted);
}
.sp-links a {
  color: var(--sp-accent);
  font-weight: 600;
  text-decoration: none;
}
.sp-links a:hover {
  text-decoration: underline;
}

.sp-note {
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--sp-muted);
  border: 1px dashed #dbeafe;
  background: #f8fbff;
}

.sp-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--sp-border);
  background: #fff;
}
.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.sp-table th,
.sp-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--sp-border);
}
.sp-table th {
  color: var(--sp-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sp-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(15, 157, 143, 0.25);
  color: #5eead4;
}

.sp-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--sp-muted);
}

.sp-faq details {
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 12px 16px;
  background: var(--sp-card);
}
.sp-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--sp-text);
}

@media (max-width: 720px) {
  .sp-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .sp-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
}
