/* CSS @imports must be at the top of the file */
@import url("https://use.typekit.net/tgy8srm.css");

/* Font Face Declarations - Using Local Fonts */
@font-face { 
  font-family: 'Soleil';  
  src: url('/assets/fonts/SoleilRegular.otf') format('opentype'); 
  font-weight: 400;
}
@font-face { 
  font-family: 'Soleil Light';  
  src: url('/assets/fonts/SoleilLight.otf') format('opentype'); 
  font-weight: 300;
}
@font-face { 
  font-family: 'Soleil Book';  
  src: url('/assets/fonts/SoleilBook.otf') format('opentype'); 
  font-weight: 500;
}
@font-face { 
  font-family: 'Soleil Bold';  
  src: url('/assets/fonts/SoleilBold.otf') format('opentype'); 
  font-weight: 700;
}

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

/* Base Typography and Layout */
body {
  font-family: soleil, sans-serif !important;
  font-weight: 300;
  color: #1d1d1b;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  min-height: 100vh;
  padding-bottom: 60px;
}

p {
  font-family: soleil, sans-serif !important;
  font-weight: 300;
  color: #1d1d1b;
}

h1, h2, h3, h4, h5, h6 { 
  font-family: soleil, sans-serif !important;
  font-weight: 600;
  font-style: normal;
  color: #1d1d1b;
  letter-spacing: 0;
}

a {
  font-family: soleil, sans-serif !important; 
  font-weight: 300;
  color: #1d1d1b;
  text-decoration: none;
}

a:hover { 
  font-family: soleil, sans-serif !important;
  font-weight: 300;
  font-style: normal;
  color: #3db5e6;
}

ul li {
  line-height: unset;
  margin: 0.1rem 0.7rem;
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.title {
  font-size: 2rem;
  font-weight: 600;
  color: #1d1d1b;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 300;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: soleil, sans-serif !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input:focus {
  outline: none;
  border-color: #3CB4E5;
  box-shadow: 0 0 0 3px rgba(60, 180, 229, 0.1);
}

/* Button Styling */
.btn {
  font-family: soleil, sans-serif !important;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: none;
}

.btn-primary {
  background-color: #3CB4E5;
  color: white;
}

.btn-primary:hover {
  background-color: #2a9fd1;
  text-decoration: none;
}

.btn-primary:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  color: #374151;
  border-color: #9ca3af;
  text-decoration: none;
}

.btn-secondary:disabled {
  color: #d1d5db;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-outline {
  background-color: white;
  color: #3CB4E5;
  border: 2px solid #3CB4E5;
}

.btn-outline:hover {
  background-color: #3CB4E5;
  color: white;
  text-decoration: none;
}

/* Progress Elements */
.progress-container {
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #3CB4E5;
  transition: width 0.3s ease-in-out;
}

.progress-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Question Styling */
.question-container {
  margin-bottom: 2rem;
}

.question-number {
  font-size: 0.875rem;
  color: #3CB4E5;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.question-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1d1d1b;
  line-height: 1.5;
}

.options-container {
  margin-bottom: 2rem;
}

.option-button {
  width: 100%;
  padding: 1rem;
  text-align: left;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  font-family: soleil, sans-serif !important;
}

.option-button:hover {
  border-color: #d1d5db;
  background-color: #f9fafb;
}

.option-button.selected {
  border-color: #3CB4E5;
  background-color: #f0f9ff;
  color: #1e3a8a;
}

.radio-dot {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  margin-right: 0.75rem;
  position: relative;
}

.option-button.selected .radio-dot {
  border-color: #3CB4E5;
  background-color: #3CB4E5;
}

.option-button.selected .radio-dot::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

.option-text {
  flex-grow: 1;
  font-weight: 400;
}

