/**
 * Neighborhood Finder Quiz - Frontend Styles (Exact Match)
 */

/* Wrapper and Container */
.nf-quiz-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.nf-quiz-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #F5F3EF;
    border-radius: 20px;
    padding: 50px 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Close Button */
.nf-quiz-container::before {
    content: "×";
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

/* Header */
.nf-quiz-header {
    margin-bottom: 40px;
}

.nf-quiz-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.nf-quiz-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Progress Bar */
.nf-quiz-progress-container {
    margin-bottom: 50px;
}

.nf-quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: #E0DDD7;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.nf-quiz-progress-fill {
    height: 100%;
    background: #1a1a1a;
    transition: width 0.4s ease;
    border-radius: 3px;
}

.nf-quiz-progress-text {
    text-align: right;
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
}

/* Form Groups */
.nf-form-group {
    margin-bottom: 24px;
}

.nf-form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.nf-form-group label .required-star {
    color: #E74C3C;
    margin-left: 4px;
}

.nf-form-group label .optional {
    font-weight: 400;
    color: #999;
    font-size: 15px;
}

.nf-form-control {
    width: 100%;
    padding: 16px 18px;
    font-size: 16px;
    border: 2px solid #D8D5CF;
    border-radius: 12px;
    background: #FFFFFF;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.nf-form-control:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

textarea.nf-form-control {
    resize: vertical;
    min-height: 120px;
}

/* Quiz Questions */
.nf-quiz-question {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nf-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #FFFFFF;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.nf-question-text {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 40px 0;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

/* Options */
.nf-options-container {
    margin-bottom: 40px;
}

.nf-option {
    display: flex;
    align-items: flex-start;
    padding: 20px 24px;
    margin-bottom: 16px;
    background: #FFFFFF;
    border: 2px solid #E8E6E1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nf-option:hover {
    border-color: #1a1a1a;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nf-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 2px 16px 0 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #1a1a1a;
}

.nf-option:has(input[type="radio"]:checked) {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #FFFFFF;
}

.nf-option-text {
    display: block;
    font-size: 16px;
    color: inherit;
    line-height: 1.6;
    font-weight: 400;
}

/* Buttons */
.nf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.nf-btn-primary {
    background: #1a1a1a;
    color: #FFFFFF;
}

.nf-btn-primary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.3);
}

.nf-btn-secondary {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #E0DDD7;
}

.nf-btn-secondary:hover {
    background: #E0DDD7;
}

