.techis-cost-calculator-container {
    max-width: 1140px;
    margin: 40px auto;
    padding: 0 20px;
}

.techis-cost-calculator-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 32px;
    border: 1px solid #e0e0e0;
}

.techis-cost-calculator-wrapper h2 {
    color: #2c3e50;
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 600;
}

.techis-info-block {
    background: #f0f6fc;
    border-left: 4px solid #4a90e2;
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.6;
    color: #34495e;
}

.techis-info-block p {
    margin: 0 0 12px;
}

.techis-info-block p:last-child {
    margin-bottom: 0;
}

.techis-section {
    margin-bottom: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fafafa;
}

.techis-section-summary {
    cursor: pointer;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.techis-section-summary::-webkit-details-marker {
    display: none;
}

.techis-section-summary::before {
    content: '▾';
    margin-right: 6px;
    color: #4a90e2;
}

.techis-section:not([open]) .techis-section-summary::before {
    content: '▸';
}

.techis-section-body {
    padding: 0 20px 20px;
}

.techis-help-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.55;
    color: #555;
}

.techis-help-panel strong {
    margin-bottom: 8px;
    color: #2c3e50;
}

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

.techis-field label,
.techis-field legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #34495e;
    font-size: 15px;
}

.techis-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .techis-field-row {
        grid-template-columns: 1fr;
    }
}

.techis-slider-wrap {
    position: relative;
    padding-bottom: 8px;
}

.techis-slider {
    --range-fill: #4a90e2;
    --range-track: #ddd;
    --range-percent: 0%;
    width: 100%;
    height: 22px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    cursor: pointer;
}

.techis-slider::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(
        to right,
        var(--range-fill) 0%,
        var(--range-fill) var(--range-percent),
        var(--range-track) var(--range-percent),
        var(--range-track) 100%
    );
}

.techis-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: var(--range-track);
}

.techis-slider::-moz-range-progress {
    height: 8px;
    border-radius: 4px 0 0 4px;
    background: var(--range-fill);
}

.techis-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4a90e2;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    margin-top: -8px;
}

.techis-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4a90e2;
    cursor: pointer;
    border: 2px solid #fff;
}

.techis-slider-marks {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    padding: 0 4px;
}

.techis-slider-value {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #4a90e2;
    margin-top: 8px;
}

.techis-text-gauge {
    display: flex;
    border: 2px solid #4a90e2;
    border-radius: 6px;
    overflow: hidden;
    max-width: 400px;
}

.techis-gauge-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: #f5f5f5 ;
    color: #4a90e2 !important;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.techis-gauge-btn.active {
    background: #4a90e2;
    color: #fff !important;
}

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

.techis-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.techis-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #4a90e2;
}

.techis-radio-group {
    border: none;
    padding: 0;
    margin: 0 0 20px;
}

.techis-radio-group legend {
    margin-bottom: 12px;
}

.techis-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
}

.techis-radio-label input {
    accent-color: #4a90e2;
}

.techis-result-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    margin-top: 8px;
}

.techis-result-row.techis-result-highlight {
    background: #eef4fb;
    border-color: #4a90e2;
}

.techis-result-value {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.techis-result-value.large {
    font-size: 28px;
    color: #4a90e2;
}

.techis-result-suffix {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.techis-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 28px 0;
}

.techis-submit-title {
    font-size: 22px;
    margin: 0 0 20px;
    color: #2c3e50;
}

.techis-submit-section {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 6px;
}

.techis-submit-section input[type="email"] {
    width: 100%;
    max-width: 400px;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.techis-submit-button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.techis-submit-button:hover {
    background: #3a7bc8;
}

.techis-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.techis-hidden {
    display: none !important;
}

.techis-form-message {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.techis-form-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.techis-validation-errors {
    margin-top: 16px;
    padding: 14px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

.techis-validation-errors ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

/* Tooltips (stejný princip jako ROI) */
.techis-cost-calculator-container .tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4a90e2;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-style: normal;
    font-family: Georgia, 'Times New Roman', serif;
    cursor: help;
    flex-shrink: 0;
    position: relative;
}

.techis-cost-calculator-container .tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    width: max-content;
    max-width: 320px;
    white-space: normal;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.techis-cost-calculator-container .tooltip-icon:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2c3e50;
    z-index: 1001;
}

@media (max-width: 600px) {
    .techis-cost-calculator-wrapper {
        padding: 20px 16px;
    }

    .techis-cost-calculator-container .tooltip-icon:hover::after {
        max-width: 240px;
        left: auto;
        right: 0;
        transform: none;
    }
}
