/**
 * Bull Search - Main Styles
 *
 * Professional, clean styling for the bull search tool.
 *
 * @package Bull_Search
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Theme-aligned colors - Genetics Australia */
    --bs-primary: #003c71;
    --bs-primary-dark: #082a4d;
    --bs-primary-light: #0056a3;
    --bs-secondary: #2c8659;
    --bs-secondary-dark: #236b47;
    --bs-accent: #9fdacc;
    --bs-success: #2c8659;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-info: #17a2b8;
    --bs-light: #f8f9fa;
    --bs-dark: #343a40;
    --bs-white: #ffffff;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-border-radius: 6px;
    --bs-border-radius-lg: 10px;
    --bs-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --bs-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --bs-transition: all 0.2s ease;
    --bs-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================
   Base Styles
   ============================================ */
.bs-app {
    font-family: var(--bs-font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--bs-gray-800);
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

/* Wizard steps - full width */
.bs-app .bs-wizard {
    max-width: 100%;
    margin: 0 auto;
}

/* Results view should use full width */
.bs-app .bs-results-view {
    max-width: 100%;
}

.bs-app * {
    box-sizing: border-box;
}

.bs-app a {
    color: var(--bs-primary);
    text-decoration: none;
}

.bs-app a:hover {
    text-decoration: underline;
}

/* ============================================
   Loading States
   ============================================ */
.bs-loading-initial,
.bs-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--bs-gray-600);
}

.bs-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--bs-gray-200);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation: bs-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes bs-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Buttons
   ============================================ */
.bs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--bs-gray-700);
    background: var(--bs-white);
    border: 1px solid var(--bs-gray-300);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    transition: var(--bs-transition);
    text-decoration: none;
    gap: 8px;
}

.bs-btn:hover {
    background: var(--bs-gray-100);
    border-color: var(--bs-gray-400);
    text-decoration: none;
}

.bs-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bs-btn-primary {
    color: var(--bs-white);
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.bs-btn-primary:hover {
    background: var(--bs-primary-dark);
    border-color: var(--bs-primary-dark);
}

.bs-btn-back {
    background: transparent;
    border-color: transparent;
    color: var(--bs-gray-600);
}

.bs-btn-back:hover {
    background: var(--bs-gray-100);
    color: var(--bs-gray-800);
}

.bs-btn-close {
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    color: var(--bs-gray-500);
    background: none;
    border: none;
    cursor: pointer;
}

.bs-btn-close:hover {
    color: var(--bs-gray-800);
}

/* ============================================
   Progress Bar
   ============================================ */
.bs-progress {
    margin-bottom: 40px;
}

.bs-progress-bar {
    height: 6px;
    background: var(--bs-gray-200);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.bs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-primary-light));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.bs-progress-steps {
    display: flex;
    justify-content: space-between;
}

.bs-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.bs-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bs-white);
    border: 2px solid var(--bs-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-gray-500);
    margin-bottom: 8px;
    transition: var(--bs-transition);
}

.bs-progress-step.active .bs-step-number {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
    color: var(--bs-white);
    box-shadow: 0 0 0 4px rgba(0, 60, 113, 0.15);
}

.bs-progress-step.completed .bs-step-number {
    border-color: var(--bs-success);
    background: var(--bs-success);
    color: var(--bs-white);
}

.bs-step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--bs-gray-500);
    text-align: center;
}

.bs-progress-step.active .bs-step-label {
    color: var(--bs-primary);
    font-weight: 600;
}

.bs-progress-step.completed .bs-step-label {
    color: var(--bs-success);
}

/* Clickable completed steps */
.bs-progress-step.clickable {
    cursor: pointer;
}

.bs-progress-step.clickable:hover .bs-step-number {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(44, 134, 89, 0.3);
}

.bs-progress-step.clickable:hover .bs-step-label {
    color: var(--bs-secondary-dark);
}

/* ============================================
   Step Content
   ============================================ */
.bs-step-content {
    background: var(--bs-white);
    border: 1px solid var(--bs-gray-200);
    border-radius: var(--bs-border-radius-lg);
    padding: 36px;
    margin-bottom: 24px;
    box-shadow: var(--bs-shadow);
}

.bs-step h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--bs-gray-900);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.bs-step-desc {
    color: var(--bs-gray-600);
    margin: 0 0 28px 0;
    font-size: 15px;
}

/* ============================================
   Option Cards (Operation Type)
   ============================================ */
.bs-option-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bs-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    background: var(--bs-gray-100);
    border: 2px solid var(--bs-gray-200);
    border-radius: var(--bs-border-radius-lg);
    cursor: pointer;
    transition: var(--bs-transition);
    text-align: center;
}

.bs-option-card:hover {
    border-color: var(--bs-primary-light);
    background: var(--bs-white);
    transform: translateY(-2px);
    box-shadow: var(--bs-shadow);
}