.nf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.nf-btn-arrow {
    font-size: 18px;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.nf-btn-primary:hover .nf-btn-arrow {
    transform: translateX(3px);
}

.nf-btn-secondary:hover .nf-btn-arrow {
    transform: translateX(-3px);
}

/* Navigation */
.nf-quiz-navigation {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 50px;
}

.nf-form-actions {
    margin-top: 40px;
}

.nf-form-actions .nf-btn {
    width: 100%;
}

/* Cancel Button */
.nf-quiz-navigation button[type="button"].nf-btn-secondary {
    background: transparent;
    border: none;
    color: #666;
    padding: 16px 24px;
}

.nf-quiz-navigation button[type="button"].nf-btn-secondary:hover {
    background: transparent;
    color: #1a1a1a;
}

/* Messages */
.nf-form-message {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    display: none;
    font-size: 15px;
}

.nf-form-message.success {
    display: block;
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.nf-form-message.error {
    display: block;
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Results */
.nf-quiz-results {
    animation: fadeIn 0.5s ease;
    text-align: center;
    padding: 40px 0;
}

.nf-results-header {
    margin-bottom: 40px;
}

.nf-results-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.nf-results-content {
    font-size: 18px;
    color: #666;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Hide neighborhoods and scores */
.nf-neighborhoods-container,
.nf-category-scores {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nf-quiz-container {
        padding: 30px 24px;
        border-radius: 16px;
    }
    
    .nf-quiz-header h2 {
        font-size: 24px;
    }
    
    .nf-question-text {
        font-size: 20px;
    }
    
    .nf-option {
        padding: 16px 18px;
    }
    
    .nf-quiz-navigation {
        flex-direction: column-reverse;
    }
    
    .nf-btn {
        width: 100%;
        justify-content: center;
    }
}










/* ========================================
   RESULTS PAGE STYLES
   Add this to the END of your quiz-style.css
======================================== */

/* Results Container */
#nf-quiz-results {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 0;
    margin-top: 0;
    box-shadow: none;
}

.nf-results-wrapper {
    padding: 50px 30px;
    background: #FFFFFF;
}

/* Results Header */
.nf-results-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.nf-results-celebration {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.nf-results-intro {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   NEIGHBORHOOD CARDS
======================================== */

.nf-neighborhood-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nf-neighborhood-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Match Badge */
.nf-match-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nf-medal {
    font-size: 36px;
}

.nf-match-rank {
    font-size: 24px;
    font-weight: 700;
    flex: 1;
    min-width: 250px;
}

.nf-match-percent {
    font-size: 28px;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 25px;
}

/* ========================================
   TOP MATCH CARD (#1)
======================================== */

.nf-top-match .nf-neighborhood-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.nf-top-match .nf-neighborhood-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nf-top-match:hover .nf-neighborhood-image img {
    transform: scale(1.05);
}

.nf-top-match .nf-neighborhood-content {
    padding: 40px;
}

/* Reasons Section */
.nf-reasons-section {
    margin-bottom: 35px;
}

.nf-reasons-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.nf-reasons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nf-reasons-list li {
    font-size: 16px;
    color: #555;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}

.nf-reasons-list li:last-child {
    border-bottom: none;
}

/* Stats Section */
.nf-stats-section {
    margin-bottom: 35px;
    background: #F5F3EF;
    padding: 30px;
    border-radius: 8px;
}

.nf-stats-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.nf-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.nf-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nf-stat-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.nf-stat-label {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.nf-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Highlights Section */
.nf-highlights-section {
    margin-bottom: 35px;
}

.nf-highlights-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.nf-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.nf-highlights-list li {
    font-size: 15px;
    color: #555;
    padding: 8px 0;
}

/* Actions */
.nf-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nf-actions .nf-btn {
    flex: 1;
    min-width: 200px;
}

/* ========================================
   SECONDARY MATCH CARDS (#2, #3)
======================================== */

.nf-secondary-match .nf-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
}

.nf-secondary-match .nf-neighborhood-image {
    height: 100%;
    min-height: 300px;
}

.nf-secondary-match .nf-neighborhood-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nf-secondary-match .nf-neighborhood-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nf-secondary-match h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.nf-reasons-list-compact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nf-reasons-list-compact li {
    font-size: 14px;
    color: #555;
    padding: 8px 0;
    line-height: 1.5;
}

.nf-stats-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.nf-stats-compact span {
    white-space: nowrap;
}

/* Button Outline Variant */
.nf-btn-outline {
    background: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
}

.nf-btn-outline:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ========================================
   MOBILE RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .nf-results-wrapper {
        padding: 30px 15px;
    }
    
    .nf-results-celebration {
        font-size: 24px;
    }
    
    .nf-results-intro {
        font-size: 16px;
    }
    
    .nf-match-badge {
        padding: 15px 20px;
    }
    
    .nf-medal {
        font-size: 28px;
    }
    
    .nf-match-rank {
        font-size: 18px;
        min-width: 180px;
    }
    
    .nf-match-percent {
        font-size: 20px;
        padding: 6px 15px;
    }
    
    .nf-top-match .nf-neighborhood-image {
        height: 250px;
    }
    
    .nf-top-match .nf-neighborhood-content {
        padding: 25px 20px;
    }
    
    .nf-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .nf-highlights-list {
        grid-template-columns: 1fr;
    }
    
    .nf-actions {
        flex-direction: column;
    }
    
    .nf-actions .nf-btn {
        width: 100%;
        min-width: auto;
    }
    
    .nf-secondary-match .nf-secondary-grid {
        grid-template-columns: 1fr;
    }
    
    .nf-secondary-match .nf-neighborhood-image {
        min-height: 200px;
    }
    
    .nf-secondary-match .nf-neighborhood-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nf-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nf-stats-compact {
        flex-direction: column;
        gap: 8px;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nf-neighborhood-card {
    animation: slideInUp 0.5s ease-out;
}

.nf-neighborhood-card:nth-child(2) {
    animation-delay: 0.1s;
}

.nf-neighborhood-card:nth-child(3) {
    animation-delay: 0.2s;
}

.nf-neighborhood-card:nth-child(4) {
    animation-delay: 0.3s;
}




