/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.results-content {
    max-width: 1000px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-primary);
}

/* Diagnostic Styles */
.diagnostic-container {
    padding: 2rem;
}

.progress-bar {
    background: var(--border);
    height: 8px;
    border-radius: 4px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: var(--gradient-primary);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 6.67%;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.question-container {
    min-height: 300px;
    margin-bottom: 2rem;
}

.question {
    display: none;
    animation: questionFade 0.3s ease;
}

.question.active {
    display: block;
}

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

.question h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.question-options {
    display: grid;
    gap: 1rem;
}

.option {
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option:hover {
    border-color: var(--primary-color);
    background: rgba(0, 212, 170, 0.05);
}

.option.selected {
    border-color: var(--primary-color);
    background: var(--gradient-primary);
    color: white;
}

.option h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.option p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.diagnostic-navigation .btn {
    flex: 1;
    justify-content: center;
}

/* Results Styles */
.results-container {
    padding: 2rem;
}

.results-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
}

.results-hero h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.results-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.personalized-insight {
    background: rgba(0, 212, 170, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
}

.personalized-insight h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.insight-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.recommendation-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border);
}

.recommendation-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.strain-list {
    list-style: none;
    margin: 1rem 0;
}

.strain-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.strain-list li:last-child {
    border-bottom: none;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 212, 170, 0.05);
    border-radius: 10px;
}

.benefit-icon {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.recommendation-cta {
    text-align: center;
    padding: 2rem;
    background: var(--surface);
    border-radius: 15px;
}

.price-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price-note {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}