/* Battery Simulator Public Styles */

.battsim-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.battsim-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-field input[type="checkbox"] {
    margin-right: 8px;
}

.form-field small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 0.9em;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
}

.form-actions .button,
.form-actions button {
    flex: 0 1 auto;
    min-height: 48px;
}

.button,
button.button,
a.button {
    display: inline-block;
    background: #f5f5f5;
    color: #333;
    padding: 12px 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.button:hover,
button.button:hover,
a.button:hover {
    background: #e8e8e8;
    color: #333;
    border-color: #ccc;
    text-decoration: none;
}

.button-primary,
button.button-primary,
a.button-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
    box-sizing: border-box;
}

.button-primary:hover,
button.button-primary:hover,
a.button-primary:hover {
    background: linear-gradient(135deg, #4338CA 0%, #6D28D9 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

.button-primary:active,
button.button-primary:active,
a.button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

.button-large {
    padding: 16px 40px;
    font-size: 18px;
}

.battsim-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.battsim-status-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.status-pending,
.status-completed,
.status-failed {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.battsim-preview {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
}

.battsim-preview th,
.battsim-preview td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.battsim-preview th {
    background: #f5f5f5;
    font-weight: 600;
}

.form-step {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.provider-card {
    background: #f9f9f9;
    padding: 20px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.provider-card h5 {
    margin-top: 0;
    color: #333;
}

.next-steps {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

/* ═══════════════════════════════════════════════════════════
   Quick-Estimate Form  v2.0
   ═══════════════════════════════════════════════════════════ */
.battsim-qe-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.battsim-qe-title {
    font-size: 22px;
    font-weight: 700;
    color: #1d6fa4;
    margin: 0 0 4px;
}
.battsim-qe-subtitle {
    color: #6c757d;
    font-size: 13px;
    margin: 0 0 24px;
}
.battsim-qe-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #1d6fa4;
    margin: 20px 0 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid #e8f1f9;
}
.battsim-qe-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.battsim-qe-row label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    gap: 5px;
}
.battsim-qe-row input,
.battsim-qe-row select {
    padding: 8px 10px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    transition: border-color .15s;
}
.battsim-qe-row input:focus,
.battsim-qe-row select:focus {
    outline: none;
    border-color: #1d6fa4;
    box-shadow: 0 0 0 3px rgba(29,111,164,.15);
}
.battsim-qe-row .hint {
    font-size: 10px;
    color: #9ca3af;
    margin-top: -2px;
}
.battsim-qe-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 11px 28px;
    background: #1d6fa4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.battsim-qe-btn:hover { background: #155a8a; }
.battsim-qe-btn:disabled { opacity: .6; cursor: not-allowed; }
.battsim-qe-btn-outline {
    background: transparent;
    color: #1d6fa4;
    border: 2px solid #1d6fa4;
    margin-top: 20px;
}
.battsim-qe-btn-outline:hover { background: #e8f1f9; }
.battsim-qe-error {
    background: #fee2e2;
    color: #7f1d1d;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 12px;
}

/* Results */
.battsim-qe-ampel {
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 22px;
}
.battsim-qe-ampel .dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.ampel-green  { background: #d1fae5; color: #065f46; }
.ampel-green  .dot { background: #059669; }
.ampel-yellow { background: #fef3c7; color: #92400e; }
.ampel-yellow .dot { background: #d97706; }
.ampel-red    { background: #fee2e2; color: #7f1d1d; }
.ampel-red    .dot { background: #dc2626; }
.ampel-grey   { background: #e5e7eb; color: #374151; }
.ampel-grey   .dot { background: #9ca3af; }

.battsim-qe-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}
.battsim-qe-kpi {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border-top: 3px solid #1d6fa4;
}
.battsim-qe-kpi .kpi-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6c757d;
    margin-bottom: 6px;
}
.battsim-qe-kpi .kpi-value {
    font-size: 22px;
    font-weight: 700;
    color: #1d6fa4;
    line-height: 1;
}
.battsim-qe-results-title {
    font-size: 14px;
    font-weight: 700;
    color: #1d6fa4;
    margin: 24px 0 10px;
    padding-left: 10px;
    border-left: 4px solid #1d6fa4;
}
table.battsim-qe-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    margin-bottom: 22px;
    font-size: 13px;
}
table.battsim-qe-table th {
    background: #1d6fa4;
    color: #fff;
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
}
table.battsim-qe-table th:not(:first-child) { text-align: right; }
table.battsim-qe-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}
table.battsim-qe-table tr:last-child td { border-bottom: none; }
table.battsim-qe-table td:not(:first-child) { text-align: right; }
table.battsim-qe-table .col-after { color: #2ea44f; font-weight: 700; }
table.battsim-qe-table tr:nth-child(even) td { background: #fafafa; }
.battsim-qe-chart-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    margin-bottom: 20px;
    max-height: 280px;
}