.bs-option-card.selected {
    border-color: var(--bs-primary);
    background: rgba(0, 60, 113, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 60, 113, 0.12);
}

.bs-option-icon {
    color: var(--bs-primary);
    margin-bottom: 16px;
}

.bs-option-icon svg {
    width: 56px;
    height: 56px;
}

/* Option Cards with Full Image Background */
.bs-option-card-image {
    position: relative;
    padding: 0;
    min-height: 380px;
    overflow: hidden;
}

/* Override theme image margins */
.bs-app .bs-option-card-image img,
.entry-content .bs-option-card-image img {
    margin: 0;
    padding: 0;
}

.bs-option-card-image .bs-option-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bs-option-card-image:hover .bs-option-bg {
    transform: scale(1.05);
}

.bs-option-card-image .bs-option-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(0, 60, 113, 0.9), rgba(0, 60, 113, 0.7));
    text-align: left;
}

.bs-option-card-image .bs-option-title {
    color: var(--bs-white);
    font-size: 22px;
    margin-bottom: 4px;
}

.bs-option-card-image .bs-option-desc {
    color: rgba(255, 255, 255, 0.85);
}

.bs-option-card-image.selected {
    box-shadow: 0 0 0 4px var(--bs-primary);
}

.bs-option-card-image.selected .bs-option-overlay {
    background: linear-gradient(to top, rgba(0, 60, 113, 0.95), rgba(0, 60, 113, 0.8));
}

/* Dairy card - green variant */
.bs-option-card-dairy .bs-option-overlay {
    background: linear-gradient(to top, rgba(44, 134, 89, 0.9), rgba(44, 134, 89, 0.7));
}

.bs-option-card-dairy.selected {
    box-shadow: 0 0 0 4px var(--bs-secondary);
}

.bs-option-card-dairy.selected .bs-option-overlay {
    background: linear-gradient(to top, rgba(44, 134, 89, 0.95), rgba(44, 134, 89, 0.8));
}

.bs-option-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--bs-gray-800);
    margin-bottom: 4px;
}

.bs-option-desc {
    display: block;
    font-size: 14px;
    color: var(--bs-gray-600);
}

/* ============================================
   Breed Selection
   ============================================ */
.bs-breed-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bs-breed-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-gray-200);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    transition: var(--bs-transition);
}

.bs-breed-checkbox:hover {
    border-color: var(--bs-primary-light);
    background: var(--bs-white);
}

.bs-breed-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--bs-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.bs-breed-checkbox .bs-breed-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--bs-gray-800);
    flex: 1;
}

.bs-breed-checkbox .bs-breed-desc {
    font-size: 13px;
    color: var(--bs-gray-500);
}

.bs-breed-checkbox .bs-breed-count {
    font-size: 13px;
    color: var(--bs-gray-500);
    background: var(--bs-white);
    padding: 4px 10px;
    border-radius: 12px;
}

.bs-any-breed {
    background: linear-gradient(135deg, rgba(0, 60, 113, 0.08), rgba(0, 60, 113, 0.03));
    border-color: var(--bs-primary-light);
}

.bs-breed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

/* ============================================
   Preview Count
   ============================================ */
.bs-preview-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 60, 113, 0.1), rgba(0, 60, 113, 0.05));
    border: 1px solid rgba(0, 60, 113, 0.2);
    border-radius: var(--bs-border-radius);
    margin-bottom: 20px;
}

.bs-preview-count-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--bs-primary);
}

.bs-preview-count-label {
    font-size: 15px;
    color: var(--bs-gray-700);
}

.bs-preview-loading {
    font-size: 12px;
    color: var(--bs-gray-500);
    font-style: italic;
    margin-left: auto;
}

/* ============================================
   Goal Selection
   ============================================ */
.bs-goal-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.bs-goal-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bs-gray-100);
    border: 2px solid var(--bs-gray-200);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    transition: var(--bs-transition);
    text-align: left;
}

.bs-goal-card:hover {
    border-color: var(--bs-primary-light);
    background: var(--bs-white);
}

.bs-goal-card.selected {
    border-color: var(--bs-primary);
    background: rgba(0, 60, 113, 0.05);
}

.bs-goal-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--bs-gray-800);
    margin-bottom: 4px;
}

.bs-goal-desc {
    display: block;
    font-size: 13px;
    color: var(--bs-gray-600);
    line-height: 1.4;
}

/* ============================================
   Trait Priorities
   ============================================ */
.bs-priority-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bs-priority-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-gray-200);
    border-radius: var(--bs-border-radius);
}

.bs-priority-info {
    flex: 1;
}

.bs-priority-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--bs-gray-800);
    margin-bottom: 2px;
}

