@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
/* Purrfect Match Quiz Styles */

.max-width-720{
    max-width: 720px;
        margin: 0 auto;
}
.purrfect-container {
    /* max-width: 720px; */
    margin: 0 auto;
    padding: 20px;
    font-family: "Raleway", sans-serif;
    line-height: 1.6;
    color: #333;
}
.purrfect-container button{
    font-family: "Raleway", sans-serif;
}

.purrfect-container h1{
 font-family: "Bodoni Moda", serif;
 text-transform:uppercase;
 font-weight: 400;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 10px;
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
}

.progress-step.active {
    background: #F9F0E5;
}

.progress-step:after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #f0f0f0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.progress-step.active:after {
    border-left-color: #F9F0E5;
}

.progress-step:last-child:after {
    display: none;
}

/* Quiz Sections */
.quiz-section {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.quiz-section.active {
    display: block;
}

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

.quiz-section h1 {
    font-size: 48px;
    line-height: 59px;
    text-align: center;
    margin-bottom: 1rem;
}

.quiz-section h2 {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.quiz-section p {
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 23px;
    color: #4D4C50;
    margin-bottom: 2rem;
}

/* Sliders */
.slider-group {
    margin-bottom: 2rem;
}

.slider-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-label {
    font-size: 0.85rem;
    color: #666;
    flex: 1;
    text-align: center;
}

.quiz-slider {
    flex: 2;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    transition: background 0.3s ease;
    position: relative;
}

/* Track */
.quiz-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
}
.quiz-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
}

/* Thumb */
.quiz-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F9F0E5;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    position: relative;
    z-index: 2;
    opacity: 0;
}
.quiz-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}
.quiz-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F9F0E5;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    opacity: 0;
}

/* Fake number overlay */
.quiz-slider::after {
    content: attr(data-value);
    position: absolute;
    top: 50%;
    left: calc(((var(--val, 3) - var(--min, 1)) / (var(--max, 5) - var(--min, 1))) * 100%);
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F9F0E5;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
    margin-bottom: 2rem;
}

.checkbox-group h3,
.radio-group h3 {
    font-size: 1.2rem !important;
    margin-bottom: 1rem;
    color: #333;
}

