/**
 * БОНСІДС Агрокалькулятор - BonSeeds Design System
 * Version: 2.0.0
 * Адаптовано під стиль сайту Silver Meadow
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* === Reset and Base === */
/* Скрываем заголовок страницы WordPress (верхний) */
body.page .entry-header,
body.page .page-header,
body.page .page-header-section,
body.page .ast-single-post .entry-header,
body.page h1.entry-title,
body.page .page-title:first-of-type {
    display: none !important;
}

.bonsids-calculator-wrapper {
    /* Используем переменные из темы BonSeeds */
    --primary-color: var(--bs-primary, #84CC16);
    --primary-dark: var(--bs-primary-dark, #65A30D);
    --primary-light: var(--bs-primary-light, #A3E635);
    --secondary-color: var(--bs-secondary, #22C55E);
    --secondary-dark: var(--bs-secondary-dark, #16A34A);
    --secondary-light: #4ADE80;
    
    /* Семантические цвета */
    --success-color: var(--bs-secondary, #22C55E);
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    
    /* Текст из темы */
    --text-color: var(--bs-text-primary, #18181B);
    --text-secondary: var(--bs-text-secondary, #52525B);
    --text-light: var(--bs-text-muted, #71717A);
    --text-muted: #A1A1AA;
    
    /* Фоны из темы */
    --bg-primary: var(--bs-bg-primary, #FAFAFA);
    --bg-secondary: var(--bs-bg-secondary, #F4F4F5);
    --bg-tertiary: var(--bs-gray-200, #E4E4E7);
    --surface: var(--bs-surface, #FFFFFF);
    --surface-hover: #F9FAFB;
    
    /* Границы из темы */
    --border-color: var(--bs-border, #E4E4E7);
    --border-light: var(--bs-gray-100, #F4F4F5);
    
    /* Тени из темы */
    --shadow-sm: var(--bs-shadow-sm, 0 2px 4px rgba(0,0,0,0.04));
    --shadow-md: var(--bs-shadow-md, 0 4px 8px rgba(0,0,0,0.06));
    --shadow-lg: var(--bs-shadow-lg, 0 10px 20px rgba(0,0,0,0.08));
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 10px 25px -5px rgba(132, 204, 22, 0.3);
    
    /* Радиусы из темы */
    --radius-sm: 6px;
    --radius-md: var(--bs-radius, 8px);
    --radius-lg: var(--bs-radius-lg, 16px);
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Шрифты сайта */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* === Container === */
.bonsids-calc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--bs-space-2xl, 2rem) var(--bs-space-lg, 1.5rem);
}

/* Фоновый градиент в стиле сайта */
.bonsids-calculator-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 30%, rgba(132, 204, 22, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(34, 197, 94, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* === Header === */
.bonsids-calc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bonsids-calc-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-family: var(--font-display);
}

.bonsids-calc-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 0;
}

/* === Grid Layout === */
.bonsids-calc-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .bonsids-calc-grid {
        grid-template-columns: 1fr;
    }
}

/* === Glass Card === */
.glass-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--bs-space-2xl, 2rem);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: var(--bs-space-2xl, 2rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* Убираем overflow: hidden чтобы select выпадающие списки не обрезались */
    overflow: visible;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(132, 204, 22, 0.2);
}

.glass-card:hover::before {
    opacity: 1;
}

/* === Panel Title === */
.panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.panel-title .icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);
}

/* === Form Styles === */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Когда select открыт, форма должна быть поверх других элементов */
.form-group:focus-within {
    z-index: 1000;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.required-mark {
    color: var(--danger-color);
    font-weight: 700;
    margin-left: 0.25rem;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: var(--text-light);
    cursor: help;
    position: relative;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.tooltip-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

.tooltip-icon:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.form-control {
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
    color: var(--text-color);
    width: 100%;
    position: relative;
    z-index: 10;
    /* Убеждаемся, что select можно кликать */
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Стили для select элементов */
.form-control select,
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2352525B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-control:hover {
    border-color: var(--primary-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.1);
    background: var(--surface);
    z-index: 100;
}

/* Выпадающий список select должен быть поверх всего */
.form-control:focus,
select.form-control:focus {
    z-index: 1000;
    position: relative;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}


.form-group-checkbox label {
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.form-group-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-help {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.375rem;
    line-height: 1.5;
    font-style: italic;
}

/* === Hybrid Badges === */
.hybrid-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.hybrid-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.badge-sumo {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.badge-clearfield {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
}

.badge-default {
    background: var(--text-light);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow-primary);
    width: 100%;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px rgba(132, 204, 22, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

.btn-secondary {
    background: white;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* === Map === */
.map-card {
    position: relative;
}

.map-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: -1rem 0 1rem 0;
}

/* Map Wrapper - контейнер для карты */
.map-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    isolation: isolate; /* Создает новый stacking context */
}

.ukraine-map {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: #f1f5f9;
}

/* External Map Legend - вынесена за пределы карты */
.map-legend-external {
    margin-top: 0;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10; /* Выше карты, но ниже popups */
}

.map-legend-external .legend-title {
    margin: 0 0 1rem 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.map-legend-external .legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.map-legend-external .legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-legend-external .legend-item:hover {
    background: var(--surface-hover);
    transform: translateX(2px);
}

.map-legend-external .legend-item.active {
    background: rgba(132, 204, 22, 0.1);
    border: 1px solid var(--primary-color);
    font-weight: 600;
}

.map-legend-external .legend-item.active .legend-label {
    color: var(--primary-dark);
}

.map-legend-external .legend-color {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    border: 2px solid #1e293b;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.map-legend-external .legend-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.map-legend-external .legend-selected .legend-color {
    border-width: 3px;
    border-color: #059669;
}

/* Old legend styles - для обратной совместимости */
.map-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

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

.legend-color {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
}

/* === Leaflet Custom Styles === */
.leaflet-container {
    background: #f1f5f9;
    font-family: var(--font-body);
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
}

.region-popup-container .leaflet-popup-content {
    margin: 0;
}

.region-popup {
    font-family: var(--font-body);
}

.region-popup h4 {
    color: var(--text-color);
    font-family: var(--font-display);
}

.region-popup button {
    transition: all 0.2s ease;
}

.region-popup button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.region-zone {
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-zone:hover {
    opacity: 0.9;
}

.region-zone.selected {
    stroke-width: 4;
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        stroke-width: 4;
        opacity: 1;
    }
    50% {
        stroke-width: 5;
        opacity: 0.8;
    }
}

.region-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    user-select: none;
    z-index: 100; /* Lower than popups */
}

/* Leaflet popup z-index - ensure popups are above everything */
.leaflet-popup {
    z-index: 3000 !important;
}

.leaflet-popup-content-wrapper {
    z-index: 3001 !important;
}

.leaflet-popup-tip {
    z-index: 3002 !important;
}

/* Leaflet controls positioning - только zoom controls на карте */
.leaflet-top.leaflet-right {
    z-index: 1000;
}

.leaflet-control-zoom {
    margin-top: 10px !important;
    margin-right: 10px !important;
}

/* Leaflet Control Styles */
.leaflet-control {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

/* Ensure proper stacking order */
.leaflet-top {
    z-index: 1000;
}

.leaflet-bottom {
    z-index: 1000;
}

.leaflet-left {
    z-index: 1000;
}

.leaflet-right {
    z-index: 1000;
}

.leaflet-control-zoom a {
    background-color: var(--surface);
    color: var(--text-color);
    border-color: var(--border-color);
    transition: all 0.2s ease;
}

.leaflet-control-zoom a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* === Results Section === */
.results-section {
    animation: fadeIn 0.5s ease-in;
}

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

/* === Metrics Grid === */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
    padding: var(--bs-space-xl, 1.5rem);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(132, 204, 22, 0.3);
}

.metric-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.metric-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.metric-value.metric-success {
    color: var(--success-color);
}

.metric-value.metric-profit {
    color: var(--info-color);
}

.metric-value.metric-danger {
    color: var(--danger-color);
}

.metric-value.metric-warning {
    color: var(--warning-color);
}

.metric-value.metric-info {
    color: #6366f1;
}

.metric-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
}

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

.chart-card {
    background: var(--surface);
    padding: var(--bs-space-xl, 1.5rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.chart-card h4 {
    margin: 0 0 var(--bs-space-lg, 1rem) 0;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-color);
    letter-spacing: -0.01em;
}

/* === Breakdown === */
.breakdown-card {
    background: var(--surface);
    padding: var(--bs-space-xl, 1.5rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: var(--bs-space-2xl, 2rem);
    transition: all 0.3s ease;
}

.breakdown-card:hover {
    box-shadow: var(--shadow-lg);
}

.breakdown-card h4 {
    margin: 0 0 var(--bs-space-lg, 1rem) 0;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-color);
    letter-spacing: -0.01em;
}

#costsBreakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--bs-space-md, 0.75rem) 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.breakdown-row:hover {
    background: rgba(132, 204, 22, 0.02);
    margin: 0 calc(var(--bs-space-md, 0.75rem) * -1);
    padding-left: var(--bs-space-md, 0.75rem);
    padding-right: var(--bs-space-md, 0.75rem);
    border-radius: var(--radius-sm);
}

.breakdown-row:last-child {
    border-bottom: none;
    padding-top: var(--bs-space-lg, 1rem);
    font-weight: 700;
    font-size: 1.125rem;
    border-top: 2px solid var(--border-color);
    margin-top: var(--bs-space-sm, 0.5rem);
}

.breakdown-label {
    font-weight: 500;
    color: var(--text-color);
}

.breakdown-value {
    font-weight: 700;
    color: var(--text-color);
}

.breakdown-value-total {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* === Recommendations === */
.recommendations-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.recommendation-card {
    padding: var(--bs-space-lg, 1rem) var(--bs-space-xl, 1.5rem);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    display: flex;
    gap: var(--bs-space-lg, 1rem);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recommendation-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: inherit;
    opacity: 0.3;
    transition: width 0.3s ease;
}

.recommendation-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.recommendation-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.recommendation-card.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
}

.recommendation-card.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info-color);
}

.recommendation-card.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning-color);
}

.recommendation-icon {
    font-size: 1.5rem;
}

.recommendation-content h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 700;
}

.recommendation-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* === Results Actions === */
.results-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .bonsids-calc-container {
        padding: 1rem;
    }
    
    .bonsids-calc-title {
        font-size: 1.875rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .ukraine-map {
        height: 350px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-actions .btn {
        width: 100%;
    }
}

/* === Loading State === */
.bonsids-calc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.bonsids-calc-loading .spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
}

/* === Error State === */
.bonsids-calc-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-color);
    border-radius: 0.5rem;
    padding: 1rem;
    color: var(--danger-color);
    margin: 1rem 0;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger-color);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    color: var(--danger-color);
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.form-error strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-error ul {
    margin: 0;
    padding-left: 1.5rem;
}

.form-error li {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

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

/* === Success State === */
.bonsids-calc-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 0.5rem;
    padding: 1rem;
    color: var(--success-color);
    margin: 1rem 0;
}
