/**
 * Storm Calculator — CSS Styles
 * Калькулятор ливневых стоков
 */

:root {
    --storm-primary: #0288d1;
    --storm-primary-dark: #01579b;
    --storm-secondary: #4fc3f7;
    --storm-accent: #00e5ff;
    --storm-bg: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    --storm-card-bg: rgba(255, 255, 255, 0.95);
    --storm-text: #263238;
    --storm-text-muted: #546e7a;
    --storm-success: #00c853;
    --storm-warning: #ffc107;
    --storm-error: #ff5252;
    --storm-shadow: 0 8px 32px rgba(2, 136, 209, 0.15);
    --storm-radius: 16px;
}

/* Page Layout */
.storm-calc-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Hero Section */
.storm-calc-hero {
    text-align: center;
    padding: 40px 20px;
    background: var(--storm-bg);
    border-radius: var(--storm-radius);
    margin-bottom: 30px;
}

.storm-calc-hero .hero-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: rainDrop 2s ease-in-out infinite;
}

@keyframes rainDrop {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.storm-calc-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--storm-text);
    margin: 0 0 12px;
}

.storm-calc-hero .hero-subtitle {
    font-size: 18px;
    color: var(--storm-text-muted);
    margin: 0;
}

/* Calculator Container */
.storm-calc-container {
    background: var(--storm-card-bg);
    border-radius: var(--storm-radius);
    box-shadow: var(--storm-shadow);
    padding: 32px;
    margin-bottom: 40px;
}

/* Wizard Progress */
.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0 30px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.wizard-step.active {
    opacity: 1;
}

.wizard-step.completed {
    opacity: 0.8;
}

.wizard-step .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #757575;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wizard-step.active .step-num {
    background: var(--storm-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.4);
}

.wizard-step.completed .step-num {
    background: var(--storm-success);
    color: white;
}

.wizard-step .step-label {
    font-weight: 500;
    color: var(--storm-text-muted);
}

.wizard-step.active .step-label {
    color: var(--storm-text);
}

/* Wizard Panels */
.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-panel h2 {
    font-size: 24px;
    color: var(--storm-text);
    margin: 0 0 8px;
}

.wizard-panel .step-hint {
    color: var(--storm-text-muted);
    margin: 0 0 24px;
}

/* City Selector */
.city-selector {
    margin-bottom: 24px;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--storm-primary);
    box-shadow: 0 0 0 4px rgba(2, 136, 209, 0.1);
}

.search-box .search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

/* City Grid */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding: 4px;
}