.option-points {
  font-size: 0.875rem;
  color: #6b7280;
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.navigation .btn {
  flex: 1;
  max-width: 200px;
}

/* Results Styling */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.result-card {
  border-radius: 8px;
  padding: 1.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.result-card-low {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #10b981;
}

.result-card-moderate {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
}

.result-card-high {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  border-color: #ef4444;
}

.result-card-low .result-title {
  color: #065f46;
}

.result-card-low .result-description {
  color: #047857;
}

.result-card-low .result-score {
  color: #065f46;
}

.result-card-moderate .result-title {
  color: #92400e;
}

.result-card-moderate .result-description {
  color: #b45309;
}

.result-card-moderate .result-score {
  color: #92400e;
}

.result-card-high .result-title {
  color: #991b1b;
}

.result-card-high .result-description {
  color: #dc2626;
}

.result-card-high .result-score {
  color: #991b1b;
}

.result-title {
  font-weight: 600;
  color: #1d1d1b;
  margin-bottom: 0.5rem;
}

.result-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.result-score-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.result-score {
  font-size: 2rem;
  font-weight: 700;
}

.priority-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
}

.priority-high {
  background-color: #ef4444;
}

.priority-moderate {
  background-color: #f59e0b;
}

.priority-low {
  background-color: #10b981;
}

.result-ranges {
  font-size: 0.75rem;
  color: #6b7280;
}

.total-score-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
}

.total-score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.total-score-left h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1b;
  margin-bottom: 0.5rem;
}

.total-score-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #3CB4E5;
}

.total-score-right {
  text-align: center;
}

.recommendations {
  background-color: #fefce8;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.recommendations h3 {
  font-weight: 600;
  color: #a16207;
  margin-bottom: 0.5rem;
}

.recommendations p {
  color: #a16207;
  font-size: 0.875rem;
}

