/* Global Styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;700;800;900&display=swap");
/* @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap") */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --dark: #1d3557;
  --gray: #6b7280;
  --light: #f8f9fa;
}

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

body {
  font-family: "Inter", sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /* position: sticky;  */
  position: relative;
  /* or simply remove position/top/z-index */
  /* top: 0;
            z-index: 1000;
            */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

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

.header-phone {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s;
}

.header-phone:hover {
  background: var(--primary-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Footer Styles */
.footer {
  background: #1d3557;
  color: white;
  padding: 60px 0 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 20px;
  text-align: center;
  color: #cbd5e0;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  color: #cbd5e0;
  font-size: 18px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: white;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(29, 53, 87, 0.92), rgba(29, 53, 87, 0.92)),
    url("../images/bonati-spine-institute-campus.jpg") center/cover no-repeat;
  color: white;
  color: #e8f2f7;
  text-align: center;
  padding: 120px 20px 100px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero h1 strong {
  font-weight: 800;
  font-size: 52px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 38px;
  }
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 20px 48px;
  font-size: 22px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(230, 57, 70, 0.4);
  transition: all 0.3s;
  display: inline-block;
  margin: 30px 0;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

.trust-bar {
  background: rgba(255, 255, 255, 0.2);
  padding: 25px;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  font-weight: 600;
  font-size: 17px;
  margin: 40px auto;
  max-width: 900px;
}

/* Quiz Card */
.quiz-card {
  background: white;
  margin: -90px auto 120px;
  padding: 60px 50px;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
  max-width: 820px;
  position: relative;
}

.progress-bar {
  height: 12px;
  background: #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin: 30px 0;
}

.progress {
  height: 100%;
  width: 14.28%;
  background: var(--primary);
  transition: width 0.5s ease;
}

.question {
  display: none;
  animation: fadeIn 0.6s;
}

.question.active {
  display: block;
}

.question h3 {
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 28px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.option {
  padding: 20px 26px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 18px;
  font-weight: 500;
}

.option:hover {
  border-color: var(--primary);
  background: #fff5f5;
  transform: translateY(-2px);
}

.option.selected {
  border-color: var(--primary);
  background: #ffe6e8;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.15);
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 14px;
  background: #ddd;
  margin: 30px 0;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.checkbox-option {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}

.checkbox-option:hover {
  border-color: var(--primary);
  background: #fff5f5;
}

.checkbox-option input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin-right: 15px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-option.checked {
  border-color: var(--primary);
  background: #ffe6e8;
  font-weight: 700;
}

.next-btn {
  background: var(--primary);
  color: white;
  padding: 18px 40px;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 30px;
  width: 100%;
}

.next-btn:hover {
  background: var(--primary-dark);
}

.next-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Results */
.results {
  display: none;
  background: white;
  padding: 80px 50px;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 120px;
}

.score {
  font-size: 82px;
  font-weight: 900;
  color: var(--primary);
}

.severity {
  font-size: 36px;
  color: var(--primary-dark);
  font-weight: 800;
  margin: 20px 0;
}

/* Form */
.lead-form {
  max-width: 600px;
  margin: 50px auto 0;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 17px;
  transition: all 0.3s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.15);
}

.full-width {
  grid-column: 1/-1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-phone {
    display: none;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}