.city-card {
    padding: 16px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-card:hover {
    background: #e3f2fd;
    border-color: var(--storm-secondary);
    transform: translateY(-2px);
}

.city-card.selected {
    background: var(--storm-primary);
    color: white;
    border-color: var(--storm-primary-dark);
}

.city-card .city-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.city-card .city-q20 {
    font-size: 13px;
    opacity: 0.8;
}

.city-card.selected .city-q20 {
    color: rgba(255, 255, 255, 0.9);
}

/* Manual Q20 */
.manual-q20-toggle {
    margin: 20px 0;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 8px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.manual-q20-input {
    margin-top: 16px;
    padding: 20px;
    background: #fff8e1;
    border-radius: 12px;
    border: 1px solid #ffecb3;
}

/* Selected City Info */
.selected-city-info {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.city-label {
    color: var(--storm-text-muted);
}

.city-value {
    font-weight: 600;
    font-size: 18px;
    color: var(--storm-text);
}

.q20-badge {
    background: var(--storm-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
}

/* Surfaces Grid */
.surfaces-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.surface-card {
    display: grid;
    grid-template-columns: 50px 1fr 200px;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.surface-card:hover {
    background: #e3f2fd;
}

.surface-card.has-value {
    border-color: var(--storm-primary);
    background: #e3f2fd;
}

.surface-icon {
    font-size: 32px;
    text-align: center;
}

.surface-name {
    font-weight: 600;
    color: var(--storm-text);
}

.surface-psi {
    font-size: 13px;
    color: var(--storm-text-muted);
}

.surface-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.surface-input input {
    width: 140px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    text-align: right;
}

.surface-input input:focus {
    outline: none;
    border-color: var(--storm-primary);
}

.input-unit {
    color: var(--storm-text-muted);
    font-weight: 500;
}

/* Total Area Bar */
.total-area-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px;
    margin-bottom: 24px;
}

.total-label {
    font-weight: 500;
    color: var(--storm-text-muted);
}

.total-value {
    font-size: 24px;
    font-weight: 700;
    color: #2e7d32;
}

.total-unit {
    font-weight: 500;
    color: #2e7d32;
}

/* Wizard Nav */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.btn-wizard {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-wizard.btn-back {
    background: #f5f5f5;
    color: var(--storm-text);
}

.btn-wizard.btn-back:hover {
    background: #e0e0e0;
}

.btn-wizard.btn-next {
    background: var(--storm-primary);
    color: white;
}

.btn-wizard.btn-next:hover:not(:disabled) {
    background: var(--storm-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.4);
}

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

.btn-wizard.btn-calculate {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: white;
    padding: 16px 32px;
}

.btn-wizard.btn-calculate:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.4);
}

/* Result Card */
.result-card {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e3f2fd;
    margin-bottom: 24px;
}

.result-header .result-icon {
    font-size: 48px;
}

.result-header h2 {
    margin: 0;
    color: var(--storm-text);
}

/* Result Sections */
.result-section {
    margin-bottom: 28px;
    padding: 24px;
    background: #fafafa;
    border-radius: 12px;
}

.result-section h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: var(--storm-text);
}

/* Result Metrics */
.result-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metric-card {
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.metric-card.primary {
    background: linear-gradient(135deg, var(--storm-primary), var(--storm-primary-dark));
    color: white;
}

.metric-card.primary .metric-label {
    color: rgba(255, 255, 255, 0.85);
}

.metric-label {
    font-size: 14px;
    color: var(--storm-text-muted);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
}

.metric-unit {
    font-size: 18px;
    opacity: 0.8;
}

/* Details Table */
.details-table {
    overflow-x: auto;
}

.details-table table {
    width: 100%;
    border-collapse: collapse;
}

.details-table th,
.details-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.details-table th {
    background: #e3f2fd;
    font-weight: 600;
    color: var(--storm-text);
}

.details-table tr:hover {
    background: #f5f5f5;
}

/* Formula Block */
.formula-block {
    margin-top: 16px;
    padding: 16px 20px;
    background: #e8eaf6;
    border-radius: 10px;
    font-family: 'Roboto Mono', monospace;
}

.formula-block code {
    font-size: 16px;
    color: #303f9f;
}

/* Equipment — паттерн fire modular-set-card */
.equipment-hint {
    color: var(--storm-text-muted);
    margin-bottom: 16px;
}

.equipment-grid {
    /* контейнер для JS-рендеринга */
}

.storm-sets-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}

/* Card */
.storm-set-card {
    background: #fff;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.storm-set-card:hover {
    border-color: #b0c4de;
}

.storm-set-best {
    border-color: #2ecc71;
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.1);
}

/* Header */
.storm-set-header {
    background: #f8f9fa;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.storm-set-best .storm-set-header {
    background: rgba(46, 204, 113, 0.05);
    color: #27ae60;
}

.storm-set-badge {
    background: #2ecc71;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.storm-set-badge-partial {
    background: #f9a825;
}

/* Items */
.storm-set-items {
    padding: 20px;
    flex: 1;
}

.storm-set-item {
    margin-bottom: 15px;
}

.storm-set-item:last-child {
    margin-bottom: 0;
}

.storm-set-item-nf {
    opacity: 0.6;
}

.storm-set-item-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.storm-set-item-row img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 5px;
    flex-shrink: 0;
}