.info-box {
  background-color: #f0f9ff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.info-box h3 {
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.info-box ul {
  list-style: none;
  color: #1e3a8a;
}

.info-box li {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.section-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.section-info-left h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1b;
}

.section-info-left p {
  color: #6b7280;
}

.section-info-right {
  text-align: right;
}

.section-info-right p:first-child {
  font-size: 0.875rem;
  color: #6b7280;
}

.section-info-right p:nth-child(2) {
  font-size: 1.125rem;
  font-weight: 600;
  color: #3CB4E5;
}

.section-info-right p:last-child {
  font-size: 0.875rem;
  color: #6b7280;
}

.center {
  text-align: center;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Traffic Light Chart Styles */
.chart-container {
  margin: 2rem 0;
}

.chart-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1b;
  text-align: center;
  margin-bottom: 2rem;
}

.chart-item {
  margin-bottom: 2rem;
  position: relative;
}

.chart-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.chart-bar-container {
  position: relative;
  height: 40px;
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
}

.chart-section {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  font-size: 0.75rem;
  position: relative;
}

.chart-section-low {
  background-color: #10b981;
}

.chart-section-moderate {
  background-color: #f59e0b;
}

.chart-section-high {
  background-color: #ef4444;
}

.score-marker {
  position: absolute;
  top: -10px;
  width: 16px;
  height: 16px;
  background-color: #1f2937;
  border: 3px solid white;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.score-value {
  position: absolute;
  top: -40px;
  transform: translateX(-50%);
  background-color: #1f2937;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  white-space: nowrap;
  z-index: 10;
}

.score-value::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1f2937;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Footer with live users and copyright - Replace the existing footer section (around line 601) with this */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer > div {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.live-users {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Copyright section */
.footer a {
  color: #3CB4E5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer a:hover {
  color: #2563eb;
}

/* Hide landing page elements */
.footer--landing-page, .header--landing-page { 
  display: none !important; 
}

/* Update the body padding to accommodate the taller footer */
body {
  padding-bottom: 80px; /* Increased from 60px */
}

/* Media Queries for Footer */
@media (max-width: 768px) {
  .footer {
    padding: 0.75rem;
  }
  
  .footer > div {
    gap: 0.5rem;
  }
  
  .live-users {
    font-size: 0.7rem;
  }
  
  body {
    padding-bottom: 90px; /* Increased from 70px */
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
  
  .footer > div {
    gap: 0.4rem;
  }
  
  .live-users {
    font-size: 0.65rem;
  }
  
  .footer a {
    font-size: 0.75rem;
  }
  
  body {
    padding-bottom: 85px;
  }
}

.domain-info {
  color: #9ca3af;
  font-size: 0.65rem;
  margin-left: 0.5rem;
}

/* Hide landing page elements */
.footer--landing-page, .header--landing-page { 
  display: none !important; 
}

/* Media Queries */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .total-score-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .total-score-right {
    text-align: center;
  }
  
  .section-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .section-info-right {
    text-align: left;
  }
  
  .button-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .button-group .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .navigation {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .navigation .btn {
    width: 100%;
    max-width: none;
  }
  
  .live-users {
    font-size: 0.7rem;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .domain-info {
    font-size: 0.6rem;
    margin-left: 0;
  }
  
  body {
    padding-bottom: 70px;
  }
}

@media (max-width: 480px) {
  .button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .button-group .btn:last-child {
    grid-column: 1 / -1;
  }
  
  .navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .navigation .btn:nth-child(2) {
    grid-column: 1 / -1;
  }
  
  .live-users {
    font-size: 0.65rem;
  }
  
  .domain-info {
    display: none;
  }
}

/* GHL Integration Styles */
.ghl-success {
  background-color: #f0fdf4 !important;
  border-color: #22c55e !important;
}

.ghl-error {
  background-color: #fef2f2 !important;
  border-color: #ef4444 !important;
}

.ghl-saving {
  background-color: #f0f9ff !important;
  border-color: #3CB4E5 !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Updated button group layout for 6+ buttons */
.button-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.button-group .btn {
  flex: 1;
  min-width: 120px;
  max-width: 160px;
}

@media (max-width: 1200px) {
  .button-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .button-group .btn {
    min-width: auto;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .button-group .btn:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .button-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .button-group .btn {
    width: 100%;
    max-width: 300px;
    min-width: auto;
  }
}

/* Add this to your styles.css file */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Improved button styles */
.btn {
  transition: all 0.2s ease;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: #3CB4E5;
  color: white;
}

.btn-primary:hover {
  background-color: #2a9dc7;
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

.btn-outline {
  background-color: white;
  color: #3CB4E5;
  border: 2px solid #3CB4E5;
}

.btn-outline:hover {
  background-color: #3CB4E5;
  color: white;
}
/* Logo Styling */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.logo-img {
  max-width: 200px;
  height: auto;
  object-fit: contain;
}

.logo-small {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Responsive logo sizing */
@media (max-width: 600px) {
  .logo-img {
    max-width: 150px;
  }
  
  .logo-small {
    height: 30px;
  }
}

/* Pulse animation for selected answers */
@keyframes answerPulse {
  0% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(60, 180, 229, 0.7);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(60, 180, 229, 0);
  }
  100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(60, 180, 229, 0);
  }
}

.option-button.pulsing {
  animation: answerPulse 0.6s ease-in-out;
}

/* Enhanced selected state for better visual feedback */
.option-button.selected.pulsing {
  border-color: #3CB4E5;
  background-color: #f0f9ff;
  color: #1e3a8a;
}



/* Exit Intent Popup Styles */
#exit-intent-bg {
  backdrop-filter: blur(4px);
}

#exit-intent-popup {
  font-family: soleil, sans-serif !important;
}

#exit-intent-popup h2 {
  font-family: soleil, sans-serif !important;
  font-weight: 600;
  color: #1d1d1b;
}

#exit-intent-popup p {
  font-family: soleil, sans-serif !important;
  font-weight: 300;
  color: #666;
}

#exit-intent-close:hover {
  background-color: #f0f0f0 !important;
  color: #333 !important;
}

/* Mobile responsiveness for popup */
@media (max-width: 768px) {
  #exit-intent-popup {
    width: 95vw !important;
    max-height: 85vh !important;
    margin: 0 !important;
  }
  
  #exit-intent-popup > div {
    padding: 1.5rem !important;
  }
  
  #exit-intent-popup h2 {
    font-size: 1.5rem !important;
  }
  
  #exit-intent-popup p {
    font-size: 1rem !important;
  }
  
  #popup-form-iframe {
    height: 500px !important;
  }
}

@media (max-width: 480px) {
  #exit-intent-popup {
    width: 98vw !important;
    max-height: 90vh !important;
  }
  
  #exit-intent-popup > div {
    padding: 1rem !important;
  }
  
  #exit-intent-popup h2 {
    font-size: 1.3rem !important;
  }
  
  #exit-intent-popup p {
    font-size: 0.9rem !important;
  }
  
  #popup-form-iframe {
    height: 450px !important;
  }
  
  #exit-intent-close {
    top: 0.5rem !important;
    right: 0.5rem !important;
    width: 35px !important;
    height: 35px !important;
    font-size: 1.5rem !important;
  }
}