.bs-priority-desc {
    display: block;
    font-size: 13px;
    color: var(--bs-gray-600);
}

.bs-priority-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.bs-priority-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--bs-gray-300);
    border-radius: 20px;
    background: var(--bs-white);
    color: var(--bs-gray-600);
    cursor: pointer;
    transition: var(--bs-transition);
}

.bs-priority-btn:hover {
    border-color: var(--bs-gray-400);
    background: var(--bs-gray-50);
}

.bs-priority-btn.selected {
    color: var(--bs-white);
}

.bs-priority-btn.selected[class*="low"] {
    background: #64b5f6;
    border-color: #42a5f5;
}

.bs-priority-btn.selected[class*="medium"] {
    background: #ffb74d;
    border-color: #ffa726;
}

.bs-priority-btn.selected[class*="high"] {
    background: var(--bs-success);
    border-color: #218838;
}

/* Fix for priority button selection based on click */
.bs-priority-buttons .bs-priority-btn:first-child.selected {
    background: #64b5f6;
    border-color: #42a5f5;
    color: var(--bs-white);
}

.bs-priority-buttons .bs-priority-btn:nth-child(2).selected {
    background: #ffb74d;
    border-color: #ffa726;
    color: var(--bs-gray-900);
}

.bs-priority-buttons .bs-priority-btn:last-child.selected {
    background: var(--bs-success);
    border-color: #218838;
    color: var(--bs-white);
}

/* ============================================
   Contact Options
   ============================================ */
.bs-contact-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.bs-contact-option {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bs-gray-100);
    border: 2px solid var(--bs-gray-200);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    transition: var(--bs-transition);
    text-align: center;
}

.bs-contact-option:hover {
    border-color: var(--bs-primary-light);
}

.bs-contact-option.selected {
    border-color: var(--bs-primary);
    background: rgba(0, 60, 113, 0.05);
}

.bs-contact-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--bs-gray-800);
    margin-bottom: 4px;
}

.bs-contact-desc {
    display: block;
    font-size: 13px;
    color: var(--bs-gray-600);
}

/* Contact Form */
.bs-contact-form {
    background: var(--bs-white);
    border: 1px solid var(--bs-gray-200);
    border-radius: var(--bs-border-radius);
    padding: 24px;
}

.bs-form-row {
    margin-bottom: 18px;
}

.bs-form-row:last-child {
    margin-bottom: 0;
}

.bs-form-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--bs-gray-700);
    margin-bottom: 6px;
}

.bs-optional {
    font-weight: 400;
    color: var(--bs-gray-500);
}

.bs-form-row input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid var(--bs-gray-300);
    border-radius: var(--bs-border-radius);
    transition: var(--bs-transition);
}

.bs-form-row input:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(0, 60, 113, 0.1);
}

/* ============================================
   Wizard Navigation
   ============================================ */
.bs-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bs-wizard-nav .bs-btn {
    min-width: 140px;
}

.bs-btn-find {
    min-width: 180px;
}

/* ============================================
   Results View
   ============================================ */
.bs-results-view {
    max-width: 100%;
}

.bs-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.bs-results-title h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--bs-gray-900);
    margin: 0 0 4px 0;
}

.bs-results-title p {
    color: var(--bs-gray-600);
    margin: 0;
    font-size: 15px;
}

.bs-results-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Priorities Summary */
.bs-priorities-summary {
    background: linear-gradient(135deg, rgba(0, 60, 113, 0.08), rgba(0, 60, 113, 0.03));
    border: 1px solid rgba(0, 60, 113, 0.15);
    border-radius: var(--bs-border-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.bs-priorities-summary h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.bs-priority-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bs-priority-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bs-white);
    border-radius: 16px;
    color: var(--bs-gray-700);
}

.bs-priority-tag.priority-high {
    background: rgba(40, 167, 69, 0.15);
    color: #1e7e34;
}

/* Inline Filters */
.bs-inline-filters {
    display: flex;
    gap: 20px;
    padding: 16px 20px;
    background: var(--bs-gray-100);
    border-radius: var(--bs-border-radius);
    margin-bottom: 24px;
}

.bs-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bs-filter-row label {
    font-size: 14px;
    color: var(--bs-gray-600);
    font-weight: 500;
}

.bs-filter-row select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--bs-gray-300);
    border-radius: var(--bs-border-radius);
    background: var(--bs-white);
}

/* ============================================
   Results List
   ============================================ */
.bs-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bs-result-card {
    display: grid;
    grid-template-columns: 48px 120px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--bs-white);
    border: 1px solid var(--bs-gray-200);
    border-radius: var(--bs-border-radius-lg);
    transition: var(--bs-transition);
}

.bs-result-card:hover {
    border-color: var(--bs-gray-300);
    box-shadow: var(--bs-shadow);
}