.storm-set-noimg {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    color: var(--storm-text-muted);
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}

.storm-set-item-info {
    flex: 1;
}

a.storm-set-item-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 3px;
    color: var(--storm-primary);
    text-decoration: none;
}

a.storm-set-item-name:hover {
    text-decoration: underline;
}

div.storm-set-item-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 3px;
    color: var(--storm-text);
}

.storm-set-item-spec {
    font-size: 14px;
    color: #333;
    font-weight: 700;
}

/* Footer */
.storm-set-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.storm-set-stats {
    margin-bottom: 15px;
}

.storm-set-stat {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 5px;
}

.storm-set-stat strong {
    color: #2ecc71;
    font-size: 16px;
}

.storm-set-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--storm-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s;
}

.storm-set-btn:hover {
    background: var(--storm-primary-dark);
    color: #fff;
    text-decoration: none;
}

/* Variant selection (matching fire pattern) */
.storm-set-card[data-variant] {
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.storm-set-card[data-variant]:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.storm-set-card.selected-for-pdf {
    border-color: #0073aa !important;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.25);
}

.pdf-select-hint {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #888;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 10px;
    margin: 0;
}

.pdf-select-hint.hint-attention {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
    font-weight: 600;
}

.selected-variant-summary {
    margin: 20px 0 0;
    padding: 16px 20px;
    background: #f0f7ff;
    border: 2px solid #b0cfe0;
    border-radius: 10px;
}

#btn-pdf-main {
    margin-top: 16px;
}

.svs-header {
    font-weight: 700;
    font-size: 15px;
    color: #0073aa;
    margin-bottom: 8px;
}

.svs-items {
    margin-bottom: 8px;
}

.svs-item {
    font-size: 14px;
    color: #333;
    padding: 2px 0;
}

.svs-total {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.storm-los3x1-hint {
    margin-top: 12px;
    padding: 12px 16px;
    background: #e3f2fd;
    border-left: 4px solid #0288d1;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.equipment-grid.highlight-select {
    animation: highlightPulse 0.6s ease 3;
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.3); border-radius: 12px; }
}

/* Legal Block (нормативное обоснование) */
.legal-block {
    background: #f0f7ff;
    border: 1px solid #b3d4fc;
}

.legal-text {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.legal-text a {
    color: var(--storm-primary);
    text-decoration: none;
    font-weight: 500;
}

.legal-text a:hover {
    text-decoration: underline;
}

.legal-text strong {
    color: var(--storm-primary-dark);
}

/* Volume Box (prominent result display) */
.result-volume-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid var(--storm-primary);
}

.volume-label {
    font-size: 14px;
    color: #666;
}

.volume-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--storm-primary);
}

.volume-secondary {
    font-size: 18px;
    font-weight: 600;
    color: var(--storm-text-muted);
}

/* Tech Block (рекомендуемая конфигурация) */
.tech-block {
    background: #fff8e1;
    border: 1px solid #ffe082;
}

.tech-text {
    font-size: 14px;
    line-height: 1.6;
    color: #5d4037;
    margin-bottom: 15px;
}

.tech-text strong {
    color: #333;
}