.checkbox-group label,
.radio-group label {
    display: block;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.checkbox-group label:hover,
.radio-group label:hover {
    background: #e3f2fd;
    border-color: #F9F0E5;
}

.checkbox-group input:checked + span,
.radio-group input:checked + span,
.checkbox-group label:has(input:checked),
.radio-group label:has(input:checked) {
    background: #F9F0E5;
    border-color: #F9F0E5;
}

.checkbox-group input,
.radio-group input {
    margin-right: 10px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-whatsapp {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #F9F0E5;
    box-shadow: 0 4px 15px #F9F0E5;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: #6c757d !important;
    color: white !important;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #F9F0E5;
    width: 100%;
    margin-top: 1rem;
}

.btn-whatsapp:hover {
    background: #F9F0E5;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content h2 {
    margin-top: 0;
    color: #F9F0E5;
    text-align: center;
}

.modal-content input[type="text"],
.modal-content input[type="tel"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: #F9F0E5;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.consent-checkbox input {
    margin-right: 10px;
    margin-top: 2px;
}

/* Results */
.match-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.match-rank {
    background: #F9F0E5;
    color: black;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}

.match-image {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.match-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-info {
    padding: 1.5rem;
}

.match-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #333;
}

.match-details {
    color: #666;
    margin-bottom: 1rem;
}

.match-percentage {
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 1rem;
}

.match-reasons h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.match-reasons ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.match-reasons li {
    padding: 4px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.match-reasons li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #F9F0E5;
    font-weight: bold;
}

/* Loading Spinner */
.spinner {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner-circle {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #F9F0E5;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.spinner p {
    color: white;
    font-size: 1.1rem;
    text-align: center;
}

/* Error Messages */
.error-alert {
    background: #F9F0E5;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .purrfect-container {
        padding: 15px;
    }
    
    .progress-step {
        font-size: 10px;
        padding: 8px 4px;
    }
    
    .slider-container {
        /* flex-direction: column; */
        gap: 10px;
    }
    
    .slider-label {
        font-size: 0.8rem;
        text-align: left;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 20px;
    }
    
    .quiz-section h1 {
        font-size: 2rem !important;
    }
    
    .quiz-section h2 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .progress-bar {
        padding: 0;
    }
    
    .progress-step {
        font-size: 9px;
        padding: 6px 2px;
        margin: 0 2px;
    }
    
    .progress-step:after {
        right: -6px;
        border-left-width: 6px;
        border-top-width: 6px;
        border-bottom-width: 6px;
    }
    
    .match-image {
        height: 180px;
    }
    
    .quiz-section h1 {
        font-size: 1.8rem !important;
    }
}

/* Accessibility */
.quiz-slider:focus {
    outline: 2px solid #F9F0E5;
    outline-offset: 2px;
}

.checkbox-group input:focus,
.radio-group input:focus {
    outline: 2px solid #F9F0E5;
    outline-offset: 2px;
}

.btn-primary:focus,
.btn-secondary:focus,
.btn-whatsapp:focus {
    outline: 2px solid #F9F0E5;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .progress-step {
        border: 2px solid;
    }
    
    .match-card {
        border: 2px solid #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* Enhanced Results Page Styles - Add these to your purrfect-match.css */

:root {
  --brand-bg: #fffaf2;
  --brand-accent: #f3b266;
  --brand-dark: #2b2b2b;
  --card-bg: #ffffff;
  --muted: #6b6b6b;
  --beige: #f6efe6;
}

/* Results Hero Section */
.results-hero {
  /* background: linear-gradient(180deg, var(--beige), var(--brand-bg)); */
  padding: 64px 24px 40px;
  text-align: center;
}

.results-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-accent);
  color: white;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.results-title {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(28px, 6vw, 48px);
  margin: 0 0 12px;
  letter-spacing: 0.2px;
  color: var(--brand-dark);
  font-weight: 400;
  text-transform: uppercase;
}

.results-subtitle {
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(14px, 2.5vw, 18px);
  line-height: 1.5;
}

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

.results-intro { 
  text-align: center; 
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

/* Enhanced Match Cards */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.match-card-enhanced {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid #eee2d3;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  position: relative;
}

.match-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.match-rank-enhanced {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--brand-accent);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  z-index: 2;
}

.match-image-enhanced {
  position: relative;
  background: linear-gradient(135deg, #f3efe9, #ede7e0);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.match-image-enhanced img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  border: 2px dashed #d8cdbf;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #b9a890;
  letter-spacing: 1px;
  font-size: 18px;
}

.match-content-enhanced {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.match-name-enhanced { 
  font-weight: 800; 
  font-size: 22px; 
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.match-meta-enhanced { 
  color: var(--muted); 
  font-size: 14px; 
  margin-bottom: 12px;
  line-height: 1.4;
}

.match-percentage-enhanced {
  background: linear-gradient(135deg, #e8f5e8, #d4f4d4);
  color: #2d5a2d;
  padding: 6px 14px;
  border-radius: 16px;
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.match-blurb {
  font-size: 15px;
  color: var(--brand-dark);
  margin-bottom: 16px;
  flex-grow: 1;
  line-height: 1.5;
}

/* Trait Chart Styles */
.trait-chart-container{
  height: 200px;
    background: #122050;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.3);
}


.match-cta-enhanced {
  padding: 0 20px 20px;
}

.match-btn-enhanced {
  width: 100%;
  padding: 14px;
  background: var(--brand-accent);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  display: block;
  transition: all 0.2s ease;
  font-family: "Raleway", sans-serif;
}

.match-btn-enhanced:hover {
  background: #e6a159;
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

/* Comparison Table */
.comparison-table {
  margin-top: 40px;
  background: white;
  border-radius: 16px;
  border: 1px solid #eee2d3;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.table-header {
  background: var(--beige);
  padding: 20px;
  border-bottom: 1px solid #eee2d3;
}

.table-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #f5f0ea;
  vertical-align: top;
}

.comparison-table th {
  background: #fff7ee;
  font-weight: 700;
  color: var(--brand-dark);
}

.comparison-table tbody tr:hover {
  background: #fefdfb;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Trust Banner */
.trust-banner {
  background: white;
  border: 1px dashed #ead8c5;
  border-radius: 12px;
  padding: 20px;
  margin: 32px 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.results-footer {
  margin: 40px 0 60px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.results-footer a {
  color: var(--brand-accent);
  text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .results-hero {
    padding: 40px 20px 30px;
  }
  
  .matches-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .match-image-enhanced {
    height: 200px;
  }
  
  .comparison-table {
    overflow-x: auto;
  }
  
  .comparison-table table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .results-container {
    padding: 0 15px;
  }
  
  .match-content-enhanced {
    padding: 16px;
  }
  
  .match-cta-enhanced {
    padding: 0 16px 16px;
  }
  
  .table-header {
    padding: 16px;
  }
}

/* Animation for trait bars */
@media (prefers-reduced-motion: no-preference) {
  .trait-fill {
    animation: fillBar 1s ease-out;
  }
}

@keyframes fillBar {
  from {
    width: 0%;
  }
  to {
    width: var(--target-width, 100%);
  }
}