.bs-result-rank {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
}

.bs-result-image {
    width: 120px;
    height: 90px;
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    background: var(--bs-gray-100);
}

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

.bs-result-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bs-gray-200), var(--bs-gray-100));
}

.bs-result-content {
    min-width: 0;
}

.bs-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.bs-result-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.bs-result-name a {
    color: var(--bs-gray-900);
}

.bs-result-name a:hover {
    color: var(--bs-primary);
    text-decoration: none;
}

.bs-result-match {
    display: flex;
    align-items: baseline;
    gap: 4px;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.bs-match-score {
    font-size: 16px;
    font-weight: 700;
    color: var(--bs-success);
}

.bs-match-label {
    font-size: 11px;
    color: var(--bs-success);
    text-transform: uppercase;
}

.bs-result-breed {
    font-size: 14px;
    color: var(--bs-gray-600);
    margin-bottom: 10px;
}

.bs-result-traits {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.bs-result-trait {
    display: flex;
    flex-direction: column;
}

.bs-result-trait .bs-trait-label {
    font-size: 11px;
    color: var(--bs-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bs-result-trait .bs-trait-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--bs-gray-800);
}

.bs-result-reasons {
    margin-top: 10px;
}

.bs-result-reasons ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bs-result-reasons li {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    background: var(--bs-gray-100);
    border-radius: 12px;
    color: var(--bs-gray-700);
}

.bs-result-reasons li::before {
    content: '✓';
    color: var(--bs-success);
    margin-right: 5px;
    font-weight: bold;
}

.bs-result-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.bs-result-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--bs-primary);
}

/* No Results */
.bs-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bs-gray-100);
    border-radius: var(--bs-border-radius-lg);
}

.bs-no-results h3 {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: var(--bs-gray-800);
}

.bs-no-results p {
    color: var(--bs-gray-600);
    margin: 0 0 20px 0;
}

/* ============================================
   Comparison Bar
   ============================================ */
.bs-comparison-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bs-gray-900);
    color: var(--bs-white);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--bs-shadow-lg);
    z-index: 100;
}

.bs-comparison-actions {
    display: flex;
    gap: 8px;
}

.bs-comparison-bar .bs-btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* ============================================
   Modal
   ============================================ */
.bs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.bs-modal {
    background: var(--bs-white);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--bs-shadow-lg);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.bs-comparison-modal {
    max-width: 1200px;
}

.bs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--bs-gray-200);
    flex-shrink: 0;
}

.bs-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.bs-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bs-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Comparison Table */
.bs-comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.bs-comparison-table th,
.bs-comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--bs-gray-100);
}

.bs-comparison-table thead th {
    background: var(--bs-gray-50);
    font-weight: 600;
    font-size: 14px;
    color: var(--bs-gray-700);
    position: sticky;
    top: 0;
}

.bs-trait-col {
    width: 200px;
    min-width: 200px;
    background: var(--bs-gray-50);
}

.bs-trait-col strong {
    color: var(--bs-gray-800);
}

.bs-unit {
    font-size: 12px;
    color: var(--bs-gray-500);
    font-weight: normal;
}

.bs-bull-col {
    text-align: center;
    min-width: 150px;
}

.bs-bull-col.bs-best {
    background: rgba(40, 167, 69, 0.1);
    font-weight: 600;
    color: var(--bs-success);
}

.bs-compare-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bs-compare-header img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--bs-border-radius);
    background: var(--bs-gray-100);
}

.bs-compare-header span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .bs-app {
        padding: 16px;
    }

    .bs-step-content {
        padding: 24px;
    }

    .bs-step h2 {
        font-size: 20px;
    }

    .bs-option-cards {
        grid-template-columns: 1fr;
    }

    .bs-goal-options {
        grid-template-columns: 1fr;
    }

    .bs-contact-options {
        grid-template-columns: 1fr;
    }

    .bs-priority-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .bs-priority-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .bs-priority-btn {
        flex: 1;
        text-align: center;
    }

    .bs-results-header {
        flex-direction: column;
    }

    .bs-results-actions {
        width: 100%;
    }

    .bs-results-actions .bs-btn {
        flex: 1;
    }

    .bs-inline-filters {
        flex-direction: column;
        gap: 12px;
    }

    .bs-result-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bs-result-rank {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .bs-result-card {
        position: relative;
    }

    .bs-result-image {
        width: 100%;
        height: 160px;
    }

    .bs-result-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .bs-comparison-bar {
        left: 16px;
        right: 16px;
        transform: none;
        flex-direction: column;
        text-align: center;
    }

    .bs-progress-steps {
        gap: 4px;
    }

    .bs-step-label {
        font-size: 10px;
    }

    .bs-step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .bs-breed-grid {
        grid-template-columns: 1fr;
    }
}