.tank-config {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tank-config-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.tank-config-line:last-child {
    margin-bottom: 0;
}

.tank-config-pool {
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.tank-config-items {
    color: #555;
}

/* Products Block (подобранное оборудование) */
.products-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action.btn-pdf {
    background: #ff7043;
    color: white;
}

.btn-action.btn-pdf:hover {
    background: #f4511e;
    transform: translateY(-2px);
}

.btn-action.btn-consult {
    background: var(--storm-primary);
    color: white;
}

.btn-action.btn-consult:hover {
    background: var(--storm-primary-dark);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 18px;
}

/* Error Card */
.error-card {
    text-align: center;
    padding: 48px;
    background: #ffebee;
    border-radius: 12px;
}

.error-card .error-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.error-card h3 {
    color: #c62828;
    margin: 0 0 12px;
}

.error-card p {
    color: #b71c1c;
    margin-bottom: 24px;
}

/* Info Block */
.storm-info-block {
    margin-bottom: 40px;
}

.storm-info-block h2 {
    text-align: center;
    font-size: 24px;
    color: var(--storm-text);
    margin-bottom: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.info-card {
    padding: 28px;
    background: var(--storm-card-bg);
    border-radius: var(--storm-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.info-card .info-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.info-card h4 {
    font-size: 18px;
    color: var(--storm-text);
    margin: 0 0 12px;
}

.info-card p {
    color: var(--storm-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* CTA Block */
.storm-cta {
    background: linear-gradient(135deg, var(--storm-primary), #006db3);
    border-radius: var(--storm-radius);
    padding: 48px;
    text-align: center;
    margin-bottom: 40px;
}

.storm-cta h3 {
    font-size: 28px;
    color: white;
    margin: 0 0 12px;
}

.storm-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px;
    font-size: 18px;
}

.storm-cta .big_btn {
    display: inline-block;
    padding: 16px 32px;
    background: white;
    color: var(--storm-primary-dark);
    border-radius: 10px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.storm-cta .big_btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Related Tools */
.related-tools {
    margin-bottom: 40px;
}

.related-tools h3 {
    font-size: 20px;
    color: var(--storm-text);
    margin-bottom: 16px;
}

.tools-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f5f5f5;
    border-radius: 10px;
    text-decoration: none;
    color: var(--storm-text);
    transition: all 0.2s ease;
}

.tool-card:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.tool-icon {
    font-size: 24px;
}

.tool-name {
    font-weight: 500;
}

/* Form Elements */
.storm-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.storm-input:focus {
    outline: none;
    border-color: var(--storm-primary);
    box-shadow: 0 0 0 4px rgba(2, 136, 209, 0.1);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--storm-text);
    margin-bottom: 8px;
}

.form-hint {
    font-size: 13px;
    color: var(--storm-text-muted);
    margin-top: 6px;
}

/* Lead Gate (appears on PDF button click) */
.lead-gate {
    margin-top: 20px;
    padding: 20px 24px;
    background: #f0f7ff;
    border: 2px solid #b3d4fc;
    border-radius: 12px;
}

.lead-gate-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--storm-primary-dark);
    margin-bottom: 12px;
}

.lead-gate-fields {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.lead-gate-fields input {
    flex: 1;
}

.lead-gate-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    cursor: pointer;
}

.lead-gate-consent input[type="checkbox"] {
    accent-color: var(--storm-primary);
}

.lead-gate-consent.error-field {
    color: #c62828;
}

.lead-gate-success {
    padding: 15px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #166534;
    font-size: 14px;
    line-height: 1.6;
}

.lead-gate-success a {
    color: var(--storm-primary-dark);
    font-weight: 600;
}

.error-field {
    border-color: #c62828 !important;
}

/* PDF button standalone */

/* Responsive */
@media (max-width: 768px) {
    .storm-calc-page {
        padding: 20px 12px;
    }

    .storm-calc-hero h1 {
        font-size: 24px;
    }

    .storm-calc-container {
        padding: 20px 16px;
    }

    .wizard-progress {
        gap: 20px;
    }

    .wizard-step .step-label {
        display: none;
    }

    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .surface-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .surface-input {
        justify-content: center;
    }

    .result-metrics {
        grid-template-columns: 1fr;
    }

    .metric-value {
        font-size: 32px;
    }

    .result-actions {
        flex-direction: column;
    }

    .btn-action {
        justify-content: center;
    }

    .lead-gate-fields {
        flex-direction: column;
    }

    .storm-sets-row {
        grid-template-columns: 1fr;
    }

    .storm-set-items {
        padding: 15px;
    }

    .storm-set-footer {
        padding: 15px;
    }

    .storm-set-item-row img,
    .storm-set-noimg {
        width: 50px;
        height: 50px;
    }
}